Skip to content

CarryOn: Building an object-oriented context runtime for long-horizon agentsPack Light, CarryOn: Building Object-Oriented Context for Long-Horizon Agents

Hugging Face Daily Papers· arXiv:2610.18784· Yuchen Lu, Julian McAuley, Lei ZhangUniversity of California San DiegoIndexed by this site · 2026-10-19· Originally publishedAI updates

Quick read

Other

Based on the paper PDF (AI-generated); refer to the original

On OSWorld 2.0, CarryOn raises Opus 4.7's partial to 49.7% and reduces total tokens by 51.9%.

Questions
Long-horizon agents leave completed progress in task state, yet repeatedly process the interaction history of how this progress was produced. The authors argue that when compressed history or reconstructed records replace reusable results, continuation may deviate from the state that can be directly inspected.
Methods
CarryOn organizes continuation with carriers, execution context, and live tail. Tracker marks reusable progress, Grounder performs read-only environment checks, Compiler jointly updates carriers and execution context, and after validation passes, fold replaces the covered history.
Experiments and results
On OSWorld 2.0, Opus 4.7's partial went from 43.9% to 49.7%, with total tokens down 51.9%. On the same host, accuracy on the hundred questions of BrowseComp-Plus went from 49.00% to 56.00%, with total tokens down 22.9%.
Limitations and future work
The paper does not specifically discuss limitations. The evaluation uses Claude Opus 4.7, covering full OSWorld 2.0 and 100 questions of BrowseComp-Plus; the comparison and ablations are on a 40-task subset. It does not report the number of score repetitions or the agreement between Qwen3-32B and human scoring.
Experimental setupClaude Opus 4.7 · OSWorld 2.0、BrowseComp-Plus · partial score、binary score et al.
Evaluated models
Claude Opus 4.7
Benchmarks
OSWorld 2.0BrowseComp-Plus
Metrics
partial scorebinary scoreanswer accuracytoken usage per taskcost per task
AI summaryCarryOn is an object-oriented context runtime that lets long-horizon agents continue from reusable task progress rather than repeatedly compressing interaction history. On OSWorld 2.0 and BrowseComp-Plus, CarryOn improves performance by 5.8 and 7.0 percentage points respectively, while reducing total token usage by 51.9% and 22.9%.

