Token use per task
Cost of a task over time, and the changes
One dot per task at the time its first run started, cost on a logarithmic axis. Each dashed line is a row of docs/agents/changes.md, a change that may move token use; it starts a period, compared in the table below it.
Periods compared
A row per period and stratum (run kind, size, model): medians over its tasks, a task's cost summed over its runs. A stratum with fewer than five tasks is greyed and not compared; the change is the median cost of a done task against the same stratum in the period before it. Done, merges undone and reopened are proxies (tools/lib/periods.js).
Where a task's cost goes
All measured tasks together, by kind of token, each at its weight: a fresh input token 1, a cache write 1.25, a cache read 0.1, an output token 5 (about the prices' ratios, as in tools/agent-usage.js).
Cost of a task, by size and model
One dot per task, on a logarithmic axis; the tick is the group's median. A task run more than once counts all its runs. The last rows are sessions, not tasks: an orchestrator's own cost, which no one task caused, and the sessions measured outside a task.
Turns a task took
A turn is one model call. Tasks by the number of turns, all their runs together, in steps of twenty; the line at 120 is where a run hands over.
Turns against cost
One dot per task, both axes logarithmic. Every turn reads the whole context again, so cost grows faster than turns: the dashed line is the slope the tasks follow.
The twenty costliest tasks
Every measured task
A task run by a sub-agent is the task its prompt named. A task run in a session of its own is the task that session's file names or, failing that, the one that heads at least two thirds of the commits made during it.