Skip to content
Original
Tutorials宝玉 · XRelayed· @dotey·· 7 hours ago

2.5K views · 19 likes · 1 reposts (at collection)

Bao Yu recommends /autocompact 300k to manage Claude Code token usage

What happened

Bao Yu recommends running `/autocompact 300k` in Claude Code, saying 300K was sufficient in his own use compared with the quoted recommendation of `/autocompact 400k`. Quoting @lydiahallie, he explains that auto-compact replaces the conversation with a short summary and triggers at about 967K on 1M models. Earlier compaction reduces the history included in subsequent requests; cached reads are cheaper but still count toward usage.

Read next

See the full storyBao Yu recommends earlier auto-compaction to manage Claude Code token usage

The story so far

Bao Yu recommended running `/autocompact 300k` in Claude Code to reduce the conversation history included in subsequent requests, saying 300K was sufficient in his own use compared with the quoted recommendation of `/autocompact 400k`. Quoting @lydiahallie, Bao Yu explained that auto-compaction replaces the conversation with a short summary and normally triggers at about 967K tokens on models with a 1M-token context window. His recommendation moves that compaction earlier. He also noted that cached reads are cheaper but still count toward usage.

Keep up with AI, one email a day

Model releases, price changes and compute developments, with original sources. Free, confirmed by email, and easy to unsubscribe. Read a past issue · 2026-10-29