CarryOn is an object-oriented context runtime that lets long-horizon agents continue from reusable task progress rather than repeatedly compressing interaction history. On OSWorld 2.0 and BrowseComp-Plus, CarryOn improves performance by 5.8 and 7.0 percentage points respectively, while reducing total token usage by 51.9% and 22.9%.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Can long-horizon continuation be organized around reusable task objects, rather than the interaction history that produced this progress?

    Can long-horizon agents stop treating the interaction history of how progress was produced as the basis for continuation, and instead organize context around reusable task objects?

    • Scenario: The authors state that progress resides both in persistent task state and in interaction history. After an image has been inserted into a slide and a measurement has been written into a report, the state itself is already available for subsequent steps to inspect and modify, yet the agent still repeatedly processes the narrative of how these results were produced, and the redundancy grows as execution lengthens (Section 1, Figure 1).
    • Existing approaches: Summarization, retrieval, pruning, or translating history into explicit progress records and structured task state can suppress context growth. The authors argue that if these are used to replace reusable task results, continuation depends on a redundant, selective narrative and may deviate from the state that the agent directly inspects and modifies.
    • Core view: Work artifacts, source-backed findings, and application state that remains usable under explicit conditions can become the basic units of continuation. The agent retrieves relevant information by directly inspecting and using these objects, and the context only supplements the remaining information needed to continue execution.
    • Proposed runtime: The authors propose CarryOn. The active context is divided into continuation carriers, execution context, and live tail; after validation passes, fold replaces the covered interaction history with an object-oriented context view.
  2. What related research exists?

    Related work proceeds along history compression and state externalization; the authors instead use reusable task objects as the unit of continuation.

    In Related Work, the authors divide existing work into two categories: history compression/selection and state externalization. The experiments additionally use truncation and summarization as comparisons.

    Context Compression and Selection

    • Compression and pruning: Wei et al. (2026) is used to summarize compression, pruning, summarization, and selective retrieval. Jiang et al. (2023; 2024) do prompt-level compression; Xiao et al. (2026) delete redundant or outdated interactions.
    • Summarization and branching: Wu et al. (2026b), Kang et al. (2026), Ye et al. (2025), Hu et al. (2025) periodically replace accumulated interactions with compact reasoning states or learned summaries; Sun et al. (2025)'s branch execution returns only compact subtask results.
    • External history and verification: Packer et al. (2024) and Li et al. (2026) keep earlier interactions outside the prompt, bounding the active context; Chen et al. (2026b) use subsequent execution to verify compressed representations, reducing information loss.

    State Externalization and Context Reconstruction

    • Internal state: Zhou et al. (2025) and Liu et al. (2025) integrate prior memory and new observations into an internal state.
    • Structured records: Chen et al. (2026a), Tian et al. (2026), Wu et al. (2026a), Ma et al. (2026) use execution state trees, persistent variables, or task records.
    • Workspace reconstruction: Yu et al. (2026), Lin et al. (2026), Zhu et al. (2026) externalize state to a persistent workspace, then reconstruct the working context using snapshots or programmatic selection.

    Experimental Baselines and Benchmarks

    • Baselines: The OSWorld 2.0 default agent with no additional compression; Sliding Window and Generic Summary, which the authors state follow Kang et al. (2026)'s FIFO truncation and prompt-based summarization; CarryOn-Guided Summary writes the same organizing principle into a text summary.
    • Benchmarks: OSWorld 2.0 (Yuan et al., 2026) and BrowseComp-Plus (Chen et al., 2025). Table 1 and Table 3 list frontier model scores published on these benchmarks or recomputed on the same subset as references.

    At the end of Section 2, the authors state that continuation in the above methods mainly revolves around compressed interaction history or externally maintained state; CarryOn instead uses reusable task objects as the basic unit of continuation. The introduction also states that when these narratives are used to replace reusable task results, continuation depends on selective narratives that may deviate from checkable state.

  3. How does the paper address this problem?

    CarryOn maintains progress with carriers, execution context, and live tail, and at fold time revises affected records rather than rebuilding the whole segment.

    CarryOn maintains an object-oriented context view alongside the interaction loop: reusable progress goes into carriers, information that is not carried by objects but is still needed to continue execution stays in the execution context, and raw interactions not yet folded in stay in the live tail.

    Context View

    • Three parts: continuation carriers expose reusable progress. execution context retains the current focus, unresolved constraints and obligations, and to-dos not yet materialized as carriers. live tail is the raw interaction since the most recent fold, directly available until the next fold.
    • Form: Let t be the current interaction step, k the most recent fold, and b_k the last step covered by that fold. The context view is Vt = (Ak, Ek, Lt). A_k is the maintained carrier records, E_k is the execution context, and L_t is the interaction from b_k to t.
    • Across folds: New interactions enter the live tail. Subsequent folds update carriers and the execution context rather than rebuilding established progress from scratch. Unaffected carriers keep their original records; revisions produce successor versions under the same identity.

    Three Types of Carriers

    • External objects: Work artifacts that exist independently in the environment and can be reopened or modified, such as code, documents, spreadsheets. The record references the object and writes down the progress it carries and the conditions for reuse.
    • Information products: Reusable findings obtained through interaction, such as synthesized information or troubleshooting conclusions. When they are not materialized as persistent objects, the carrier directly stores the finding, along with supporting sources and conditions for reuse. Appendix A.1 states that revisions can add, modify, or retract claims, and unaffected claims are retained.
    • Situated state: Progress that exists only in a specific application, session, or process. The record notes the environment anchor, the established state, and the scope within which that state remains reusable. The three types can coexist and are not mutually exclusive.

    Four-Stage Update

    • Tracking: The Tracker maintains candidates, each a potential new carrier or an update to an existing carrier, which can accumulate across multiple calls. It requests compilation only once a state sufficient to support continuation is reached. The request states what is to be compiled and the evidence required. Registering or modifying a candidate does not itself trigger a fold.
    • Preparing evidence: Before compilation, evidence authorized for each selected candidate is collected; when updating an existing carrier, the current record is included. Information products check whether the selected material is consistent with the recorded sources. External objects and situated state are bound to environment objects, and the Grounder performs a read-only check when available. The input package U_t fixes the record version and evidence against which subsequent validation is performed. Appendix A.2 and Table 6 list the checks on OSWorld 2.0, including file existence, hash changes relative to the initial snapshot, empty files, document containers, document diffs, and text fragments in the task description. Verdicts are supported, contradicted, or unknown; the request is supported only if all declared conditions are supported.
    • Joint compilation: The coupling the authors give is that progress already captured by carriers need not be repeated in the execution context, while unresolved goals, constraints, and unfinished work must still be explicitly retained after a fold. The Compiler proposes edits only for selected candidates, and each edit must rest on authorized evidence; the execution context is revised against the entire live tail. External objects and situated state record only progress and conditions of use; the object or state remains in the environment. The proposal is (Δ At, Êk+1) = Compile(Ut, Ek, Π(Lt)), that is, from the input package, the current execution context, and the temporal text projection of the live tail, obtaining carrier edits and the revised execution context.
    • Validation and commitment: Before committing, it checks that edits still point to the current candidate and carrier versions and are consistent with authorized evidence, and also checks identity, references, and output constraints. A successful fold must have at least one carrier change; changing only the execution context does not retire the interaction history. These checks do not verify task correctness. On failure, the committed view and live tail are unchanged; on success, it commits atomically and advances the fold boundary past the entire live tail. In the current implementation, a successful fold covers the entire live tail. Raw interactions remain in the append-only interaction log.

    Runtime Integration

    • Models and budgets: The host agent, Tracker, and Compiler are all Claude Opus 4.7, with no additional training. OSWorld 2.0 uses 500 steps per task, with the agent using adaptive thinking, maximum effort, and a single-output cap of 16,000 tokens; Tracker 2,048, Compiler 8,192. BrowseComp-Plus uses 60 turns per task, with the agent output cap 32,000, and both Tracker and Compiler 8,192; the agent uses provider default effort, Tracker uses high effort, and Compiler has thinking disabled. Each scan allows at most 4 compilation requests (Table 7).
    • Triggering: On OSWorld 2.0, the Tracker is called when the estimated interaction text since the last scan or fold exceeds 6,000 tokens; the estimate is the number of characters in the text projection divided by 4, excluding thinking summaries. BrowseComp-Plus schedules by recorded prompt length growth: the initial trigger requires growth of 120,000 tokens, plus a 1,024-token margin, and there must be newly ingested retrieval results; if there are consecutive folds without a fold, the threshold doubles, up to six times, and resets after a successful fold.
    • Installation and retrieval: The adapter installs the committed view before the next agent call. OSWorld retains the initial task message, and the recent-image threshold for native image filtering is 10. BrowseComp-Plus uses BM25, at most 5 passages of 512 tokens each per call, with no full-text retrieval; the projection received at runtime contains document identifiers, ranks, scores, and the first 160 characters of each passage. If installation fails and the previous state can be verified, subsequent runtime interventions are turned off and execution continues; otherwise it stops with an error.
    • Prompt locations: Appendix D gives the system prompts for the Tracker, the three Compiler routes, Generic Summary, and CarryOn-Guided Summary.
  4. What experiments did the paper conduct?

    The authors state that CarryOn improves scores and reduces total tokens and cost on two long-horizon benchmarks.

    Experimental Setup

    • Host and auxiliary calls: The evaluated host agent is Claude Opus 4.7. Tracker and Compiler are the same model, with no additional training. On OSWorld 2.0 the agent uses adaptive thinking, maximum effort; on BrowseComp-Plus it uses adaptive thinking, provider default effort (Appendix A.3).
    • Benchmarks: Full OSWorld 2.0, release v2026.08.08; the authors state it covers seven occupational domains and 21 subcategories, with a median human completion time of about 1.6 hours. The paper does not give the number of tasks in the full evaluation set. BrowseComp-Plus uses a random 100 questions; this benchmark has 830 questions and a fixed corpus of 100,195 documents. The strategy comparison and ablations share the 40 OSWorld 2.0 tasks listed in Appendix B.1.
    • Comparisons: The main-result baseline is an agent with the same host, same action interface, same task budget, and no additional compression. Table 1 and Table 3 additionally list frontier model scores that are published or recomputed on the same 100 questions. The 40-task comparison also includes Sliding Window, Generic Summary (GS), and CarryOn-Guided Summary (CGS).
    • Metrics and judging: OSWorld 2.0 uses the official partial score and binary score. BrowseComp-Plus uses answer accuracy, with the final answer judged by Qwen3-32B according to the official grading prompt. Efficiency is tokens per task and nominal cost, including agent calls and context management calls.
    • Budget: OSWorld 2.0 uses 500 steps per task. BrowseComp-Plus uses 60 turns per task, BM25 returns at most 5 passages of 512 tokens each, with no full-text retrieval. The paper does not report the number of repeated runs.
    • Billing basis: The authors' own Claude Opus 4.7 runs are priced according to Appendix Table 8: uncached input 5.00, cache read 0.50, 5-minute cache write 6.25, 1-hour cache write 10.00, output 25.00, in USD per million tokens. The totals exclude evaluator, user simulator, and infrastructure costs. Appendix B.2 states that the costs for published models in Table 1 are estimates from the original evaluations.

    Main Results

    The table below lists only the authors' own runs of the same-host comparison. Scores come from Table 1 and Table 3; tokens and costs come from the per-task means in Table 2.

    Swipe horizontally to read the table

    BenchmarkMetricOpus 4.7 baselineCarryOnSource
    OSWorld 2.0partial (%)43.949.7Table 1
    OSWorld 2.0binary (%)15.719.4Table 1
    OSWorld 2.0total tokens (M)40.1019.30Table 2
    OSWorld 2.0total cost ($)36.8323.62Table 2
    BrowseComp-Plus 100 questionsaccuracy (%)49.0056.00Table 3
    BrowseComp-Plus 100 questionstotal tokens (M)1.561.20Table 2
    BrowseComp-Plus 100 questionstotal cost ($)1.891.76Table 2
    • Authors' statements about the scores: The Table 1 title says binary +3.7%, partial +5.8%, cost per task -35.9%. The abstract says improved gains of 5.8% and 7.0%; the introduction says partial went from 43.9% to 49.7% (+5.8%), and BrowseComp-Plus from 49% to 56% (+7%). The authors state that the scores on OSWorld 2.0 exceed other frontier models in Table 1. In that table, GPT-5.5 (xhigh) has partial 49.5% and binary 13.0%, and Claude Opus 4.8 (max) has 18.5% and 49.3%; the lowest published rows for binary and partial are Qwen 3.7-Plus (thinking), at 2.8% and 21.5%. The remaining published rows are in Table 1. Appendix B.2 states that among the published results, Claude used the native computer-use interface, the other models generated PyAutoGUI actions, and GPT-5.5 executed actions in batches.
    • Browsing references: Table 3 also lists, on the same 100 questions with BM25, GPT-5 52.00%, o3 50.00%, GPT-OSS-120B 41.00%. The authors state that CarryOn's score is also higher than these references. Appendix B.2 states that GPT-5 and o3 come from the benchmark authors' public BM25 runs, re-evaluated by the authors with Qwen3-32B; GPT-OSS-120B uses BM25 as the sparse retriever.
    • Cross-benchmark statement: The authors state that the two benchmarks show the same pattern, namely reducing context processing overhead while maintaining or improving the observed task performance.

    How Context and Cost Change over Trajectories

    • What was measured: In the OSWorld 2.0 resource comparison, trajectories are examined by agent turn for average input context and cumulative model cost (Figure 3, Section 4.3).
    • Results: The authors state that the baseline context keeps growing and eventually exceeds 200K tokens; CarryOn grows initially and then stabilizes at about 65K tokens, annotated in the figure as ~65K tokens. The authors state that the cumulative cost curves cross before turn 200; Figure 3 annotates this as Cost crossover ~150 turns. By turn 500, including context management overhead, cumulative cost is 34.1% lower.
    • Authors' interpretation: Savings accumulate as trajectories get longer, because longer trajectories do not have to repeatedly process a growing interaction history. Gray bars indicate the proportion of baseline trajectories still active.

    Comparison with Other Context Management Strategies

    • Setup: The same random 40-task subset, the same host Claude Opus 4.7, the same trigger conditions and step budget (Section 4.4, Table 4). Post-fold text length is the text after each installed fold and before the next observation is appended, in thousands of characters.
    • Results: Baseline has binary 22.50% and partial 50.32%. Sliding Window and GS have the shortest text, at 12.08 and 17.60, with binary 15.00% for both and partial 37.41% and 44.94%. CGS is 23.94, 20.00%, 50.93%. CarryOn is 21.54, 22.50%, 55.93%.
    • Authors' interpretation: The authors state that compressing history alone does not improve performance. CGS, which writes the same organizing principle as a text summary, recovers most of the loss. The authors state that relative to CGS, CarryOn's partial is 5.00% higher and its post-fold text is about 10% shorter; in Table 4 the two have partial 55.93% and 50.93%, and text 21.54 and 23.94. On this subset CarryOn's binary is the same as Baseline, at 22.50%.

    Carriers and Execution Context

    • Hidden component: In Table 5, on the same 40-task subset, one component is hidden from the host while its internal state is still retained at runtime. After removing execution context, binary is 17.50%, partial 44.00%, with 274.33 calls and $18.33 cost. The authors state that the change in calls is small: the carriers still expose completed progress, but the agent loses the accompanying goals, constraints, and unfinished requirements.
    • Removing carriers: partial is 44.62%, binary 25.00%, with 349.45 calls and $25.14 cost. The authors state that calls increase by 23.8% and cost by 22.3%, and state that without direct access to established progress, the agent must recover or redo prior results. Binary is 25.00%, while full CarryOn is 22.50%; the paper gives no explanation for this item.
    • Across folds and continuation: Figure 4(a) states that 80% of carrier observations are retained or updated rather than newly added; the figure also annotates 20.0%, 34.2%, and 45.8%. Appendix C.1 gives 494 committed and installed folds and 813 observations, of which 278 are retained, 372 updated, and 163 newly added, and states that 650/813 is about 79.95%, rounded to 80% in the figure. The authors suggest that explicitly maintaining records may help the agent continue from existing progress, and state that this is one possible explanation for the higher score than CGS. Figure 4(b) gives an example of directly continuing to use an existing form and saved exchange rates after a fold.

    Other Ablations and Analyses

    • Two examples in Figure 1: the slide task goes from 42.4K to 14.4K tokens (-66.0%); the experiment report task goes from 58.4K to 23.5K tokens (-59.7%). These are single-task illustrations, not full-benchmark averages.
    • Runtime overhead in Table 2: OSWorld is 0.69M tokens, $3.11; BrowseComp-Plus is 0.03M tokens, $0.14. Agent token reductions are 53.6% and 24.6%, and agent cost reductions are 44.3% and 14.4%.
    • Table 1's cost/task is written as $36.8 and $23.6; Table 2's mean total cost is $36.83 and $23.62. Both places write the reduction as 35.9%.
    • Appendix C.2: task 009 submits the filled form after a fold; task 013 extracts the directory again and rebuilds the price mapping after the carriers are hidden, whereas the full CarryOn run continues filling in according to the existing plan.
    • Appendix C.1: Figure 3 first computes per-turn means, then smooths with a Gaussian kernel with standard deviation 12 turns; the annotations on the figure come from unsmoothed data. Gray bars are sampled every 10 turns and show the proportion of baseline trajectories still active.
    • In Table 5, removing execution context costs $18.33 with 274.33 calls, while full CarryOn is $20.55 with 282.25 calls. The authors only state that the change in calls is small, and do not write the cost difference as a conclusion of this ablation.
  5. What are some points that can be further explored?

    The paper does not specifically discuss limitations; the evaluation states two benchmarks, a 40-task subset, and carrier statistics.

    Limitations and Future Directions Noted by the Authors

    The paper does not specifically discuss limitations. The text has no dedicated Limitations, Discussion, or Future Work section, and the conclusion does not write any design or result as a shortcoming or future work.

    Scope of Experimental Coverage

    • The main evaluation is full OSWorld 2.0 (v2026.08.08, 500 steps per task; the paper does not give the number of tasks) and a random 100 questions of BrowseComp-Plus (60 turns per task, BM25). The host agent, Tracker, and Compiler are all Claude Opus 4.7 (Section 4.1, Appendix A.3, B.1).
    • The strategy comparison and component ablations are conducted on the same 40-task subset, with comparisons against Baseline, Sliding Window, Generic Summary, CarryOn-Guided Summary, and hiding execution context or continuation carriers from the host respectively (Sections 4.4–4.5, Table 4, Table 5).
    • Input context and cumulative cost are aggregated by agent turn, for the OSWorld 2.0 trajectories in the resource comparison, shown up to turn 500 (Figure 3, Appendix C.1).
    • The carrier continuity statistics cover 494 committed and installed folds of CarryOn on OSWorld 2.0 (Appendix C.1).
    • The paper does not report the number of repetitions of task scores, nor the agreement between Qwen3-32B scoring and human judgment (Section 4.1, Appendix B.2–B.3).
  6. Summarize the main content of the paper

    CarryOn organizes long-horizon context around reusable task objects, and improves scores and reduces tokens on two benchmarks.

    CarryOn is a context runtime for long-horizon agents: continuation is organized around reusable task objects, rather than compressed interaction history.

    • Problem: Once progress is already in the environment or in records, the agent still repeatedly reads in the history of how that progress was produced. The authors argue that when selective narratives replace reusable results, continuation may deviate from state that can be directly checked and modified.
    • Approach: carriers bind reusable content or object references and their conditions of use; execution context retains goals, constraints, and pending items; live tail retains the interaction since the last successful fold. The Tracker selects candidates, the Grounder performs read-only checks, and the Compiler jointly updates; after at least one carrier change and passing validation, the current implementation folds in the entire live tail.
    • Main results: On OSWorld 2.0, Claude Opus 4.7 (max) goes from partial 43.9% to 49.7%, and binary from 15.7% to 19.4% (Table 1). Total tokens go from 40.10M to 19.30M, and total cost from $36.83 to $23.62 (Table 2). On the 100 questions of BrowseComp-Plus, accuracy goes from 49.00% to 56.00% (Table 3), total tokens drop 22.9%, and total cost drops 7.1%.
    • Comparisons: On the 40-task subset, Sliding Window and GS both have binary 15.00%, below Baseline's 22.50%; CarryOn has partial 55.93% and binary still 22.50% (Table 4). After removing execution context or carriers, partial is 44.00% and 44.62% (Table 5).
    • Authors' conclusion: The authors consider these results to support object-oriented context management: task objects carry established progress, and the explicit context changes with what still needs to be done.
Read originalhuggingface.co