Harness Engineering with Code Agents

Build the environment around a coding agent (context, constraints, capabilities and feedback loops) so it ships reliable software, not plausible guesses.

The Guide as a PDF

Download the guide (PDF)

Primary Building Blocks

  • Part I, Foundations: An agent without a harness is a guess generator. An agent with a harness is a force multiplier.
  • Part II, Context Architecture: Context is the substrate of every agent task. If it's wrong, nothing downstream can recover.
  • Part III, Mechanical Constraints: If a rule matters, make it mechanical. Prose drifts, checks don't.
  • Part IV, Agent Capabilities: Skills are for workflows; docs are for knowledge. The wrong mechanism is worse than no mechanism.
  • Part V, Feedback Loops: The harness fails where you aren't looking.
  • Part VI, Operating Discipline: The repo outlives the session, the model, and the conversation.
  • Heuristics connects to Foundations.
  • Heuristics connects to Context Architecture.
  • Heuristics connects to Mechanical Constraints.
  • Heuristics connects to Agent Capabilities.
  • Heuristics connects to Feedback Loops.
  • Heuristics connects to Operating Discipline.
  • Read the twelve heuristics

The Companion Project

This site was built using these principles.

Browse the source on GitHub