feat(m14): AI assistant — explain diagnostics, opt-in (Ollama or Claude) — 0.27.0 #23
Reference in New Issue
Block a user
Delete Branch "feat/m14-ai"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
New optional module (D24): explains the collected findings in plain language,
contacted ONLY on an explicit user action (never automatic).
(Anthropic Messages API via stdlib urllib; key in keyring). Grounded prompt;
HTTP error parsing; one-shot (no thinking/caching — snappy).
exact keyword/code match ("RAG-lite", no embeddings) injected into the prompt —
lifts local models, sharpens Claude. No fine-tuning.
the token keyring helpers).
"Explain with AI" button on the diagnostic dialog (consent prompt for cloud).
rigdoctor ai status|test|explain.Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
New optional module (D24): explains the collected findings in plain language, contacted ONLY on an explicit user action (never automatic). - core/ai.py: provider chosen explicitly (no default) — ollama (local) or claude (Anthropic Messages API via stdlib urllib; key in keyring). Grounded prompt; HTTP error parsing; one-shot (no thinking/caching — snappy). - core/ai_knowledge.py: curated reference KB (Xid/SMART/Proton/tunables), exact keyword/code match ("RAG-lite", no embeddings) injected into the prompt — lifts local models, sharpens Claude. No fine-tuning. - config: ai_provider/ai_model/ai_endpoint + keyring-backed AI key (generalized the token keyring helpers). - GUI: Settings → AI assistant (provider radios, model/endpoint/key, Save/Test); "Explain with AI" button on the diagnostic dialog (consent prompt for cloud). - CLI: `rigdoctor ai status|test|explain`. - Docs: D24, SPEC/MODULES/ROADMAP (Phase 7); tests for providers/grounding/parse. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>