The empirical anchor for the Harness Engineering discipline (the term itself was coined by @Vtrivedy10 and synthesised in Addy Osmani’s May 2026 post). From late August 2025 through early 2026, a small OpenAI team shipped roughly 1 million lines of production code in 5 months with zero manually-written code, every line generated by Codex agents driven by humans.

This is the most-cited concrete proof point for the Agent Harness thesis: when models are within a few points of each other on benchmarks, the harness around them dominates outcomes.

Headline numbers

MetricValue
Manually-written code0 lines
Total code written~1,000,000 lines
Time5 months (late Aug 2025 to early 2026)
Estimated speedup vs hand-written~10x
Pull requests merged~1,500
Team size at launch3 engineers
Team size at writeup7 engineers
Throughput3.5 PRs per engineer per day, increasing as the team grew
Single Codex-run durationup to 6 hours on one task
Repository genesisempty git init, no human-authored anchor code

The product had hundreds of internal users at OpenAI plus external alpha testers by the time of writeup.

The core philosophy

Key

Humans steer. Agents execute.
Engineers’ primary job stops being “write code” and becomes “design environments, specify intent, and build feedback loops that allow agents to do reliable work.”

The team imposed the no manually-written code rule as a forcing function. The constraint surfaced what the harness was actually missing: any time progress stalled, the answer was never “try harder”, it was “what capability is missing, and how do we make it both legible and enforceable for the agent?”

This is the operational version of the Agent Harness insight that the model is the driver, the harness is reactive infrastructure. You can only get reliability by shaping inputs (tools, context, constraints), never by overriding outputs.

Six load-bearing patterns

The post crystallises six concrete patterns that produced the throughput. Each has its own page in the vault for reuse outside OpenAI’s specific stack.

1. Repository as the system of record

The team tried the “one big AGENTS.md” approach and it failed. Their replacement: AGENTS.md is the table of contents (~100 lines), pointing into a structured docs/ tree that holds the actual knowledge. Design docs, execution plans, architecture docs, quality grades, and references all live versioned in the repo.

Failure modes of the encyclopedia approach:

  • Context is a scarce resource. A giant instruction file crowds out the task.
  • Too much guidance becomes non-guidance. When everything is “important”, nothing is.
  • It rots instantly. Agents cannot tell what is still true.
  • It is hard to verify. A blob does not lend itself to mechanical checks.

This pattern is captured in AGENTS.md Six Core Areas (updated with the table-of-contents discipline).

2. Agent legibility as the design goal

“From the agent’s point of view, anything it can’t access in-context while running effectively doesn’t exist.”

The team optimises the repo first for agent legibility, not human navigability. Knowledge in Slack, Google Docs, or people’s heads is invisible to Codex, so it is treated as if it does not exist. Aligning the team in Slack means nothing if it isn’t encoded in the repo.

This is the deepest principle in the post and it warrants its own treatment. See Agent Legibility.

Concrete consequences:

  • Prefer “boring” technologies (composable, stable APIs, well-represented in training data).
  • Sometimes reimplement small libraries (a p-limit clone with native OpenTelemetry instrumentation) rather than absorb opaque upstream behaviour.
  • Push every aligning conversation back into versioned markdown.

3. Layered domain architecture, mechanically enforced

Every business domain is divided into a strict set of layers with validated dependency directions:

Types -> Config -> Repo -> Service -> Runtime -> UI
                                        |
                                  Providers (auth, telemetry, feature flags)

Cross-cutting concerns enter through a single explicit interface (Providers). Custom linters (Codex-generated) and structural tests reject any other edge.

The team’s claim: this is the kind of architecture you normally postpone until you have hundreds of engineers, but with coding agents it becomes an early prerequisite because the constraints are what allow speed without decay.

See Layered Domain Architecture for AI Agents for the full pattern.

4. Custom lints that inject remediation into the agent’s context

When a custom lint fires, the error message is written specifically to feed back to Codex. The lint is not just a “no, stop”. It tells the agent what to do instead. This collapses the feedback cycle: agent writes code -> lint catches deviation -> agent reads remediation in the lint message -> agent fixes.

This pattern shows up in Agent-Computer Interface (ACI) as a special case of the “mistake-proofing” principle. The novel addition here is that the lints themselves are written by Codex.

5. Per-worktree application + observability stack

Every Codex task gets its own bootable instance of the app plus its own ephemeral observability stack (Vector -> Victoria Logs/Metrics/Traces). The agent can drive the UI via Chrome DevTools Protocol and query logs with LogQL, metrics with PromQL, traces with TraceQL.

