A Visual Guide to Agent Harnesses (newsletter.maartengrootendorst.com)

181 points by mariuz 10 hours ago

PaulKeeble 6 hours ago

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.

2001zhaozhao 24 minutes ago

Tbf you can do this with any harness if a MCP is the thing providing the tools, and the agent can make plugins for the software that supplies the MCP. My orchestrator has worked this way for months.

tabith 4 hours ago

pi allowing an LLM access to renewing itself was why i chose it for tabichat.dev (my multi-agent chat system). nearly everything i do is long-running, spanning multiple sessions. tabichat includes allowing chat members to renew themselves and keep going. mTLS MQTT broker, so everything stays local and private.

dingaling911 6 hours ago

How does pi let the agent edit the harness?

PaulKeeble 6 hours ago

There is pretty much no sandbox behaviour at all, so it can read and write files across the entire system. What pi does in its system prompt is tell the agent where it can find markdown files that explain skills and extensions alongside examples. If you prompt it to make a new skill or extension it will then go about doing so and inserts them into either ~/.pi/ or the current directory .pi depending on what makes most sense on what you asked.

I have made one extension called globalstats which iterates over all the sessions and costs up everything across various agents (with locals being negative price of the most common used cloud option, sort of money saved) and I have some skills about accessing dev servers and where to find the docker settings and up/down aliases so it can add things.

dingaling911 4 hours ago

pornel 3 hours ago

pi injects docs for extending itself into the system prompt. You just tell the agent what features you want, and it knows how to do the rest.

lvl256 5 hours ago

I just want a compliant harness that won’t get me kicked off my subscriptions.

fusslo 7 hours ago

I'm really trying to get my head around harnesses for embedded development.

Application code can be harnessed and tested with the right abstractions. QEMU can emulate a system architecture. But the nature of embedded seems like a complete harness isn't likely

I'm particularly interested in keeping things performant while dealing with constrained resources. Access to spiflash/i2c bus/peripherals from multiple tasks. task starvation.. timing to service interrupt signals etc

I feel like spinning a board that has two mcu's: one for the target and another 'monitor' ?

relying on debug output is largely a no-go for real final production-ready code. about 10% of bugs come from testing with debug and removing in production

Dunno!

PaulKeeble 6 hours ago

Give the harness the ability to do it how you would, debugger access and connected hardware with all the usual flash tools and it will just use the real hardware and same tools you do. Fundamentally they work best when they can completely test everything.

I found that giving it full debug to a tablet allowed it to deploy and test Android apps down the USB cable.

I haven't yet done an ESP32 project using an agent when I do it will be given some tools for debug directly and maybe some skill steers about how to do some things so it prefers to use the hardware over trying to emulate something.

esikich 5 hours ago

LLMs can already just do that though. I still don't understand the point of harnesses. The other day I gave Codex an old Apple // rom and asked it to port it. It didn't need me to specify which tools to use, it just went at it and was done in like 10 minutes.

tempest_ 5 hours ago

PaulKeeble 3 hours ago

TeMPOraL 4 hours ago

totetsu an hour ago

Nice write up. But I noticed that its only explaining one configuration of hermes, and its actually pretty variable depending on how you set it up.

abdullahkhalids 2 hours ago

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?

jwilliams 34 minutes ago

I might be taking your question to a super-specific spot: But we've found that a solid directory strucuture answers a lot of those questions. If you can point (sub)agent at a/b/c as the place to work... it gets a lot easier.

AyishikD 6 hours ago

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?

PaulKeeble 5 hours ago

LLMs in general can get anchored on a fact and not really be open to changing. If you change your mind mid way down a session it can cause a lot of confusion and thinking to happen. They don't handle changing facts well at all yet.

trentor 4 hours ago

I would put self-improving in "" because it is anything but.

mlaretallack 7 hours ago

Interesting summary, I mainly use Crew, so its nice to see what features I am missing.

slopinthebag 6 hours ago

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...

1broseidon 5 hours ago

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.

westoncb 2 hours ago

I'd be curious about this too, 100k loc for a minimal harness seems crazy.

jpitz 5 hours ago

what harnesses are these?