Active Context Compression (2026) logo

Active Context Compression (2026)

Free

Focus agent architecture — autonomously consolidates history into a Knowledge block and prunes stale context; 22.7% token reduction on SWE-bench Lite, no accuracy loss

FreeFree tier
Type
Open Source

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

Autonomous context compression: agent decides when to compress
Knowledge block for persistent key learnings
Active withdrawal (pruning) of raw interaction history
Slime mold (Physarum polycephalum) inspired algorithm
Optimized scaffold with persistent bash + string-replacement editor
22.7% token reduction on SWE-bench Lite (14.9M to 11.5M tokens)
Maintains identical accuracy (60% pass rate)
Average 6.0 autonomous compressions per task
Token savings up to 57% on individual instances
Compatible with leading models (evaluated on Claude Haiku 4.5)

Pros & Cons

Pros
  • 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)
Cons
  • 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

Best For

Long-horizon software engineering tasks with LLM agentsReducing computational costs of large context windowsImproving latency in agentic systemsMaintaining reasoning quality while pruning irrelevant historyCost-aware agentic system development

FAQ

What is the Focus agent?
Focus is an agent architecture for LLM agents that autonomously manages context by consolidating key learnings into a 'Knowledge' block and pruning raw interaction history, inspired by slime mold behavior.
How much token reduction does Focus achieve?
On SWE-bench Lite with Claude Haiku 4.5, Focus achieved a 22.7% token reduction (from 14.9M to 11.5M tokens) while maintaining identical accuracy.
What models was Focus evaluated on?
The evaluation used Claude Haiku 4.5 as the assistant model.
Is Focus available as open-source?
The paper is hosted on arXiv and the approach is described in detail; the code and data are made available (links provided on the arXiv page).