Token Accounting

Account for every token your agents spend. Attribute cost to the code it produced, see spend per session and per PR, and find where tokens are wasted.

Monthly spend trends

Watch spend month over month — the aggregate line and a breakdown by model — so you can see what's climbing and which models are driving it.

Spend · last 12 months
$26,580
$0$1k$2k$3k$4kJulAugSepOctNovDecJanFebMarAprMayJun
TotalOpus 4.8Sonnet 4.6GPT-5.5Haiku 4.5

Tokens by pull request

See the cost of every agent session that helped plan or write the code in a pull request, rolled up into the true cost of shipping it.

#1482merged

Add retry & backoff to the webhook dispatcher

Sessions that shaped this PR
  • Planned the retry & backoff strategy
    $4.10
    Claude Code · Opus 4.8 · 1.2M
  • Implemented the dispatcher changes
    $5.80
    Claude Code · Sonnet 4.6 · 3.4M
  • Wrote the integration tests
    $1.90
    Cursor · Sonnet 4.6 · 1.1M
  • Addressed review comments
    $3.20
    Codex Cloud · GPT-5.5 · 0.8M
Total cost of this PR
6.5M tokens$15.00

Tokens by developer and team

Cross-agent token budgets and trends. Every agent a developer uses rolls into one bar, segmented by model, against the budget you set.

Platform team$2,690 / $2,880 budget
  • AC
    Ava Chen$580 / $640+12%
  • PN
    Priya Nairover$700 / $560+21%
  • SK
    Sara Kim$560 / $640+4%
  • ML
    Marcus Lee$520 / $560-6%
  • DS
    Diego Santos$330 / $480-14%
Opus 4.8Sonnet 4.6GPT-5.5Haiku 4.5budget capCross-agent: Claude Code · Cursor · Codex · Devin

Token efficacy

The metrics that tell you whether your spend is working: the average cost of a merged PR and how much code gets generated for every line that ships.

Avg. cost / merged PR
$14.20

Across 312 merged PRs in the last 30 days — every agent session that planned or wrote the code, summed and divided.

6 mo ago · $22.40▼ 37% · today $14.20
Generated : Production
24: 1

Agents generate ~24 tokens of code for every one that survives to production. The leaner the ratio, the more of every token you keep.

24 generated1 shipped
Across teams & repos
Team · repoAvg cost / PRGenerated : Production
Paymentsleanest
payments-api
$9.40
14:1
Platform
platform-core
$14.20
24:1
Growth
web-dashboard
$18.60
31:1
Mobile
mobile-app
$22.80
41:1

Pick your targets — the teams and repos where cost-per-PR and generated:production run highest are where harness investment pays off most.

Find where tokens are wasted

Roughly 38% of spend goes to sessions on branches that never merge — retries, dead ends, and abandoned work. Surface them and reclaim the budget.

Tie every token to the work that gets done

Understand where your tokens are being spent and link back to engineering outcomes.