Find what’s driving your coding agent spend
See which sessions drive model costs, find repeated work across your team, and test whether a fix reduces spend without hurting task completion.
Where coding agents waste tokens
Costly sessions can look successful
An agent can finish the task and still burn tokens retrying commands or sending the same context again.
Small mistakes add up across the team
If agents keep running the wrong test command, every developer ends up making the same correction. Patterns shows which sessions are affected.
A cheaper model can be enough
Compare quality and estimated cost on the same tasks so you know where a less expensive model can do the job.
How it works
Trace every session
Trace every sessionConnect your team's coding agents and capture every session's prompts, model calls, tool calls, and cost.
Acme/Coding agent/LogsReviewAutomationsAll traces viewTracesNov 12 11:44 PM – Nov 19 11:44 PMDisplayAdd filterFri 13Sat 14Nov 15Mon 16Tue 17Wed 18Thu 19TimestampNameInputOutput1,124 traces1Nov 19 11:11:04 PMcodex: br...{"cwd":"/Use...I merged main into the feature branch and pushed it, then opened the stacked webhook PR2Nov 19 10:44:30 PMClaude C...Session: app...**Needs focused fixes before merge.** [PR #26612](https://github.com/acme/app/pull/26612)3Nov 19 10:04:12 PMcodex: br...{"cwd":"/Use...I fixed the Test button bug from that comment and pushed the fix to the open PR4Nov 19 08:51:40 PMClaude C...Session: app...**Short answer: no, not as the code stands.** None of the four services can run5Nov 19 08:49:33 PMcodex: br...{"cwd":"/Use...The web app is now serving the preview build for the voice evals branch6Nov 19 08:45:09 PMcodex: br...{"cwd":"/wor...The PR is approved and ready to merge once the last check passes7Nov 19 08:14:17 PMcodex: br...{"cwd":"/wor...Opened [PR #26656](https://github.com/acme/app/pull/26656) and linked the issue8Nov 19 07:40:39 PMClaude C...Session: app...Correct—I haven’t identified a confirmed new bug in this PR. All three findings were9Nov 19 07:34:13 PMcodex: br...{"cwd":"/Use...Yes, if cleanup deletes the cached value itself, the next read is a cache miss. If it10Nov 19 07:32:45 PMcodex: br...{"cwd":"/Use...I opened the PR. It adds the retry check to the CI workflow11Nov 19 06:42:19 PMClaude C...Session: app...I reviewed the deployment PR and left two comments on the rollout plan12Nov 19 05:59:04 PMClaude C...Session: app...I didn't open a PR because an existing one already covers this changeSee usage and cost across the team
See usage and cost across the teamSee which models drive your team's spend, compare cost per token side by side, and spot where a cheaper model could save money.
Acme/Coding agent/Dashboards/Coding agent insightsUsage over timeCost$700.00$0Nov 15Mon 16Tue 17Wed 18Thu 19Fri 20Sat 21Past 7 daysModelsDisplayAdd filterModelCost$5,361.41 SUMCost / 1MTokens17.4B SUMSessions925.00 SUMclaude-opus-5-5$2,022.18$0.414.9B394.00claude-fable-5-2$1,369.81$0.453.0B41.00gpt-6.1-sol$1,183.33$0.177.0B321.00gpt-6-astra$405.81$1.21336.5M17.00claude-sonnet-5-5$172.21$0.28615.0M126.00Open an expensive session
Open an expensive sessionClick into one of the most expensive sessions and step through it: here, a 12-hour Claude Code run on Opus that cost $50, where the agent tries to wait on a CI job before checking its status and Bash blocks the command.
Acme/Coding agent/LogsReviewAutomationsTrace6d3cbb556d agoclaude-opus-5-5$50.41197.8M tok12h 23m99.7% hitCoding agentSpansTimelineEvaluatorsclaude-opus-5-53.45s, 557,273 tok, $0.13, 99.8% hit, Claude Opus 5.5Terminal: git add .github/actions/test/action.yaml856msclaude-opus-5-50s, 557,571 tok, $0.119, 99.9% hit, Claude Opus 5.5MCP: github_write1.98sclaude-opus-5-50s, 557,993 tok, $0.118, 99.9% hit, Claude Opus 5.5Terminal: sleep 25; gh api "repos/acme/app/3msclaude-opus-5-50s, 558,555 tok, $0.122, 99.9% hit, Claude Opus 5.5Terminal: until gh api "repos/acme/app/actions917msclaude-opus-5-54.88s, 560,299 tok, $0.148, 99.9% hit, Claude Opus 5.5Terminal: python3 - <<'EOF' p="scripts/ci/flaky_tests.py3.92sclaude-opus-5-51.66s, 560,754 tok, $0.133, 99.7% hit, Claude Opus 5.5Terminal: docker compose -f services/docker-compose.yml121msclaude-opus-5-50s, 561,147 tok, $0.123, 99.9% hit, Claude Opus 5.5Tool spanTerminal: sleep 25; gh api "repos/acme/app/actionsAdd toDetailsReviewActivityRawMetadataError<tool_use_error>Blocked: sleep 25 followed by: gh api "repos/acme/app/actions/workflows/flake-sheriff.yaml/runs?branch=ci/flake-sheriff&per_page=4" -q '.workflow_runs[] | "\(.id) \(.head_sha[0:10]) \(.status) \(.conclusion // "")"'. To wait for a condition, use Monitor with an until-loop (e.g. `until <check>; do sleep 2; done`). To wait for a command you started, use run_in_background: true. Do not chain shorter sleeps to work around this block.</tool_use_error>
MetricsStartNov 13 3:42:21 PMDuration3msOffset11,768.086sInputPrettycommandsleep 25; gh api "repos/acme/app/actions/workflows/flake-sheriff.yaml/runs?branch=ci/flake-sheriff&per_page=4" -q '.workflow_runs[] | "\(.id) \(.head_sha[0:10]) \(.status) \(.conclusion // "")"'Spot the recurring problem
Spot the recurring problemUse Patterns to see how many sessions this impacts.
Acme/Coding agent/Patterns/Delayed status commands get blocked by BashCoding agent improvementsin 43ma824ce96Delayed status commands get blocked by Bash
49 sessions (2.4%) (Nov 5 – 19, 2026)PropertiesOpenMediumCoding agent improvementsTool failureCreated Sat, Oct 24, 2026ModelsPattern matchesAll trafficclaude-opus-5-561%38%<synthetic>16%2%claude-fable-5-211%2.6%claude-sonnet-5-57%7.4%claude-haiku-5-51.8%2%claude-opus-4-81.8%0.34%claude-opus-51.8%0.29%15 other models0%48%EvidenceThe agent attempted to delay a workflow status check with a sleep prefix; Bash rejected it.1w agoRejects delayed report check2w agoBlocks the status check3w agoShow moreEvidence 1 of 41w agoThe agent attempted to delay a workflow status check with a sleep prefix; Bash rejected it.
ThreadTraceCustom viewclaude-opus-5-5All 40 tests pass and pyright reports 0 errors. Committing and pushing; the queued run with the incomplete restart will be replaced by one on this commit:
3.46s 557,273 tokCalled 5 tools11Terminal: git add .github/actions/test/actio...MCP: github_writeLLM span 1.99sTerminal: sleep 25; gh api "repos/acme/app/...Error<tool_use_error>Blocked: sleep 25 followed by: gh api "repos/acme/app/actions/workflows/flake-sheriff.yaml/runs?branch=ci/flake-sheriff&per_page=4" -q '.workflow_runs[] | "\(.id) \(.head_sha[0:10]) \(.status) \(.conclusion // "")"'. To wait for a condition, use Monitor with an until-loop (e.g. `until <check>; do sleep 2; done`). To wait for a command you started, use run_in_background: true. Do not chain shorter sleeps to work around this block.</tool_use_error>
Fix it in the team's instructions
Fix it in the team's instructionsAsk Loop to turn the pattern into a change to your team's shared agent instructions.
Acme/Coding agent/LoopAutomationsCode modeNewBased on this pattern and its suggested...Copy as MarkdownShareActive spanDelayed status...Based on this pattern and its suggested fix, draft a short addition to our team's shared coding agent instructions (CLAUDE.md / AGENTS.md) that tells agents how to wait on CI runs and long-running jobs without sleep-prefixed Bash commands. Show the proposed text as a diff. Do not open a pull request or change any files.
I'll read the pattern and its supporting traces, then draft a short instruction diff without changing any files.
Used 3 tools4sProposed addition to
AGENTS.md(also suitable forCLAUDE.md):a/AGENTS.md → b/AGENTS.md## Waiting for CI and long-running jobs- Do not prefix Bash status checks with `sleep` (for example,`sleep 25; gh api ...`).- For CI or other external status changes, use Monitor with anuntil-loop that checks the target condition and pauses between checks.- For commands you start that may take a while, use`run_in_background: true` and the supported background-job controls.- Keep the Bash guard intact; never split sleeps or rewrite commandsto bypass it. Verify the final status before reporting success.Ask questions about logs, @ for context, / for commandsAuto
Savings on coding agents reported by Notion
Patterns flagged CI retries that resent the full context on every attempt.
See what Patterns found