Harness EngineeringAnatomy, Architecture, and Evolution of Coding Agents -- A Source-Code Study of Eleven Systems

Paul Barbaste, Tristan Darrigol, Germain Vu, Tom Wiltberger•View original
OverviewBalancedMaya & Miles hosts
Maya: Four million lines of code. Eleven real production systems — Claude Code, Codex Command Line Interface, Gemini Command Line Interface, and eight others. Not one imports a general-purpose agent framework. Not one uses vector embeddings to search code. When I read that, I had to go back and check I had not misread it. Miles: You hadn't. That's the finding that opens a new paper by Paul Barbaste, Tristan Darrigol, Germain Vu, and Tom Wiltberger. They conducted a source code anatomy of eleven production coding agents, and those two absences survived a full re-audit three months later. The field is not building the way most people assume. Maya: Walk me back to basics first. When I talk about a coding agent, I mean something like Claude Code — you describe a task, and it writes code, runs commands, and fixes errors. What exactly is a harness? Miles: The paper's definition is clear: an agent is a model plus a harness. The model supplies intelligence. The harness is the runtime that couples it to the world — the loop, the tools, the memory, the safety rules, and the extension surfaces. Without the harness, you have a very smart text predictor. Maya: The loop being the core of it. Miles: Right. The harness runs a cycle: ask the model what to do, execute the action, feed the result back, and then repeat. Barbaste and colleagues map this into seven canonical subsystems — agent loop, model integration, tool layer, context management, safety and permissions, multi-agent orchestration, and extensibility. They trace every one of those across all eleven systems in actual source code, not benchmark scores. Maya: So back to the absences. The no-frameworks finding — I would have expected at least some of these systems to use something like LangChain or LangGraph for the orchestration layer. These are production systems from serious teams. Why hand roll a loop when frameworks exist? Miles: The paper goes through it system by system. OpenHands uses asyncio. Claude Code and Gemini Command Line Interface use promise-based asynchronous JavaScript. Codex uses Tokio, Rust's asynchronous runtime. Aider uses synchronous Python. There's one partial exception: Aider has an optional llama-index add-on for searching its own documentation. But that's not orchestrating the agent loop; it's a retrieval add-on for documentation. Maya: What is the paper's explanation for why no one uses frameworks? Miles: Debugging and transparency. When an agent is modifying real source code, you need to inspect what it is doing and why. Framework abstractions can make the prompts and control flow harder to follow. The paper also points to a practical asymmetry: hand-rolled specificity is easier to audit than a dependency you do not fully control. Maya: That makes sense for the loop. But the absence of embeddings is what I would really emphasize. Retrieval-augmented generation, which involves encoding your codebase as vectors and retrieving semantically similar chunks, is a well-developed technique. These systems navigate large repositories. Why not use it? Miles: What do they actually do instead? Maya: Exactly what I'd want to know. Miles: Grep, ripgrep, glob, and file reads. Some systems ingest Markdown context files, such as AGENTS.md, that live in the repository and describe the codebase in plain text. Aider has a RepoMap, which is symbol-based and uses tree-sitter to parse code structure. Hermes uses ripgrep-backed search. The strategies differ, but the common thread is deterministic, local, file-based retrieval. Maya: Deterministic is the key word. The same grep and the same files. Miles: The paper argues that this matters for code specifically. The repository changes constantly, so an embedding index needs continuous maintenance. The re-audit three months later confirmed it: still no embeddings, still no frameworks. That starts to look like a deliberate production preference, not a gap. Maya: Fine. What do these systems actually look like on the inside? Miles: Three loop paradigms exist. Most run iterative loops: the model proposes an action, the harness executes it, and the result goes back to the model. Aider adds a reflection loop. After editing, it checks for lint errors and test failures, then asks the model to fix them, up to three times by default. Coordinator and worker setups add another layer: a parent agent delegates to child agents and assembles the results. Claude Code runs a structured sequence: Research, Synthesis, Implementation, Verification. Codex gives child agents separate threads and controls how much conversation history they inherit. Maya: Tool design is equally loaded, right? Miles: For file editing, Claude Code requires an exact unique text match to apply a change. Gemini Command Line Interface tries increasingly flexible matches, and if an edit still fails, it can call a separate large language model — an "edit fixer" — to repair it. Aider supports thirteen different edit formats. These aren't style preferences; they affect how often edits succeed on the first try. Maya: What about context management? Miles: A token is the unit of text the model processes, which is roughly three-quarters of a word on average, and the model can only hold so many at once. Gemini CLI starts compressing conversation history when it exceeds fifty percent of the model's token limit, preserving the most recent thirty percent verbatim. Claude Code summarizes history and then restores up to five relevant files after compression. Across the source differences from April to July, behavioral policy is migrating from prose into configuration. Codex's newest prompts dropped no-commit rules and anti-gold-plating directions in favor of feature flags. Mistral Vibe rebuilt its prompt around a seven-level precedence contract, tested with A and B versions on the server side. Maya: Why does that migration matter? If the behavior is the same either way, Miles: It's not necessarily the same, and that's the point. Prose is the model's interpretation of a rule. Configuration is the platform enforcing it. If you're auditing an agent's behavior for an enterprise customer, you need a policy that's inspectable and versionable. Configuration is. Maya: Okay, that I find convincing. Now the platform claim — this is the one I’m most skeptical of. The paper argues the coding harness completed a transition from tool to platform in the first half of 2026. What would I need to see? Miles: Extension ecosystems with real governance and distribution mechanisms. Nine of the eleven systems support SKILL dot md files. A skill is a directory containing a structured metadata file plus optional scripts. Six systems recognize the same shared discovery path, dot agents slash skills. That's a de facto standard that emerged without coordination. Eight of the eleven support the Model Context Protocol, or MCP, which is a wire protocol for connecting an agent to an external process that provides tools or data. Maya: Nine out of eleven for skills and eight for MCP. Those are real adoption numbers. Miles: Then there's ACP, the Agent Client Protocol, which describes an editor to agent boundary. It appears in six systems. Here's the finding the paper treats as structurally new: OpenHands now uses ACP to run Claude Code, Codex, or Gemini CLI as interchangeable backends. The protocol wasn't designed for harness hosting. Six systems are using it in that way. Maya: Hold on. One harness can run rival harnesses as subagents? Miles: That's what the paper documents. And then there's Omnigent — Databricks's meta-harness, which orchestrates multiple vendor harnesses behind a single application programming interface. Its registry includes twenty-three adapters and sixteen aliases across five integration modes. It adds shared policy and sandbox layers, but deliberately has no editing loop of its own. Maya: That's structurally different. That's not a plugin system; that's a coordination layer above the harnesses. Miles: The convergence data is what clinches it. Codex adopted Claude Code's hook event vocabulary verbatim. OpenHands adopted its plugin manifest format. OpenCode reads Claude Code's skills directory. Hermes's comments credit OpenCode, Codex, OpenClaw, and Goose by name for specific design choices. Deferred tool loading spread from one system to three. Read-only plan modes spread from two systems to all four provider native harnesses. Maya: Convergence becoming imitation. Miles: The paper's phrase. And it's traceable in the differences. A competitive distinctive now has a half-life measurable in weeks. That's what platforms do — they set the terms that other things copy. Maya: So, what do you actually build given all of this? Miles: The paper distills its findings into eighteen design recommendations and a ninety-line Python scaffold that includes four tools: bash, read, write, and search and replace, plus hierarchical Markdown context discovery and threshold-based compaction. It's explicit that this isn't production code — no sandboxing and no multi-agent orchestration. It's the floor. The counterintuitive recommendation is to start with a linear loop, not a reflective one, and to keep the toolset small. Add tools in response to observed failures, not in anticipation of them. Maya: The revision I'm sitting with is this. I walked in assuming serious production systems were built on top of frameworks. The evidence says they became the frameworks. That’s a real inversion. Miles: Barbaste and colleagues put it exactly that way. The harness is now the platform other things build on, and the source code is the proof. Maya: This lecture was created by ennepō. Go to https://ennepo.ai to Discover, Create and Follow the latest research in your field. Read when you can. Listen when you want to.
A

