Context management is the key skill when it comes to building AI Agents or working with Coding Agents like Claude Code.
Frequently on long sessions the major problem is that of Context Rot. This is especially relevant when LLM context windows grow to 1Million or more.
The more โgunkโ that accumulates in your context the greater your coding agents go off the rails. The useless stuff eats up tokens as well and slows down responses.
Thariq Shihipar from Anthropic provides a handy guide on how to manage this Context rot.
The answer is not always to compact ๐