CarryOn: Learning What to Keep in Context for Long-Horizon LLM Agents: what it means for business leaders

CarryOn is an external context manager for long-running LLM agents that pairs a small progress state with exact, source-linked fragments of earlier observations, and raises task success without extra LLM calls or fine-tuning the acting model.

1. What the method is

CarryOn is a context manager that sits outside the acting model and decides what an agent sees at each step of a long task. It splits the job in two. The acting model keeps a small structured state, capped at 128 proxy tokens, recording what is done, what remains open, the next operation, whether a returned value is required, and which APIs it has already inspected. Separately, an evidence manager archives every raw action and observation, splits observations into small units such as individual records, and keeps each unit's original text and a reference to its source. A fine-tuned 0.6-billion-parameter reranker picks which older units go back into context for the current decision. The acting model is not fine-tuned, and no additional LLM calls are spent on managing context.

2. Why the method was developed

Agents that work across tools for dozens of steps accumulate history, and reprocessing all of it at every step is expensive. The usual remedies shorten the context by summarizing, pruning or selecting whole past interactions. The authors' point is that a shorter context is not necessarily a better one. Summaries drop the exact values a later action needs, such as an account identifier, a file path or a fact the user supplied, while keeping whole interactions drags along many unrelated records. Their running example is a payment task in which coworker records found at step 9 are needed at step 33, after a balance refill. A second family of methods trains the acting model to manage its own memory, which ties the solution to one model. CarryOn aims to keep progress concise, keep exact details retrievable, and stay independent of the acting model.

3. Who should care

This matters to our teams that build or operate agents for multi-step work: customer support flows, office automation, and anything that chains API calls across applications. Engineering leads should note that the selector is a separate small model reused unchanged across three different acting models, so it would not lock us to one vendor. Finance and platform owners should care because the paper measures cost per successful task, not only success, and in several settings that cost falls sharply. Security and compliance need to be involved early: the method works by storing raw observations for later reuse, and the authors themselves say deployment needs access controls on stored history and user confirmation for consequential actions. Teams buying agent products can use the same framing to ask vendors how exact details survive long tasks.

4. How the method works

At each step the selector reads the task and the latest observation and gives every archived unit two scores: a relevance score for ranking, and a probability that the unit will be used in the very next action. Units are packed in relevance order into a fixed character budget after space is reserved for recent interactions. Any remaining unit whose next-action probability clears a threshold is added on top, which can exceed the budget for that step only. The pack is rebuilt every step, so evidence dropped earlier can return. The latest interaction is always kept, and the window widens to two when the model's action or state update is invalid. The selector is trained with LoRA on successful trajectories from each benchmark's training split, using evidence cited in offline state annotations written by Claude Sonnet 5, or used in later actions, as positives.

5. How it was evaluated

The evaluation uses three benchmarks with their official success checks: AppWorld (168 cross-application tasks), OfficeBench (95 office workflow tasks) and the Telecom domain of Tau2 (40 customer-support dialogues). Three acting models were tested: Claude Sonnet 5, Qwen3.8-27B and Gemma-4-31B. The seven baselines are full history, the last five steps, embedding retrieval, LLMLingua-2, ACON, AGORA and SWE-Pruner. One selector is trained per benchmark and reused across all three models; training took roughly 0.6 to 4.9 hours on a single H100. Besides success, the authors define two cost-aware metrics of their own: a score weighting success 80% and cost-discounted success 20%, and normalized cost per success, which divides total calls and tokens, failures included, by successes and sets full history to 1. Each setting was run once, and tokens processed by the local selector are excluded from the cost figures.

6. How it performed

Averaged over the nine benchmark and model settings, CarryOn reached 75.7% task success, 13.3 points above full history and 6.7 above SWE-Pruner, the strongest baseline, with a mean cost per success of 0.792. On OfficeBench with Qwen it matched full history's 66.3% success at 0.476 of the cost. Removing the progress state cut AppWorld success with Claude from 79.8% to 66.1%. The gains are not uniform: on Tau2 with Claude, LLMLingua-2 scored 80.0% against 75.0%, and on AppWorld with Qwen CarryOn cost 1.634 times full history per success. Learned selection was invoked in only 13 of 120 Tau2 runs. The authors' stated limits are text-only observations, a separately trained selector per benchmark, and untested transfer to new tool interfaces. Our call: pilot it on one of our own long-running agent workflows, since the selector must be trained on our trajectories before these numbers mean anything for us. (Source: arXiv 2611.17808, 2026)

← Back to dossier index