<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/a-visual-guide-to-agent-harnesses-evh4tlgxj" -->

---
title: A Visual Guide to Agent Harnesses | daily.dev
description: The same LLM becomes four different agents depending on the harness around it. Maarten Grootendorst walks through Pi, OpenCode, Hermes and OpenClaw, starting...
canonical: https://daily.dev/posts/a-visual-guide-to-agent-harnesses-evh4tlgxj
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: A Visual Guide to Agent Harnesses | daily.dev
og:description: The same LLM becomes four different agents depending on the harness around it. Maarten Grootendorst walks through Pi, OpenCode, Hermes and OpenClaw, starting...
og:url: https://daily.dev/posts/a-visual-guide-to-agent-harnesses-evh4tlgxj
og:image: https://api.daily.dev/og/posts/evH4Tlgxj.png
og:image:alt: A Visual Guide to Agent Harnesses
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# A Visual Guide to Agent Harnesses

**[Hacker News](https://daily.dev/sources/hn)** · 20 min read · 29 upvotes · 4 comments

## Summary

The same LLM becomes four different agents depending on the harness around it. Maarten Grootendorst walks through Pi, OpenCode, Hermes and OpenClaw, starting from a roughly 600-line educational baseline called TinyAgent. Pi is minimal, with four default tools, and compacts history at 184k tokens while keeping the latest 20k verbatim. OpenCode adds a shared server and SQLite sessions, plus a Code Mode that chains tool calls in one script. Hermes adds markdown memory files and a review agent that creates skills. OpenClaw adds a multi-channel gateway, a 30-minute heartbeat and nightly 'dreaming' memory consolidation.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-agent-harnesses>

## Questions this post answers

### How does Pi's compaction work when the context window fills up?

Pi compacts its conversation history once the context window fills to 184k tokens. Older turns are run through an LLM to produce a summary, while the most recent 20k tokens stay exactly as they were so the model keeps an accurate picture of what it was doing. Each turn is also written to JSONL linked by id and parent pointers.

_Developers comparing coding agents track harness design trade-offs like this on daily.dev._

### What is the difference between OpenCode's Code Mode and one-tool-per-turn agents?

With simpler harnesses the LLM runs one tool per turn and waits for each output before calling the next. OpenCode's Code Mode lets the LLM write one short script that chains the tool calls, runs them all at once, and only sees the output when they all finish. It is an example of the CodeAct pattern.

_Choosing between agent harnesses is easier when you follow how they evolve on daily.dev._

### How does OpenClaw's heartbeat work in an always-on agent?

OpenClaw's heartbeat is a 30-minute trigger that wakes the agent to check for new messages and decide whether to start a task. If nothing needs doing it stays quiet; if an important email arrives it notifies the user on a chat channel. The rules it checks are captured in HEARTBEAT.md.

_Anyone building always-on assistants can keep up with agent patterns on daily.dev._

## Community take

How the wider developer community reacted, aggregated from 2 discussions and 28 comments across lobsters, hackernews (as of 2026-12-01).

**TL;DR:** Discussion centers on Pi's ability to let agents extend their own harness, with debate over whether this is genuinely novel versus just a well-structured extension mechanism, alongside skepticism about Pi's actual codebase size and missing features like subagents.

**Sentiment:** 30% positive · 45% mixed · 25% skeptical

**The case for**

- Pi's system prompt injects docs for self-extension so the agent can build new skills/tools on request.
- Being minimal keeps the harness usually top-3 across models even if rarely first.
- A good directory structure can substitute for more complex subagent/memory schemes.

**The pushback**

- Pi is reportedly ~100k LOC despite being billed as minimal, and lacks basic features like subagents that much smaller harnesses support.
- Some argue this self-extension capability isn't unique to Pi and can be replicated with any MCP-based harness.
- LLM memory systems struggle with outdated or conflicting facts and don't handle mid-session changes well.
- Calling agent behavior 'self-improving' is seen as overstated.

**By community**

- lobsters (mixed): No discussion content was provided.
- hackernews (mixed): People debate whether Pi's self-extending harness is genuinely special or just good extension design, while others question its claimed size and missing features.

**Hottest debate:** Whether Pi's self-extending harness capability is a unique differentiator or something any MCP-based harness can already do.

**Open questions**

- Does any harness properly handle outdated or conflicting memory instead of fabricating a consistent story?
- Which harness best supports subagents with selective, task-relevant memory?
- How does Pi reconcile being called 'minimal' with reports of a ~100k LOC core?

**Highlights**

> pi is 100k loc in it's core? i thought it was supposed to be minimal? > Pi is a minimal agent harness. it lacks basic features like subagents which people have fit into harnesses which are an order of magnitude smaller, so I'm not sure what they're doing over there...
> — [slopinthebag on hackernews · 3 comments](https://news.ycombinator.com/item?id=50706033)

> Pi's model has always been "build your own harness" without building the core agent loop, which is why it's missing features like subagents and MCP (until very recently, they just added MCP). OpenClaw is built on top of Pi's core, and became the thing it is today because the core was so small so they could just build the giant automated agent framework they built and not have to build a core agent coding system.
> — [1broseidon on hackernews](https://news.ycombinator.com/item?id=50706383)

> Pi's main super power is that it gives the agent the ability to edit the harness, the harness provides skills and tools as the user adds them, which they can do manually from outside pi, within pi or ask the agent to build something and it then accesses the guides to do so. It comes with no skills but it has the ability to use existing ones and that seems absent on the image. The harness choice can actually have a massive impact on the performance of the LLM. Not just the context burnt on the system prompt but the prompt and tools themselves can considerably change how much a task costs and the chance of success. Pi is basically never first for any individual model, but its usually top 3 because of how minimal it is.
> — [PaulKeeble on hackernews · 3 comments](https://news.ycombinator.com/item?id=50706049)

> Nice guide especially the snapshot is useful. Just a thing, the most of the harnesses has a model writing its memory which could be a bit wrong in a type a model has interpreted its experience like not remembering an experience or misreading it. In my own experiments trying with an example taking a bus to office did not update to taking a metro after a later message outdating the fact. Does any of these harnesses handle outdated or conflicting memory? and can a agent simply say it has no memory instead of making new story?
> — [AyishikD on hackernews · 1 comments](https://news.ycombinator.com/item?id=50706145)

> Which harness do people prefer when they want to use subagents and selective memory? Meaning there is a memory that is periodically written do, but each subagent only gets the memory relevant to the narrow task given to them?
> — [abdullahkhalids on hackernews · 1 comments](https://news.ycombinator.com/item?id=50708956)

**Source threads**

- [lobsters](https://lobste.rs/s/3pbdks/visual_guide_agent_harnesses) · 1 points · 0 comments
- [hackernews](https://news.ycombinator.com/item?id=50702171) · 181 points · 28 comments

## Community discussion

Top comments from developers on daily.dev.

**@seyoungcho** · 1 upvotes

> Seeing the same LLM behave completely differently across Pi, OpenCode, Hermes, and OpenClaw really highlights how much the harness—especially compaction thresholds and memory consolidation—shapes reliability.

**@tsukhani** · 0 upvotes

> Can someone add jclaw to the list? https://github.com/tsukhani/jclaw

**@trevorsuna** · 0 upvotes

> The compaction detail is what I'd want to dig into. With long coding sessions, what gets dropped when history is summarised seems to matter more than the raw window size. Curious how the markdown memory files hold up after weeks of use.

**@skepagent** · 0 upvotes

> Pi 的压缩策略让我印象最深——在 184k 触发压缩、又保留最近 20k 原样，算是成本和不断线之间很务实的折中。和 OpenClaw 每晚 “dreaming” 式整理记忆一对比，显式记忆文件和后台摘要这两种路线的取舍也更清楚了。

## Similar posts on daily.dev

- [What Is an Agent Harness? The Architecture Behind Claude Code, DeepSeek Harness, and Hermes Agent](https://daily.dev/posts/what-is-an-agent-harness-the-architecture-behind-claude-code-deepseek-harness-and-hermes-agent-yewiwnntj) · freeCodeCamp · 12 upvotes · 1 comments
- [Hermes vs. OpenClaw - When to Reach for Which Agent](https://daily.dev/posts/hermes-vs-openclaw---when-to-reach-for-which-agent-xmmpw6lkm) · Kilo Blog · 3 upvotes · 2 comments
- [Pi: The Minimal Agent Within OpenClaw](https://daily.dev/posts/pi-the-minimal-agent-within-openclaw-tiq1vwnxw) · Armin Ronacher · 7 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#opencode](https://daily.dev/tags/opencode), [#openclaw](https://daily.dev/tags/openclaw)

[View this post on daily.dev](https://daily.dev/posts/a-visual-guide-to-agent-harnesses-evh4tlgxj)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"A Visual Guide to Agent Harnesses","url":"https://daily.dev/posts/a-visual-guide-to-agent-harnesses-evh4tlgxj","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/a-visual-guide-to-agent-harnesses-evh4tlgxj"},"datePublished":"2026-11-30T20:41:48.425Z","dateModified":"2026-12-01T02:41:38.771Z","description":"The same LLM becomes four different agents depending on the harness around it. Maarten Grootendorst walks through Pi, OpenCode, Hermes and OpenClaw, starting...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/83a0ea06f8cab455044bb7c778f02792?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/83a0ea06f8cab455044bb7c778f02792?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":4,"discussionUrl":"https://daily.dev/posts/a-visual-guide-to-agent-harnesses-evh4tlgxj","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":28},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":4}],"keywords":"ai-agents,opencode,openclaw","timeRequired":"PT20M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"A Visual Guide to Agent Harnesses"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/a-visual-guide-to-agent-harnesses-evh4tlgxj","comment":[{"@type":"Comment","text":"Can someone add jclaw to the list? https://github.com/tsukhani/jclaw","datePublished":"2026-12-01T02:08:24.996Z","url":"https://daily.dev/posts/evH4Tlgxj#c-kPRvuOCku","author":{"@type":"Person","name":"Tarun Sukhani","url":"https://daily.dev/tsukhani","image":"https://lh3.googleusercontent.com/a/ALm5wu3n9kGvhqAh83qpHr8jEDCToSc-saHNaFg4Q1Iv=s96-c"}},{"@type":"Comment","text":"The compaction detail is what I’d want to dig into. With long coding sessions, what gets dropped when history is summarised seems to matter more than the raw window size. Curious how the markdown memory files hold up after weeks of use.","datePublished":"2026-12-01T01:46:04.220Z","url":"https://daily.dev/posts/evH4Tlgxj#c-o2R7VVO5V","author":{"@type":"Person","name":"Trevor Suna","url":"https://daily.dev/trevorsuna","image":"https://media.daily.dev/image/upload/s--dZ7gXxpp--/f_auto/v1784081551/avatars/avatar_EMoP47rpuw8DNjhp6R1b6?_a=BAMAMicg0"}},{"@type":"Comment","text":"Seeing the same LLM behave completely differently across Pi, OpenCode, Hermes, and OpenClaw really highlights how much the harness—especially compaction thresholds and memory consolidation—shapes reliability.","datePublished":"2026-12-01T00:11:47.001Z","url":"https://daily.dev/posts/evH4Tlgxj#c-GqKHqE0j6","author":{"@type":"Person","name":"SeyoungCho","url":"https://daily.dev/seyoungcho","image":"https://media.daily.dev/image/upload/s---QniJFEK--/f_auto/v1724901542/avatars/avatar_O3ucZSadxc0iLADSOH3rX"}},{"@type":"Comment","text":"Pi 的压缩策略让我印象最深——在 184k 触发压缩、又保留最近 20k 原样，算是成本和不断线之间很务实的折中。和 OpenClaw 每晚 “dreaming” 式整理记忆一对比，显式记忆文件和后台摘要这两种路线的取舍也更清楚了。","datePublished":"2026-12-01T02:48:15.273Z","url":"https://daily.dev/posts/evH4Tlgxj#c-jdL8RguNg","author":{"@type":"Person","name":"kris gu","url":"https://daily.dev/skepagent","image":"https://lh3.googleusercontent.com/a/ACg8ocJnnwFKNx7PJNhb7W6mFWr2k2SV_VHW_9ainY71DX_dv79frQ=s96-c"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/a-visual-guide-to-agent-harnesses-evh4tlgxj#faq","mainEntity":[{"@type":"Question","name":"How does Pi's compaction work when the context window fills up?","acceptedAnswer":{"@type":"Answer","text":"Pi compacts its conversation history once the context window fills to 184k tokens. Older turns are run through an LLM to produce a summary, while the most recent 20k tokens stay exactly as they were so the model keeps an accurate picture of what it was doing. Each turn is also written to JSONL linked by id and parent pointers. Developers comparing coding agents track harness design trade-offs like this on daily.dev."}},{"@type":"Question","name":"What is the difference between OpenCode's Code Mode and one-tool-per-turn agents?","acceptedAnswer":{"@type":"Answer","text":"With simpler harnesses the LLM runs one tool per turn and waits for each output before calling the next. OpenCode's Code Mode lets the LLM write one short script that chains the tool calls, runs them all at once, and only sees the output when they all finish. It is an example of the CodeAct pattern. Choosing between agent harnesses is easier when you follow how they evolve on daily.dev."}},{"@type":"Question","name":"How does OpenClaw's heartbeat work in an always-on agent?","acceptedAnswer":{"@type":"Answer","text":"OpenClaw's heartbeat is a 30-minute trigger that wakes the agent to check for new messages and decide whether to start a task. If nothing needs doing it stays quiet; if an important email arrives it notifies the user on a chat channel. The rules it checks are captured in HEARTBEAT.md. Anyone building always-on assistants can keep up with agent patterns on daily.dev."}}]}
```

