Root cause accuracy with Claude Code
We reran the Foam RCA benchmark with a newer agent. The agent got better in every setup, and telemetry access is still the largest gain.
In April we published a benchmark for root cause analysis: 22 real production incidents, each with a human-written answer key. An agent reads the codebase, investigates, and writes a root cause. A GPT-4o judge marks it correct only if it names the same incident, the same precise cause, and would lead an engineer to the same fix.
This run swaps one thing. Cursor on opus-4.6 is replaced by Claude Code on Fable 5.1. The 22 incidents, the answer key, the judge prompt, and the three tool setups are unchanged.
Results
The ordering is the same as April: Sentry MCP scores below the bare agent, and Foam MCP scores highest. Claude Code beats Cursor in every setup by two to five incidents. The largest jump is with Foam MCP, where Claude Code reaches 19 of 22, the same score our own Foam agent reached in April.
For Cursor in April, adding Foam MCP was worth 9 points. For Claude Code it is worth 23. The same tool is worth more to the stronger agent.
Where the setups differ
Foam MCP gives the agent one tool, query-otel, for reading traces, logs, and metrics. Three incidents (4, 18, and 21) were solved only with it. In each, the deciding evidence is runtime data: the exact query a tool sent, the query that exhausted ClickHouse memory, and a run ID missing from the database.
Sentry MCP helped on two incidents (0 and 11) where the stack trace carries the whole story. It hurt on four (16, 19, 20, and 22) where the Sentry issue points at a symptom. There the agent anchored on the breadcrumbs instead of reading the code, and scored lower than it did with no extra tools at all.
Three incidents stayed unsolved in every setup, as they were for every Cursor setup in April. Incident 8 is a duplicate-key error that is expected lock behavior, not a bug. Incident 9 is an Anthropic rate limit exhausted by accumulated tool output. Incident 13 is a git pre-flight check that fails because production ECS containers ship without a .git directory.
Full results
| Tool setup | April · Cursor | September · Claude Code |
|---|---|---|
| Sentry MCP | 9/22 (40.9%) | 12/22 (54.5%) |
| No extra tools | 12/22 (54.5%) | 14/22 (63.6%) |
| Foam MCP | 14/22 (63.6%) | 19/22 (86.4%) |
Every agent output, score, and the scorer are in the benchmark repository.