Set auto-compact window to 400k to cut token usage on 1M-context models

mariofilhoml · x · 2026-11-12

A practical tip circulating on X: when using Claude Code or similar harnesses, set the auto-compact window to 400k and usage drops significantly. Another user adds that this works for any 1M-context model in any harness — preventing the model from always filling context to the million-token limit before compaction kicks in.

Original post →

More from coding & agent

coding & agent channel →