Result: prompts like “ensure service startup completes in under 800ms” or “no span in these four critical user journeys exceeds two seconds” become tractable. The agent reproduces bugs end-to-end, validates fixes by driving the actual UI, and records a video showing the resolution.

This is the practical realisation of the Brain Hands Session Split sandbox-as-cattle principle: spin up a clean environment per task, tear it down when done.

6. Golden principles + recurring garbage collection

“Our team used to spend every Friday (20% of the week) cleaning up AI slop. Unsurprisingly, that didn’t scale.”

The fix: encode opinionated rules (“golden principles”) directly in the repo, then run recurring background Codex tasks that scan for deviations, update quality grades, and open targeted refactoring PRs. Most are reviewed in under a minute and auto-merge.

The frame: technical debt is a high-interest loan. Pay it down continuously in small increments rather than in painful bursts. Human taste is captured once, then enforced continuously on every line of code.

See Golden Principles and Garbage Collection.

Throughput changes merge philosophy

A consequence the post is explicit about: when agent throughput exceeds human attention, conventional norms become counterproductive.

  • Minimal blocking merge gates.
  • Pull requests are short-lived.
  • Test flakes get follow-up runs, not indefinite blocking.
  • Almost all review is agent-to-agent.

“In a low-throughput environment, this would be irresponsible. Here, it’s often the right tradeoff.”

This contradicts the conventional discipline most engineering teams operate under. The post does not argue for the same defaults everywhere. It argues that defaults must move with the throughput.

End-to-end autonomy threshold

By writeup, Codex can run end-to-end on a single prompt:

  1. Validate the current codebase state
  2. Reproduce a reported bug
  3. Record a video of the failure
  4. Implement a fix
  5. Validate by driving the app
  6. Record a video of the resolution
  7. Open a PR
  8. Respond to agent + human feedback
  9. Detect and remediate build failures
  10. Escalate only when judgment is required
  11. Merge

The post is careful: this depends heavily on the specific tooling of this repo and should not be assumed to generalize without similar investment. The threshold was earned, not granted by the model.

What this confirms about Agent Harness theory

This case study aligns with and provides hard numbers for several existing vault claims:

  • The 70/30 rule (Agent Harness “What Drives Harness Quality”): the 5-month / 1M-LOC / 0-hand-written-code outcome is what happens when you spend 100% of your engineering effort on the harness layer rather than on the application code.
  • Brain/hands/session split (Brain Hands Session Split): per-worktree app + observability is the cattle, not pets sandbox principle made concrete.
  • Long-running agents (Long-Running Agents): 6-hour single Codex runs are the practical existence proof for the discipline.
  • Ralph Loop (Ralph Loop): the OpenAI team explicitly cites Huntley’s Ralph Wiggum Loop as the pattern they use to drive PRs to completion.
  • Curse of Instructions (Curse of Instructions): the failure of the “one big AGENTS.md” is exactly the documented “adherence drops as constraint count grows” failure mode.
  • Spec-driven (Spec-Driven Development and Writing Specs for AI Coding Agents): execution plans as first-class checked-in artifacts, with progress and decision logs.

What this challenges

A few load-bearing assumptions get pushed back on:

  • Reimplementing small libraries. The “rewrite p-limit” decision is opinionated and pushes against decades of “use the library” instinct. It works because the agent owns end-to-end maintenance.
  • “No manually-written code” is a constraint, not a recommendation. OpenAI used the rule as a forcing function. They are not saying every team should adopt it. They are saying every team should ask “what capability is missing for the agent?” before reaching for the keyboard.

What’s still unknown

The post is honest about its limits:

  • Years-long architectural coherence in a fully agent-generated system is unproven. 5 months is short.
  • Where human judgment adds the most leverage is still being learned.
  • How models will reshape this as they get more capable is open.

Open Questions

  • What does the years-3-to-5 health of an agent-generated codebase look like? OpenAI cannot answer this yet.
  • What is the minimum harness investment to get half this throughput? OpenAI’s stack is heavy. Is there a 20% version that gets 80% of the result?
  • Where exactly should human judgment intervene in a fully autonomous loop? OpenAI flags “escalate to a human only when judgment is required” but does not give a taxonomy of when that fires.
  • Does this generalise to regulated industries (payments, healthcare, finance) where the “minimal merge gates” tradeoff is illegal, or does the legibility/GC half still pay even without the throughput half?