Agent Harnesses Compared 2026: Pi, OpenCode, Hermes, OpenClaw
A popular visual guide compares four open-source agent harnesses. This page checks its main claims against each project's own docs, shows the numbers that matter, and flags what changed in the seven weeks since its snapshot.
There are no affiliate links on this page.

| Subject | A Visual Guide to Agent Harnesses |
| Author | Maarten Grootendorst |
| Published | Nov 30, 2026 |
| Covers | Pi, OpenCode, Hermes, OpenClaw |
| Evidence | Article, READMEs, docs, release data |
The guide is a clear, source-based tour of four open-source coding agents, and its main numbers match the projects' own docs. It is a seven-week-old snapshot, it measures no results, and it gives no permission comparison.
Use it to learn how harnesses differ, then read each project's current docs before you pick one.
What it is. A newsletter article by Maarten Grootendorst, dated Nov 30, 2026, with more than 30 custom diagrams. It reads the source code of Pi, OpenCode, Hermes and OpenClaw, starting from TinyAgent, a roughly 600-line teaching harness from the author's book. It explains the shared reason, act, observe loop and then what each project adds: compaction and steering in Pi, a shared server and subagents in OpenCode, memory files and self-written skills in Hermes, and chat channels, a 30-minute wake-up and nightly memory consolidation in OpenClaw.
What JAVIS verified. The four projects exist as described, each under the MIT license, with 125,000 to 395,000 GitHub stars and releases within the last week. Pi's compaction numbers, OpenClaw's 30-minute cadence and channel count, OpenCode's plan agent and Pi's missing plan mode all match the projects' own documentation, with two caveats below.
What it does not give you. No task-success benchmark, no cost comparison and no security or permission comparison, although the harness decides what the model may run on your machine. It is also pinned to versions from Oct 12 to Oct 14, 2026; every project has moved on.
Not hands-on tested: JAVIS did not install or run any of the four harnesses. Every statement below comes from the article and from each project's README, docs and release data, checked on Dec 1, 2026.


