The Harness: Two Open-Source Designs for Turning LLMs into Agents
The harness layer determines whether an AI coding agent actually delivers results: a well-designed interface can produce a ninefold improvement in SWE-bench solve rates without changing the model. Two major open-source harnesses now show opposite design tradeoffs, and understanding them is decisive for developers building or extending agent tools.
This piece explains what a harness is and why it matters for AI coding agents. The same LLM that only answers prompts in a chat box can modify files, run commands, and work for dozens of rounds when placed in a Coding Agent; the difference is the harness—all the code around the model that gives it hands, memory, and boundaries. The essential components include the agent loop (Think, Act, Observe), context assembly from four sources, an append-only session log as the single source of truth, and the agent-computer interface (ACI) that determines how well the model can act. Evidence from SWE-agent shows the same GPT-4 Turbo can go from a 1.31% to 12.47% solve rate on SWE-bench just by redesigning the interface.
The article then contrasts two open-source harnesses. DeepSeek Harness (dsh) follows "Everything is a Plugin": no privileged core, the loop itself is replaceable, and components are composed via a layered plugin tree with profiles and patches. pi takes the opposite tack: a fixed minimal core with only four extension points, deliberately omitting sub-agents and plan mode. The debate is not about whether to extend, but where to draw the boundary of composition—dsh bets on operating-system-like composability, pi on editor-like defaults and restraint. Finally, the piece argues that model capability sets the ceiling while the harness sets the success rate; mini-swe-agent's 100-line harness achieving over 74% on SWE-bench Verified shows that a strong model can make the harness very thin.
The SWE-agent result shows that interface design can matter more than model selection for coding benchmarks, meaning harness engineering is a high-leverage investment.
Both DeepSeek Harness and pi converge on session logs as the single source of truth, indicating that durable append-only persistence is a universal requirement for agent harnesses.
The philosophical split between plugin-everything and minimal-core is not about whether to extend but about where to place the boundary of composability—both use middleware, but they differ in how much of the core behavior can be swapped.
The existence of mini-swe-agent's 100-line harness suggests that as models improve, harness complexity may collapse drastically, potentially making heavy engineering unnecessary for many tasks.
The two designs target different users: dsh suits those who want to shape the harness itself, while pi suits those who want a working product with a few customization points; neither approach is universally superior.