Why the environment around the model, not the model, now decides what ships.

Research report · August 2026
Why the environment around the model, not the model, now decides what ships
An agent harness is everything in the system except the model: the instructions it reads, the tools it can call, the checks its output must pass, and the record of what it did. This report traces where the term came from, examines the public evidence behind it, and sets out what a production harness contains. Written for engineering leadership; every substantive claim is linked to its source.
Inside
The discipline crystallized in one week of February 2026. Mitchell Hashimoto named the practice on February 5, OpenAI published its field report on February 11, and an independent benchmark on February 12 showed 15 models improving at coding when only the harness changed. Anthropic had described the underlying pattern in November 2025.
The evidence points one way: with model capability increasingly interchangeable, the environment around the model is where output quality, safety, and velocity are actually determined. OpenAI, Anthropic, and independent engineers reached that conclusion separately, from production experience rather than theory.
The teams shipping reliable agents are not the ones with the best prompts. They are the ones that made every agent mistake structurally impossible to repeat.
A large language model is a stateless function: tokens in, tokens out. It keeps no memory between sessions, cannot execute code or reach a file system on its own, and cannot verify its own output. Every useful agent product wraps that function in software that supplies what the model lacks. deepset's working definition is the cleanest: the harness is everything in an AI agent system except the model itself.
The practice sits above two better-known layers. Each answers a different question, and the newer layers do not replace the older ones.
Optimizes a single exchange: one instruction, one output. Tactical and turn by turn. Peak attention 2023 to 2024.
Manages what the model sees in one run: retrieval, memory, compaction. Rose to prominence mid 2025.
Designs the whole execution environment for multi-hour unsupervised runs: what the system blocks, measures, and repairs. Named February 2026.
Anthropic publishes Effective harnesses for long-running agents: an initializer agent sets up the environment once, then a coding agent makes incremental progress across context windows.
Mitchell Hashimoto, co-founder of HashiCorp, names the practice in My AI adoption journey: "Anytime you find an agent makes a mistake, you take the time to engineer a solution such that the agent never makes that mistake again." In Ghostty, nearly every line of AGENTS.md traces to one bad agent behavior; once added, the mistake almost never recurs.
OpenAI publishes Ryan Lopopolo's Harness engineering: leveraging Codex in an agent-first world, the field report that gave the discipline its formal name.
Can Bölük publishes The harness problem, improving 15 models at coding in one afternoon by changing only the edit format.
Anthropic follows with Harness design for long-running application development, formalizing planner, generator, and evaluator roles.
OpenAI merges Codex into the ChatGPT desktop app: one model family under three harnesses, Chat, Work, and Codex, on every plan including Free.
The strongest public datapoint. Starting from an empty repository in late August 2025, a team of three engineers, later seven, shipped an internal product with no manually written code. Five months in, the repository held on the order of a million lines and roughly 1,500 merged pull requests, an average of 3.5 PRs per engineer per day. OpenAI estimates the build took about a tenth of the time hand-written code would have. The product has hundreds of internal users; what it is has not been disclosed. Their operating philosophy: humans steer, agents execute.
What the team actually built, in their own account, was almost entirely harness:
OpenAI's own caveat: the end-to-end autonomy "depends heavily on the specific structure and tooling of this repository and should not be assumed to generalize without similar investment."
<div class="he-evidence-card">
<h3 id="can-boluk-15-models-one-afternoon-no-training">3.2 Can Bölük: 15 models, one afternoon, no training</h3>
<p>The cleanest controlled result. Bölük replaced the standard diff-based edit format with "hashline," which tags each line with a content hash, and benchmarked 3 runs of 180 tasks per model. The new format beat the standard patch format in 14 of 16 models tested; a v2 revision improved further in 12 of 16. The largest gain was GPT-5.1 Codex Mini, from 60.0% to 77.5% pass rate. Gemini gained 8 points, which he notes is <a href="https://blog.can.ac/2026/02/12/the-harness-problem/" target="_blank" rel="noopener noreferrer">"bigger than most model upgrades deliver, and it cost zero training compute"</a>, about $300 of benchmark spend in total. No weights changed. Only the harness did.</p>
</div>
<div class="he-evidence-card">
<h3 id="anthropic-surviving-the-context-window-boundary">3.3 Anthropic: surviving the context window boundary</h3>
<p>Anthropic's harness work targets the hardest structural problem in long-running agents: memory ends where the context window does. Its published pattern splits the run in two:</p>
<ul class="he-arrow-list">
<li>An initializer agent runs once: init script, git baseline, a JSON feature list, and a progress file that becomes the session-to-session log.</li>
<li>A coding agent then makes incremental progress each session, leaving a clean state at every boundary so the next window can resume.</li>
<li>The March 2026 follow-up adds planner, generator, and evaluator roles with structured handoff artifacts and verification gates.</li>
</ul>
</div>
The July 9 ChatGPT desktop app is the clearest product illustration of the idea. Its three modes run on the same GPT-5.6 model family and keep separate execution contexts. What changes between them is the weight of the harness.
System prompt, a small tool set (search, image generation, sandboxed Python), and safety filters on both directions. Built for turn-by-turn conversation.
Adds a planning loop, connectors into files and enterprise apps (Slack, Drive, SharePoint, calendars), approval checkpoints before high-risk actions, and scheduled background tasks.
Repo-aware coding agent: scoped sandbox, AGENTS.md ingestion, full terminal access with test and build feedback, diff generation and PR review. Same weights, autonomous developer.
Mode descriptions from OpenAI's July 9, 2026 release and contemporaneous coverage; capability lists per mode follow Srinivasan's breakdown.
Across the OpenAI, Anthropic, and practitioner accounts, the same five components recur. This is the layer diagram of the discipline.
Instruction files (AGENTS.md, CLAUDE.md) where the agent works. OpenAI's lesson: keep it a 100-line map into a docs/ tree, not an encyclopedia. Knowledge in Slack or Docs does not exist to the agent.
What the agent is permitted to do: edit files, run commands, query databases. A minimal, justified set; access to everything produces chaos, access to nothing produces nothing.
The engine of autonomy: linters, type checkers, and tests run after every edit, with errors fed back so the agent corrects itself before a human sees the output.
What the agent is not allowed to do: read-only paths, blocked commands, and the exact points where it must halt for human approval before a high-risk action.
Persistent state across sessions plus a structured log of every decision, tool call, and error. When a run fails, the log is the only way to reconstruct why.
Every major lab now ships a harness as a product, and the boundary between harness and model is itself becoming contested territory.
CLI, IDE extension, cloud tasks, and the desktop mode. The reference harness of OpenAI's own agent-first team: exec plans, AGENTS.md conventions, and self-review loops that iterate until agent reviewers are satisfied.
Hooks, subagents, and a built-in /goal generator-evaluator loop. Anthropic publishes its long-running-agent patterns as copyable primitives, including a default-FAIL completion contract and a fresh-context evaluator with no write tools.
Trained a separate fine-tuned 70B model whose entire job is applying draft edits to files. A harness component implemented as a model, which shows how far the layer has professionalized.
A popular open-source harness that Anthropic blocked from Claude Code subscriptions in early 2026. Bölük reads the move as a signal: the labs treat the harness, not just the model, as the product.
The Model Context Protocol is the connective standard between harnesses and external tools, adopted across vendors; the July 28, 2026 spec revision made it stateless.
For a team starting from zero, the practitioner consensus reduces to five moves, in order.
Establish a system of record. One page at the repository root: project structure, how to build, how to test, top conventions. Apply Hashimoto's rule: when the agent errs, write a permanent instruction instead of correcting it in chat.
Wire a verification loop. Linters, type checks, and tests run after every edit, with failures fed back automatically. For non-code output, a validation script that inspects format and accuracy.
Be deliberate about tools. Grant a minimal, justified set, and for each one ask what the worst thing the agent could do with it is, and what stops that.
Debug from logs, not guesses. Every failure names what is missing from the harness: an instruction, a test case, or a guardrail.
Ship one narrow loop. Pick a repetitive weekly task and build a complete small harness around it: a one-page instruction file, two or three tools, automated verification, and logging. Make it run end to end without intervention before scaling up.
One expectation to set with leadership: Hashimoto himself reports an agent running only 10 to 20 percent of his working day, a single agent rather than parallel fleets. The discipline compounds, but it starts small.
The story circulates widely, and some retellings drift from the primary sources. Four points worth pinning down:
Build grounded agents
See how lowtouch.ai turns enterprise rules, policies, and semantic context into governed agents running inside your appliance.
About the Author

Pradeep Chandran
Lead - Agentic AI & DevOps
Pradeep Chandran is a seasoned technology leader and a key contributor at lowtouch.ai, a platform dedicated to empowering enterprises with no-code AI solutions. With a strong background in software engineering, cloud architecture, and AI-driven automation, he is committed to helping businesses streamline operations and achieve scalability through innovative technology. At lowtouch.ai, Pradeep focuses on designing and implementing intelligent agents that automate workflows, enhance operational efficiency, and ensure data privacy. His expertise lies in bridging the gap between complex IT systems and user-friendly solutions, enabling organizations to adopt AI seamlessly. Passionate about driving digital transformation, Pradeep is dedicated to creating tools that are intuitive, secure, and tailored to meet the unique needs of enterprises.