---
title: "Harness engineering: leveraging Codex in an agent-first world"
description: "A small OpenAI team built and shipped an internal product of roughly a million lines over five months with zero manually written code, merging about 1,500 Codex-authored PRs at around 3.5 PRs per engineer per day, an estimated 10x faster than writing it by hand."
url: "https://swe.quest/articles/harness-engineering-leveraging-codex-in-an-agent-first-world-2c11ac81997bc6aa"
canonical: "https://openai.com/index/harness-engineering"
source: "OpenAI"
published: "2026-02-11"
difficulty: "medium"
kind: "Case study"
reading_minutes: 14
tags: ["ai-coding","ai-agents","developer-productivity","static-analysis","observability"]
---

# Harness engineering: leveraging Codex in an agent-first world

A post on [OpenAI](https://swe.quest/sources/openai.md), published 2026-02-11, 14 min read, Case study. Original: [https://openai.com/index/harness-engineering](https://openai.com/index/harness-engineering)

## Summary

A small OpenAI team built and shipped an internal product of roughly a million lines over five months with zero manually written code, merging about 1,500 Codex-authored PRs at around 3.5 PRs per engineer per day, an estimated 10x faster than writing it by hand. The engineers' job shifted to building the environment agents work in. Each git worktree boots its own app instance, the Chrome DevTools Protocol lets agents drive the UI, and a per-worktree ephemeral observability stack can be queried with LogQL, PromQL and TraceQL. A short AGENTS.md acts as a map into a structured, CI-validated docs/ directory instead of one giant instruction file. A rigid layered domain architecture is enforced by custom linters whose error messages carry remediation instructions for the agent.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)
- [Static analysis](https://swe.quest/tags/static-analysis.md) (Engineering practices)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)

## Prerequisites

- LLM coding agents ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- CI pipelines ([easy posts on CI/CD](https://swe.quest/tags/ci-cd.md?difficulty=easy))
- layered application architecture ([easy posts on System design](https://swe.quest/tags/system-design.md?difficulty=easy))

## Keywords

Codex, AGENTS.md, Chrome DevTools Protocol, GPT-5, LogQL, PromQL, Victoria Metrics, OpenTelemetry

## Related posts

- [Four minutes after midnight, Codex said the page was live](https://swe.quest/articles/four-minutes-after-midnight-codex-said-the-page-was-live-25ae19da11733480.md): Render · 2026-08-16 · Medium · 9 min read · AI for coding, AI agents, Code review, Developer productivity
  OpenAI's Dominik Kundel argues that with agentic delegation, code is no longer the bottleneck.
- [Agent-driven development in Copilot Applied Science](https://swe.quest/articles/agent-driven-development-in-copilot-applied-science-57df9b7433878456.md): GitHub Engineering · 2026-03-31 · Medium · 9 min read · AI for coding, AI agents, Developer productivity, Evaluation, Testing
  A Copilot Applied Science researcher built eval-agents, a set of Copilot SDK-based agents that automate analysis of coding-agent trajectories from benchmarks like TerminalBench2 and SWEBench-Pro, and developed it primarily through coding agents.
- [Agentic Engineering at Zalando: a snapshot](https://swe.quest/articles/agentic-engineering-at-zalando-a-snapshot-229726b7b6035a8d.md): Zalando Engineering · 2026-08-13 · Medium · 16 min read · AI for coding, AI agents, LLMs, Code review, Developer productivity
  Zalando's 2.5 years of agentic engineering across 250+ teams rest on a LiteLLM-based proxy fronting OpenAI, Bedrock and Vertex.
- [Beyond the Hype: How to Use AI to Actually Increase Your Productivity as a Dev](https://swe.quest/articles/beyond-the-hype-how-to-use-ai-to-actually-increase-your-productivity-as-a-dev-6c25eb43524a25ba.md): Docker · 2025-11-21 · Medium · 14 min read · AI for coding, AI agents, Developer productivity, LLMs
  Effective AI-assisted coding comes from applying classic engineering discipline in a four-phase loop: prompting, planning, producing and refining.
- [A Virtual Agent team at Docker: How the Coding Agent Sandboxes team uses a fleet of agents to ship faster](https://swe.quest/articles/a-virtual-agent-team-at-docker-how-the-coding-agent-sandboxes-team-uses-a-fleet-c083dfabe4b49d2c.md): Docker · 2026-05-01 · Medium · 12 min read · AI agents, AI for coding, CI/CD, Testing, Developer productivity
  Docker's Coding Agent Sandboxes (sbx) team runs a "Fleet" of seven autonomous Claude Code skill-based agent roles: build engineer, project manager, product owner, CLI tester, performance tester, upgrade tester and software engineer.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
