Agent Autopsy

building
  • autopsies6
  • traces12
  • model calls0
  • cost to run$0

Six real ways agents fail in production (loops, cost blow-ups, tool misuse, stale retrieval, prompt injection, silent regressions), replayed from traces, with the fix for each.

Each autopsy is a recorded run of the Bench Starter triage agent with one safeguard taken out, then the same ticket with it back. Step through the failure with the cost counter running, read the fix, step through the fixed run, and see which eval case would have caught it. Nothing on these pages calls a model: the traces are JSON in the repo, recorded on 2026-09-14 from Bench Starter commit 9082873. The tickets, accounts and articles are synthetic.

how it was made

Recorded, not drawn.

The loop, the tools, the guardrails and the cost accounting are Bench Starter's, run for real by a small generator. The model's turns are scripted, the same way Bench Starter's own replay fixture is until a demo key exists.

  • tools/generate_traces.py imports the agent from a sibling checkout of Bench Starter, removes one safeguard per autopsy, runs the ticket, puts the safeguard back, runs it again, and scores both traces with Bench Starter's own eval scorer.
  • Tokens are estimated from the request the agent built on each step (about two characters per token, calibrated to Bench Starter's recorded completions), so the context growth in every replay is real. Cost is those tokens at the demo gateway's Claude Haiku 4.5 price.
  • Both demos read the same trace shape. lib/trace.ts validates every recording at build time and refuses one whose running total does not add up.

Architecture: docs/architecture.svg in the repo.