Active Context Compression (2026)
FreeFocus agent architecture — autonomously consolidates history into a Knowledge block and prunes stale context; 22.7% token reduction on SWE-bench Lite, no accuracy loss
About Active Context Compression (2026)
Focus is an agent-centric architecture proposed in the paper 'Active Context Compression: Autonomous Memory Management in LLM Agents'. It addresses 'Context Bloat' in LLM agents handling long-horizon software engineering tasks. Inspired by the exploration strategies of slime mold (Physarum polycephalum), the Focus Agent autonomously decides when to consolidate key learnings into a persistent 'Knowledge' block and actively prunes the raw interaction history. This self-regulation reduces token usage while maintaining task accuracy. Evaluated on SWE-bench Lite with Claude Haiku 4.5, Focus achieved a 22.7% token reduction (14.9M to 11.5M tokens) with identical accuracy (60% pass rate). The architecture uses an optimized scaffold with persistent bash and string-replacement editor, performing an average of 6.0 autonomous compressions per task, with token savings up to 57% on individual instances. The approach opens pathways for cost-aware agentic systems without sacrificing performance.
Key Features
Pros & Cons
- Significant token reduction without accuracy loss
- Autonomous compression decisions reduce manual tuning
- Inspired by biological efficiency (slime mold)
- Open-source and available for experimentation
- Demonstrated on a standard benchmark (SWE-bench Lite)
- Evaluation limited to N=5 instances on SWE-bench Lite
- Tested only with Claude Haiku 4.5, generalizability unknown
- Aggressive prompting required for frequent compression
- Still a research paper, not production-ready software
- Potential overhead from compression decisions