Get Started
Home
Topics
Search
Library
6 min read · Agents · Inference Optimization · Added Oct 20 · Paper published Oct 14, 2026

Pack Light, CarryOn: Building Object-Oriented Context for Long-Horizon Agents

Source: research paper via Hugging Face Daily Papers
Long-horizon agents replay 200K-token transcripts describing work whose actual output already sits on disk. CarryOn reorganizes context around durable artifacts plus a short “what’s owed” note, folding the live tail into reusable carriers — stabilizing context near 65K tokens and lifting OSWorld 2.0 scores while cutting tokens 52%.

TL;DR

CarryOn reorganizes a long-horizon agent’s context around reusable task objects (files, findings, app states) plus a small execution-context note, instead of replaying full interaction history, cutting total tokens by roughly half on a desktop-task benchmark.

Why It Matters

You’re building an agent that works on a slide deck for 200 steps: it opens PowerPoint, inserts images, edits text, saves, re-opens, keeps going. Every new LLM call gets the full transcript of the previous 199 steps. By step 300 the input context is 200K+ tokens, you’re paying for it on every call, and the model is wading through a narrative of how the deck got made when the deck itself is already sitting on disk.
The standard fixes compress or summarize that transcript, or page it to external memory (for example MemGPT). Those shrink the context but keep continuation anchored to a reconstructed account of past actions, which can drift from the actual file or app state the agent will inspect next. The paper’s premise: once progress exists as a real artifact, the transcript that produced it is largely redundant.

How It Works

The idea: treat the durable things the agent has produced as the primary unit of context, not the conversation. CarryOn’s active context has three parts:
•
Continuation carriers: pointers or content for reusable progress. Three flavors. External objects are files or documents that live in the environment (reference by path plus a note on what’s done and conditions for reuse). Information products are synthesized findings the agent gathered (stored as claims with source pointers). Situated state is progress that only exists inside a running app or session (recorded as an environment anchor plus scope).
•
Execution context: a short note of current focus, open constraints, unresolved obligations, next step. Everything needed to continue that isn’t already embodied in a carrier.
•
Live tail: the raw recent interactions since the last compression event.
Periodically CarryOn runs a fold: it compresses the live tail into updates to the carriers and execution context, then retires those raw interactions from active context. The fold is run by two LLM-driven components, a Tracker that spots which bits of progress have become reusable, and a Compiler that writes the carrier edits and new execution context together. A Grounder does read-only environment checks (does the file exist, does it have the expected content) before an edit is accepted. Crucially, unaffected carriers from prior folds are carried forward verbatim, not regenerated, which is the main structural difference from just re-summarizing everything each time.
while not task_done: obs = agent.step(view=(carriers, exec_ctx, live_tail)) live_tail.append(obs) if live_tail.size() > threshold: cands = tracker.scan(live_tail, carriers) evidence = grounder.check(cands, environment) edits, new_ec = compiler.compile(cands, evidence, exec_ctx, live_tail) if validate(edits): # identity, source, consistency carriers.apply(edits); exec_ctx = new_ec; live_tail.clear()

What They Found

All experiments use Claude Opus 4.7 as the agent, Tracker, and Compiler, with no additional training.
•
On OSWorld 2.0 (full set), CarryOn lifts partial score from 43.9% to 49.7% and binary success from 15.7% to 19.4% over the same baseline agent, while cutting total token usage by 51.9% and per-task cost by 35.9%.
•
On a 100-question subset of BrowseComp-Plus, accuracy goes from 49% to 56%, with 22.9% fewer tokens.
•
Context size over time (Figure 3): the baseline’s input context grows past 200K tokens over a long trajectory; CarryOn stabilizes around 65K tokens after an initial ramp. Cumulative cost curves cross before turn 200, so CarryOn costs more early (Tracker and Compiler calls) and wins on long runs.
•
Comparison on a 40-task subset against other compression strategies: a sliding window and a generic summary both hurt partial score vs. baseline. A variant called CarryOn-Guided Summary that applies the same object-oriented principles but as a textual summary regenerated each fold reaches 50.93% partial. Full CarryOn hits 55.93%, with about 10% less post-fold text than CGS. The authors read this as evidence that the structural persistence of carrier records across folds, not just the organizing principle, is doing real work.
•
Ablations: hiding carriers from the agent drops partial score to 44.62% and raises agent calls by 23.8% (the agent redoes work). Hiding execution context drops partial score to 44.00% without changing call count much (the agent still sees finished work but loses track of what’s still owed). Across committed folds, 80% of carrier records are retained or updated rather than freshly created, so the representation genuinely persists.
One trajectory example is especially illustrative: with carriers hidden, the agent that had already extracted item prices from a PDF reopens the PDF after a fold and re-extracts the mapping. With carriers present, it just continues filling the form.

What’s Useful

•
If you run a long-horizon agent where real artifacts (files, documents, app state) accumulate as the task progresses, the finding worth internalizing is that compressing the transcript is the wrong frame. The transcript is largely redundant with the artifact; what you need to preserve is a pointer to the artifact plus the conditions under which it’s reusable, and separately a short note of what’s still owed.
•
The crossover-cost dynamic matters for deployment: CarryOn adds Tracker and Compiler calls, so it loses money on short tasks and wins on long ones. The paper’s crossover is around turn 200 on OSWorld 2.0 with Claude Opus. If your typical trajectory is 20 turns, this won’t pay for itself.
•
The ablation separating carriers from execution context is the useful design lesson even if you don’t adopt CarryOn wholesale: a summarizer that only records “what’s done” loses track of open obligations, and one that only tracks goals forces the agent to rediscover completed work. Both halves earn their keep.
•
The Grounder’s environment checks (does the file still exist, does it contain what we claim) are what let the system trust a carrier across folds. If you build something similar in a setting where you can’t cheaply verify the artifact, that trust question becomes the hard part. The paper doesn’t evaluate CarryOn in environments without such checks.
•
Code and project page: project page.

Caveats

•
Single-model evaluation. Every reported CarryOn number uses Claude Opus 4.7 as agent, Tracker, and Compiler. Whether the gains transfer to weaker or cheaper models is untested.
•
The comparison baselines for context management (sliding window, generic summary, CGS) are run on a 40-task subset, not the full OSWorld 2.0, so the headline “CarryOn beats generic summarization” rests on 40 tasks.
•
The Grounder’s checks verify runtime consistency (identity, references, source authorization), not task correctness. A carrier can be “validly committed” and still record wrong progress if the agent misread the environment.
•
OSWorld 2.0 binary scores are low in absolute terms (CarryOn: 19.4%); these are hard tasks and the gains, while real, are on a benchmark where most attempts still fail outright.
•
The BrowseComp-Plus evaluation uses a 100-question random subset, not the full 830-question benchmark.
Topics
Agents
Inference Optimization
Memory
Agents
Inference Optimization
Memory
Up next in Agents
Self-Evolving Coding Agents via Harness-Policy Optimization
Interlock: From Local Correctness to Task Completion in Long-Horizon Agents
Don't miss new content
Log in to follow topics and personalize your feed.
Related topics you might like
Agents310 episodes
Inference Optimization168 episodes
Memory40 episodes