Agent-controlled forgetting reduces tool-use agent context costs by up to 50% in noisy trajectories
A new arXiv study introduces reversible context curation that replaces tool results with short notes while archiving originals, cutting prompt tokens and API costs in exploratory debugging and implementation tasks.
1 source · cross-referenced
- Agent-controlled forgetting replaces bulky tool results with short notes while archiving originals, reducing cumulative input tokens by 50% in noisy tool-use trajectories.
- In an OpenTelemetry debugging case and an unrelated implementation task, the method used 231,951 prompt tokens versus 912,492 with retained history and cut estimated API costs to USD 1.28–1.44 from USD 4.38.
- The approach required 17% more time and more requests, and benefits were workload-dependent; some tasks showed no savings or lower quality despite reduced context.
- The method operates via a Python harness that archives and recovers context without task-specific training and protects user instructions and assistant messages.
A new arXiv preprint proposes agent-controlled forgetting as a way to manage context in tool-using agents by having the model replace prior tool results with short notes at their original positions while keeping the full originals recoverably archived. The method is implemented in a Python harness that supports batch archival and explicit recovery without task-specific model training, and it protects user instructions and assistant messages from modification.
In an exploratory OpenTelemetry debugging scenario followed by an unrelated implementation task, the method ended with 231,951 provider-reported prompt tokens versus 912,492 under a retained-history baseline. It used 50% fewer cumulative input tokens and had an estimated API cost of USD 1.28–1.44 versus approximately USD 4.38. Both approaches passed the two-case primary behavioral oracle, though neither fully satisfied the follow-up evaluation.
The agent-controlled forgetting approach required 17% more requests and took 17% longer than the baseline. In a contrasting application-development pair, the method produced no context or cost savings, and an earlier continuation showed lower manually assessed quality despite reduced context, indicating that benefits depend strongly on workload characteristics.
The authors conclude that substantial resource savings are achievable in noisy tool-use trajectories, but emphasize that workload dependence is a central consideration for reversible context management.
- Oct 14, 2026 · Latent Space — swyx
Google releases Gemini 4 Argon globally with agentic coding claims and cost schedule
Trust74 - Oct 14, 2026 · Latent Space — swyx
Dyna Robotics releases Dyna-2.1, a physical agent with hour-long autonomy using a world-action model trained on one million hours of video
Trust74 - Oct 13, 2026 · Latent Space — swyx
Anthropic introduces dynamic workflows for Claude Managed Agents to coordinate multi-agent orchestration
Trust72