Every project is real and active. The comparison numbers hold up; a few details have changed since the snapshot.
Swipe sideways to see every column.
| Project | Snapshot in the guide | State on Dec 1, 2026 | GitHub stars |
|---|---|---|---|
| Pi (earendil-works/pi) | v1.2.0, released Oct 12 | v1.7.0, released Nov 27 | 124,994 |
| OpenCode (anomalyco/opencode) | v2.0.29, commit of Oct 14 | v2.4.3 tag, Nov 29 (GitHub's Latest badge still sits on v1.19.6 from Nov 17) | 230,352 |
| Hermes (NousResearch/hermes-agent) | Commit 0e427d7 of Oct 14 | v0.23.5 stable on Nov 28, plus daily canary builds | 267,386 |
| OpenClaw (openclaw/openclaw) | v2026.10.3, released Oct 13 | v2026.11.13, released Dec 1 | 395,487 |
| TinyAgent (HandsOnLLM, book code) | Commit 2fbd07e, the latest commit of the book repository | As checked on Dec 1, 2026: 3 commits, no tags, no releases and no license listed on GitHub | 650 |
Counts and dates from the GitHub repository and release pages, Dec 1, 2026. Stars show interest, not use, and JAVIS did not check them for organic growth.
Pi moved from v1.2 to v1.7 in seven weeks, OpenCode's v2 line from 2.0.29 to 2.4.3, and OpenClaw's release page lists 304 releases. Pi's v1.7.0 notes also list a breaking change that removes its install telemetry setting. A guide that pins versions is the right idea; it also means any feature detail can be stale.
The model is stateless text prediction. The harness is everything that makes it act.
The guide splits an agent into two parts: the model weights, and the harness that builds prompts, runs tools, stores sessions and enforces guardrails. It then shows a small harness doing the same loop every project shares: reason, call a tool, observe, repeat. The author's TinyAgent version of that loop fits in under twenty lines of Python.

Why it matters to a buyer. The guide's strongest claim is that the same model inside different harnesses gives four different agents. That matches common experience, but the article reports no measured difference in task success, so the claim stays an argument, not a test result.
Each project makes one big design choice, and the docs confirm most of them.
Swipe sideways to see every column.
| Harness | Big idea in the guide | What the project's own docs say | Match |
|---|---|---|---|
| Pi | Minimal: four default tools, compaction, steering a running agent, sessions stored as a branchable tree | README and site: a minimal extensible harness that skips sub-agents and plan mode; the site lists no plan mode, no built-in to-dos and no background bash | Yes |
| OpenCode | A server in front of the agent so terminal, desktop and web share one session database; a plan mode that blocks edits | README: build agent with full access and a read-only plan agent that denies file edits by default and asks before bash; a general subagent. The agents docs add that the plan agent may write OpenCode plan files when asked | Yes; the plan-files exception is in the docs |
| Hermes | Chat gateway, two memory files, over 50 bundled skills, a review agent that writes new skills | README: a closed learning loop, autonomous skill creation, six built-in terminal backends, one gateway for Telegram, Discord, Slack, WhatsApp, Signal and CLI; its README lists 40+ tools and the docs home now says 60+ built-in tools | Yes; counts have grown |
| OpenClaw | Always on: 30+ chat channels, 30-minute heartbeat, memory flush before compaction, nightly consolidation | README: assistant on your devices in the channels you use, plus 20+ more; docs list 33 channel entries and a proactive check job that runs every 30 minutes once enabled | Yes; heartbeat details changed |
JAVIS comparison of the article with each project's README and docs, Dec 1, 2026. The memory-flush and nightly consolidation details are the article's own and rest on its reading of the code.








Before you type a word, two of the four have already used about 14,000 tokens.
The guide's comparison chart shows how much of the context window each harness fills with its system prompt, workspace files and tool schemas. The figures below are read from that chart.

Swipe sideways to see every column.
| Harness | Tokens before your first message | Share of a 200k window | Compaction starts at | Room left before compaction |
|---|---|---|---|---|
| Pi | about 1.4k | 0.70% | about 184k | about 182k |
| OpenCode | about 5.4k | 2.70% | 180k | about 175k |
| Hermes | about 13.9k | 6.95% | 150k | about 136k |
| OpenClaw | about 14.2k | 7.10% | 180k | about 166k |
Prompt sizes and compaction points are read from the guide's charts; the share and the room left are a JAVIS calculation that assumes the system prompt counts inside a 200,000-token window, which the guide does not state.
Worked example. Hermes starts with 13.9k tokens in use, ten times Pi's 1.4k. Out of a 200k window that is 6.95 percent against 0.7 percent. Because Hermes also compacts at 150k, the room it leaves before the first summary is about 136k tokens, against about 182k for Pi, so Pi has roughly a third more working room in the same window on these figures. Bigger prompts are not worse: Hermes spends its share on 21 tool schemas and OpenClaw on files such as SOUL.md and MEMORY.md. They are a price you pay for the features, and the guide says so.

Pi's 184k is a rule, not a constant. Pi's compaction page says automatic compaction starts when the context passes the window minus a reserve of 16,384 tokens, and it keeps the most recent 20,000 tokens unsummarised. On a 200,000-token model that is 183,616, which the guide rounds to 184k. On a 1M-token model the same page shows an override that starts compaction above 600k. Both numbers are settings you can change.


The clearest example is OpenClaw's heartbeat, which the docs now call a migrated automation that starts switched off.
The guide describes OpenClaw's heartbeat as a 30-minute trigger that wakes the agent and reads a HEARTBEAT.md checklist. The current OpenClaw docs, on a page titled Heartbeat migration, say a fresh setup creates one Proactive check job and leaves it disabled until you enable it. Once enabled it runs every 30 minutes, uses the agent's main conversation, waits until idle and delivers to the owner's direct message. The page also calls earlier heartbeat configurations former heartbeat monitors and describes a checklist the docs name the scratch.


So the 30-minute figure holds, but a new user should not assume the agent is already waking itself up. The same docs say a migration step imports an existing HEARTBEAT.md into the job's checklist and then retires the file, and they list HEARTBEAT.md among retired workspace files, so that file no longer drives the heartbeat in current versions.
The channel count holds. The guide says OpenClaw has over 30 chat channels. The current channels page lists 33 entries, which include agent-to-agent protocols such as A2A and bridges such as WebChat (included in core) and SMS, not only messaging apps, so the practical number of consumer chat apps is lower.

Other small gaps. The OpenCode README says its plan agent denies file edits by default, while the guide says edits are blocked for everything except a plan.md file; the agents docs say it may write OpenCode plan files when asked, which fits the guide's remark. Hermes's docs now advertise 60+ built-in tools, against the guide's 21 default tools, which are different counts and not a contradiction.
Permissions, sandboxing and cost are missing, and they are what a buyer of an agent harness most needs.
The article's only mention of approvals is a line that Hermes has an approval judge and pluggable sandbox backends. It does not compare what each harness lets the model do without asking, how each handles secrets, or what the token overhead costs on a paid API. An always-on harness connected to chat accounts, such as OpenClaw, has a very different risk profile from a terminal-only one such as Pi, and the guide does not weigh that. JAVIS has a separate review of Pi, whose title already flags that it has no permission system.
Swipe sideways to see every column.
| Question to ask before choosing | Why it matters | Where to look |
|---|---|---|
| What can the model run without asking me? | The harness, not the model, decides | Each project's permission and sandbox docs |
| Does it stay on and read my chats? | Always-on agents widen what can be attacked | OpenClaw and Hermes channel and gateway docs |
| What does it add to every request? | 14k tokens of fixed prompt costs money on a paid API | The prompt-size chart in the guide, then your provider's price |
| Where do sessions and memory live? | Files and databases hold private data | The session store table in the guide, then the project's data docs |
| How fast does it change? | Pi, OpenCode and OpenClaw shipped several releases in weeks | The project's release page |
JAVIS checklist as of Dec 1, 2026. It is a reading guide, not a security audit.
Read the guide for the mental map, then choose by your own job and test on a throwaway project.
Swipe sideways to see every column.
| You are | Start with | Why |
|---|---|---|
| Learning how coding agents work | The guide, then the TinyAgent code | The loop and the memory layouts are explained step by step |
| A developer who wants control and little overhead | Pi, after reading its permission model | Smallest prompt and the fewest built-in features |
| Working from several clients on one session | OpenCode | A shared server and database keep one session across clients |
| Wanting an assistant that learns your habits | Hermes | Memory files and self-written skills are its core idea |
| Wanting an always-on assistant in your chat apps | OpenClaw, with a careful channel and permission review | Built for it, with the widest reach and the most to secure |
JAVIS assessment as of Dec 1, 2026. Nothing here was run by JAVIS.
Write down the release you install; they change weekly.
Find what runs without asking before you give it a real repository.
Use one small task and watch what the harness does, not only the answer.
Look at how many tokens it uses before your first message on your own model.
- No hands-on test: JAVIS did not install or run Pi, OpenCode, Hermes, OpenClaw or TinyAgent.
- The prompt-size, compaction and memory figures come from the article's own charts, and JAVIS did not rerun any measurement.
- The article is one author's reading of the source code at Oct 12 to Oct 14, 2026; JAVIS has no view on that code.
- The article is educational and unsponsored as far as its page shows, but the author sells a book on the same topic and links to it.
- No independent user evidence or third-party benchmark of the four harnesses was used.
- Star counts are interest signals only; organic growth is unverified.
- These projects change weekly; this reflects Dec 1, 2026.
More on coding agents and their safety, from other JAVIS pages.
Questions people ask about agent harnesses.
What is an agent harness?
Everything around the language model that turns its text into actions: it builds the prompts, runs tools, stores sessions, manages memory and enforces limits. The guide's own shorthand is model weights plus harness equals agent.
Which harnesses does the guide compare?
Pi, OpenCode, Hermes and OpenClaw, built up from a 600-line teaching harness called TinyAgent that the author made for a book. All four are MIT-licensed open-source projects on GitHub.
Does the harness matter more than the model?
The guide argues the harness has an equal and perhaps greater influence on results than the model, and shows the same model producing four differently behaving agents. It gives no measured comparison of task success, so treat it as an informed argument, not a result.
Which one should I choose?
It depends on the job. Pi is the smallest and expects you to add features yourself; OpenCode keeps the session in a shared server so several clients can attach; Hermes adds chat gateways and self-written skills; OpenClaw is built to stay on and message you. None of them is ranked best by the guide, and JAVIS did not run any of them.
Is the guide up to date?
It is pinned to versions from mid-October 2026 on purpose. By Dec 1, 2026 each project had shipped newer releases, and in OpenClaw's case the docs now describe the heartbeat differently, so check the current docs before relying on a detail.
Did JAVIS test these harnesses?
No. JAVIS did not install or run any of the four. This guide compares the newsletter article with each project's README, docs and release data as of Dec 1, 2026.
Where this came from, and when.
Article: A Visual Guide to Agent Harnesses, Maarten Grootendorst, Nov 30, 2026, read Dec 1, 2026.
Repositories and releases (GitHub, Dec 1, 2026): Pi, OpenCode, Hermes, OpenClaw and TinyAgent, with their READMEs, license and release lists.
Docs: Pi compaction, pi.dev, OpenClaw heartbeat migration, OpenClaw channels and Hermes docs.






