Code as Agent Harness
Summary
This survey paper presents a unified view of code as the operational substrate for agent reasoning and execution in agentic systems, organizing the discussion around three layers: harness interface, mechanisms, and scaling.
View Cached Full Text
Cached at: 05/19/26, 06:30 AM
Paper page - Code as Agent Harness
Source: https://huggingface.co/papers/2605.18747 Authors:
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
Abstract
Large language models are increasingly used as operational substrates for agent reasoning and execution in agentic systems, with code serving as a unified infrastructure layer across multiple domains and applications.
Recentlarge language models(LLMs) have demonstrated strong capabilities in understanding and generating code, from competitive programming to repository-level software engineering. In emergingagentic systems, code is no longer only a target output. It increasingly serves as an operational substrate for agentreasoning, acting,environment modeling, and execution-based verification. We frame this shift through the lens ofagent harnesses and introducecode as agent harness: a unified view that centers code as the basis foragent infrastructure. To systematically study this perspective, we organize the survey around three connected layers. First, we study the harness interface, where code connects agents toreasoning,action, andenvironment modeling. Second, we examine harness mechanisms:planning,memory, andtool usefor long-horizon execution, together withfeedback-driven controlandoptimizationthat make harness reliable and adaptive. Third, we discuss scaling the harness from single-agent systems to multi-agent settings, where shared code artifacts supportmulti-agent coordination, review, and verification. Across these layers, we summarize representative methods and practical applications ofcode as agent harness, spanning coding assistants, GUI/OS automation, embodied agents, scientific discovery, personalization and recommendation,DevOps, andenterprise workflows. We further outline open challenges for harness engineering, including evaluation beyond final task success, verification under incomplete feedback, regression-free harness improvement, consistent shared state across multiple agents, human oversight for safety-criticalactions, and extensions to multimodal environments. By centering code as the harness of agentic AI, this survey provides a unified roadmap toward executable, verifiable, and stateful AI agent systems.
View arXiv pageView PDFGitHub17Add to collection
Get this paper in your agent:
hf papers read 2605\.18747
Don’t have the latest CLI?curl \-LsSf https://hf\.co/cli/install\.sh \| bash
Models citing this paper0
No model linking this paper
Cite arxiv.org/abs/2605.18747 in a model README.md to link it from this page.
Datasets citing this paper0
No dataset linking this paper
Cite arxiv.org/abs/2605.18747 in a dataset README.md to link it from this page.
Spaces citing this paper0
No Space linking this paper
Cite arxiv.org/abs/2605.18747 in a Space README.md to link it from this page.
Collections including this paper0
No Collection including this paper
Add this paper to acollectionto link it from this page.
Similar Articles
@rohanpaul_ai: This Meta + Stanford + Illinois survey paper argues that AI agents work better when code becomes their main working lay…
This survey paper from Meta, Stanford, and Illinois argues that AI agents perform better when code is used as their primary working layer, treating code as the environment for reasoning, action, and modeling. The authors introduce the concept of an 'agent harness' encompassing tools, memory, sandboxes, and feedback loops.
@AlphaSignalAI: https://x.com/AlphaSignalAI/status/2057153343081111582
A 100-page survey from UIUC, Meta, and Stanford introduces three harness layers (Interface, Mechanisms, Scaling) for AI agents, arguing that most agent failures stem from harness issues rather than reasoning flaws, and provides a taxonomy for auditing agent stacks.
@krystal_ning: Thanks for sharing our survey! We are also maintaining an Awesome Code as Agent Harness Papers repo for recent work on …
Krystal Ning shares a curated Awesome list repository of papers on code-centric agentic systems and harness engineering, accompanying a survey on 'Code as Agent Harness'.
@Potatoloogs: https://x.com/Potatoloogs/status/2057391224592667051
This article deeply analyzes the concept of Agent Harness, which is the engineering infrastructure wrapped around an LLM, including 12 components such as orchestration loops, tool calling, memory systems, context management, etc. The article cites practices from companies like Anthropic, OpenAI, and LangChain, arguing for the critical role of the harness in production-grade AI agents.
@janehu07: https://x.com/janehu07/status/2058359677843599494
This learning note introduces the concept of an agent harness as the infrastructure layer around an LLM, proposing the ETCLOVG taxonomy (Execution, Tooling, Context, Lifecycle, Observability, Verification, Governance) and demonstrating its application through a coding agent case study.