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

Jincheng Ren, Siwei Wu, Yizhi Li, Kang Zhu, Shu Xu +6 more
4/21/2026
cs.CL

No official code found. Best implementation: multimodal-art-projection/TACO (43 stars, Apache-2.0, last commit 2026-04-23).

Abstract

As model capabilities advance, research has increasingly shifted toward long-horizon, multi-turn terminal-centric agentic tasks, where raw environment feedback is often preserved in the interaction history to support future decisions. However, repeatedly retaining such feedback introduces substantial redundancy and causes cumulative token cost to grow quadratically with the number of steps, hindering long-horizon reasoning. Although observation compression can mitigate this issue, the heterogeneity of terminal environments makes heuristic-based or fixed-prompt methods difficult to generalize. We propose TACO, a plug-and-play, self-evolving Terminal Agent Compression framework that automatically discovers and refines compression rules from interaction trajectories for existing terminal agents. Experiments on TerminalBench (TB 1.0 and TB 2.0) and four additional terminal-related benchmarks (i.e., SWE-Bench Lite, CompileBench, DevEval, and CRUST-Bench) show that TACO consistently improves performance across mainstream agent frameworks and strong backbone models. With MiniMax-2.5, it improves performance on most benchmarks while reducing token overhead by around 10%. On TerminalBench, it brings consistent gains of 1%-4% across strong agentic models, and further improves accuracy by around 2%-3% under the same token budget. These results demonstrate the effectiveness and generalization of self-evolving, task-aware compression for terminal agents.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

This is the repo for the paper A Self-Evolving Framework for Efficient Terminal Agents via Observational Context Compression

434CSS, Java6 months agoApache-2.0

Similar Papers

Cite this paper

@article{ren2026selfevolving,
  title  = {A Self-Evolving Framework for Efficient Terminal Agents via Observational Context Compression},
  author = {Jincheng Ren and Siwei Wu and Yizhi Li and Kang Zhu and Shu Xu and Boyu Feng and Ruibin Yuan and Wei Zhang and Riza Batista-Navarro and Jian Yang and Chenghua Lin},
  year   = {2026},
  eprint = {2604.19572},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.19572v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.19572.svg)](https://codeofpaper.com/paper/2604.19572)

Discussion