← In the News

Same model, four harnesses: Pi, OpenCode, Hermes and OpenClaw read from source

A Visual Guide to Agent Harnesses · Maarten Grootendorst, co-author of An Illustrated Guide to AI Agents · Exploring Language Models, November 30, 2026

Machine-readable Download Markdown

Grootendorst went through the source of four open-source harnesses at pinned versions (pi v1.2.0, OpenCode v2.0.29, Hermes commit 0e427d7, OpenClaw v2026.10.3) and drew the differences in more than 30 diagrams, starting from TinyAgent, the roughly 600-line teaching harness from his book. His framing: "The model itself is stateless", and everything else, from prompts to tools to sessions to guardrails, is the harness.

The specifics are what make it useful. Pi compacts history when the context reaches 184k tokens, summarising older turns and keeping the most recent 20k tokens unchanged; it stores each turn as JSONL linked by parent pointers, so a session can branch. OpenCode's Plan Mode leaves the agent loop alone and blocks the edit tool for everything except plan.md. Hermes runs a review agent after any session that called more than 10 tools and decides whether to write or update a skill from the trace. OpenClaw wakes every 30 minutes on a heartbeat driven by HEARTBEAT.md, and each night runs what it calls Scheduled Dreaming, three stages that end with facts saved to MEMORY.md. The guide also promotes the author's book. On Hacker News it had 73 points and 8 comments about four hours after posting.

Why it matters: When you pick a harness you are also picking when compaction fires and what it keeps, whether planning is enforced or only requested, and whether the agent rewrites its own skills. Because the versions are pinned, you can check each of these claims against the source before you depend on it. OpenCode's approach, enforcing a plan phase by removing write access instead of asking in the prompt, is a pattern you can copy into your own harness.