AI summary · arXiv: 2609.00006v1 · cs.SE

Harness Engineering: Anatomy, Architecture, and Evolution of Coding Agents -- A Source-Code Study of Eleven Systems

Paul Barbaste, Tristan Darrigol, Germain Vu, Tom Wiltberger
Original paper Submitted to arXiv on 15 Jul. 2026 83 pages, 7 figures, 18 tables. Second, substantially expanded edition of an April 2026 study: corpus grown from eight to eleven systems plus a meta-harness contrast point; the retained April snapshots provide a controlled longitudinal comparison License: CC BY 4.0

How to read this summary? Illustrated guide

The essentials

The paper maps the architecture and evolution of eleven coding-agent harnesses, arguing that they are shifting from tools into platforms.

Question

What components define a production coding-agent harness, how do leading systems implement them, and how is the harness layer evolving? The study also examines whether common architectural patterns or notable absences emerge across systems.

Method

The authors conduct a source-code comparison of eleven harnesses pinned to July 2026 releases, analyzing seven subsystems: the agent loop, LLM integration, tools, memory and context, safety, orchestration, and extensibility. They also compare retained April 2026 snapshots for eight systems to study change over one quarter; Omnigent is included as a meta-harness contrast point.

Findings

  • Result Across the studied runtimes, the authors found no use of general-purpose agentic frameworks or embedding-based code retrieval.
    See the passage in the paper
    Two absences survive a threefold corpus expansion: across roughly four million lines of Python, TypeScript, and Rust, no agent runtime imports a general-purpose agentic framework (LangChain, LangGraph, AutoGen, or a dozen others; Gemini CLI uses neither of Google’s own), and none retrieves code with vector embeddings; the field runs on hand-rolled async loops and deterministic retrieval (ripgrep, tree-sitter, glob, auto-discovered Markdown context files).
  • Result SKILL.md skills were more widely adopted than MCP in the corpus, while ACP appeared in six systems and took on a harness-hosting role.
    See the passage in the paper
    The extensibility standards resolved: SKILL.md skills lead MCP in adoption (9/11 vs. 8/11), with registries, trust tiers, and the corpus’s first agent-authored skills; ACP ships in six systems and acquired a third role, harness hosting, with OpenHands running Claude Code, Codex, or Gemini CLI as interchangeable backends.
  • Result The quarter-long comparison found signs of imitation between harnesses and a shift of behavioral policy from prompts into configuration.
    See the passage in the paper
    The diff shows convergence becoming imitation (Codex adopts Claude Code’s hook vocabulary verbatim and ships an importer for its sessions and settings; OpenHands reads Claude Code’s plugin format), while behavioral policy migrates from prompt prose to configuration, and three of the April edition’s observations required substantive revision in place.
  • Authors’ interpretation The authors interpret new SDKs, marketplaces, governance features, and meta-harness orchestration as evidence that the harness layer is becoming a platform.
    See the passage in the paper
    These threads converge on the paper’s thesis: in the first half of 2026 the coding harness completed a turn from tool to platform.

Limitations

  • The study includes a circulated Claude Code source snapshot from March 2026, which may not reflect the July 2026 shipping binary.
    See the passage in the paper
    Claude Code cells here and in the other July-dated tables reflect the March-2026 source snapshot, the newest source available to us; the shipping binary (2.1.206, July 2026) may differ.
  • The paper cautions that the compared benchmark figures are self-reported and use different models and configurations, limiting direct comparison.
    See the passage in the paper
    The April edition of this study tabulated SWE-Bench Verified scores per system. We have removed them from the comparison table: the available figures are self-reported, obtained on different model generations and configurations, and several predate the systems’ current defaults.
  • The corpus is a selected sample rather than a census of the field; the authors report that a July 2026 sweep identified many additional maintained harnesses.
    See the passage in the paper
    A market sweep conducted for this revision (July 2026) identified over two dozen actively maintained coding-agent harnesses beyond the systems analyzed here; Table 2 lists the most significant.

Why it matters

The authors present the study as a source-grounded reference anatomy for harness engineering, connecting implementation choices across production systems rather than ranking them by benchmark scores. They argue that the harness layer is becoming platform infrastructure, with SDKs, marketplaces, governance, cross-harness interfaces, and meta-harnesses emerging around it.

