A Self-Evolving Framework for Efficient Terminal Agents via Observational Context Compression
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
- 2026SWE-Pruner: Self-Adaptive Context Pruning for Coding Agents23 Jan
- 2025ACON: Optimizing Context Compression for Long-horizon LLM Agents1 Oct
Other references · 30
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,986
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 1,002
- 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 815
- 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 585
- 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compressioncited by 348
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 287
- 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 189
- 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 171
- 2024Symbolic Learning Enables Self-Evolving Agentscited by 106
- 2025AgentFold: Long-Horizon Web Agents with Proactive Context Managementcited by 103
18 more
- 2025Agent0: Unleashing Self-Evolving Agents from Zero Data via Tool-Integrated Reasoningcited by 75
- 2024DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 72
- 2024A Comparative Study on Reasoning Patterns of OpenAI's o1 Modelcited by 63
- 2025Scaling Test-time Compute for LLM Agentscited by 63
- 2024Self-evolving Agents with reflective and memory-augmented abilitiescited by 52
- 2025Context as a Tool: Context Management for Long-Horizon SWE-Agentscited by 43
- 2026On Data Engineering for Scaling LLM Terminal Capabilitiescited by 43
- 2025LongCodeZip: Compress Long Context for Code Language Modelscited by 39
- 2026MetaClaw: Just Talk -- An Agent That Meta-Learns and Evolves in the Wildcited by 37
- 2026Large-Scale Terminal Agentic Trajectory Generation from Dockerized Environmentscited by 33
- 2025COMPASS: Enhancing Agent Long-Horizon Reasoning with Evolving Contextcited by 20
- 2025CRUST-Bench: A Comprehensive Benchmark for C-to-safe-Rust Transpilationcited by 19
- 2025Nex-N1: Agentic Models Trained via a Unified Ecosystem for Large-Scale Environment Constructioncited by 17
- 2025Bootstrapping Task Spaces for Self-Improvementcited by 10
- 2026IQuest-Coder-V1 Technical Reportcited by 6
- 2026InCoder-32B: Code Foundation Model for Industrial Scenarioscited by 4
- 2026InCoder-32B-Thinking: Industrial Code World Model for Thinkingcited by 4
- 2025CodeSimpleQA: Scaling Factuality in Code Large Language Modelscited by 3
Built on by
Citing papers per year: 2026: 15.
15 papers.
Sort:
By area:
- 2026Recursive Synthesis for Long-Horizon Terminal Taskscited by 19
- 2026ModularRSI: Modular and Generalizable Recursive Harness Self-Improvementcited by 9
- 2026CalibForge: Adversarial Solver Calibration for Scaling Learnable Terminal Taskscited by 8
- 2026From Chatbot to Digital Colleague: The Paradigm Shift Toward Persistent Autonomous AIcited by 6
- 2026CoACT: Action-Preserving Observation Compression for Coding Agentscited by 4
- 2026Meta-Task: Turning Terminal Task Synthesis into a Terminal Task for Scalable Agent Trainingcited by 4
- 2026Self-Evolving Coding Agentscited by 2
- 2026Terminal Agents: A Survey of AI Agents in Command-Line Environmentscited by 1
- 2026Read Less, Solve More: Token-Efficient Sparse Reading for AI Agentscited by 0
- 2026DENSE: Distilling Agent Trajectories into Evidence-Grounded Shortcut Trees for Self-Refinementcited by 0
- 2026Compress What You See, Not What You Say: Anchored Context Distillation for Latent-Observation Software Engineering Agentscited by 0
- 2026Beyond Skill Evolution: Self-Evolving Context Management Policies for Long-Horizon Agent Harnessescited by 0
- 2026WorkBorne: Discovering Agentic Tasks from Real-World Artifact Transitions10 Oct 2026
- 2026Trajectory-Guided Fault Localization for Agent Skill Evolution8 Oct 2026
- 2026ReFold: Training-Free Reversible Inter-Turn Context Folding for Long-Horizon Agents6 Oct 2026
- 2026Beyond Skill Evolution: Self-Evolving Context Management Policies for Long-Horizon Agent Harnesses28 Sep 2026
- 2026Compress What You See, Not What You Say: Anchored Context Distillation for Latent-Observation Software Engineering Agents25 Sep 2026
- 2026DENSE: Distilling Agent Trajectories into Evidence-Grounded Shortcut Trees for Self-Refinement18 Sep 2026
- 2026ModularRSI: Modular and Generalizable Recursive Harness Self-Improvement14 Sep 2026
- 2026Read Less, Solve More: Token-Efficient Sparse Reading for AI Agents23 Aug 2026
- 2026Terminal Agents: A Survey of AI Agents in Command-Line Environments20 Aug 2026
- 2026CalibForge: Adversarial Solver Calibration for Scaling Learnable Terminal Tasks6 Aug 2026
- 2026Recursive Synthesis for Long-Horizon Terminal Tasks5 Aug 2026
- 2026Self-Evolving Coding Agents4 Aug 2026
- 2026CoACT: Action-Preserving Observation Compression for Coding Agentscited by 4
- 2026Meta-Task: Turning Terminal Task Synthesis into a Terminal Task for Scalable Agent Trainingcited by 4
- 2026Self-Evolving Coding Agentscited by 2
- 2026Terminal Agents: A Survey of AI Agents in Command-Line Environmentscited by 1
- 2026Compress What You See, Not What You Say: Anchored Context Distillation for Latent-Observation Software Engineering Agentscited by 0
- 2026Beyond Skill Evolution: Self-Evolving Context Management Policies for Long-Horizon Agent Harnessescited by 0
- 2026ReFold: Training-Free Reversible Inter-Turn Context Folding for Long-Horizon Agentscited by 0
- 2026Trajectory-Guided Fault Localization for Agent Skill Evolutioncited by 0
- 2026WorkBorne: Discovering Agentic Tasks from Real-World Artifact Transitionscited by 0
- 2026WorkBorne: Discovering Agentic Tasks from Real-World Artifact Transitions10 Oct 2026
- 2026Trajectory-Guided Fault Localization for Agent Skill Evolution8 Oct 2026
- 2026ReFold: Training-Free Reversible Inter-Turn Context Folding for Long-Horizon Agents6 Oct 2026
- 2026Beyond Skill Evolution: Self-Evolving Context Management Policies for Long-Horizon Agent Harnesses28 Sep 2026
- 2026Compress What You See, Not What You Say: Anchored Context Distillation for Latent-Observation Software Engineering Agents25 Sep 2026
- 2026Terminal Agents: A Survey of AI Agents in Command-Line Environments20 Aug 2026
- 2026Self-Evolving Coding Agents4 Aug 2026
- 2026Meta-Task: Turning Terminal Task Synthesis into a Terminal Task for Scalable Agent Training30 Jul 2026
- 2026CoACT: Action-Preserving Observation Compression for Coding Agents3 Jul 2026
- 2026Recursive Synthesis for Long-Horizon Terminal Taskscited by 19
- 2026CalibForge: Adversarial Solver Calibration for Scaling Learnable Terminal Taskscited by 8
- 2026From Chatbot to Digital Colleague: The Paradigm Shift Toward Persistent Autonomous AIcited by 6
- 2026Read Less, Solve More: Token-Efficient Sparse Reading for AI Agentscited by 0
- 2026DENSE: Distilling Agent Trajectories into Evidence-Grounded Shortcut Trees for Self-Refinementcited by 0
- 2026DENSE: Distilling Agent Trajectories into Evidence-Grounded Shortcut Trees for Self-Refinement18 Sep 2026
- 2026Read Less, Solve More: Token-Efficient Sparse Reading for AI Agents23 Aug 2026
- 2026CalibForge: Adversarial Solver Calibration for Scaling Learnable Terminal Tasks6 Aug 2026
- 2026Recursive Synthesis for Long-Horizon Terminal Tasks5 Aug 2026
- 2026From Chatbot to Digital Colleague: The Paradigm Shift Toward Persistent Autonomous AI12 Jun 2026
Similar, not cited
Close in wording, no citation either way
- 2026Adapting Context Compression for Long-Horizon Agents with Counterfactual Continuations
- 2026Beyond Token Savings: A Systematic Study of Context Compression in LLM Agents
- 2026Toward Reliable Context Compression for Long-Horizon Agents: An Empirical Study of Execution Instability
- 2026Memory Compression for High-Fanout Agent Sandboxes
- 2026Control Under Compression: Reliability Frontiers for Tool-Using Agents
- 2026Terminal-World: Scaling Terminal-Agent Environments via Agent Skills
- 2026Scaling Agentic Data for Long-Horizon Terminal Intelligence
- 2026FOCUS: Training-Free Decision-Preserving Context Compression for LLM Agents