tokenmaxxing
1 min read
A while back in May I was constantly filling up the Claude's context window cap and the session would repetitively auto-compact
So I had to re-adjust the way I was using Claude Code
Compacting is a process that the agents use to handle sessions that exceed its context window, eg the amount of text a model can process all at once.
Each tool call, file read, i/o, msg uses tokens, and when the session limit gets hit, the history is compacted, and instead after compacting, the quality of model output degrades and becomes lossy because long chats can be flattened / dropped from memory.
I found that its better practice to start new sessions when working on a new features, and also prompt your agent to create handoff md files to focus on specific things within for instance your architecture or notes you want to give extra detail about.