newre-run after the fixes · hidden tests passing 25% → 57% on 8 bugs · read the report →
27-bug evaluation catalog5 real open-source bugs18 Clef decision templates11 MCP servers · 55 toolsMIT licensed
open source · crash → pull request

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.

run finished · BUG-002
gpt-6-luna
  1. ingestVIT-1001 · web-crash
  2. triagepriority by Clef · owner from CODEOWNERS
  3. contextevidence bundle from the MCP servers
  4. root causesrc/notifications/router.ts → routeV2
  5. grounding7 claims · 0 unsupported
  6. reproduceunit test fails on the shipped release
  7. fixtest passes · suite green
  8. hidden testpassed · router.hidden.test.ts
cost
$0.013
agent turns
18
wall time
212 s

replay of a real baseline run · 20261007-042922-vit-1001

Vitalscrash analytics
BugDropbug reports
Clefdecisions
LangGraphfixed plan
MCPevidence
OpenTelemetrytelemetry
Jaegertraces
Lokilogs
Prometheusmetrics
Unleashflags
GitHubpull requests
Jiratickets
Dockersandbox
Playwrightsimulated riders
Vitalscrash analytics
BugDropbug reports
Clefdecisions
LangGraphfixed plan
MCPevidence
OpenTelemetrytelemetry
Jaegertraces
Lokilogs
Prometheusmetrics
Unleashflags
GitHubpull requests
Jiratickets
Dockersandbox
Playwrightsimulated riders
The principle

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.

signal in →→ proof outShipFix02 InvestigateD03 – D11MitigateD11Root causeD05–D10ContextD03 D04Detect
02 / 04 · D03 – D11

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.

01 · TARGET SYSTEMclientReactgatewayNode · GraphQLdispatchPythonpaymentsGoflagsUnleash02 · SIGNALSVitalscrashes · perfBugDroprider reportstracesJaegerlogsLokimetricsPrometheus03 · EVIDENCEcrashesVitals · BugDropcodesearch · gittelemetrylogs · tracesflagsreleasesticketsJira · incidents04 · AGENT CORELangGraphfixed planClefdecisionsagentsLLM · skillssandboxno networkpolicy gate→ PR · ticket
signals rise from the app · actions leave through the policy gate
  1. 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.

  2. 2Signals

    How problems surface: Vitals for crashes and performance, BugDrop for rider reports with screenshots and logs, and OpenTelemetry into Jaeger, Loki and Prometheus.

  3. 3Evidence

    11 MCP servers, 55 tools — the only way agents see the world. Each returns structured evidence with an id that claims must cite.

  4. 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.

01

Evidence-backed root cause

Every claim cites the evidence it rests on, and each claim is checked against that evidence before anyone reads it.

routeV2 skips await whenHydrated()
✓ ev_code · grounded
✓ ev_flags · grounded
✗ ev_logs · dropped
02

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.

fails on release✗
passes with fix✓
suite · lint · CI✓
03

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.

D11 · roll back the flag?
pp ≥ τ → act
04

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.

--network none
git worktree
policy gate · bot branches only
install cache
audit log
05

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.

ingest
→
triage
→
rca
→
fix
→
validate
06

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.

perf-and-battery
backend-fixes
web-client-fixes
test-planning
pr-authoring
07

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.

v3.0.4 · testpasses
d8813b6 · first bad◆
release · testfails
08

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.

label · debugassist
comment · root cause
draft PR · debugassist/…

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.

