← Wiki

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):

  1. 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.
  2. Architectural Constraints — layered domain architecture, directed dependencies validated by custom linters, parse at boundary (Zod/Pydantic), structural tests (ArchUnit-style), taste invariants.
  3. 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

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.

Sources

Related