Long-Horizon Agency Belongs in the Harness, Not the Context Window Only
Yi Han, YUANYUAN XU, jusheng zhang, Wenhao Wang
NeurIPS page · Open on the map
Category: LLM Agents, Evals & Benchmarks › LLM Routing and Agent Evaluation · Type: position · Keywords: long-horizon agency, harness state management, context window scaling, AI agent architecture, checkpointing patterns, external state management
Areas: Memory › Agent Memory Systems › Agent Memory; Long Context › Long-context mechanisms › Agent memory representations; AI Agents › Agent Capabilities › Agentic RAG
Summary
The paper argues that durable long-horizon agency should rely on external harness state rather than merely expanding model context windows, and proposes eight harness state-management patterns to guide future research.
Explained to a 5-year-old
When a computer program works on a big job that takes a long time, it needs to remember what it is doing. Right now, people try to make the program remember a lot by giving it a huge memory inside its brain. But that memory can get full and forget things, just like a crowded notebook. The paper says we should instead write down the important steps in a separate notebook that the computer can look at later. This helps the computer finish big jobs without losing track of what it has already done.
Explained to a 5-year-old, longer
Imagine you are building a tower with blocks and you have to remember which block goes on top. If you only keep the picture of the tower in your mind, you might forget when you take a break. The paper talks about computer programs that do long jobs, like planning a trip for many days. These programs need to remember what they have done, what tools they used, and where they stopped. Right now, many people try to make the program remember everything by giving it a very big memory inside its brain. But that memory can get crowded and some information can get lost, just like when you try to remember too many birthdays. The authors say we should not rely only on that big memory; we should store the important information outside, like in a notebook or a file. This outside storage is called the "harness," which is like a toolbox that keeps track of plans, checkpoints, and sub-tasks. By using a harness, the program can save its progress after each step, similar to saving a document while you work. If something goes wrong, the program can go back to the last saved point, just like undoing a mistake in a game. The paper points out that many real-world systems already do this, for example, version control systems that keep old versions of code. Finally, the paper suggests eight helpful ways to organize this harness memory so that long-lasting tasks can be completed reliably.
For a technical reader
The paper argues that keeping an AI agent’s state across long tasks should not rely solely on expanding the model’s context window. Instead, it proposes externalizing state management into a “harness” that handles tools, files, plans, checkpoints, sub-agents, and recovery. By analyzing existing long-running systems, the authors identify five mismatches between context scaling and true long-horizon needs, such as loss of effective context and lack of transactional semantics. They then outline eight concrete patterns for organizing harness state, providing a roadmap for building more robust, checkpoint-friendly agents. The practical takeaway is that future agent designs should treat harness state as a first-class component, enabling reliable operation over hours or days without constant model-level context expansion.
Problem
Long-horizon agency requires preserving task state across extended periods and many tool calls, but current approaches conflate this need with simply scaling model context windows, which is insufficient for maintaining durable state.
Method
The approach analyzes existing long-running agent systems, identifies structural mismatches between context scaling and long-horizon requirements, and maps these to harness-managed state patterns. It then proposes eight patterns for organizing, checkpointing, and recovering state across tool calls and context resets.
Contributions
It clarifies the distinction between long context and long-horizon agency, identifies five structural mismatches, and introduces eight harness state-management patterns to guide future research.
Practical relevance
By externalizing state into the harness, the work enables more reliable and scalable long-horizon AI agents that can operate over hours or days without losing context.
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