Visual guide to agent harnesses: TinyAgent, Pi, OpenCode, Hermes, OpenClaw
The guide compares five implementations: TinyAgent, Pi, OpenCode, Hermes and OpenClaw. An agent harness[1] is the runtime that executes the tools a model requests, returns the results to the model and stores the work history. The same model can behave differently depending on the agent harness, because the harness determines which tools are available and how work continues. The comparison is based on source code and over 30 visuals, and each version is a fixed snapshot of a fast-changing project.
All of them use the reasoning, action and observation loop from ReAct[2]. Pi adds compaction[3], which summarizes older messages with an LLM instead of discarding them, keeps the latest 20,000 tokens verbatim, and runs once the context reaches 184,000 tokens. OpenCode separates the server from the client so that several clients can share one SQLite session, and its Code Mode lets the model write a script that chains tool calls, which is a CodeAct[4] pattern.
Hermes and OpenClaw add a personal assistant layer on top of coding. Hermes keeps user information in USER.md and MEMORY.md and, after sessions with more than 10 tool calls, creates or updates reusable skills. OpenClaw wakes the agent every 30 minutes to check for new messages and saves memory before compaction. The guide concludes that the choice depends on tools, context management, session storage and personalization, and that no single agent harness fits every use.
Read the original newsletter.maartengrootendorst.comDiscussion on GeekNews
Discussion
Commenters mostly discuss which agent harness to use for subagents and selective memory. One commenter praises Pi because the agent can edit the harness and add skills, and says it usually ranks in the top three. Another asks why Pi's core is about 100k lines of code if it is meant to be minimal, and says it lacks subagents that other harnesses have.
Sources
-
KRGeekNews KO
에이전트 하네스 비쥬얼 가이드
-
Exploring Language Models
A Visual Guide to Agent Harnesses