Four million lines of code. Eleven real production systems — Claude Code, Codex Command Line Interface, Gemini Command Line Interface, and eight others. Not one imports a general-purpose agent framework. Not one uses vector embeddings to search code. When I read that, I had to go back and check I had not misread it.

B

You hadn't. That's the finding that opens a new paper by Paul Barbaste, Tristan Darrigol, Germain Vu, and Tom Wiltberger. They conducted a source code anatomy of eleven production coding agents, and those two absences survived a full re-audit three months later. The field is not building the way most people assume.

A

Walk me back to basics first. When I talk about a coding agent, I mean something like Claude Code — you describe a task, and it writes code, runs commands, and fixes errors. What exactly is a harness?

B

The paper's definition is clear: an agent is a model plus a harness. The model supplies intelligence. The harness is the runtime that couples it to the world — the loop, the tools, the memory, the safety rules, and the extension surfaces. Without the harness, you have a very smart text predictor.

A

The loop being the core of it.

B

Right. The harness runs a cycle: ask the model what to do, execute the action, feed the result back, and then repeat. Barbaste and colleagues map this into seven canonical subsystems — agent loop, model integration, tool layer, context management, safety and permissions, multi-agent orchestration, and extensibility. They trace every one of those across all eleven systems in actual source code, not benchmark scores.