Written by AI from the paper. Passages are checked word for word against the text we analysed; the rest may contain errors.

AI-generated keywords: coding agents software architecture agent harnesses developer platforms source-code analysis

Read further

  • Comprehensive Summary
  • Layman's Summary
  • Blog article
  • Original abstract
The paper examines what production coding-agent “harnesses” consist of, how their architectures differ, and whether a harness has evolved from a tool into a platform. It defines a harness as the runtime surrounding a language model, including the agent loop, model integration, tools, memory and context management, safety and permissions, orchestration, and extension mechanisms. The authors also investigate how these systems changed over one quarter and what that development suggests about the field’s direction. The study analyzes the source code of eleven systems: provider products such as Claude Code, Codex, Gemini CLI, and Mistral Vibe, as well as open-source projects including OpenHands, Aider, Mini-SWE-Agent, Hermes, Pi, OpenCode, and OpenClaw. Omnigent, which orchestrates other harnesses rather than implementing its own editing loop, provides a contrast case. The systems were pinned to July 2026 releases. Eight had also been examined in an April edition, allowing a source-level comparison over roughly ninety days. The analysis organizes implementations into seven subsystems and catalogs 29 recurring patterns. It is descriptive, not a head-to-head performance benchmark. The systems vary greatly in scale and design. Mini-SWE-Agent implements all seven subsystems in roughly 100 lines, using a linear loop and a single bash tool. The largest systems have codebases hundreds of thousands or even more than a million lines long. The study argues that loop sophistication does not predict benchmark performance. It cites self-reported SWE-Bench Verified results of 74% or higher for Mini-SWE-Agent and 77.6% for OpenHands, while noting that the figures come from different models, configurations, and evaluation runs and therefore cannot support a direct ranking. Much of production engineering instead focuses on safety, usability, reliability, cost control, and integration. Seven of the eleven systems use threshold-triggered LLM compaction. Persistent memory has also become a point of differentiation, ranging from Codex’s agent-maintained memory pipeline to Gemini CLI’s user-reviewed memory inbox. Two patterns were absent across the roughly four million lines examined: no agent runtime imports a general-purpose agentic framework such as LangChain, LangGraph, or AutoGen, and none uses embedding-based retrieval over source code. Instead, systems rely on hand-built loops and deterministic methods such as ripgrep, glob, tree-sitter, and Markdown context files. Skills have become the more widely adopted extension standard: nine of the eleven systems support SKILL.md-style skills, compared with eight that support MCP. ACP appears in six systems, enabling editor integration and, increasingly, one harness to host another. Changes over the quarter also show features spreading between systems: Codex adopted Claude Code’s hook vocabulary, OpenHands adopted its plugin format, and several systems added deferred loading, planning modes, or approval classifiers. The authors conclude that coding harnesses have undergone a platform turn. They cite importable SDKs, marketplaces and skill registries, cross-vendor session importers, enterprise governance, agent endpoints, and Omnigent’s meta-harness as evidence that competition now encompasses ecosystem features as well as agent loops. The paper offers 18 design recommendations and a starter scaffold of roughly 90 lines. The study’s main limitations are its reliance on source inspection rather than runtime measurements, the absence of shared-task testing, and the use of partly self-reported benchmark figures. Claude Code is analyzed using a circulated source snapshot rather than an official source release. The authors also caution that alignment with published engineering advice does not establish causation and that findings about rapidly changing systems may quickly become outdated.

Was this synthesis useful?

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

Figures and plots

Ask about a figure by number or use its question button to request visual analysis. Up to two figures and four image panels per question. Values read from plots are approximate; check the original data.

AI assistant instructions?

Tools for this paper

Explain it differently 1 free rewrite left today
Save to a collection Group papers in collections to compare them, chat with them and export them. Continue with Google Create a free account Log in

Advanced tools Premium

For researchers who follow a field closely: citation alerts, journal-club slides, version comparison and Zotero export. Discover Premium

