Harness Engineering — development in the age of agents
Key Takeaways
Harness Engineering — designing environments where AI agents do reliable work. Humans steer, agents execute. Synthesized from three sources: OpenAI experiment (Ryan Lopopolo), Mitchell Hashimoto’s adoption journey, and Birgitta Böckeler’s analysis (Thoughtworks/Martin Fowler).
Core loop: agent mistake → fix the harness (not the prompt, not the model). Fix CLAUDE.md, add a linter, write a structural test. The repository IS the agent’s brain.
Sensors are the feedback half the three components lack: they check the agent after it acts. In solo-factory every edit gets a syntax check (<1s) and every turn ends with lint, types and tests, where a red receipt keeps the turn from ending; an empty scope reads UNKNOWN and a missing tool PARTIAL, never PASS. The limit is published: make blind-spots catches 11 of 24 planted defects. It is the agent-mistake-fix-harness ratchet run inside the turn, and plugin-eval-ablation applies the same rule to skills: trust only the with/without delta.
Three components (Böckeler/Fowler):
- Context Engineering — CLAUDE.md as table of contents (~100 lines, links deeper), docs/ as system of records, progressive disclosure. One big CLAUDE.md is an anti-pattern — pollutes context, rots instantly.
- Architectural Constraints — layered domain architecture, directed dependencies validated by custom linters, parse at boundary (Zod/Pydantic), structural tests (ArchUnit-style), taste invariants.
- Garbage Collection — golden principles in repo, recurring cleanup agents, doc-gardening agent, quality grades per domain. Tech debt as credit — pay continuously in small installments.
6 adoption steps (Hashimoto): drop chatbot → reproduce your work → end-of-day agents → outsource slam dunks → engineer the harness → always have agent running.
OpenAI numbers: 3→7 engineers, ~1M lines, ~1,500 PRs, 3.5 PR/engineer/day, 0 human code, ~10x speedup. Max single Codex run: 6+ hours.
Predictions: harness as new service templates, tech stack convergence toward AI-friendliness, topology convergence, two worlds (greenfield with harness vs retrofit on legacy).
Our implementation: solo-factory (73 skills and 2 agents as feedforward, plus the sensor layer), solograph (portfolio symbol search and session memory over SQLite FTS5), rust-code (AI terminal agent). Since 22 October 2026 a task registry (harness-registry, whose move it is on each open topic), and since November two parts still being broken in: the brain (company-brain, agents write back through capture and a nightly job reads the logs) and swarm (project-swarm, many workers behind a test gate). Map: agent-stack.
Connections
- solo-methodology — harness engineering is the foundational methodology
- stream-six-layers — harness = building an accurate map (epistemic layer 1) of the codebase
- privacy-as-architecture — architectural constraints parallel: decisions baked into structure, not features
- claude-code-anatomy — empirical measurement of the harness thesis: 98.4% infrastructure vs 1.6% AI logic in Claude Code v2.1.88
- deepeval-llm-testing — Component 2 (architectural constraints) extended to LLM outputs: ArchUnit for code structure, DeepEval for behavior
- commerce-agent-blueprint — Anthropic’s own production agent puts every guardrail in the harness, not the prompt: staged writes, server-issued ID allowlists, caps on resulting state, fenced third-party content
agent-native-format-choice — the same argument applied to generated video: a deterministic renderer makes a wrong output detectable without a human watching it, which is what stops review cost eating the generation saving.
-
See also: effect-ts-for-agents — Effect, the TypeScript reliability layer around execution, and when it is worth its learning curve.
-
See also: running-production-with-agents-2026 — a Rootly panel (PostHog, WorkOS, NVIDIA, Replit) on delegating by reversibility, three reviewers per PR, reviewing the spec instead of the diff, and an external governor on agent tool calls