A

So back to the absences. The no-frameworks finding — I would have expected at least some of these systems to use something like LangChain or LangGraph for the orchestration layer. These are production systems from serious teams. Why hand roll a loop when frameworks exist?

B

The paper goes through it system by system. OpenHands uses asyncio. Claude Code and Gemini Command Line Interface use promise-based asynchronous JavaScript. Codex uses Tokio, Rust's asynchronous runtime. Aider uses synchronous Python. There's one partial exception: Aider has an optional llama-index add-on for searching its own documentation. But that's not orchestrating the agent loop; it's a retrieval add-on for documentation.

A

What is the paper's explanation for why no one uses frameworks?

B

Debugging and transparency. When an agent is modifying real source code, you need to inspect what it is doing and why. Framework abstractions can make the prompts and control flow harder to follow. The paper also points to a practical asymmetry: hand-rolled specificity is easier to audit than a dependency you do not fully control.

A

That makes sense for the loop. But the absence of embeddings is what I would really emphasize. Retrieval-augmented generation, which involves encoding your codebase as vectors and retrieving semantically similar chunks, is a well-developed technique. These systems navigate large repositories. Why not use it?

B

What do they actually do instead?

A

Exactly what I'd want to know.

B

Grep, ripgrep, glob, and file reads. Some systems ingest Markdown context files, such as AGENTS.md, that live in the repository and describe the codebase in plain text. Aider has a RepoMap, which is symbol-based and uses tree-sitter to parse code structure. Hermes uses ripgrep-backed search. The strategies differ, but the common thread is deterministic, local, file-based retrieval.

A

Deterministic is the key word. The same grep and the same files.

B

The paper argues that this matters for code specifically. The repository changes constantly, so an embedding index needs continuous maintenance. The re-audit three months later confirmed it: still no embeddings, still no frameworks. That starts to look like a deliberate production preference, not a gap.

A

Fine. What do these systems actually look like on the inside?

B

Three loop paradigms exist. Most run iterative loops: the model proposes an action, the harness executes it, and the result goes back to the model. Aider adds a reflection loop. After editing, it checks for lint errors and test failures, then asks the model to fix them, up to three times by default. Coordinator and worker setups add another layer: a parent agent delegates to child agents and assembles the results. Claude Code runs a structured sequence: Research, Synthesis, Implementation, Verification. Codex gives child agents separate threads and controls how much conversation history they inherit.

A

Tool design is equally loaded, right?

B

For file editing, Claude Code requires an exact unique text match to apply a change. Gemini Command Line Interface tries increasingly flexible matches, and if an edit still fails, it can call a separate large language model — an "edit fixer" — to repair it. Aider supports thirteen different edit formats. These aren't style preferences; they affect how often edits succeed on the first try.

A

What about context management?

B

