An agent harness is the software surrounding a language model: it builds prompts, manages memory and sessions, executes tools, and applies guardrails. The model supplies reasoning, but the harness determines how that reasoning connects to an environment, so the same model can behave very differently in different systems. A comparison of TinyAgent, Pi, OpenCode, Hermes, and OpenClaw uses fixed software snapshots to examine their designs and scale. All share a coding-agent core; Hermes and OpenClaw also add personal-assistant features such as chat connectors, persistent personal memory, and scheduled tasks, which increase complexity.
TinyAgent provides the educational baseline: roughly 600 lines of Python illustrating reasoning, tools, memory, planning, and subagents through a ReAct loop of reasoning, action, and observation. Pi, a production-grade terminal harness, keeps a minimal philosophy, with four default tools and no server. Its added capabilities show how harness design matters in practice: it compacts older conversation history while preserving recent turns, stores sessions as a branching JSONL history, supports precise edits and limits bulky command output in prompts, and lets users steer a run while tools are executing. Together, these examples frame harnesses not as interchangeable wrappers, but as choices that shape an agent’s capabilities, persistence, and interaction with users.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.