Claude Code: Compacting Conversations at 500k Tokens Cut Tokens per Request by 39%
The author, Sae, reports that after changing two settings in Claude Code, the average number of tokens[1] sent per request fell by 39%. The first change makes automatic compact[2] run at 500,000 tokens instead of about 970,000, set through autoCompactWindow in settings.json.
The second change covers breaks away from the keyboard. Each tool use sends another request with the full conversation, and after about an hour the prompt cache[3] expires, so the first message back resends everything at a higher price. The author compacts before that, using a self-made plugin called away-guard and the official idle compaction[4] feature.
Based on the author's own logs, the average request fell from 432,000 to 263,000 tokens, comparing 13 to 28 October with 30 October to 9 November. The estimated daily cost at API list prices dropped from $483 to $336, but the author uses a subscription and did not pay that amount. Compacts rose from 3.7 to 15.3 per day, yet the author says total time barely changed because responses got faster. As of 11 November, several reports said idle compaction did not work in the desktop app.
Sources
-
JPZenn JA
Claude Code に忘れさせたら、トークン使用量が4割減った






