Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.273 ·

Sub-agent/task token accounting now skips advisor and compaction iterations

Task token-usage totals now skip advisor and compaction iterations when picking the latest usable one

TierUnder the hoodhow much it should matter to you
Useful2my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaSubagentswhat it touches
KindBug Fixesin v2.1.273,
Under the hood

Task token-usage totals now skip advisor and compaction iterations when picking the latest usable one

What

The function that computes a sub-agent task's token usage, used for cost and usage display, now skips iterations of type advisor_message or compaction when looking for the most recent usable iteration to report on. If no valid message iteration is found, it falls back to the running totals instead. Numeric validation on each token field is also stricter than before.

Why

This avoids showing token counts drawn from an advisor message or a compaction step (where the model condenses conversation history) as if they were a normal turn's usage, keeping the reported token numbers more accurate.

See this entry in the whole of v2.1.273 →