Read-only MCP server: get_recent_commits over a local deploy log (Quellgeist triage).
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
First-line incident triage you can trust: ranked root-cause hypotheses where every claim cites a real evidence handle β and the agent abstains rather than guess.
Quellgeist is a model-agnostic AI agent for first-line production-incident triage.
It runs a legible JSON-action ReAct loop over read-only tools (structured logs +
recent deploys + metric time-series), then emits a structured Diagnosis:
confidence-ranked root-cause hypotheses, each backed by a structured evidence
handle (LogRef.id / CommitRef.sha / MetricRef.id) the agent actually saw β
never free text. Two ideas set it apart:
Status: Wave 4 complete β the fine-tune works. The DR-0020 QLoRA fine-tune of the local reasoner (Qwen3-4B, served via Ollama) took it from the base's 0/16 holdout to 12/16 β zero fabrication, zero speculative-filtering, and cheaper than the base β while beating a 31B frontier (Gemma-4-31B, 10/16) on the same holdout at $0, fully offline. Non-memorisation is triangulated three ways (fixtures β holdout; core-fresh β₯ core-overlap; structure probe 7/10). Two honest limits: the
resource_exhaustionclass didn't transfer (0/N; the frontier passes it), and adversarial-abstention recall is 6/12 at the system level β a ceiling the 31B frontier shares (also 6/12), not a fine-tune regression. When this agent misses it's incomplete or too cautious, never confidently fabricating. See Status & roadmap Β· fine-tune case study.
| Evidence is a handle | Each hypothesis cites a log row's source-stable id or a commit sha, copied verbatim from a tool result β the unit the deterministic fabrication check looks up. Prose lives in a display-only note. (DR-0009) |
| Abstention is a feature | When signals are weak the agent returns abstained=true with a reason and an empty hypotheses list β enforced by the schema. |
| Model-agnostic by construction | The loop parses JSON actions from plain chat text, so it's identical on Gemini's free tier and a local 4-bit Qwen β no dependence on any backend's native function-calling. Swap models with one config change. (DR-0008, DR-0010) |
| Reliability is gated, not asserted | A keyless, deterministic CI gate (ruff + black + pytest, including the fixture-backed eval harness) runs on every push. |
Requires uv and Python 3.12+.
See a real-shaped diagnosis in one keyless command (no model, no API key):
Then run the full loop against the live toy service:
The live step needs a reasoner β see Running the model.
Without a key, quellgeist diagnose exits 1 with a one-line error + hint (never a
traceback); --demo always works keyless and renders the same output shape
deterministically from gold.
A custom, legible loop is the orchestration layer; the three read-only tools are
the evidence interface; the Diagnosis schema is the contract that the
postmortem renderer and the eval judge both read.
All three tools are also exposed as MCP servers over stdio
(python -m quellgeist.servers.logs_mcp, β¦commits_mcp, β¦metrics_mcp). The
agent currently reuses the same tool functions in-process behind a ToolSpec
registry; a stdio MCP-client path (the agent driving the servers over the
wire) is on the roadmap (DR-0010).
Deep dive:
docs/architecture.mdwalks the full pipeline (loop β tools β verifier β postmortem), a sequence diagram, the module map, and the cross-cutting design decisions.
The servers publish to the Official MCP Registry on each tagged release (see
docs/publishing.md); once published each is runnable with
uvx --from quellgeist quellgeist-logs-mcp (or β¦-commits-mcp / β¦-metrics-mcp).
Inject the bad deploy β it drops a marker that flips verify_token into a
NoneType regression and writes a deploy_log.json whose offending commit landed
just before the errors (illustrative stdout β the timestamp reflects when you
run it; paths shown relative to the repo root):
With a reasoner configured, quellgeist diagnose reads the logs + deploys and
emits a postmortem. The CI environment has no validated model key (DR-0012), so
the diagnosis below is rendered from gold β built deterministically from the
fixture's labelled cause and evidence handles via render_postmortem, not
live model output:
Reproduce that render yourself (no model needed):
The point isn't the prose β it's that log #2 and commit a1b2c3d are
exact handles into the real signals, not paraphrases. A live run additionally
fills in a one-line summary and suggested actions, and abstains outright when the
evidence is too weak to name a confident cause.
Write the postmortem to a file with --out postmortem.md, or as a self-contained
HTML page with --out postmortem.html (or --format html) β same deterministic
render, no external assets.
The reasoner is any LiteLLM model string, selected by
--model or the QG_MODEL env var (default gemini/gemini-3.5-flash). Provider
keys are read from the environment by LiteLLM; nothing is stored in the repo.
Or fully local and offline via Ollama β the intended home default (DR-0008; exact artifact pinned in DR-0019), no API key involved:
Base vs tuned β important. The
ollama pullabove is the base Qwen3-4B: the honest safe floor β it scores 0/16 on the holdout and abstains on everything, never fabricating (DR-0019). The 12/16 headline is the DR-0020 fine-tune (quellgeist-qwen3-dr0020), which you build + serve viafinetune/README.md(a free-Colab QLoRA run βollama create). Until that tuned GGUF is published for a one-line pull, the base model is what a plainollama pullgives you β safe, not yet useful. Use a hosted model (above) or the fine-tune to see live diagnoses.
Heads-up (DR-0012): a Gemini key on an unvalidated, no-billing project returns
429 limit: 0 on current models, so the shipped CI gate is deliberately
keyless and model-driven evals are key-gated and run out-of-band
(DR-0015). At home the intended default reasoner is a local Qwen3-4B via
Ollama (DR-0008).
The fixture eval scores the reasoner with a deterministic keyword judge + a zero-fabrication check (the keyless gate), and can additionally run two model layers (DR-0016): a verifier that confirms cited evidence supports each hypothesis (forcing abstention otherwise) and an advisory LLM-judge rubric.
QG_VERIFIER_MODEL / QG_JUDGE_MODEL override the model per layer (default
QG_MODEL). An unreachable backend (quota/503/timeout) or a rejected
credential (missing/invalid/stale key) is reported as a skip, not a failure
(DR-0015/DR-0017), so the out-of-band eval never reddens on a free-tier hiccup.
The LLM-judge's scores are advisory (they never gate). On a human-labelled
gold subset it agreed with human verdicts at Cohen's kappa 0.81 using an
independent judge (groq/llama-3.1-8b-instant β the reasoner) β validated on that
subset (DR-0018); still self-grading whenever QG_JUDGE_MODEL equals the reasoner.
CI's out-of-band eval runs on Groq (
groq/llama-3.3-70b-versatile, gated onGROQ_API_KEY): Gemini's free tier proved unusable from cloud CI (429 β 503 β timeout β invalid-key), so the reasoner was swapped with one env var β the model-agnostic thesis in action (DR-0017). The intended home default remains a local Qwen3-4B (DR-0008).
The demo eats three canonical files; your production signals don't look like that.
quellgeist ingest is the adapter β point it at real sources and it writes the
canonical files the tools read:
It tolerates messy real data (foreign field names are aliased onto the schema,
timestamps normalised to UTC, a malformed line coerced rather than crashing the
run), and query_logs caps how many rows one observation returns (QG_MAX_ROWS,
default 200) so a large log can't blow the context window. The deterministic
cite-or-abstain guarantee runs at real-use time: diagnose verifies every
cited handle against your real signals and warns on a fabrication (--strict-citations
exits non-zero for CI). Full guide: docs/ingestion.md.
v2 wraps the same frozen core in a live, concurrent, observable incident-response service: a signed webhook triggers an investigation, a worker pool runs the unchanged loop over an isolated per-incident snapshot, every run is persisted to SQLite with its trace and cost, an operator approves / steers / rejects before it posts to Slack + a self-contained HTML page, and after a sandbox fix the agent re-reads signals to confirm recovery. Everything additive; the frozen measurement surface is untouched. The whole stack runs from one file:
Secrets stay env-only (public repo); the service is fail-closed β no webhook secret rejects every request, no operator token closes the operator surface, and it never posts a fabricated or unverified diagnosis. Design: DR-0023 + spec.
Built in rolling waves β only the current wave is implemented in detail
(see docs/quellgeist-plan-rolling-wave.md).
The full decision history lives in the
ADR log.
| Wave | Scope | Status |
|---|---|---|
| 0 | De-risk the model bet (4B can orchestrate the loop) | β done β default = Qwen3-4B (DR-0008) |
| 1 | Bad-deploy slice: demo β break β diagnose β postmortem; eval harness + CI | β done β spine built & unit-tested |
| 2 | Reliability core: verifier pass, deterministic fabrication check, abstention, LLM-as-judge | β built β keyless deterministic gate + opt-in verifier/judge; first real run passed with zero fabrication (DR-0016/DR-0017). Judge validation + a reliability rate carry into Wave 3 |
| 3 | Breadth: config/env + resource-exhaustion classes, metrics, ~50 scenarios | β done β 3 classes across a 65-scenario suite; first full run 61/65, 0 fabricated; judge validated (kappa 0.81). See the reliability + judge case studies |
| 4 | Cost / fine-tune: QLoRA Qwen3-4B vs base vs frontier, with/without verifier | β
done β base 0/16 β tuned 12/16 holdout (0 fabricated, 0 speculative-filter, cheaper than base); frontier-competitive vs Gemma-4-31B (beats it 10/16 on capability, ties 6/12 on abstention); resource_exhaustion unlearned + adversarial abstention a shared 6/12 ceiling (case study, DR-0019/DR-0020) |
| 5 | Polish & ship: HTML render, security pass, MCP registry, launch | π§ engineering complete β release-gated (HTML render + security scanners + threat model + registry/OIDC scaffolding done; the release tag + launch are the remaining steps) |
| 6 | Resolution-verification loop | β€³ folded into v2 (Wave 9) |
| v2 (7β9) | Live incident-response service (webhook β concurrent workers β persisted runs β HITL review β Slack/HTML β sandbox resolution re-check) + Dockerfile/compose | β built β Waves 7β9 shipped: signed webhook β concurrent workers β persisted cited runs β fail-closed HITL review gate β Slack/HTML β deterministic sandbox resolution re-check; non-root Docker + compose; 339 keyless tests, frozen diff empty (DR-0023/0027/0028, spec) |
| v2 Track B (10) | Reliability track: timing-aware verifier + structure-varied / out-of-structure generalisation eval | π§ scoped β DR-0024β0026 |
The wave boundary is deliberate, not unfinished: only the current wave is built in
detail, and later waves are scoped but intentionally unimplemented. v2 is additive
over the proven v1 core β the frozen fine-tune measurement surface is never touched
(DR-0023; guarded by tests/frozen/).
The deterministic CI gate is the reliability contract: 339 tests (ruff +
black via pre-commit, then pytest β covering the loop's never-crash /
graceful-abstention behaviour, the deterministic fabrication check and
cite-based judge gate, the verifier and advisory LLM-judge, parameterised
scenario generation, the judge-validation harness, the server filters, the
postmortem renderer, the fixture-backed eval harness, the real-data ingestion +
robustness layer, an end-to-end real-incident harness, and the v2 live service β
signed webhook, concurrent per-incident isolation, HITL review gate, and the
deterministic sandbox resolution check) on Python 3.12 and 3.13.
Out of band, the model-driven eval runs the reasoner over the 65-scenario suite. The latest full run scored 61/65 passed, 0 fabricated evidence (Cerebras Gemma-4-31B) β per-class breakdown + the failure analysis in the reliability case study.
See CONTRIBUTING.md for the dev setup, conventions, and the wave model; SECURITY.md for reporting and the no-secrets / toy-demo policy; and CODE_OF_CONDUCT.md for community expectations. Bug reports and feature requests use the issue templates; PRs follow the PR template.
MIT Β© Rajeev Shyam Kumar.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/quellgeist-commits)<a href="https://allmcps.com/mcp/quellgeist-commits"><img src="https://allmcps.com/api/badge/quellgeist-commits?style=directory" alt="Quellgeist Commits on AllMCPs" /></a>