Agent-Controlled Forgetting for Tool-Using Agents: Reversible Context Curation in Practice
Abstract
Tool-using agents repeatedly carry observations whose useful content can be much smaller than their original payload. We study agent-controlled forgetting: the acting model selects previously observed tool results, replaces each with a short note at its original position, and retains the exact original in a recoverable archive. A Python harness exposes batch archival and explicit recovery without task-specific model training, while protecting user instructions and assistant messages from these operations. In an exploratory OpenTelemetry debugging case followed by an unrelated implementation task, the method ended with 231,951 provider-reported prompt tokens versus 912,492 under retained history, used 50% fewer cumulative input tokens, and had an estimated API cost of USD 1.28-1.44 versus approximately USD 4.38. Both arms passed the two-case primary behavioral oracle; neither fully satisfied the follow-up evaluation. The method made more requests and took 17% longer. A contrasting application-development pair produced no context or cost saving, and an earlier continuation exhibited lower manually assessed quality despite reduced context. These observations demonstrate substantial resource savings in noisy tool-use trajectories and identify workload dependence as a central consideration for reversible context management.
Create a lesson
Metadata
- Comments
- 13 pages, 1 figure. Code and research artifacts: https://github.com/boldprojekte/agent-forgetting-research
Related papers
When the Governor Becomes the Disturbance: Control-Generated Disturbance and Cost-Aware Backoff in Governed Tool-Using Agents
Shared title terminologycs.AIVeronique Ziegler
TACT-Bench: Testing Adaptive Conversational Threats against Tool-Use Agents
Shared title terminologycs.AIIlia Hashemi Rad, Feijie Wu, Haoyu Wang et al.
Intent-Conditioned Argument Mediation for Tool-Using LLM Agents: Blocking Trusted-but-Unauthorized Arguments
Shared title terminologycs.AIYulliwas Ameur, Miqeas Pedro Mendes, Samia Bouzefrane
Curating Always-Loaded Context for LLM Agents: A Capacitated Assortment Model with Censored Feedback
Shared title terminologycs.AIZexuan Liu, Yuning Yang, Tiancheng Zhao
Loud Failures, Quiet Failures: Fault Detection and Recovery in Tool-Using Language Model Agents
Shared title terminologycs.AIObada Kraishan
GeoNatureAgent (GNA): A Framework and Benchmark for Pre-Production Evaluation of Tool-Using Agents on Geospatial and Environmental Tasks
Shared title terminologycs.AIGabriel Diaz-Ireland, Diego Prieto-Herráez, Mario García Peces et al.