# A Visual Guide to Agent Harnesses — Pi, OpenCode, Hermes and OpenClaw compared

> An illustrated tour of the software that wraps an LLM and turns it into a working agent.

- Org: Maarten Grootendorst
- Date: 2026-11-30
- Category: article, tutorial
- Source: https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-agent-harnesses
- Canonical page: https://ai-tldr.dev/releases/maarten-grootendorst-visual-guide-agent-harnesses/

## 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.

## What it is

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 it works

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 it matters

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 it's for

agent builders and developers choosing a coding agent

## Try it

https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-agent-harnesses

## Links

- [Full Guide](https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-agent-harnesses)
- [Hacker News Thread](https://news.ycombinator.com/item?id=50702171)
- [Hands-On LLMs Repo](https://github.com/HandsOnLLM/Hands-On-Large-Language-Models)