Zotero Zotero guide
Citation alerts 19 papers already cite it: be emailed each new one. Citation alerts guide
Weekly letter The latest letter of its field, "Computing beyond AI this week" of 23 November 2026: Computing beyond AI this week: The hidden limits of shared machines · Receive one by email for free

Papers around this one

See them on a map

Ranked by how close their title and abstract are to this paper’s. Select some to read them together.

Closest papers

  1. Very close Another approach to the problem
    Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnesses
    Jiahang Lin, Shichun Liu, Chengjun Pan et al. · 2026 · Computation and Language · preprint, not peer reviewed · cited 194 times · AI summary available

    Agentic Harness Engineering automates harness evolution through component, experience, and outcome observability, while this paper compares production harness source code and evolution.

    Abstract

    Harnesses are now central to coding-agent performance, mediating how models interact with tools and execution environments. Yet harness engineering remains a manual craft, because automating it faces a heterogeneous action space across editable components, voluminous trajectories that bury actionable signal, and edits whose effect is hard to attribute. We introduce Agentic Harness Engineering (AHE), a closed loop that addresses these challenges through three matched observability pillars: (1) component observability gives every editable harness component a file-level representation so the action space is explicit and revertible; (2) experience observability distills millions of raw trajector…

  2. Very close Review
    Code as Agent Harness
    Xuying Ning, Katherine Tieu, Dongqi Fu et al. · 2026 · Computation and Language · preprint, not peer reviewed · cited 63 times · AI summary available

    Code as Agent Harness surveys code-centered harness infrastructure, while this paper empirically analyzes production coding-agent implementations.

    Abstract

    Recent large language models (LLMs) have demonstrated strong capabilities in understanding and generating code, from competitive programming to repository-level software engineering. In emerging agentic systems, code is no longer only a target output. It increasingly serves as an operational substrate for agent reasoning, acting, environment modeling, and execution-based verification. We frame this shift through the lens of agent harnesses and introduce code as agent harness: a unified view that centers code as the basis for agent infrastructure. To systematically study this perspective, we organize the survey around three connected layers. First, we study the harness interface, where code c…

  3. Very close Broader context
    What makes a harness a harness: necessary and sufficient conditions for an agent harness
    Sanderson Oliveira de Macedo · 2026 · arXiv.org · preprint, not peer reviewed · cited 7 times · Not summarized yet

    What makes a harness a harness defines necessary and sufficient boundaries for agent harnesses, while this paper maps their components and implementations.

    Abstract

    The term agent harness now circulates widely in software engineering with generative artificial intelligence. It names the layer that wraps a language model and turns it into a coding agent able to act on a repository. The usage is loose and polysemous. Sometimes the term denotes the whole product (Claude Code, Codex CLI); sometimes it denotes the evaluation scaffold that runs an agent against tasks (the SWE-bench harness); sometimes it gets conflated with an agent framework, an SDK, an IDE plugin, or an orchestrator. What is missing is a reference definition that works as an instrument, one that includes and excludes cases consistently. We build that definition through a conceptual analysis…

  4. Very close Review
    Harness Engineering for AI Coding Agents: Emerging Practices and Principles
    Hua Zheng, Cheng Wen, Muhammad Sadiq et al. · 2026 · 2026 10th International Conference on Electronic Information Technology and Computer Engineering (EITCE) · cited 1 time · Not summarized yet

    Harness Engineering for AI Coding Agents synthesizes emerging practices and principles, while this paper compares eleven systems’ source code.

    Abstract

    As LLM-based coding agents transition from research prototypes to production tools, practitioners are discovering that system reliability depends less on model capability than on the engineering of the surrounding environment. A nascent discipline, harness engineering, has emerged to address this gap, encompassing the design of constraints, feedback loops, context management strategies, and verification mechanisms that govern how coding agents operate within real codebases. However, current knowledge remains fragmented across blog posts, technical reports, and isolated case studies, with no unified framework to guide practitioners or researchers. In this paper, we synthesize early industry p…

  5. Very close Another approach to the problem
    Natural-Language Agent Harnesses
    Linyue Pan, Lexiao Zou, Shuo Guo et al. · 2026 · Computation and Language · preprint, not peer reviewed · cited 67 times · AI summary available

    Natural-Language Agent Harnesses encodes run policy in executable documents interpreted by a shared runtime, unlike this paper’s source-code comparison of harnesses.

    Abstract

    Agent performance is strongly shaped by the surrounding harness: the external execution system around a model that organizes a task run. Yet this logic is usually buried in tightly coupled controller code, which makes harnesses hard to inspect, compare, transfer, and ablate. This paper asks whether the reusable design pattern of an agent harness can be represented as an executable natural-language object. We introduce Natural-Language Agent Harnesses (NLAHs), editable documents that describe run-level harness policy, and Intelligent Harness Runtime (IHR), a shared runtime that interprets these documents into agent calls, handoffs, state updates, validation gates, and artifact contracts. Acro…

  6. Very close Same question Cites this paper
    Doc2Harness: Benchmarking LLMs on Long-Horizon Harness Engineering of Coding Agents
    Yuyao Ge, Sheng-Hua Liu, Pei-Zhong Gao et al. · 2026 · Not summarized yet

    Doc2Harness benchmarks how well models construct coding-agent harnesses, drawing on a development document covering twelve harnesses, while this paper studies their implementations.

    Abstract

    Agents driven by large language models are increasingly deployed on long-horizon tasks, where they use tools and modify real workspaces. How well they perform depends as much on the harness around the model as on the model itself. Existing benchmarks measure downstream task success under a fixed harness, leaving harness engineering itself unexplored. We propose Doc2Harness, a two-stage benchmark that evaluates long-horizon harness engineering directly. In Stage 1, a build model operating inside a fixed builder harness receives an interface-only contract skeleton and a development document that consolidates behavior across twelve frontier harnesses, and then constructs a complete candidate ha…

  7. Very close Another approach to the problem
    Self-Harness: Harnesses That Improve Themselves
    Hangfan Zhang, Shao Zhang, Kangcong Li et al. · 2026 · Computation and Language · preprint, not peer reviewed · cited 152 times · AI summary available

    Self-Harness has agents iteratively improve their operating harnesses, while this paper documents existing systems and their changes over a quarter.

    Abstract

    The performance of LLM-based agents is jointly shaped by their base models and the harnesses that mediate their interaction with the environment. Because different models exhibit distinct behaviors, effective harness design is inherently model-specific. Yet agent harnesses are still largely engineered by human experts, a paradigm that scales poorly as modern LLMs become increasingly diverse and rapidly evolving. In this paper, we introduce Self-Harness, a new paradigm in which an LLM-based agent improves its own operating harness, without relying on human engineers or stronger external agents. We operationalize Self-Harness as an iterative loop with three stages: Weakness Mining, which ident…

  8. Very close Review Cites this paper Uses this paper in depth
    Harnesses That Improve Themselves: A Unifying Framework for Self-Improving Agent Harnesses
    D. Shah, Nehal Kathrotia · 2026 · Not summarized yet

    Harnesses That Improve Themselves presents a framework for self-improving harnesses, while this paper catalogs production harness architectures and their evolution.

    Abstract

    Whether a foundation model succeeds as an autonomous agent depends as much on its runtime software as on its weights. This runtime, the agent harness, manages context and memory, steers multi-turn control, executes tool actions in sandboxes, and verifies work before stopping. Because models differ in how they use tools and how they fail, a static harness tuned for one model or task often stalls, wastes tokens, or regresses on another. This bottleneck has driven a shift from prompt tuning to self-improving agent harnesses: systems that inspect their own execution traces, separate runtime bugs from model limits, and rewrite their own code. We present a unifying architectural and design framewo…

