NeurIPS 2026QuestionsPapersAreasAboutMarkdown

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

JinCheng Ren, Siwei Wu, Yizhi Li, Zhu, Shu XU, Boyu Feng, Ruibin Yuan, Wei Zhang, Riza Batista-Navarro, Min Gao, Yan Bai, Jian Yang, Chenghua Lin

NeurIPS page · OpenReview · Open on the map

Category: LLM Reasoning, Memory & RAG › Test-Time Scaling and Optimization · Type: new method · Keywords: CLI agents, context compression, self-evolving rules, terminal observation filtering, efficient agents, benchmark evaluation

Areas: Long Context › Long-context mechanisms › Long-context reasoning; AI Agents › Agent Systems and Interactions › Efficient Agent Inference

Summary

TACO introduces a self-evolving compression framework that autonomously learns reusable rules from interaction trajectories to filter redundant terminal observations while preserving exact evidence, improving task success and reducing token consumption.

Explained to a 5-year-old

Some computer helpers talk to computers using text commands. They keep a long record of what the computer says, which can be very long and boring. The new idea teaches the helper to learn which parts are boring and which are important. It looks at many examples of conversations to figure out patterns. This way, the helper can focus on the key clues, save space and time, and finish tasks faster.

Explained to a 5-year-old, longer

Computer programs that talk to computers using text commands need to remember what happened. They write down everything the computer says, like a long story. Sometimes the story has lots of boring parts that aren't important. The new idea teaches the program to learn which parts are boring and which are important. It looks at many examples of conversations to figure out patterns. The program builds a collection of rules that tell it what to keep and what to drop. These rules are shared across different tasks so the program can use them everywhere. When the program works on a new problem, it tweaks the rules just a little to fit. This way, the program can focus on the key clues, like error messages or file names. It saves space and time because it doesn't need to remember everything. The program can finish tasks faster and make fewer mistakes. All of this happens without the programmers having to write special rules by hand.

For a technical reader

The paper tackles the growing context size problem in CLI agents, where raw terminal logs mix critical signals (e.g., error messages) with large amounts of repetitive output. Existing summarization or static pruning methods often discard precise evidence and cannot adapt across diverse terminal tasks. The proposed solution learns reusable compression rules from past interaction trajectories, storing them in a global pool and evolving them online for each new workflow. This dynamic rule evolution filters out redundancy while conservatively preserving exact task-relevant information, delivering measurable gains in accuracy and token efficiency. The approach integrates with existing agent scaffolds without requiring model fine-tuning and consistently improves performance across multiple benchmarks.

Problem

Long-horizon CLI agents face high context costs because raw terminal observations contain repetitive output and sparse critical evidence, making it difficult to retain essential signals within limited context budgets.

Method

The approach treats compression rules as reusable knowledge learned from interaction trajectories, autonomously discovering and refining structured rules via a global rule pool and online task-time evolution to filter redundancy while preserving exact evidence.

Results

The approach achieves 1%-4% absolute accuracy gains on TerminalBench and reduces token consumption by 12%-27% on downstream benchmarks while maintaining or improving task success.

Contributions

It introduces a self-evolving compression framework that learns reusable, preservation-aware rules from interaction trajectories, enabling adaptive filtering of terminal observations without manual design or fine-tuning.

Practical relevance

This enables CLI agents to operate more efficiently by allocating context budgets to critical evidence, reducing computational costs and improving performance in real-world development tasks.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction