A visual guide compares four AI agent harnesses
OtherPublished: Source: Hacker News (100+ points)
TL;DR:Maarten Grootendorst presents a visual, code-based comparison of TinyAgent, Pi, OpenCode, Hermes, and OpenClaw, using fixed software snapshots.

Maarten Grootendorst presents a visual, code-based comparison of TinyAgent, Pi, OpenCode, Hermes, and OpenClaw, using fixed software snapshots. The guide explains how an agent harness surrounds an LLM with memory, tools, session handling, and safeguards, then contrasts practical design choices: Pi's compact terminal workflow, OpenCode's shared server and database, and the personal-assistant features of Hermes and OpenClaw. It also walks through ReAct loops and OpenCode's Code Mode for chaining tool calls.
Key points
- The guide defines a harness as the software around an LLM that builds prompts, executes tools, stores sessions, and applies guardrails.
- TinyAgent is an educational Python baseline of about 600 lines; Pi has just over 100,000 lines and offers persistent, branchable sessions and context compaction.
- OpenCode places an HTTP server and SQLite session store between the agent and clients, and its Code Mode chains tool calls in a script.
- Hermes and OpenClaw add personal-assistant capabilities such as chat connectors, persistent personal memory, and scheduled wake-ups.
Why it matters
Choosing an agent framework affects persistence, tool orchestration, extensibility, and deployment—not just which LLM runs inside it. The comparison gives developers and technical leads a concrete map for matching harness architecture to coding or personal-assistant workflows.
Companies and models mentioned
- Pi
- OpenCode
- Maarten Grootendorst
- Hermes
- OpenClaw
- TinyAgent