Recursive Agent Harnesses
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Recursive language models (RLMs) showed that recursion over model calls is an effective strategy for long-context reasoning, and production coding agents have begun to write code that spawns subagents at scale, most recently in Anthropic's dynamic workflows. We name and study the pattern between these two lines of work, where the recursive unit is a full agent harness with filesystem tools, code execution, and planning rather than a model call with no tools. We call this the Recursive Agent Harness (RAH) and frame it as harness recursion, the code-first extension to the model recursion of RLMs. A parent agent generates and runs an executable script that spawns subagent harnesses in parallel for fine-grained workloads and uses structured function calls for small subtasks. We provide a controlled evaluation on long-context reasoning. With the backbone held fixed at GPT-5 to match the published Codex and RLM baselines, RAH improves the Codex coding-agent baseline from 71.75% to 81.36% on Oolong-Synthetic (199 samples, 13 context-length buckets up to 4M tokens), a gain attributable to the harness rather than the model. With a stronger backbone, Claude Sonnet 4.5, the same design reaches 89.77%.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 13 of its 28 references that are in the map. First posted on arXiv 11 Jun 2026.
Builds on
13 of 28 references.
Closest ancestors · 3
Same direction, newest first
- 2026Don't Break the Cache: An Evaluation of Prompt Caching for Long-Horizon Agentic Tasks9 Jan
- 2024Executable Code Actions Elicit Better LLM Agents1 Feb
- 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation16 Aug
Other references · 10
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,722
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,295
- 2023An LLM Compiler for Parallel Function Callingcited by 170
- 2024Can Long-Context Language Models Subsume Retrieval, RAG, SQL, and More?cited by 53
- 2025Minions: Cost-efficient Collaboration Between On-device and Cloud Language Modelscited by 17
- 2026Is Grep All You Need? How Agent Harnesses Reshape Agentic Searchcited by 17
- 2026Coding Agents are Effective Long-Context Processorscited by 11
- 2026The Y-Combinator for LLMs: Solving Long-Context Rot with λ-Calculuscited by 3
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Hierarchical Self-Improvement: A Framework for Task-Specific Evolvable Agent Harnessescited by 4
- 2026NVIDIA-labs OO Agents: Native Python Object-Oriented Agentscited by 3
- 2026SoL-Pi: Recursively Scaling Auto-Research Loops for Efficient Agent Harnesscited by 2
- 2026VidHarness: Evolving Agent Harnesses for Cost-Efficient Long Video Understandingcited by 0
- 2026VidHarness: Evolving Agent Harnesses for Cost-Efficient Long Video Understanding29 Sep 2026
- 2026SoL-Pi: Recursively Scaling Auto-Research Loops for Efficient Agent Harness17 Sep 2026
- 2026Hierarchical Self-Improvement: A Framework for Task-Specific Evolvable Agent Harnesses9 Aug 2026
- 2026NVIDIA-labs OO Agents: Native Python Object-Oriented Agents22 Jul 2026
Similar, not cited
Close in wording, no citation either way
- 2026Prime Agent: A Self-Improving RLM Harness
- 2026Recursive Harness Self-Improvement
- 2026Code as Agent Harness
- 2026Agent Lightning v1.0: Towards Harnessed Agentic RL
- 2026Harness Engineering: Anatomy, Architecture, and Evolution of Coding Agents -- A Source-Code Study of Eleven Systems
- 2026Credo: Reusable Declarative Primitives for Agentic Workflows
- 2026The Empire, Long Divided, Must Unite: Architectural Convergence in Three LLM Agent Harnesses
- 2026Recursive Agentic Reasoning