An autonomous
on-call engineer.
A crash, a rider's bug report or a labeled GitHub issue goes in. Triage, an evidence-backed root cause, a mitigation, a test that fails on the shipped release, the fix and its proof come out — as a pull request. Measured on a bug catalog and on real open-source bugs, with every number generated.
- ingestVIT-1001 · web-crash
- triagepriority by Clef · owner from CODEOWNERS
- contextevidence bundle from the MCP servers
- root causesrc/notifications/router.ts → routeV2
- grounding7 claims · 0 unsupported
- reproduceunit test fails on the shipped release
- fixtest passes · suite green
- hidden testpassed · router.hidden.test.ts
replay of a real baseline run · 20261007-042922-vit-1001
The plan is code, not a prompt. Models never choose the next step. Clef makes every judgement call with a probability, agents reason and write the code, and deterministic code performs every write.
Investigate, fix, prove — repeat.
Four phases, twelve steps, always in this order. Clef makes each judgement call with a probability, LLM agents reason and write code, and deterministic code performs every write — behind a policy gate.
One system, four layers.
Problems surface at the bottom and rise; agents only see the world through evidence tools; every action leaves through the top, behind a policy gate.
- 1Target system
MiniRide, the app the bugs live in: a React rider app, a Node GraphQL gateway, dispatch in Python and payments in Go, with feature flags from Unleash.
- 2Signals
How problems surface: Vitals for crashes and performance, BugDrop for rider reports with screenshots and logs, and OpenTelemetry into Jaeger, Loki and Prometheus.
- 3Evidence
11 MCP servers, 55 tools — the only way agents see the world. Each returns structured evidence with an id that claims must cite.
- 4Agent core
LangGraph runs the fixed plan; Clef makes each judgement call; LLM agents reason and write code in a network-less sandbox; a policy gate stands before every write.
Everything an on-call engineer does, with receipts.
One pipeline from the first crash report to a merged fix, with evidence at every step.
Evidence-backed root cause
Every claim cites the evidence it rests on, and each claim is checked against that evidence before anyone reads it.
Proof before a pull request
A test that fails on the shipped release, a fix that makes it pass, the suite and the repo's own CI green.
Clef decides, on the record
Priority, category, rollback, test tier, retry, ship: decision templates on Cloudflare Clef, mapped by policy to act, escalate or a safe default.
Sandboxed and policy-gated
Agents work in a network-less container on a git worktree the host reads only through guards — no symlinks out, no .git, no secrets. Dependencies install once per lockfile and are copied into later runs. Every write — PR, ticket, flag — passes a policy gate and an audit log.
Every run, live
A dashboard draws each run as its fixed graph, with every model call, tool call and Clef decision, and their cost and latency.
A harness, not a prompt
Agent types per kind of issue, plugins of skills loaded on demand, domain knowledge bases, and a packaged runtime per agent type.
Culprit commit, proven by running it
The validated reproduction test goes back through history — earlier releases until it passes, then git bisect — so “introduced by” is a result, not a guess.
On your own repositories
Install the GitHub App, add a pipeline config, label an issue: DebugAssist comments the root cause on it and opens a draft PR from a bot branch.
Measured, not claimed.
27 bugs injected into a small ride-hailing app as natural-looking release commits — 21 that need a code fix, 6 where the right answer is to route it. The agent never sees the answer key; an evaluator scores its root cause and runs hidden tests on its fix. The results cover the first 25; the 2 added since have not been run yet. Built from evals/reports/2026-11-07.
| 001 | 002 | 003• | 004 | 005 | 006• | 007 | 008 | 009• | 010 | 011 | 012 | 013• | 014 | 015 | 016 | 017 | 018 | 019 | 020 | 021• | 022• | 023 | 024• | 025• | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| root cause | 2 | 2 | 2 | ||||||||||||||||||||||
| fix validated | 2 | 1 | 1 | 1 | 2 | ||||||||||||||||||||
| hidden test | 2 | 2 | 2 |
- Crash-data bugs — locale and currency edge cases, a nil-map panic, a removed await, a battery-draining poller: ten code bugs pass every lane in all three seeds.
- Following a rider's report into the backend and moving the fix to the service that holds the defect — none of those bugs had the right root cause before the hand-off.
- Saying “not our bug” — a WebView crash, a vendored SDK, a misconfigured flag, intended behaviour — and routing it instead of patching, for about a cent a run.
- Stopping where the symptom surfaced: a CORS change and a payments panic are blamed on the client and the gateway.
- Fixes narrower than the regression: they pass the agent's own test but not the hidden one.
- An active incident still loses to suspicious code, and seeds disagree on ten bugs: one run of a bug proves little.
The design bets that small calibrated decision models beat an LLM making the same calls. That bet is untested: no recorded decision was answered by Clef. Clef failed on every call (most likely a refused token) and the circuit breaker quietly handed each one to the LLM decider, so the run went on. Every one of the 889 labelled decisions in the ledger names the LLM's model, and in the replay the same request cost the same on Clef and Clef-flash, where Workers AI's prices differ by 2.7×. So the “Clef” columns below are the LLM again, and their spread is its run-to-run variation. What the replay does show: simple rules beat the LLM on triage and test tier — those templates are the next thing to fix.
| decision | n | “Clef” | “Clef-flash” | LLM | rules |
|---|---|---|---|---|---|
| D01 triage | 40 | 0.15 | 0.15 | 0.28 | 0.30 |
| D05 categorize | 40 | 0.70 | 0.75 | 0.72 | 0.63 |
| D11 mitigation | 4 | 0.75 | 0.75 | 0.75 | — |
| D12 localization | 21 | 0.48 | 0.48 | 0.48 | — |
| D14 validation tier | 26 | 0.42 | 0.50 | 0.46 | 0.73 |
The no-clef arm (no-clef-bfbd1db, one run per bug) against each bug's latest runs configured for Clef (3 each, on becdbde and d7cf020) — but the LLM decider answered in both. The gap is run-to-run noise, not Clef: it shows how much two identical setups vary. Measuring Clef needs the token fixed, a ledger that records Clef, and both runs again.
Beyond the synthetic catalog: public issues from small Python libraries, each run on the code it was filed against — history cut at that commit, so the upstream fix cannot be found — and scored against the fix's location and its own regression test. Where a report named its own cause, that part was withheld.
| issue | root cause exact | fix validated | upstream test passes | median cost |
|---|---|---|---|---|
| tkem/cachetools#435 cachedmethod class access loses the explicitly supplied instance | 3/3 | 3/3 | 0/3 | $0.025 |
| tkem/cachetools#440 Failed TTL expiration calculation leaves an unusable cache entry | 3/3 | 3/3 | 3/3 | $0.015 |
| python-semver/python-semver#484 New prerelease bump behaviour breaks consistency with old RC numbering | 3/3 | 2/3 | 2/3 | $0.018 |
| r1chardj0n3s/parse#249 {:F} (Decimal) cannot parse negative numbers; {:f}/{:F} also miss nan/inf that {:e}/{:g} accept | 3/3 | 3/3 | 3/3 | $0.022 |
| more-itertools/more-itertools#1304 ichunked(..., 0) raises islice's ValueError on a nonempty iterable | 3/3 | 3/3 | 3/3 | $0.014 |
| all 5 | 15/15 | 14/15 | 11/15 |
The misses on real code were fixes as narrow as the report. Asking a model for wider fixes or wider tests did not change that; a check with no model did, in a replay of every fix made so far.
| attempt | model | what it did to narrow fixes | upstream / hidden test |
|---|---|---|---|
| Prompt rules for wider tests and fixes | yes | nothing — reverted | 0/3 on cachetools#435 |
| A second agent's test, from the report | yes | passed 7 of 7 fixes it checked | 1/7 |
| … also shown the repo's other uses | yes | sent back 3; every shipped fix still narrow | 0/5 |
| Call variations and introspection | no | live: 4 sent back | 0/3 live |
The live run of the last check predates its introspection part; the replay is of fixes already made, and the introspection part was added after reading upstream's test. Details below.
Widening fixes by prompt didn't work. Two generic rules — guard the ordinary uses a fix must not break, keep the unit's contract — re-run on all five: cachetools#435 passed upstream's test in 0/3 runs that made a fix (0/3 before), all five in 9/12 (11/14 before). The rules were written with that bug in mind, and were reverted; the runs are in the report as fixwidth-7f15556.
Nor did a second, independent reproduction. A separate agent wrote its own failing test from the report alone, without the fix or the first test, and the fix had to pass it too. It passed every fix it checked; the hidden tests failed on most: BUG-003 0/3 hidden, second test 3/3 · BUG-009 1/1 hidden, second test 1/1 · REAL-001 0/3 hidden, second test 3/3. Both agents read the same report, and the report shows one example — the other cases the hidden tests check are not in it. Off by default; arm repro2-f277379.
Showing it the code's other uses made it stricter, not enough. The checker also saw how the code is used elsewhere in the repository — docs, type stubs, tests, callers, collected by git grep. It sent back 3 fixes that had passed their own test, yet no final fix passed the hidden tests: BUG-003 0/2 hidden, 0 sent back · REAL-001 0/3 hidden, 3 sent back. The repository never calls the method with self=; only upstream's new test does. Off by default; arm callers-0ed427d.
Re-spelling the report's calls mechanically stopped narrow fixes shipping as validated. No model: the report's Python calls are rewritten the other ways a caller can make them (keyword arguments, through the instance or the class), and with the fix every spelling must behave like the reported one. On cachetools#435 it sent back 4 fixes; 1/3 runs still validated (every run did before), and that fix handles keyword calls. Upstream's test still failed (0/3) on what the spellings cannot test — __wrapped__ and cache statistics. Off by default; arm variants-4b1325c.
Where the tokens go.
Every agent turn re-sends the prompt, the tools and the history. A context audit split 7.5M input tokens from real runs by what they carried — so we build the context-engineering technique the data points to, not the one that sounds best.
Works with your stack.
Any OpenAI-compatible model, OpenTelemetry for telemetry, MCP for evidence. Every integration has a mock, so the whole pipeline runs without a single key.
Open platform. Open process.
- make up — app, telemetry, sources
- mock mode, no keys needed
- The GitHub App on your repos
Try it in a few minutes.
The keyless demo runs the whole pipeline with a scripted model and mocked integrations — no API keys, no accounts.
Questions & answers
What is DebugAssist?+
An open-source pipeline that does what an on-call engineer does when something breaks: it notices the crash or the rider's report, triages it, finds the root cause with evidence, proposes a mitigation, writes a test that fails on the shipped release, fixes the code, proves the fix and opens a pull request — or says it isn't our bug and routes it.
Does an LLM decide what happens next?+
No. The plan is a fixed graph in code. LLM agents reason and write code inside steps; every judgement call is a Clef decision with a probability, mapped to act, escalate or a safe default by policy; deterministic code performs every write.
Can it change production on its own?+
No. Writes go through a policy gate and an audit log. It pushes only to debugassist/* bot branches — of the demo repositories, and of repositories the GitHub App is installed on — opens pull requests as drafts there, never touches the default branch, release branches or tags, needs approval for flag rollbacks, and is dry-run for anything the policy does not list.
Can I run it on my own repository?+
Yes, through the GitHub App: install it on the repository, add a .DebugAssist/pipeline.yaml saying how to install and test it, and label an issue debugassist. It checks out the default branch, investigates in a network-less sandbox, comments the root cause on the issue and, when a fix validates, opens a draft pull request. It is built and tested against a fake GitHub API and a mock; it has not yet run on a live repository.
How does it know which commit broke something?+
The root-cause step names a suspect by reading history. With the bisect proof on, the validated reproduction test is also run back through earlier releases until it passes, then git bisect finds the first commit where it fails — a result anyone can re-run. On python-semver#484 it found the change the reporter blamed, where the reading had named a later one.
How are the results measured?+
Each catalog bug is injected as a natural-looking commit, triggered by simulated riders, and discovered by the crash and bug-report sources. The agent's root cause is scored against an answer key it never sees, and hidden tests run on its fix. Every number on this page is read from the generated reports when the site is built.
Would a plain agent do as well?+
That is what the baseline arm is for: one tool-using agent on the same issue, the same release worktree and the same evidence and code tools, with the root cause's and the fix's limits combined — and none of the plan: no evidence bundle, decisions, reproduction contract or validation. It is graded by the same scorer and hidden tests. It is built and tested offline; it has not been run on the catalog yet, so there is no comparison to show.
Which models does it use?+
Any OpenAI-compatible API. The evaluation on this page ran on openai/gpt-6-luna through OpenRouter. Decisions are built for Cloudflare Clef, but in the evaluation every Clef call fell back to the LLM decider.
Is it affiliated with Uber, Cloudflare or anyone named here?+
No. It is an independent project inspired by a public talk on MCP-powered crash investigation. Vitals and BugDrop are its own stand-ins for crash analytics and in-app bug reports.