Maarten Grootendorst · 2026-11-30 · notable
A Visual Guide to Agent Harnesses — Pi, OpenCode, Hermes and OpenClaw compared
In short
Maarten Grootendorst's illustrated guide explains what an agent harness is and compares four open-source ones (Pi, OpenCode, Hermes, OpenClaw) against a small educational baseline, using the same LLM in each.
Maarten Grootendorst · 2026-11-30 · 3 sources checked

An illustrated tour of the software that wraps an LLM and turns it into a working agent.
What is it?
A Visual Guide to Agent Harnesses defines a harness as the software around an LLM that builds prompts, runs tools, stores sessions and enforces guardrails. The post walks through a roughly 600-line educational baseline called TinyAgent, then four open-source harnesses: Pi, OpenCode, Hermes and OpenClaw.
How does it work?
Every harness is run with the same LLM, so the differences come from the harness alone. The guide compares them on the ReAct loop, context compaction, session storage, surgical file edits, subagents, plan and build modes, skills, and memory files. It ends with a side-by-side table of system prompt size and compaction thresholds, plus a combined anatomy diagram.
Why does it matter?
Developers who build or choose coding agents can see which design choices each harness makes and what those choices cost. The post pins exact versions (for example pi v1.2.0 and OpenCode v2.0.29), so the comparison can be checked.
Who is it for?
agent builders and developers choosing a coding agent
Try it
https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-agent-harnesses