Papers that cite it

  1. Close Broader context Uses this paper in depth
    Beyond the Agent Harness: Boundary Criteria for Software-Factory Orchestration - A Single-Operator Case Study
    L. Hua · 2026 · Not summarized yet

    Beyond the Agent Harness distinguishes run-level harness mechanisms from factory orchestration, a boundary relevant to this paper’s harness subsystem analysis.

    Abstract

    Several recent systems add a layer above the coding-agent harness that organises many agent runs into continuous delivery. The existence of such a layer is not our contribution. What is missing is a rule for deciding which layer a mechanism or a failure belongs to. We propose boundary criteria based on an operational definition of a run. A mechanism confined to one run belongs to the agent harness. One that coordinates runs, hands state from one run to a later one, or is updated from run outcomes belongs to a factory harness. One that must change with the application domain belongs to the domain layer. Two residual tests assign infrastructure and model causes. For failures, we code where the…

  2. Close Another approach to the problem
    Trial by Trace: Benchmarking AI Agent Harnesses for Reliability and Failure Attribution
    Zhi-Yong Cao, Heng-Jie Zhu, Yong-Xin Wang et al. · 2026 · cited 2 times · Not summarized yet

    Trial by Trace evaluates harness reliability through executable tasks across seven components, while this paper compares harness source code and design patterns.

    Abstract

    LLM agents are increasingly used to solve real-world problems, and their effectiveness depends on both the underlying models and the harnesses that support their operation. However, most existing benchmarks focus on model capabilities and overall agent performance, with limited attention to the evaluation of agent harnesses. To address this gap, we introduce TraceTrial-Bench, which organizes harness reliability into seven components covering context, execution, governance, lifecycle, observability, tools, and verification. We construct 95 expert-level, mechanism-oriented tasks with executable or state-based ground truth to support semantically equivalent comparisons while preserving the nati…

  3. Close Same question
    When Routine Operations Break Architectural Pattern Relationships in LLM Agent Harnesses
    Bo-Ming Xia, Qing-Hua Lu, Dino Sejdinovic et al. · 2026 · Not summarized yet

    When Routine Operations Break Architectural Pattern Relationships examines how operations alter patterns in released harnesses, while this paper catalogs harness patterns and implementations.

    Abstract

    LLM agent harnesses distribute tool mediation, state management and safety guardrails across native services, independently written plugins and configuration. Routine operations can change the runtime order or retained state that architectural pattern relationships require, without any code change. We study five relationships associated with the Guardrail Enforcement Point, Autonomy Controller and Blackboard patterns across five released harnesses, analysing a main sample of fourteen independently written plugins. Using PatternOps, our assessment procedure, we trace requirements from pattern descriptions, provider documentation and deployment profiles to the providers that realise them and t…

  4. Related Broader context Uses this paper in depth
    Software Engineering in the Agent Era From Trustworthy Change to Human Agent Software Organizations
    Zhong-Jie Wang, Ming-Yi Liu · 2026 · arXiv.org · preprint, not peer reviewed · Not summarized yet

    Software Engineering in the Agent Era frames governance of delegated software work, a broader organizational topic than this paper’s coding-agent runtime analysis.

    Abstract

    Software agents make digital execution elastic: repository analysis, code generation, testing, migration, tool use, and operations can be replicated and parallelized without proportional human headcount. Problem framing, semantic commitment, verification, integration, attention, and residual-risk acceptance remain bounded by human cognition, organizational authority, and economic capacity. How should scalable execution be governed so organizations can accept and sustain its changes? Our testable framework has two constructs and one execution abstraction. Trustworthy Change (TC) is the engineering object moving from intent through delegated execution, verification, integration, acceptance, an…

  5. Close Same question
    Hidden in Plain Sight: an Empirical Study about The Instruction Stacks of Coding Agents
    Felipe de Sant'Anna Paixão, Dhyego Tavares, E. Almeida et al. · 2026 · Not summarized yet

    Hidden in Plain Sight studies instruction-stack composition and release-to-release changes in coding agents, overlapping this paper’s analysis of harness evolution.

    Abstract

    Coding agents send their models more than the user's prompt: they add instructions, tool definitions, and environmental context that form an instruction stack. This stack guides execution and changes across releases, yet remains largely unexposed to users and insufficiently characterized in research. We present a longitudinal, cross-agent study of the instruction stacks captured in the first model requests of 1,886 releases of Claude Code, Codex, Gemini CLI, Qwen Code, and OpenCode. Under controlled conditions, we analyze their composition and evolution and trace changes in the four open-source agents to documented motivations. Our findings show why examining the system prompt or reporting t…

How are these papers found?

We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.

Updated on 25 November 2026.

The illustrated guide to the papers around a paper

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.