mlsanityData to 14 Oct 2026

Self-GC: Self-Governing Context for Long-Horizon LLM Agents

arXiv 2607.00692 ↗First posted 1 Jul 2026cs.AIcited by 11

On the map: LLM agents and tool use → Agent memory systems

Abstract (arXiv)

Long-horizon LLM agents accumulate tool results, files, plans, and user constraints that are too structured to be treated as a disposable text suffix. Current systems mostly rely on in-run heuristics such as chronological pruning and tool-output masking, or on final self-summary near a context limit. Heuristics are cheap but blind to future dependencies; summaries preserve narrative state but often hide exact evidence, locators, and editable artifacts. We present Self-GC, where GC denotes self-governing context while deliberately echoing garbage collection: the system does not merely reclaim unused tokens, but governs the lifecycle of agent context objects. Self-GC turns user turns, tool spans, and skill state into indexed objects; asks a side-channel planner to propose fold, mask, and prune actions; and lets the harness enforce recoverable sidecars, safe commit boundaries, and cache-aware commit. On a 33-session Hard Set, Self-GC prunes 43.95% of prefix tokens while leaving 84.85% of future continuations unaffected, compared with no-impact rates of 54.55% to 69.70% for heuristic baselines. On a 332-session production-derived suite, three planner backbones reach no-impact rates of 91.27% to 94.58%, while baselines remain at 77.71% to 87.46%. In production, an online account-level split reduces daytime average input tokens by 10% to 15%, with peak reductions near 20%. These results point to context management as runtime lifecycle control over indexed, recoverable objects rather than post hoc text cleanup.

Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 20 of its 34 references that are in the map. First posted on arXiv 1 Jul 2026.

Builds on

20 of 34 references.

Closest ancestors · 5

Same direction, newest first

  1. 2026ContextBudget: Budget-Aware Context Management for Long-Horizon Search Agents2 Apr
  2. 2026TiMem: Temporal-Hierarchical Memory Consolidation for Long-Horizon Conversational Agents6 Jan
  3. 2025ACON: Optimizing Context Compression for Long-horizon LLM Agents1 Oct
  4. 2025MemGuide: Intent-Driven Memory Selection for Goal-Oriented Multi-Session LLM Agents26 May
  5. 2025A-MEM: Agentic Memory for LLM Agents17 Feb

Other references · 15

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  2. 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,276
  3. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  4. 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 2,006
  5. 2023MemGPT: Towards LLMs as Operating Systemscited by 1,389
  6. 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 880
  7. 2023ExpeL: LLM Agents Are Experiential Learnerscited by 876
  8. 2023JudgeLM: Fine-tuned Large Language Models are Scalable Judgescited by 367
  9. 2025Reducing Cost of LLM Agents with Trajectory Reductioncited by 48
  10. 2026SWE-Pruner: Self-Adaptive Context Pruning for Coding Agentscited by 44
  11. 2025LongCodeZip: Compress Long Context for Code Language Modelscited by 39
  12. 2025MCP-AgentBench: Evaluating Real-World Language Agent Performance with MCP-Mediated Toolscited by 32
3 more
  1. 2026REMem: Reasoning with Episodic Memory in Language Agentcited by 23
  2. 2026Don't Break the Cache: An Evaluation of Prompt Caching for Long-Horizon Agentic Taskscited by 19
  3. 2025SparK: Query-Aware Unstructured Sparsity with Recoverable KV Cache Channel Pruningcited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 11.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026LLM Agents Are Latent Context Managers: Eliciting Self-Managed Context via State Proprioception
  2. 2026GenericAgent: A Token-Efficient Self-Evolving LLM Agent via Contextual Information Density Maximization (V1.0)
  3. 2026Beyond Compaction: Structured Context Eviction for Long-Horizon Agents
  4. 2026Filesystem-Based Memory for LLM Agents: Organization, Evolution, and Sustainability
  5. 2026Beyond Semantic Organization: Memory as Execution State Management for Long-Horizon Agents
  6. 2026Agent libOS: A Runtime Substrate for Capability-Controlled Self-Evolving LLM Agents
  7. 2026Self-Designed Evaluators and Warm Memory for Long-Horizon Agents
  8. 2026The Hidden Footprint: Making Storage a First-Class Metric for LLM Agent Evaluation