Find the run that failed and what it cost
Agent traces turns the Claude Code sessions RepoOps already captured into a worklist. Each run carries a verdict derived from CI, reverts, quality and cost, so the failing runs sort to the top, and each opens into its span waterfall, its cost-ranked steps and its turns.
Watch it
Read the narration
- 0:00 Eight agent runs finished overnight.
- 0:02 The file does not say which one hurt.
- 0:06 RepoOps reads the outcome git and CI already recorded.
- 0:10 A revert outranks a failed check.
- 0:13 Open the run and the waterfall shows its shape, turn by turn.
- 0:17 Cost-ranked steps name the call that burned the budget.
- 0:23 Label it yourself, pass or fail.
- 0:26 That label is a record, not prevention.
Synthetic example. Read the guide
How to
RepoOps on this machine, tracking a repository where Claude Code has run.
git and the gh command line on the PATH if you want verdicts. Without them every run reads Unscored.
- Open Attribution, then the Agent sessions tab.
The list holds the last 30 days of Claude Code sessions captured on this machine, at most the newest 200 per tracked repository. Each row carries its outcome: Reverted, CI failed, Low quality score, Over its cost cut or Shipped, the first match winning in that order. Over its cost cut means the run sits above the 75th percentile of the repository's non-zero session costs.
- Sort, filter and search the list.
Sort by newest, worst outcome, spend, tool calls or least clean path; show one outcome; and search by session, site, model or change.
- Score cost against quality.
Under Triage, pick the repository and a window of 7, 30 or 90 days, then press Score cost vs quality. RepoOps maps each session to its commits, its pull request and that pull request's CI result, scores it, and splits the scored sessions into four counts: expensive and poor, expensive and good, cheap and poor, cheap and good, with cost and quality per tool beside them. Low quality is a score under 0.5; a failed CI run or a revert always holds the score under 0.5.
- Open the worst run.
Press Trace on its row. The trace opens beside the list, and an address with ?session= opens that trace directly.
- Read it through the three lenses.
Waterfall draws the session, its turns and every tool call in the order it ran, with its status and wall time; a subagent's run sits under the call that launched it. Cost-ranked steps sorts every turn and tool step by what it cost. Turns shows the prompt and the response, plus tool inputs and outputs when REPOOPS_DEEP_CAPTURE=1 was set in the data directory's .env while the session ran.
- Label the run.
Choose Pass, Fail or Needs review. On a fail, pick a failure mode (ci-fail, revert, tool-thrash, wrong-file, oversized, duplicate, ignored-norms, message-mismatch or other) and write a critique, then press Save label. Fails roll up into Failure modes under Triage, ranked by how often a labeled run hit them, each opening to the runs that named it.
- Keep what you learned.
Save as lesson writes a lesson with a trigger, what went wrong and the fix. Save as error queues a proposed errors.md entry through the brain review and never edits errors.md. Add to golden set records the run as an evaluation case.
Use cases
The overnight batch
- Situation
- Eight agent sessions ran against one repository yesterday, and every row reads Unscored because nothing has linked them to git yet.
- You do
- Sort the list by worst outcome, then press Score cost vs quality under Triage with the window at 30 days.
- You see
- The reverted and failed runs sort first, and four counts appear splitting the scored runs into expensive and cheap, poor and good. A run with no CI status and no quality score carries no outcome, never a pass.
One run cost far more than the rest
- Situation
- A single session is an outlier on cost and you want to know which call spent the money.
- You do
- Show Over its cost cut, press Trace on the session, switch to Cost-ranked steps, and press Lesson beside the step worth remembering.
- You see
- Every turn and tool step is ranked with its dollars and tokens, and the lesson id appears under the form. A lesson is a record, not a control: nothing here stops the next run from making the same call.
Expected outcome
Next step: No transcript for this repository is on this machine yet. Run a session, then reload the page.
Next step: Score cost vs quality needs git and gh; an offline gh times out after 12 seconds and leaves the CI status empty.
Next step: Set REPOOPS_DEEP_CAPTURE=1 in the data directory's .env and restart. Only sessions recorded afterwards carry them.
Next step: Turn on Stream to your team in Settings on a bound machine. A free team is refused with 402 before anything is stored.
What else to consider
What a bar means
A call's bar is observed wall time, which includes any wait for your approval. A call whose result never reached the transcript has no bar. Live streaming spans are not captured. The list stops at 200 sessions and the window at 90 days.
Labeling many runs at once
On the desktop app, the Run labels card on Remediation's Evals tab lists the runs of the repository picked there, priciest first: give each a label, a failure mode and a note, and save. Labels rank failure modes by frequency, with each mode's change between the two halves of the 90-day window, and mark the sample as thin under 5 labeled runs. The card compares the blended quality score with your labels, and the Agent workbench card under it scores the same runs with a model judge, opt-in and on your own key. Merge similar folds near-duplicate failure modes on your own Anthropic key, is off by default, and sends only category names and short critiques. A run's Trace opens its span waterfall, where Save as regression test adds the run's tool-usage signature to the routing-smoke golden set with a pending answer key. On repoops.ai, the same card runs the taxonomy over your team's labels and shows no trace text.
Triage on repoops.ai
On repoops.ai, Triage on the Agent sessions tab reads what your desktops publish. Failure modes rank your team's run labels for the repository and window you pick. Agent versions lists the models each tool ran, with sessions and turns per model, from the turns in the evidence store. The fan-outs list the sessions that spawned subagents through the Task tool, with a spawn count and no parallelism, because the store holds when each spawn was called and not when it finished. Cost against quality and drift forensics stay on the desktop app: they need each session's pull request, CI and revert result and a baseline sealed in that machine's brain, and no desktop publishes those yet. On the same tab, the Runs card on repoops.ai lists each agent session your desktops sent, for 7, 30 or 90 days, and Report opens its timeline and a replay of its prompts and tool calls from the evidence store, written to the team audit log. A member opens their own runs; an owner or admin opens any. Kill this run stays off there, because only the desktop can stop the process. The Live sessions card lists sessions with a turn in the last 2 hours of the store, which loads hourly, so it calls them recent, not running.
Inside an AI incident case
When a run becomes an AI incident case, three more readers apply, all deterministic and without a model call. The workflow strip on Today shows the ordered chain of attempts, actions, verification, review and handoff, and marks an edge it inferred rather than recorded; a child attempt keeps its own state, and a parent's exposure never credits a child. Assignment lineage separates a requirement that never reached an attempt from one the attempt received and broke, and keeps a superseded requirement visible. Behavior diagnosis checks versioned behavior categories, cites the evidence for each, and leaves a category open when no record decides it, because no record means unknown, not clean.
Tracking a runbook
Runbook steps on this machine, on Remediation's Fix runs tab, tracks your position in a multi-step runbook: Start a run from a named workflow, then Mark done or Mark failed on each step. It records position only and runs nothing. Its state survives a server restart.
Streaming, cost and retention
The local tab makes no model call and sends nothing. With Stream to your team on a bound device, each pass sends at most 50 sessions with redacted spans; a turn's prompt preview is replaced with its sequence number before it leaves. Hosted ingest needs Solo Hosted or above. Locally nothing deletes old spans from the data store. Hosted span rows are deleted after 30 days; the per-session rows stay, and an older session's waterfall reads Expired.