A token is the unit of text the model processes, which is roughly three-quarters of a word on average, and the model can only hold so many at once. Gemini CLI starts compressing conversation history when it exceeds fifty percent of the model's token limit, preserving the most recent thirty percent verbatim. Claude Code summarizes history and then restores up to five relevant files after compression. Across the source differences from April to July, behavioral policy is migrating from prose into configuration. Codex's newest prompts dropped no-commit rules and anti-gold-plating directions in favor of feature flags. Mistral Vibe rebuilt its prompt around a seven-level precedence contract, tested with A and B versions on the server side.

A

Why does that migration matter? If the behavior is the same either way,

B

It's not necessarily the same, and that's the point. Prose is the model's interpretation of a rule. Configuration is the platform enforcing it. If you're auditing an agent's behavior for an enterprise customer, you need a policy that's inspectable and versionable. Configuration is.

A

Okay, that I find convincing. Now the platform claim — this is the one I’m most skeptical of. The paper argues the coding harness completed a transition from tool to platform in the first half of 2026. What would I need to see?

B

Extension ecosystems with real governance and distribution mechanisms. Nine of the eleven systems support SKILL dot md files. A skill is a directory containing a structured metadata file plus optional scripts. Six systems recognize the same shared discovery path, dot agents slash skills. That's a de facto standard that emerged without coordination. Eight of the eleven support the Model Context Protocol, or MCP, which is a wire protocol for connecting an agent to an external process that provides tools or data.

A

Nine out of eleven for skills and eight for MCP. Those are real adoption numbers.

B

Then there's ACP, the Agent Client Protocol, which describes an editor to agent boundary. It appears in six systems. Here's the finding the paper treats as structurally new: OpenHands now uses ACP to run Claude Code, Codex, or Gemini CLI as interchangeable backends. The protocol wasn't designed for harness hosting. Six systems are using it in that way.

A

Hold on. One harness can run rival harnesses as subagents?

B

That's what the paper documents. And then there's Omnigent — Databricks's meta-harness, which orchestrates multiple vendor harnesses behind a single application programming interface. Its registry includes twenty-three adapters and sixteen aliases across five integration modes. It adds shared policy and sandbox layers, but deliberately has no editing loop of its own.

A

That's structurally different. That's not a plugin system; that's a coordination layer above the harnesses.

B

The convergence data is what clinches it. Codex adopted Claude Code's hook event vocabulary verbatim. OpenHands adopted its plugin manifest format. OpenCode reads Claude Code's skills directory. Hermes's comments credit OpenCode, Codex, OpenClaw, and Goose by name for specific design choices. Deferred tool loading spread from one system to three. Read-only plan modes spread from two systems to all four provider native harnesses.

A

Convergence becoming imitation.

B

The paper's phrase. And it's traceable in the differences. A competitive distinctive now has a half-life measurable in weeks. That's what platforms do — they set the terms that other things copy.

A

So, what do you actually build given all of this?

B

The paper distills its findings into eighteen design recommendations and a ninety-line Python scaffold that includes four tools: bash, read, write, and search and replace, plus hierarchical Markdown context discovery and threshold-based compaction. It's explicit that this isn't production code — no sandboxing and no multi-agent orchestration. It's the floor. The counterintuitive recommendation is to start with a linear loop, not a reflective one, and to keep the toolset small. Add tools in response to observed failures, not in anticipation of them.

A

The revision I'm sitting with is this. I walked in assuming serious production systems were built on top of frameworks. The evidence says they became the frameworks. That’s a real inversion.

B

Barbaste and colleagues put it exactly that way. The harness is now the platform other things build on, and the source code is the proof.

A

This lecture was created by ennepō. Go to https://ennepo.ai to Discover, Create and Follow the latest research in your field. Read when you can. Listen when you want to.

Credits

  1. Source: Harness Engineering: Anatomy, Architecture, and Evolution of Coding Agents -- A Source-Code Study of Eleven SystemsPaul Barbaste, Tristan Darrigol, Germain Vu, Tom WiltbergerarXiv (Cornell University), 2026DOI: 10.48550/arxiv.2609.00006CC-BY 4.0

AI-generated lecture by ennepō.ai, adapted from the source above — restructured, summarized and explained. Not endorsed by the authors.

This lecture © ennepō.ai. See our Terms of Service.

Report a problem with this lecture

More in Computer Science →