✷ Harness

AI Agent Harnesses, Read From Source

A reading path through agent harnesses, from the source outward. Every claim is pinned to a file and a commit you can open.

Foundations

  1. What a Harness Actually Is, in 190 Lines of Code

    The word harness is everywhere now, and almost nobody points out that it names two things at once: the program that runs the loop, and the files you prepare for it inside your own repository. Keep those fused and every harness article you read will, at some point, stop lining up. This one pulls them apart using the main loop of mini-swe-agent — 190 lines, short enough to read in one sitting, and each of the five subsystems (instructions, tools, environment, state, feedback) lands on a line number you can point at.

  2. Writing a pi extension that tells you when the agent is done

    I keep switching away while pi works. It's a long edit, or a test suite, and there's nothing to watch, so I go read something else. Then I come back to a prompt that finished four minutes ago. The other direction is worse: it died on a rate limit right after I looked away, and I found out much later.

  3. Choosing an open-source coding agent: agent, workbench, or skill pack?

    Three things get sold under one name. They don't substitute for each other, and mixing them up is why every shortlist you build feels wrong.