80%
root cause right or close
65%
root cause exact
75%
category right
81%
code bugs: fix validated
80%
hidden tests pass
$0.014
median cost per run
Full catalog · full-d7cf020 · 25 bugs · gpt-6-luna · 3 seeds each · 2026-10-11 · d7cf020 + becdbde (8 bugs re-run after the fixes)hover a cell for its value
001002003•004005006•007008009•010011012013•014015016017018019020021•022•023024•025•
root cause
2
2
2
fix validated
2
1
1
1
2
hidden test
2
2
2
yes — exactright file or module, or some seedsnonot applicableblue ids: not our bug — the right answer is routing• re-run after the fixes (becdbde)
re-run · a67d35a
cross-repo
root cause right or close 0 → 5 of 6
hidden tests passing 0 → 2
per bug: left = the first run (7 Oct) · right = this re-run
013
014
015
017
019
020
re-run · 85cb379
fix-quality
root cause right or close 2 → 6 of 8
hidden tests passing 0 → 5
per bug: left = the first run (7 Oct) · right = this re-run
004
013
014
015
016
017
019
020
re-run · becdbde
fixes-becdbde
root cause right or close 70% → 71%
hidden tests passing 25% → 57%
per bug: left = full-d7cf020 (d7cf020) · right = this re-run
003
2
006
009
2
1
013
1
1
1
021
022
024
2
025
✓ What works
  • 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.
✗ What doesn't, yet
  • 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.
Does Clef help? Not measured yet
decision replay · accuracy against the catalog

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.

decisionn“Clef”“Clef-flash”LLMrules
D01 triage400.150.150.280.30
D05 categorize400.700.750.720.63
D11 mitigation40.750.750.75—
D12 localization210.480.480.48—
D14 validation tier260.420.500.460.73
End to end, two LLM-decided arms · 24 bugs · bfbd1db

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.

79% / 75%
root cause right or close · for Clef / no-clef
64% / 58%
root cause exact · for Clef / no-clef
80% / 78%
code bugs: fix validated · for Clef / no-clef
67% / 61%
code bugs: hidden test passes · for Clef / no-clef
Real open-source bugs · 5 cases
3 runs each · LLM decider

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.

issueroot cause exactfix validatedupstream test passesmedian cost
tkem/cachetools#435
cachedmethod class access loses the explicitly supplied instance
3/33/30/3$0.025
tkem/cachetools#440
Failed TTL expiration calculation leaves an unusable cache entry
3/33/33/3$0.015
python-semver/python-semver#484
New prerelease bump behaviour breaks consistency with old RC numbering
3/32/32/3$0.018
r1chardj0n3s/parse#249
{:F} (Decimal) cannot parse negative numbers; {:f}/{:F} also miss nan/inf that {:e}/{:g} accept
3/33/33/3$0.022
more-itertools/more-itertools#1304
ichunked(..., 0) raises islice's ValueError on a nonempty iterable
3/33/33/3$0.014
all 515/1514/1511/15
Widening narrow fixes · four attempts

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.

attemptmodelwhat it did to narrow fixesupstream / hidden test
Prompt rules for wider tests and fixesyesnothing — reverted0/3 on cachetools#435
A second agent's test, from the reportyespassed 7 of 7 fixes it checked1/7
… also shown the repo's other usesyessent back 3; every shipped fix still narrow0/5
Call variations and introspectionnolive: 4 sent back0/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.

Every input token, by what it carried7.5M tokens
53%
tool results
35%
fixed prefix
12%
model output
82%
of input served from the prompt cache — the fixed prefix and history are cheap; the volume isn't.
Heaviest tools · share of all input
read_file
32%
grep
4%
load_skill
4%
run_command
4%
search_code
3%

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.

Evidence · 11 MCP servers · 55 tools
crash analyticscode searchgit historyfeature flagsbug reportsloggingtracingmetrics & profilesincidentsreleasesJira
Models & decisions
Cloudflare ClefOpenRouterGroqCloudOpenAI-compatibleLangGraphLangChain
Telemetry
OpenTelemetryJaegerLokiPrometheusPhoenixLangfuse
Target languages & tools
TypeScript · ReactPython · FastAPIGoPlaywrightGitHubGitHub AppUnleashDocker
On the roadmap
LiteLLMOllama · vLLMPromptfooInspect AIGlitchTipSWE-bench Lite

Open platform. Open process.

01
Self-host it
Get started

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.

~/DebugAssist
$ git clone --recurse-submodules https://github.com/IshaanNene/DebugAssist
$ make bootstrap && make up && make flags
$ make demo-push-crash # keyless: scripted LLM, mocks
$ make dashboard # http://localhost:3000

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.