CarryOn: Learning What to Keep in Context for Long-Horizon LLM Agents

Researchers at UNSW Sydney introduce CarryOn, a context manager for long-horizon agents that pairs a compact execution state with source-linked evidence chosen by a learned selector, without extra LLM calls for context management.
Ask this paper
Problem. Summaries drop exact details that later actions need, and full histories carry irrelevant material. Shorter context is not automatically better context.
Method. A control state tracks pending work. A learned selector and an adaptive retention policy pick evidence from earlier steps and link it to its source, so exact values stay available.
Results. Across AppWorld, OfficeBench and Tau2 Telecom with three actor LLMs, CarryOn reaches 75.7% macro-averaged success, 13.3 points above full history and 6.7 above the strongest baseline (SWE-Pruner). With Qwen, success rises from 68.5% to 84.5%. It also has the lowest normalized cost per success (0.792).
What gets kept. Evidence from ten or more steps earlier makes up 30.7% to 48.8% of selections, and in 40.2% of runs evidence is selected again after being dropped. Removing the control state lowers AppWorld success from 79.8% to 66.1%.
Abstract
Long-horizon LLM agents can coordinate tools and applications to complete complex, multi-step tasks. As their interaction histories grow, effective context management becomes essential for reliable and efficient execution. Existing methods reduce context through summarization, pruning, or history selection. However, shorter contexts do not necessarily support better decisions: summaries can omit exact details needed for later actions, while retaining entire interactions can carry substantial irrelevant information. We propose CarryOn, a lightweight context manager that pairs compact execution state with fine-grained, source-linked evidence. A learned selector and adaptive retention policy keep relevant evidence available without additional LLM calls for context management. We introduce two complementary evaluation metrics: $S_α$ prioritizes task success while accounting for resource use, and normalized cost per success (NCS) measures the resources spent per successful task. Across AppWorld, OfficeBench, and Tau2 Telecom with three LLM Actors, CarryOn achieves 75.7% macro-averaged task success, exceeding the strongest baseline by 6.7 percentage points. It also achieves the best average scores on both metrics.