Skip to content
Malik Hamza Shabbir

Articles

Notes from building real things

Web, React and Next.js, AI and RAG, and mobile. Written from production work, not tutorials about tutorials.

FeaturedAgents in Production

Context Rot Is Killing Your Long-Running Agent: A Compaction Playbook That Survives 100k+ Tokens

Long-running agents do not fail because they run out of tokens. They fail because accuracy drops as the context grows. Here is the compaction playbook I use to keep agents reliable past 100k tokens: trigger-based compaction, anchored iterative summarization, per-tool context feedback, and offloading state to external memory.

· 9 min read

Building something similar?

I take on a few projects at a time: web apps, AI features, and mobile. Tell me what you are working on.

Start a conversation