A Visual Guide to Agent Harnesses newsletter.maartengrootendorst.com · 11 points...
HN Best 200 @best
A Visual Guide to Agent Harnesses newsletter.maartengrootendorst.com · 11 points · 0 comments · HN thread
TL;DR Maarten Grootendorst's visual guide compares four open-source agent harnesses (Pi, OpenCode, Hermes, OpenClaw) against a small educational harness, TinyAgent, from his book with Jay Alammar. It explains each harness's design choices: compaction, steering, a shared server, skill learning, memory flushes and heartbeats. The comparison uses a fixed snapshot of each codebase, so it can be dated as the projects change.
- An agent harness is everything around a stateless LLM: it builds prompts, runs tools, stores sessions and enforces guardrails.
- TinyAgent is about 600 lines of Python built around a ReAct loop of reason, call a tool, observe. Pi is over 100K lines with four default tools (read, write, edit, bash).
- Pi compacts at 184k tokens, keeps the latest 20k tokens intact, and stores sessions as JSONL with id and parent pointers so turns can be branched like git.
- OpenCode adds an HTTP server backed by SQLite so terminal and web clients share sessions, a Code Mode where the model writes scripts that chain tool calls, and a Plan Mode that blocks edits except to plan.md.
- Hermes adds a personal-assistant layer with more than 50 tools, more than 50 bundled skills, a review agent that creates skills after sessions with more than 10 tool calls, and USER.md and MEMORY.md files.
- OpenClaw has a multi-channel gateway separating main and group sessions, a 30-minute heartbeat, memory flushes before compaction, hybrid BM25 plus embedding retrieval with 30-day decay, and nightly 'dreaming' consolidation.
Discussion No comments yet, so there is no discussion to summarize. The post has 11 points and no replies at the time it was captured.