mlsanityData to 14 Oct 2026

A Self-Evolving Framework for Efficient Terminal Agents via Observational Context Compression

arXiv 2604.19572 ↗First posted 21 Apr 2026cs.CLcited by 15

On the map: Efficient LLM inference and serving → Efficient reasoning and agent inference

Abstract (arXiv)

As terminal agents scale to long-horizon, multi-turn workflows, a key bottleneck is not merely limited context length, but the accumulation of noisy terminal observations in the interaction history. Retaining raw observations preserves useful environment feedback, but also leads to context saturation and high token cost; conversely, naive compression may discard task-critical signals needed for subsequent actions. Because terminal environments are highly heterogeneous across repositories, commands, and execution states, heuristic-based or fixed-prompt compression methods are difficult to generalize. We propose TACO, a plug-and-play, training-free, self-evolving Terminal Agent Compression framework for existing terminal agents. TACO automatically discovers, refines, and reuses structured compression rules from interaction trajectories, enabling workflow-adaptive filtering of low-value terminal outputs while preserving task-relevant observations. Experiments on TerminalBench (TB 1.0 and TB 2.0) and four additional terminal-related benchmarks, including SWE-Bench Lite, CompileBench, DevEval, and CRUST-Bench, show that TACO consistently improves task performance and token efficiency across agent scaffolds and backbone models. On TerminalBench, TACO yields 1%-4% accuracy gains across strong agentic models and improves accuracy by around 2%-3% under the same token budget. On additional terminal-related benchmarks, it reduces total token consumption while maintaining or improving task success rates. These results suggest that self-evolving, workflow-adaptive observation compression is an effective path toward more reliable and efficient long-horizon terminal agents. The code is publicly available at https://github.com/multimodal-art-projection/TACO.

Key facts. Cited by 15 papers in the map (data through 14 Oct 2026). Placed in Efficient reasoning and agent inference, one of 12 directions in Efficient LLM inference and serving. Builds on 32 of its 37 references that are in the map. First posted on arXiv 21 Apr 2026.

Builds on

32 of 37 references.

Closest ancestors · 2

Same direction, newest first

  1. 2026SWE-Pruner: Self-Adaptive Context Pruning for Coding Agents23 Jan
  2. 2025ACON: Optimizing Context Compression for Long-horizon LLM Agents1 Oct

Other references · 30

  1. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  2. 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,986
  3. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
  4. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 1,002
  5. 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 815
  6. 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 585
  7. 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compressioncited by 348
  8. 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 287
  9. 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 189
  10. 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 171
  11. 2024Symbolic Learning Enables Self-Evolving Agentscited by 106
  12. 2025AgentFold: Long-Horizon Web Agents with Proactive Context Managementcited by 103
18 more
  1. 2025Agent0: Unleashing Self-Evolving Agents from Zero Data via Tool-Integrated Reasoningcited by 75
  2. 2024DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 72
  3. 2024A Comparative Study on Reasoning Patterns of OpenAI's o1 Modelcited by 63
  4. 2025Scaling Test-time Compute for LLM Agentscited by 63
  5. 2024Self-evolving Agents with reflective and memory-augmented abilitiescited by 52
  6. 2025Context as a Tool: Context Management for Long-Horizon SWE-Agentscited by 43
  7. 2026On Data Engineering for Scaling LLM Terminal Capabilitiescited by 43
  8. 2025LongCodeZip: Compress Long Context for Code Language Modelscited by 39
  9. 2026MetaClaw: Just Talk -- An Agent That Meta-Learns and Evolves in the Wildcited by 37
  10. 2026Large-Scale Terminal Agentic Trajectory Generation from Dockerized Environmentscited by 33
  11. 2025COMPASS: Enhancing Agent Long-Horizon Reasoning with Evolving Contextcited by 20
  12. 2025CRUST-Bench: A Comprehensive Benchmark for C-to-safe-Rust Transpilationcited by 19
  13. 2025Nex-N1: Agentic Models Trained via a Unified Ecosystem for Large-Scale Environment Constructioncited by 17
  14. 2025Bootstrapping Task Spaces for Self-Improvementcited by 10
  15. 2026IQuest-Coder-V1 Technical Reportcited by 6
  16. 2026InCoder-32B: Code Foundation Model for Industrial Scenarioscited by 4
  17. 2026InCoder-32B-Thinking: Industrial Code World Model for Thinkingcited by 4
  18. 2025CodeSimpleQA: Scaling Factuality in Code Large Language Modelscited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 15.

15 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2026Adapting Context Compression for Long-Horizon Agents with Counterfactual Continuations
  2. 2026Beyond Token Savings: A Systematic Study of Context Compression in LLM Agents
  3. 2026Toward Reliable Context Compression for Long-Horizon Agents: An Empirical Study of Execution Instability
  4. 2026Memory Compression for High-Fanout Agent Sandboxes
  5. 2026Control Under Compression: Reliability Frontiers for Tool-Using Agents
  6. 2026Terminal-World: Scaling Terminal-Agent Environments via Agent Skills
  7. 2026Scaling Agentic Data for Long-Horizon Terminal Intelligence
  8. 2026FOCUS: Training-Free Decision-Preserving Context Compression for LLM Agents