<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Agents, harnessed</title>
    <description>Newsletter about coding agent harnesses and harness engineering.</description>
    
    <link>https://codagent.beehiiv.com/</link>
    <atom:link href="https://rss.beehiiv.com/feeds/8jI54aZqi0.xml" rel="self"/>
    
    <lastBuildDate>Sun, 6 Dec 2026 03:56:03 +0000</lastBuildDate>
    <pubDate>Fri, 20 Nov 2026 05:00:00 +0000</pubDate>
    <atom:published>2026-11-20T05:00:00Z</atom:published>
    <atom:updated>2026-12-06T03:56:03Z</atom:updated>
    
      <category>Programming</category>
      <category>Software Engineering</category>
      <category>Artificial Intelligence</category>
    <copyright>Copyright 2026, Agents, harnessed</copyright>
    
    <image>
      <url>https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/publication/logo/75d4e32c-8d3f-4873-a605-ab2cefc33df5/codagent-logo.png</url>
      <title>Agents, harnessed</title>
      <link>https://codagent.beehiiv.com/</link>
    </image>
    
    <docs>https://www.rssboard.org/rss-specification</docs>
    <generator>beehiiv</generator>
    <language>en-us</language>
    <webMaster>support@beehiiv.com (Beehiiv Support)</webMaster>

      <item>
  <title>Why You Need a Software Factory</title>
  <description>And why I threw mine away</description>
      <enclosure url="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/70384d0b-f2cc-4d2f-8caa-bfcb37aa7199/Gemini_Generated_Image_en6thmen6thmen6t.jpg" length="3605259" type="image/jpeg"/>
  <link>https://codagent.beehiiv.com/p/why-you-need-a-software-factory</link>
  <guid isPermaLink="true">https://codagent.beehiiv.com/p/why-you-need-a-software-factory</guid>
  <pubDate>Fri, 20 Nov 2026 05:00:00 +0000</pubDate>
  <atom:published>2026-11-20T05:00:00Z</atom:published>
    <dc:creator>Paul Caplan</dc:creator>
  <content:encoded><![CDATA[
    <div class='beehiiv'><style>
  .bh__table, .bh__table_header, .bh__table_cell { border: 1px solid #C0C0C0; }
  .bh__table_cell { padding: 5px; background-color: #FFFFFF; }
  .bh__table_cell p { color: #2D2D2D; font-family: 'Helvetica',Arial,sans-serif !important; overflow-wrap: break-word; }
  .bh__table_header { padding: 5px; background-color:#F1F1F1; }
  .bh__table_header p { color: #2A2A2A; font-family:'Trebuchet MS','Lucida Grande',Tahoma,sans-serif !important; overflow-wrap: break-word; }
</style><div class='beehiiv__body'><p class="paragraph" style="text-align:left;">You’ve got a nice harness setup already. Because harnesses were so 2026 H1. </p><p class="paragraph" style="text-align:left;">You’ve got Claude Max or Codex Pro. Maybe both. </p><p class="paragraph" style="text-align:left;">But not just the “inner harness.” You’ve got the whole shebang. <br><br>Starting with a tight <a class="link" href="http://agents.md/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-you-need-a-software-factory" target="_blank" rel="noopener noreferrer nofollow">AGENTS.md</a> covering key information about the project and how to run the whole system. </p><p class="paragraph" style="text-align:left;">Then tools and instructions so agents can verify changes just like you would. With carefully crafted deterministic checks – not just tests, but guidance on what kinds of tests to write, techniques like invariant and mutation testing, and linters that enforce maintainability, not just style.</p><p class="paragraph" style="text-align:left;">You’ve got agents reviewing the code other agents write. Maybe you use subagents, or maybe you’ve got a tool that reviews all your PRs. </p><p class="paragraph" style="text-align:left;">In other words, you’ve got your “outer harness”: the feedforward controls that point the agent in the right direction and the feedback controls that get it back on track when things go sideways.</p><p class="paragraph" style="text-align:left;">But even then it was still somewhat slow and tedious. Prompt Claude to tweak the UI. Come back to it a few minutes later and have it refactor a class. </p><p class="paragraph" style="text-align:left;">So you leaned into <a class="link" href="https://codagent.beehiiv.com/p/think-before-you-prompt?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-you-need-a-software-factory" target="_blank" rel="noopener noreferrer nofollow">spec-driven development</a>. Slowing down to figure out what you want before you build. With a pretty smart robot buddy helping you to think through decisions you hadn’t even considered yet. </p><p class="paragraph" style="text-align:left;">But now, it’s still rough around the edges. Gotta keep that laptop open all the time. Come back, and it’s implemented half of your spec and decided to take a snooze till its human comes back to chat. You’ve got a great workflow, and the agent follows it perfectly… 45% of the time. A lot of it is still manual, and even you don’t always follow your preferred steps.</p><p class="paragraph" style="text-align:left;">And all your co-workers either have their own bespoke workflows or are still just learning prompt engineering…</p><p class="paragraph" style="text-align:left;">But now it’s 2026 H2, so you must have heard: software factories are here to solve all your problems. It was the main theme of <a class="link" href="https://tessl.io/devcon?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-you-need-a-software-factory" target="_blank" rel="noopener noreferrer nofollow">aiDevCon NYC ’26</a>. But don’t take my word for it:</p><p class="paragraph" style="text-align:left;">“Software factories are not built in a day. But the best day to start building your factory is today,” write <a class="link" href="https://factory.com/news/software-factory?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-you-need-a-software-factory" target="_blank" rel="noopener noreferrer nofollow">Matan Grinberg and Eno Reyes</a>.</p><p class="paragraph" style="text-align:left;">“If you haven’t spent at least $1,000 on tokens today per human engineer, your software factory has room for improvement,” writes StrongDM co-founder and CTO <a class="link" href="https://factory.strongdm.ai/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-you-need-a-software-factory" target="_blank" rel="noopener noreferrer nofollow">Justin McCarthy</a>.</p><p class="paragraph" style="text-align:left;">“Should you buy a software factory? Do you even need one? No. You probably don’t need one.” That’s <a class="link" href="https://x.com/i/web/status/2121671447810888185?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-you-need-a-software-factory" target="_blank" rel="noopener noreferrer nofollow">Steve Yegge</a>, writing on November 14.</p><p class="paragraph" style="text-align:left;">Wait, hold on. What did you say, Steve? </p><p class="paragraph" style="text-align:left;">Yes, Steve Yegge, the well-known ex-Googler and self-proclaimed inventor of the software factory, is saying you don’t need a software factory?</p><p class="paragraph" style="text-align:left;">Even if I’d heard that advice at the time, I wouldn’t have listened. I already knew how I wanted to build software. With a factory that makes the workflows that much more automated, how much faster could I go?</p><p class="paragraph" style="text-align:left;">Sometimes we have to learn the lesson the hard way.</p><h2 class="heading" style="text-align:left;" id="my-first-factory">My first factory</h2><p class="paragraph" style="text-align:left;">As they say, the road to factory hell is paved with good intentions. </p><p class="paragraph" style="text-align:left;">The clearest definition of a software factory I’ve found comes from <a class="link" href="https://www.danshapiro.com/blog/2026/01/the-five-levels-from-spicy-autocomplete-to-the-software-factory/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-you-need-a-software-factory" target="_blank" rel="noopener noreferrer nofollow">Dan Shapiro</a>, who describes it as “a black box that turns specs into software.”</p><p class="paragraph" style="text-align:left;">What happens inside that black box, though? Think of it as a repeatable workflow that coordinates agents, tools, automated checks, and (sometimes) human judgment.</p><p class="paragraph" style="text-align:left;">The exact workflow varies from person to person and team to team, but the basic flow is something like this:</p><div class="image"><img alt="" class="image__image" style="" src="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/54d8cbc4-3ae9-4388-9d11-75e73f4e5d92/image.png?t=1794977009"/></div><p class="paragraph" style="text-align:left;"><br>So when I set out to build my own factory, I had the spec part down already. I’ve been using <a class="link" href="https://github.com/Fission-AI/OpenSpec?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-you-need-a-software-factory" target="_blank" rel="noopener noreferrer nofollow">OpenSpec</a> heavily for over a year. It’s my favorite spec framework because it excels at iterative development in brownfield projects. I write specs for one story or task at a time, no waterfall.</p><p class="paragraph" style="text-align:left;">And I had workflows down too. The headline on <a class="link" href="https://www.codagent.dev/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-you-need-a-software-factory" target="_blank" rel="noopener noreferrer nofollow">my project’s website</a> says “deterministic workflows for agentic coding.” Workflows are kinda my thing.</p><div class="image"><img alt="" class="image__image" style="" src="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/2bc1d271-200e-412f-a182-eec1695473b3/image.png?t=1794977574"/><div class="image__source"><span class="image__source_text"><p>Codagent.dev</p></span></div></div><p class="paragraph" style="text-align:left;">A little further down, I put it this way: “Stop giving the agent a workflow. Put the agent inside the workflow.” That’s exactly what a factory needs. In fact, it’s what a factory <i>is</i>. Something that runs a predefined sequence of deterministic and nondeterministic steps.<br><br>That’s what <a class="link" href="https://github.com/Codagent-AI/agent-runner?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-you-need-a-software-factory" target="_blank" rel="noopener noreferrer nofollow">Agent Runner</a> did. It helped me write a spec, then ran a workflow that built and verified the software. I’d been calling my workflow engine and runner part of the “outer harness,” when in actuality it was the key part of a whole new “thing” – a software factory. So a harness gives an agent what it needs to do a job, whereas a factory takes a piece of work and runs it through a workflow that includes that harness.</p><p class="paragraph" style="text-align:left;">I didn’t realize it at the time, but the project I’d spent the past year building was already a factory. <br><br>I’m using the past tense here. Because I’ve decided to throw out the whole thing, my runner baby along with the factory bathwater.</p><p class="paragraph" style="text-align:left;">But before I get to why, there’s one other important aspect of a factory that I haven’t covered yet.</p><h2 class="heading" style="text-align:left;" id="dont-forget-the-feedback">Don’t forget the feedback</h2><p class="paragraph" style="text-align:left;">No good definition of a software factory is complete without mentioning feedback loops. Say you ship a change and the error rate spikes. Now you’ve got a ticket. That’s the product loop, with “monitoring data feeding back into the signals that kicked the loop into motion to begin with,” as <a class="link" href="https://www.oreilly.com/radar/software-factories-light-and-dark/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-you-need-a-software-factory" target="_blank" rel="noopener noreferrer nofollow">Addy Osmani</a> puts it.</p><p class="paragraph" style="text-align:left;">And say you catch the same mistake in three different PRs. You could leave the same review comment a fourth time. Or you could add a check to the harness so the next agent catches it before you ever see the PR. That’s the factory loop. The thing you’re fixing this time is the factory itself.</p><p class="paragraph" style="text-align:left;">In my case, I wasn’t running a production service. I was building tools for agentic coding. So I started running evals on my work. Heavily. Say I thought a cheaper model could handle one step in a workflow. Could it get through the same tasks with the same acceptance criteria? And was it still cheaper if it took three tries? Those are questions an eval can answer. Make the change, run the suite, compare it to the current version, and ship it if it holds up.</p><p class="paragraph" style="text-align:left;">I got the evals running on factory number two, and that gave it plenty of work to start with.</p><h2 class="heading" style="text-align:left;" id="my-second-factory-that-i-thought-wa">My second factory (that I thought was my first factory)</h2><p class="paragraph" style="text-align:left;">My big goal for the new factory, in addition to feedback loops, was this:</p><p class="paragraph" style="text-align:left;">Typically, a factory picks up its next assignment the same way a person at a company does. As <a class="link" href="https://tej.as/blog/source-sink-drain-ai-software-factory?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-you-need-a-software-factory" target="_blank" rel="noopener noreferrer nofollow">Tejas Kumar</a> puts it, the agents work through “a queue of tickets that a person filled with what they want built.” Once the queue is in place, your job changes. You “stop prompting the agent turn by turn and instead design the small system that prompts it for you,” writes <a class="link" href="https://www.oreilly.com/radar/software-factories-light-and-dark/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-you-need-a-software-factory" target="_blank" rel="noopener noreferrer nofollow">Addy Osmani</a>.</p><p class="paragraph" style="text-align:left;">This was exactly what I needed to manage all those pesky local agent sessions (or so I thought). I love <a class="link" href="https://herdr.dev/tui/docs/agents/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-you-need-a-software-factory" target="_blank" rel="noopener noreferrer nofollow">herdr</a> as an agent manager, but the number of tabs with parallel agents that need my input can still get overwhelming at times. But we’ve solved the work-tracking problem already: it’s called a kanban board.</p><p class="paragraph" style="text-align:left;">So I threw together a GitHub Project board, wired up webhooks to a new service on my Mac mini, and voilà, I had a factory. I defined different Agent Runner workflows for various issue types – bug, task, story. And I could manage everything on one nice, clean board.</p><p class="paragraph" style="text-align:left;">The backlog held all the work I wanted to do. I’d move a card to “ready,” and an agent would pick it up in priority order. As Addy and others have emphasized, no prompting was needed! If the agent needed my input, it flagged the card so I could respond right on the board. When the work was done, it moved the card to review. </p><p class="paragraph" style="text-align:left;">It was everything I needed to plan, manage, and track the agentic work for my whole project.</p><p class="paragraph" style="text-align:left;">And I soon grew to detest it.</p><h2 class="heading" style="text-align:left;" id="where-things-went-wrong">Where things went wrong</h2><p class="paragraph" style="text-align:left;">Why? Well, first of all, the GitHub Projects UI was nice. But I no longer use “user interfaces.” I use agent chats.</p><p class="paragraph" style="text-align:left;">So Claude helped me manage the board. I wasn’t giving it big tasks yet. But I already had a backlog of bugs and small feature enhancements I wanted to do. So I started assigning them to the factory. </p><p class="paragraph" style="text-align:left;">And the factory worked, so I wanted to take on more. More enhancements, more eval runs. A lot of (mostly) small changes. </p><p class="paragraph" style="text-align:left;">And since they were small, I didn’t want to take all that time to fully think through and spec them out. “No prompting,” after all. So I let the agents take over that part too. The factory got prompts on how to write specs. Now, all it needed to run was a well-defined GitHub issue.</p><p class="paragraph" style="text-align:left;">GitHub issues, which at this point I was letting Claude author too.</p><p class="paragraph" style="text-align:left;">I gave Claude a skill for creating issues and assigning them to the factory. The Claude in my terminal could write the ticket, and the factory could take it from there, writing out the full specs and implementing them. Claude <i>loved</i> the factory. The issue count was growing fast.</p><p class="paragraph" style="text-align:left;">Of course, I was still a big believer in keeping a human in the loop (in theory). So the factory paused when it needed my input. And every PR it created needed my approval.</p><p class="paragraph" style="text-align:left;">By then, there were at any given time about a dozen PRs waiting for my review, and a couple dozen more cards blocked on my input. I wanted the factory to check with me, but I just didn’t have the mental bandwidth for the context switches. It was so much easier to say, “Claude, review this.” So I created a “review factory PR” skill. </p><p class="paragraph" style="text-align:left;">Wait, didn’t Claude already review this code? Yes. Sol wrote it using the Codex harness, and the factory ran its own headless Claude Code review. But that was the factory’s headless Claude. This was my friend Claude in my terminal. </p><p class="paragraph" style="text-align:left;">And there were <i>so many PRs</i>. I ended up just saying, “I trust you, Claude. Just merge it when it looks good to you.” </p><p class="paragraph" style="text-align:left;">Claude was great at reviewing, and at merging, and at finding follow-up issues too. For every PR it merged, it filed two more issues and assigned them to the factory as well.</p><p class="paragraph" style="text-align:left;">So I somehow went from “I have a bug I’d like to fix” to “Claude found two more things for Claude to do.” You do the math. I’d started this whole thing because I was tired of tabs waiting on me. Now I had a giant board full of cards waiting on me.</p><p class="paragraph" style="text-align:left;">And while I wasn’t looking closely, the slop started building up.</p><h2 class="heading" style="text-align:left;" id="ai-dev-con-to-the-rescue">aiDevCon to the rescue</h2><p class="paragraph" style="text-align:left;">That was the central question in my mind as I attended aiDevCon: How could I run my factory at full speed, manage all the work, and still keep the quality high?</p><p class="paragraph" style="text-align:left;">Turns out, you can’t.<br><br>(That’s the theme of this piece, so read it again.)<br><br>Turns out, you can’t. At least not yet, not with the current models. Removing human review altogether is what’s known as a “dark factory.” And it turns out I was <a class="link" href="https://addyosmani.com/blog/software-factories/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-you-need-a-software-factory" target="_blank" rel="noopener noreferrer nofollow">not the only one</a> having quality problems with my dark factory. <a class="link" href="https://www.aidevcon.app/schedule/nx771a73krv24dmemq5tf6g24n8gnsd0?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-you-need-a-software-factory" target="_blank" rel="noopener noreferrer nofollow">Talk</a> after <a class="link" href="https://www.youtube.com/watch?v=yKoP9E1NL-w&utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-you-need-a-software-factory" target="_blank" rel="noopener noreferrer nofollow">talk</a> after <a class="link" href="https://www.aidevcon.app/schedule/nx75hj0vw3xxmsfnhx292tzerh8h4ay8?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-you-need-a-software-factory" target="_blank" rel="noopener noreferrer nofollow">talk</a> came back to the same point: Somebody still has to look at the evidence, decide whether the change does what you wanted, and make the call when a change is risky. For better or worse, we can’t just “trust the agents” to do all that for us. I don’t see that changing anytime soon.</p><p class="paragraph" style="text-align:left;">So we’re still on the hook for review. But with agents producing PRs so much faster, how do we keep up with all those reviews? That came up in a lot of the talks too. </p><p class="paragraph" style="text-align:left;">One common idea is to have the agent <a class="link" href="https://www.youtube.com/watch?v=yKoP9E1NL-w&utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-you-need-a-software-factory" target="_blank" rel="noopener noreferrer nofollow">show its work</a>. If I ask for a change to what a user sees, give me a preview and let me try it. If it’s a service change, show me the request and what came back.</p><p class="paragraph" style="text-align:left;">Another idea was to surface what the agents argued about. If the agent writing the code and the agent reviewing it read the same requirement two different ways, I want both interpretations in the PR, so I can be the decider. And if the change touches a part of the system I’m worried about, sure, I’ll open the diff.</p><p class="paragraph" style="text-align:left;">And perhaps the most important aspect of the human review: accountability. It’s not the agent’s work, it’s yours. It’s your responsibility to make sure that things won’t go sideways when it ships.</p><p class="paragraph" style="text-align:left;">Here’s my synthesis of what you (the human) should still review:</p><div style="padding:14px 15px 14px;"><table class="bh__table" width="100%" style="border-collapse:collapse;"><tr class="bh__table_row"><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;"><b>Keep reviewing</b></p></td><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;"><b>Why</b></p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">The spec, before anything is built</p></td><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">The cheapest place to catch a wrong idea.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">The results, starting with anything that failed or wasn’t verified</p></td><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">Does it work the way you intended? Anything the agents couldn’t show working comes first.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">Decisions the spec left open</p></td><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">A spec is only a map. Check the choices the agents made along the way.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">Disagreements the agents didn’t settle</p></td><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">If the reviewer flagged something and the implementor wouldn’t fix it, you make the call.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">Changes made after acceptance testing</p></td><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">Only the automated tests ran on them.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">Checks only a person can do</p></td><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">The test plan names them up front, so they don’t get skipped.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">The riskiest code</p></td><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">For the most complicated and risky parts of the code, a review by someone who knows that code is still worth the time.</p></td></tr></table></div><p class="paragraph" style="text-align:left;">And here’s what you can delegate to a machine:</p><div style="padding:14px 15px 14px;"><table class="bh__table" width="100%" style="border-collapse:collapse;"><tr class="bh__table_row"><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;"><b>Stop reviewing</b></p></td><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;"><b>Who does it instead</b></p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">The whole diff, line by line</p></td><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">An agent reviewer. It’s better than humans at catching bugs, and the implementor has to fix what it finds or say why not.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">Style, standards, and code quality</p></td><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">Linters and rules. They can catch all kinds of slop, from huge files to overly complex methods.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">Whether it does what the spec asked</p></td><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">Agent verification. Every behavior in the spec gets a verdict and evidence, and an acceptance tester uses the change the way you would.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">CI failures and review comments</p></td><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">The workflow fixes them before it hands you the PR and tells you about any it didn’t fix.</p></td></tr></table></div><h2 class="heading" style="text-align:left;" id="the-lesson">The lesson</h2><p class="paragraph" style="text-align:left;">In a nutshell, I tried to go too fast, to take on too much work all at once. I knew we humans can only multitask so much. And I knew it’s important for humans to remain in the loop, defining exactly what they want the agent to build and then <a class="link" href="https://codagent.beehiiv.com/p/the-middle-agentic-path?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-you-need-a-software-factory" target="_blank" rel="noopener noreferrer nofollow">thoughtfully verifying it</a>. </p><p class="paragraph" style="text-align:left;">But it was so easy to assign a ticket to an agent that I forgot all that. I’d started out using agents to speed up my work. Somewhere along the way, I’d handed them the hard parts, too.</p><p class="paragraph" style="text-align:left;">Use factories responsibly. Assigning a spec to an agent is not the same thing as assigning a ticket. You still have to do the thinking part. </p><p class="paragraph" style="text-align:left;">Kanban boards are great for teams, but you don’t need one to manage the two or three things you’re focused on today. And if you’re taking on more than that, you should seriously consider whether you want to be doing a few things well or a bunch sloppily.</p><p class="paragraph" style="text-align:left;">And that 10x you’ve heard about. Forget about it. Sure, you can get that level for certain kinds of work, like re-platforming and internal tooling. But for “real” product engineering work and complex systems, it’s a fantasy. There’s still a lot of work that human software engineers need to do (and that’s a good thing).</p><p class="paragraph" style="text-align:left;">So how much is realistic? In one <a class="link" href="https://arxiv.org/abs/2507.08149?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-you-need-a-software-factory" target="_blank" rel="noopener noreferrer nofollow">controlled study</a>, developers who finished the task correctly spent about half as much hands-on time with an agent as with Copilot. On a large story I worked on at my day job, I estimated how long it would have taken without agents and came up with a multiplier of about 2.3x. And <a class="link" href="https://tessl.io/blog/we-stopped-reviewing-code-and-started-verifying-intent?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-you-need-a-software-factory" target="_blank" rel="noopener noreferrer nofollow">Ankit Jain’s team</a> reported merging 4x as many PRs as a year earlier. I’d expect around 2x velocity on most work that goes to a factory. I’ll take that.</p><p class="paragraph" style="text-align:left;">As for multitasking, here’s the kind of parallel work I think works best: While the factory is implementing and verifying one spec, I’m working with an agent on writing the next one. </p><p class="paragraph" style="text-align:left;">Two things can move forward, and I only have to think hard about one at a time. I really can’t thoughtfully produce good specs any faster than the factory can complete one. So I’m still the bottleneck. But that’s okay.</p><p class="paragraph" style="text-align:left;">So then what’s a factory still good for? It all comes back to that one word: workflows.<br><br>That workflow that worked perfectly, 45% of the time? If it skipped the verification step, I had to notice, find the right session, and ask it to go back. Lots of switching back and forth between tabs to make sure the implementor session was not just done, but “done done”. With a factory, I know that when the work comes back, it includes everything I asked for.</p><p class="paragraph" style="text-align:left;">It’s not just agents that are bad at faithfully following every step of a workflow; humans are equally bad, especially across a team. I’ve never seen a team of programmers consistently follow the same manual process the same way.</p><p class="paragraph" style="text-align:left;">So figure out the right SDLC workflows for you and/or your team. Then don’t <i>tell</i> your team to follow them. Don’t tell the agents either. Stand up the workflows in a software factory. <br><br>Have humans and agents collaborate on the spec. Then the factory executes the workflow, and humans make the judgment calls at the end.</p><h2 class="heading" style="text-align:left;" id="out-of-the-ashes">Out of the ashes</h2><p class="paragraph" style="text-align:left;">So where am I now? Last week, I decided to “throw one away” and start rebuilding. The new factory is simpler and more focused, built on other open-source tools, and designed to work out of the box. I write each spec with an agent, and the factory starts once the spec is done. It builds the change, reviews it, tests it, and hands back a pull request with the key decisions and results highlighted for me to efficiently review.</p><p class="paragraph" style="text-align:left;">In the process of rewriting, I’ve slowed down and thought it through bit by bit. And because I’ve already built this once, I have a really strong idea of what works, what provides real value, and what’s just fluff. The new repo is clean, lean, and tight. I’m not reviewing every line of code by any means, but this time I have high confidence that the code does what I need, not a convoluted list of things the agents thought I should have.</p><p class="paragraph" style="text-align:left;">Next time, I’ll unveil the new project, and talk about what I’ve thrown away, what I’ve decided to “buy” (for free) rather than building myself, and which “good parts” I’ve kept and am excited about. It’s free and open source, and it runs on the Claude Code or Codex subscription you already have.</p><p class="paragraph" style="text-align:left;">Spoiler: there’s no kanban board.</p></div><div class='beehiiv__footer'><br class='beehiiv__footer__break'><hr class='beehiiv__footer__line'><a target="_blank" class="beehiiv__footer_link" style="text-align: center;" href="https://www.beehiiv.com/powered-by?publication_logo=https%3A%2F%2Fmedia.beehiiv.com%2Fcdn-cgi%2Fimage%2Ffit%3Dscale-down%2Cformat%3Dauto%2Conerror%3Dredirect%2Cquality%3D80%2Fuploads%2Fpublication%2Flogo%2F75d4e32c-8d3f-4873-a605-ab2cefc33df5%2Fcodagent-logo.png%3Fv%3D1796528970&publication_name=Agents%2C+harnessed&utm_campaign=4de2a2a8-d109-4789-961d-cc16a54d5ea2&utm_medium=post_rss&utm_source=agents_harnessed">Powered by beehiiv</a></div></div>
  ]]></content:encoded>
</item>

      <item>
  <title>Your agent is calling</title>
  <description>(don&#39;t answer it)</description>
      <enclosure url="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/9bcd1394-b7d9-477e-b8c8-e888de731fca/Gemini_Generated_Image_yyh0j5yyh0j5yyh0.jpeg" length="979158" type="image/jpeg"/>
  <link>https://codagent.beehiiv.com/p/your-agent-is-calling</link>
  <guid isPermaLink="true">https://codagent.beehiiv.com/p/your-agent-is-calling</guid>
  <pubDate>Wed, 30 Sep 2026 04:00:00 +0000</pubDate>
  <atom:published>2026-09-30T04:00:00Z</atom:published>
    <dc:creator>Paul Caplan</dc:creator>
    <category><![CDATA[Coding Agents]]></category>
    <category><![CDATA[Context Engineering]]></category>
  <content:encoded><![CDATA[
    <div class='beehiiv'><style>
  .bh__table, .bh__table_header, .bh__table_cell { border: 1px solid #C0C0C0; }
  .bh__table_cell { padding: 5px; background-color: #FFFFFF; }
  .bh__table_cell p { color: #2D2D2D; font-family: 'Helvetica',Arial,sans-serif !important; overflow-wrap: break-word; }
  .bh__table_header { padding: 5px; background-color:#F1F1F1; }
  .bh__table_header p { color: #2A2A2A; font-family:'Trebuchet MS','Lucida Grande',Tahoma,sans-serif !important; overflow-wrap: break-word; }
</style><div class='beehiiv__body'><p class="paragraph" style="text-align:left;">You can hear it, right? Claude / Codex / whoever?</p><p class="paragraph" style="text-align:left;">It&#39;s waiting for your attention. The red &quot;blocked&quot; indicator (if you&#39;re running <a class="link" href="https://herdr.dev/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">herdr</a> or something like that).</p><p class="paragraph" style="text-align:left;">Or you&#39;re out in town and you feel that buzz in your pocket from the mobile app.</p><p class="paragraph" style="text-align:left;">I&#39;ve been getting those calls 24/7 since I got my <a class="link" href="https://github.com/Codagent-AI/agent-factory?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">agent factory</a> up and running.</p><p class="paragraph" style="text-align:left;">And no, you can&#39;t use it. It&#39;s <i>my</i> factory. I mean, you can, but I don&#39;t recommend it.</p><p class="paragraph" style="text-align:left;">Not because of the mental health toll. That part&#39;s worth it. It&#39;s just that it&#39;s (for now) customized to my own workflows. What is it doing, you ask? I&#39;ll get more into that in the next article, along with why it&#39;s worth the toll.</p><p class="paragraph" style="text-align:left;">I&#39;m shipping many PRs faster (and most of them smaller, which is a good thing). Before the factory, in a good week I was shipping 8 Codagent PRs. In the last week I&#39;ve completed 103.</p><p class="paragraph" style="text-align:left;">Why more? Because a factory is a true loop:</p><div class="image"><img alt="" class="image__image" style="" src="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/5285c310-26b5-4c32-856f-93d64439a7da/Gemini_Generated_Image_zi63sjzi63sjzi63__1_.jpeg?t=1790709859"/></div><p class="paragraph" style="text-align:left;">So where is the human in the loop? I&#39;m still trying to sort that out exactly. Reviewing every PR? Obviously not. Some days it goes like this:</p><div class="blockquote"><blockquote class="blockquote__quote"><p class="paragraph" style="text-align:left;"><b>Claude:</b> These 15 PRs are ready for you. </p><p class="paragraph" style="text-align:left;"><b>Me:</b> Um, do they look good to you? </p><p class="paragraph" style="text-align:left;"><b>Claude</b> <i>(a little while later)</i>: My comments are addressed. PRs are ready. </p><p class="paragraph" style="text-align:left;"><b>Me:</b> Merge them.</p><figcaption class="blockquote__byline"></figcaption></blockquote></div><p class="paragraph" style="text-align:left;">The short answer is, I <a class="link" href="https://codagent.beehiiv.com/p/the-middle-agentic-path?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">steer</a>. Always steering.</p><p class="paragraph" style="text-align:left;">Steering toward what?</p><ul><li><p class="paragraph" style="text-align:left;"><i>Perfecting</i> my <a class="link" href="https://github.com/Codagent-AI/agent-runner?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow">agent-runner</a> workflow, from defining a change to implementing, verifying, and accepting it.</p></li><li><p class="paragraph" style="text-align:left;"><i>Improving instrumentation</i> and analysis so I know what&#39;s working and what&#39;s not.</p></li><li><p class="paragraph" style="text-align:left;"><i>Running </i><a class="link" href="https://github.com/Codagent-AI/agent-evals?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow"><i>evals</i></a> to see which variants yield better performance or lower cost.</p></li><li><p class="paragraph" style="text-align:left;">All while trying to keep up with the latest damn model releases!</p></li></ul><p class="paragraph" style="text-align:left;">And there&#39;s <i>always</i> a fresh alert telling me to put my hands back on the wheel. A batch of changes is done. Something needs to be closely verified, not just stamped. The next big change needs to be spec&#39;d out.</p><p class="paragraph" style="text-align:left;">I don&#39;t mean just a literal notification; the alerts are in my head too. Wondering what decisions are waiting for me, when I can get back to my computer. Getting back up from bed because I thought of one more prompt I want to run overnight. Trying to squeeze every possible token out of my weekly allowance.</p><p class="paragraph" style="text-align:left;">I don&#39;t <i>always</i> answer it. Because no, the calls are not toll-free.</p><hr class="content_break"><p class="paragraph" style="text-align:left;">But that’s a wrap on this piece. There are… more things to be done.</p><p class="paragraph" style="text-align:left;">More smaller PRs and shorter newsletter articles…</p><hr class="content_break"><h2 class="heading" style="text-align:left;" id="appendix-agentrunner-changes-since-"><b>Appendix: agent-runner changes since last article</b></h2><h2 class="heading" style="text-align:left;" id="040"><b>0.4.0</b></h2><p class="paragraph" style="text-align:left;">Agent Runner 0.4.0 ships the v2 change workflows, interactive intake, exploratory acceptance, and automatic failure recovery, plus a long run of reliability fixes found in real workflow runs.</p><h3 class="heading" style="text-align:left;" id="highlights"><b>Highlights</b></h3><ul><li><p class="paragraph" style="text-align:left;"><b>v2 change workflows.</b> Full and simple workflows for OpenSpec and spec-driven changes run proposal, specs, design, test plan, tasks, implementation, acceptance, archive, and PR finalization, with dedicated Lead, Crosscheck, Implementor, and Tester roles. Spec-driven keeps its artifacts outside the repository. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/58?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#58</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/155?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#155</span></a>)</p></li><li><p class="paragraph" style="text-align:left;"><b>Interactive intake.</b> <code>agent-runner -i</code> opens a conversation with an agent that clarifies what you want, then routes it into the right workflow with that context carried along. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/59?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#59</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/58?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#58</span></a>)</p></li><li><p class="paragraph" style="text-align:left;"><b>Exploratory acceptance.</b> Acceptance reads the change to decide where to look and probes it like a user would, instead of replaying a checklist written before the code existed. Acceptance and flow-testing steps get their own scratch folder. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/82?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#82</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/183?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#183</span></a>)</p></li><li><p class="paragraph" style="text-align:left;"><b>Automatic failure recovery.</b> When a deterministic check fails, such as an archive commit rejected by a hook or a task left uncommitted, Agent Runner runs a bounded repair cycle with an agent, re-verifies, and shows the repair attempts and failure evidence in the run view. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/114?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#114</span></a>)</p></li><li><p class="paragraph" style="text-align:left;"><b>Role-based setup.</b> Setup recommends Lead, Crosscheck, Implementor, and Tester agents from your installed CLIs, favoring model-family diversity, with accept-all or per-role customization. <code>planner</code> and <code>reviewer</code> still work as deprecated aliases. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/57?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#57</span></a>)</p></li><li><p class="paragraph" style="text-align:left;"><b>Redesigned run view.</b> New navigation and step detail pane, pull-request links in the breadcrumb, and lower CPU use. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/61?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#61</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/58?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#58</span></a>)</p></li></ul><h3 class="heading" style="text-align:left;" id="workflows"><b>Workflows</b></h3><ul><li><p class="paragraph" style="text-align:left;"><code>finalize-pr</code> keeps one lead session across its CI fix loop, re-verifies CI after the last fix, treats an incomplete review-bot review as a warning, and takes a configurable <code>ci_fix_cycles</code> budget. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/113?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#113</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/122?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#122</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/130?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#130</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/89?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#89</span></a>)</p></li><li><p class="paragraph" style="text-align:left;"><code>verify-change</code> stops before opening a PR when the validator stays red, records the acceptance-round validator result, and refreshes an existing draft PR&#39;s body while leaving hand-written bodies alone. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/156?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#156</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/158?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#158</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/171?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#171</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/176?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#176</span></a>)</p></li><li><p class="paragraph" style="text-align:left;">Defects found by the simplify step are routed into fixes instead of being dropped. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/182?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#182</span></a>)</p></li><li><p class="paragraph" style="text-align:left;"><code>verify-task-commit</code> accepts a task verifiably delivered outside the repository, and each task delivery gets a unique record path. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/160?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#160</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/170?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#170</span></a>)</p></li><li><p class="paragraph" style="text-align:left;">Built-in workflow prompts no longer mandate the TDD skill. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/83?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#83</span></a>)</p></li></ul><h3 class="heading" style="text-align:left;" id="writing-workflows"><b>Writing workflows</b></h3><ul><li><p class="paragraph" style="text-align:left;">Project workflows can call built-in sub-workflows with <code>builtin:</code> references, and counted loops accept <code>max_param</code>. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/89?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#89</span></a>)</p></li><li><p class="paragraph" style="text-align:left;">Built-in script steps bundle their sibling helper scripts, fixing failures such as an OpenSpec archive that could not find <code>validate-change-name.sh</code>. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/159?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#159</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/164?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#164</span></a>)</p></li><li><p class="paragraph" style="text-align:left;"><code>skip_if</code> works on steps inside a group. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/102?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#102</span></a>)</p></li><li><p class="paragraph" style="text-align:left;"><code>agent-runner run --session-dir &lt;path&gt;</code> places a run&#39;s session directory where you choose. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/90?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#90</span></a>)</p></li><li><p class="paragraph" style="text-align:left;">Agents can start, poll, and cancel runner-owned agent calls asynchronously. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/114?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#114</span></a>)</p></li></ul><h3 class="heading" style="text-align:left;" id="runs-and-resume"><b>Runs and resume</b></h3><ul><li><p class="paragraph" style="text-align:left;">Old run directories are cleaned up automatically, configurable with <code>run_retention</code> in settings. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/175?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#175</span></a>)</p></li><li><p class="paragraph" style="text-align:left;">Resume restarts a loop iteration when its loop variable changed, and resuming nested or failed workflows is more robust. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/133?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#133</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/58?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#58</span></a>)</p></li><li><p class="paragraph" style="text-align:left;">Resumed Claude sessions receive the step prompt as a user message, headless Claude tasks stay in the foreground, and step completion from headless attempts is rejected. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/149?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#149</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/154?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#154</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/162?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#162</span></a>)</p></li></ul><h3 class="heading" style="text-align:left;" id="usage-and-cost-tracking"><b>Usage and cost tracking</b></h3><ul><li><p class="paragraph" style="text-align:left;">Run metrics include Claude subagent usage, per-step attribution of cumulative Codex and Claude session usage and cost, uncached input tokens for Codex, and a reason for skipped agent steps that were never invoked. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/194?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#194</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/143?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#143</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/146?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#146</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/169?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#169</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/145?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#145</span></a>)</p></li><li><p class="paragraph" style="text-align:left;">Validator runs are instrumented and correlated with run metrics. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/114?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#114</span></a>)</p></li><li><p class="paragraph" style="text-align:left;">Per-step changed paths and git attribution are accurate: preexisting dirty or unchanged paths are excluded and committed renames are handled. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/131?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#131</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/132?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#132</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/134?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#134</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/135?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#135</span></a>)</p></li></ul><h3 class="heading" style="text-align:left;" id="internal-and-development"><b>Internal and development</b></h3><ul><li><p class="paragraph" style="text-align:left;">Development-build-only automatic run audits, with sandboxing and hardening. Not included in release builds. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/63?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#63</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/110?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#110</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/127?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#127</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/129?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#129</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/141?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#141</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/144?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#144</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/146?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#146</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/147?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#147</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/152?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#152</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/180?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#180</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/184?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#184</span></a>)</p></li><li><p class="paragraph" style="text-align:left;">Agent-factory routing and fix-workflow support. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/66?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#66</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/67?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#67</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/89?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#89</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/112?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#112</span></a>)</p></li><li><p class="paragraph" style="text-align:left;">Development and sandbox images, hermetic tests, and smoke-test cleanup. (<a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/98?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#98</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/117?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#117</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/167?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#167</span></a>, <a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/173?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#173</span></a>)</p></li></ul><h2 class="heading" style="text-align:left;" id="030"><b>0.3.0</b></h2><h3 class="heading" style="text-align:left;" id="minor-changes"><b>Minor Changes</b></h3><ul><li><p class="paragraph" style="text-align:left;"><a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/51?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#51</span></a> Add the second-generation OpenSpec change workflows with explicit define, plan, implement, acceptance, and finalization phases.</p></li><li><p class="paragraph" style="text-align:left;"><a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/52?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#52</span></a> Replace the interactive PTY proxy with direct terminal handoff for more faithful native agent sessions.</p></li><li><p class="paragraph" style="text-align:left;"><a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/54?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#54</span></a> Record durable token usage, estimated cost, and timing metrics across workflow and child-agent execution.</p></li><li><p class="paragraph" style="text-align:left;"><a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/55?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#55</span></a> Add synchronous Runner-owned agent calls with named sessions, audit evidence, cancellation, and usage accounting.</p></li><li><p class="paragraph" style="text-align:left;"><a class="link" href="https://github.com/Codagent-AI/agent-runner/pull/56?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=your-agent-is-calling" target="_blank" rel="noopener noreferrer nofollow" style="color: #0969da"><span style="text-decoration:underline;">#56</span></a> Add versioned workflow resolution and explicit reusable orchestration for reviews and targeted acceptance verification.</p></li></ul></div><div class='beehiiv__footer'><br class='beehiiv__footer__break'><hr class='beehiiv__footer__line'><a target="_blank" class="beehiiv__footer_link" style="text-align: center;" href="https://www.beehiiv.com/powered-by?publication_logo=https%3A%2F%2Fmedia.beehiiv.com%2Fcdn-cgi%2Fimage%2Ffit%3Dscale-down%2Cformat%3Dauto%2Conerror%3Dredirect%2Cquality%3D80%2Fuploads%2Fpublication%2Flogo%2F75d4e32c-8d3f-4873-a605-ab2cefc33df5%2Fcodagent-logo.png%3Fv%3D1796528970&publication_name=Agents%2C+harnessed&utm_campaign=706317e6-0fd6-4cd4-bc45-dd9bde9fca9f&utm_medium=post_rss&utm_source=agents_harnessed">Powered by beehiiv</a></div></div>
  ]]></content:encoded>
</item>

      <item>
  <title>Back from the Cave With Slides</title>
  <description>Agent harnesses, SREday slides, sandboxing, and the and-scene presentation skill.</description>
      <enclosure url="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/a77a455b-9023-4564-acf1-45e098bb4977/Gemini_Generated_Image_pwl4v4pwl4v4pwl4.png" length="5349516" type="image/png"/>
  <link>https://codagent.beehiiv.com/p/back-from-the-cave-with-slides</link>
  <guid isPermaLink="true">https://codagent.beehiiv.com/p/back-from-the-cave-with-slides</guid>
  <pubDate>Wed, 08 Jul 2026 03:03:56 +0000</pubDate>
  <atom:published>2026-07-08T03:03:56Z</atom:published>
    <dc:creator>Paul Caplan</dc:creator>
  <content:encoded><![CDATA[
    <div class='beehiiv'><style>
  .bh__table, .bh__table_header, .bh__table_cell { border: 1px solid #C0C0C0; }
  .bh__table_cell { padding: 5px; background-color: #FFFFFF; }
  .bh__table_cell p { color: #2D2D2D; font-family: 'Helvetica',Arial,sans-serif !important; overflow-wrap: break-word; }
  .bh__table_header { padding: 5px; background-color:#F1F1F1; }
  .bh__table_header p { color: #2A2A2A; font-family:'Trebuchet MS','Lucida Grande',Tahoma,sans-serif !important; overflow-wrap: break-word; }
</style><div class='beehiiv__body'><p class="paragraph" style="text-align:left;">Full disclosure: I have to give credit for the title to AI. Is it my best one yet? Definitely not. But it&#39;s &quot;in my voice&quot; and perfectly sums up the last month.</p><p class="paragraph" style="text-align:left;">So let me catch you up. Where we left off, I finally unveiled <a class="link" href="https://github.com/Codagent-AI/agent-runner?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=back-from-the-cave-with-slides" target="_blank" rel="noopener noreferrer nofollow" style="color: #8a5cf5">Agent Runner</a>. Then I was heads down preparing for my talk at SREday NYC on June 6. So I made some &quot;slides&quot; (as you will see, that term is a bit of an understatement). If you read nothing else, please check out the <a class="link" href="https://www.codagent.dev/what-is-a-harness?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=back-from-the-cave-with-slides" target="_blank" rel="noopener noreferrer nofollow" style="color: #8a5cf5">presentation</a>. Because this is the entire thesis of my series of articles and work at Codagent in one presentation.</p><p class="paragraph" style="text-align:left;">And then I went to my &quot;cave&quot; - a 10-day retreat on the beach in southern Maine (there was camping involved but no actual cave AFAIK). Then spent another 10 days catching up on stuff at home and enjoying the summer with family. So after a needed month of <a class="link" href="https://builtin.com/articles/ai-brain-fry-software-developers?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=back-from-the-cave-with-slides" target="_blank" rel="noopener noreferrer nofollow" style="color: #8a5cf5">AI burnout prevention</a>, I&#39;ve cracked open my Codagent dev machine and am back at it.</p><hr class="content_break"><h2 class="heading" style="text-align:left;" id="agent-harnesses-talk"><b>Agent Harnesses talk</b></h2><p class="paragraph" style="text-align:left;">The talk was called &quot;Agent Harnesses: From Slot Machines to Safety Nets&quot;. An agent is the model plus the harness around it: the runtime loop, tools, context, instructions, memory, validation, workflow, and the pieces that make the agent&#39;s work repeatable enough to trust.</p><p class="paragraph" style="text-align:left;">One part of the presentation I haven&#39;t written much about yet is sandboxing. For an SRE talk, it belongs in the reliability story: agents that can run commands, read files, and call tools need real security boundaries.</p><p class="paragraph" style="text-align:left;">The more I use coding agents, the more convinced I am that &quot;don&#39;t run agents in YOLO mode&quot; is mostly bad advice. If the agent has to ask permission every time it inspects a file, installs a package, runs tests, or retries a command, the workflow breaks down fast.</p><p class="paragraph" style="text-align:left;">The practical answer is: don&#39;t YOLO on your actual machine. Run the agent in a secure, isolated workspace where it only has access to the files, credentials, and network paths it needs. I started experimenting with a Docker/devcontainer sandbox path for Agent Runner eval work, and I&#39;m thinking about how to turn that into a normal part of my portable outer harness setup.</p><p class="paragraph" style="text-align:left;">The three pieces shaping that thinking right now:</p><ul><li><p class="paragraph" style="text-align:left;"><a class="link" href="https://www.docker.com/blog/docker-sandboxes-run-agents-in-yolo-mode-safely/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=back-from-the-cave-with-slides" target="_blank" rel="noopener noreferrer nofollow" style="color: #8a5cf5">Docker Sandboxes: Run Agents in YOLO Mode Safely</a> - useful coding agents need autonomy, but that autonomy belongs inside an isolated environment.</p></li><li><p class="paragraph" style="text-align:left;"><a class="link" href="https://simonwillison.net/2025/Jun/16/the-lethal-trifecta/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=back-from-the-cave-with-slides" target="_blank" rel="noopener noreferrer nofollow" style="color: #8a5cf5">The lethal trifecta for AI agents</a> - Simon Willison&#39;s frame for the dangerous combination of private data, tool access, and external communication.</p></li><li><p class="paragraph" style="text-align:left;"><a class="link" href="https://www.uber.com/us/en/blog/solving-the-agent-identity-crisis/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=back-from-the-cave-with-slides" target="_blank" rel="noopener noreferrer nofollow" style="color: #8a5cf5">Solving the Agent Identity Crisis</a> - Uber&#39;s version of the identity side: scoped credentials, actor-chain provenance, and knowing who authorized what.</p></li></ul><p class="paragraph" style="text-align:left;">Even with the sandboxing topic added in, framing coding agents as an SRE problem had me a bit nervous walking in. But that framing seemed to land - as did the visuals.</p><p class="paragraph" style="text-align:left;">The recording will be posted on the SREday YouTube channel, but it isn&#39;t up yet.</p><p class="paragraph" style="text-align:left;">Spoiler alert: Here is a key &quot;slide&quot; from the presentation:</p><div class="image"><img alt="" class="image__image" style="" src="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/97df4c7c-5a0b-4781-9886-511c02c039fc/image.png?t=1783478382"/><div class="image__source"><span class="image__source_text"><p>Agent Harnesses Talk - Final “Slide”</p></span></div></div><h2 class="heading" style="text-align:left;" id="and-scene"><b>And ... Scene</b></h2><p class="paragraph" style="text-align:left;">If you haven&#39;t looked at the link above yet, calling this a &quot;slide deck&quot; isn&#39;t quite right. What is it then? Well, to start, it&#39;s a browser presentation; HTML feels like a much more natural medium for technical presentations in 2026. After building this one, I have a hard time imagining going back to PowerPoint.</p><p class="paragraph" style="text-align:left;">There are plenty of HTML slide decks out there. But I believe this one is doing something different. It uses what I&#39;m calling an &quot;evolving-scene model&quot;: one shared diagrammatic canvas where a stable set of entities morphs across named steps. Boxes appear, move, connect, collapse, and re-label as the talk develops. The continuity between steps is the key differentiator.</p><p class="paragraph" style="text-align:left;">And I came up with that model because that&#39;s basically how my brain works. I tend to understand things by building a map of concepts, then visualizing how they connect and layer on top of each other like building blocks. A &quot;normal&quot; slide deck typically treats each slide as a distinct departure from the previous one. Yes, PowerPoint has animations, but &quot;evolving scenes&quot; are challenging to make at best.</p><p class="paragraph" style="text-align:left;">But once I had this method working, I knew I was going to use it again. So I turned the creation process into a skill: <code>/and-scene:presentation</code>. It interviews you about the topic, style, content, and what should happen in the visual “storyline”. Then it scaffolds the browser app if needed, codes up the presentation, and verifies the output in the browser.</p><p class="paragraph" style="text-align:left;">Get it here: <a class="link" href="https://github.com/Codagent-AI/and-scene?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=back-from-the-cave-with-slides" target="_blank" rel="noopener noreferrer nofollow" style="color: #8a5cf5">and-scene</a>. The README has a couple of videos of example presentations too, which is probably the fastest way to get a feel for what it can do.</p><h2 class="heading" style="text-align:left;" id="the-twist-ending"><b>The twist ending</b></h2><p class="paragraph" style="text-align:left;">So why did I make this skill? What I told you above is the truth but not the whole truth. Here&#39;s the actual origin of my idea to make a presentation skill.</p><p class="paragraph" style="text-align:left;">I was trying to come up with a good eval task for Agent Runner, so I could test my coding <a class="link" href="https://codagent.beehiiv.com/p/agent-workflows-arrive?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=back-from-the-cave-with-slides" target="_blank" rel="noopener noreferrer nofollow" style="color: #8a5cf5">workflows</a> repeatedly with different models, workflow steps, etc. Coming up with a good use case is harder than it sounds. If the task is too common or too simple, every decent model can chug through it and the eval doesn&#39;t tell you much. If it is too big or too weird, you are mostly measuring whether the agent got lost in the weeds. I wanted something in the middle: concrete enough to build, unusual enough that the agent couldn&#39;t solve it from muscle memory, and complicated enough to exercise the workflow around the model.</p><p class="paragraph" style="text-align:left;">For a while I was unsure what to do, and then I thought: why not make the use case about creating a skill for making presentations like that SREday one, and kill two birds with one stone?</p><p class="paragraph" style="text-align:left;">The eval task took the form of a spec for a skill that can make evolving-scene presentations. That spec had to describe the skill behavior, but also the technical underpinnings: the presentation kit, the evolving-scene model, the routing, the browser app, the verification loop, and a demo presentation proving the whole thing works.</p><p class="paragraph" style="text-align:left;">Next issue, I will get into the actual eval results: how I am using this task to compare models, workflow steps, and the harness around them.</p><hr class="content_break"><p class="paragraph" style="text-align:left;">In the meantime, please <a class="link" href="https://github.com/Codagent-AI/and-scene?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=back-from-the-cave-with-slides" target="_blank" rel="noopener noreferrer nofollow">try out the skill</a> and let me know what you think! I&#39;d love to hear if others find it compelling for making this style of presentation.</p></div><div class='beehiiv__footer'><br class='beehiiv__footer__break'><hr class='beehiiv__footer__line'><a target="_blank" class="beehiiv__footer_link" style="text-align: center;" href="https://www.beehiiv.com/powered-by?publication_logo=https%3A%2F%2Fmedia.beehiiv.com%2Fcdn-cgi%2Fimage%2Ffit%3Dscale-down%2Cformat%3Dauto%2Conerror%3Dredirect%2Cquality%3D80%2Fuploads%2Fpublication%2Flogo%2F75d4e32c-8d3f-4873-a605-ab2cefc33df5%2Fcodagent-logo.png%3Fv%3D1796528970&publication_name=Agents%2C+harnessed&utm_campaign=170c6c8e-4a9e-4482-8593-8082beb5b1bd&utm_medium=post_rss&utm_source=agents_harnessed">Powered by beehiiv</a></div></div>
  ]]></content:encoded>
</item>

      <item>
  <title>Agent Workflows Arrive!</title>
  <description>Agent Runner and Claude Workflows compared</description>
      <enclosure url="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/ad491f32-b3a5-431c-aeee-a27e6e834a49/Gemini_Generated_Image_5393za5393za5393.png" length="6148483" type="image/png"/>
  <link>https://codagent.beehiiv.com/p/agent-workflows-arrive</link>
  <guid isPermaLink="true">https://codagent.beehiiv.com/p/agent-workflows-arrive</guid>
  <pubDate>Mon, 01 Jun 2026 04:00:00 +0000</pubDate>
  <atom:published>2026-06-01T04:00:00Z</atom:published>
    <dc:creator>Paul Caplan</dc:creator>
    <category><![CDATA[Coding Agents]]></category>
    <category><![CDATA[Harness Engineering]]></category>
    <category><![CDATA[Outer Harness]]></category>
  <content:encoded><![CDATA[
    <div class='beehiiv'><style>
  .bh__table, .bh__table_header, .bh__table_cell { border: 1px solid #C0C0C0; }
  .bh__table_cell { padding: 5px; background-color: #FFFFFF; }
  .bh__table_cell p { color: #2D2D2D; font-family: 'Helvetica',Arial,sans-serif !important; overflow-wrap: break-word; }
  .bh__table_header { padding: 5px; background-color:#F1F1F1; }
  .bh__table_header p { color: #2A2A2A; font-family:'Trebuchet MS','Lucida Grande',Tahoma,sans-serif !important; overflow-wrap: break-word; }
</style><div class='beehiiv__body'><div class="blockquote"><blockquote class="blockquote__quote"><p class="paragraph" style="text-align:left;">Stop giving the agent a workflow. Put the agent inside the workflow.</p><figcaption class="blockquote__byline"> - Agent Runner </figcaption></blockquote></div><p class="paragraph" style="text-align:left;">Agent Runner is finally out in the world. You can try it here: <a class="link" href="https://github.com/Codagent-AI/agent-runner?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=agent-workflows-arrive" target="_blank" rel="noopener noreferrer nofollow">github.com/Codagent-AI/agent-runner</a>.</p><p class="paragraph" style="text-align:left;">I&#39;ve been promising for weeks that my agent workflow tool would drop by the end of May. Claude Code also released <a class="link" href="https://claude.com/blog/introducing-dynamic-workflows-in-claude-code?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=agent-workflows-arrive" target="_blank" rel="noopener noreferrer nofollow">workflows</a> in late May. Coincidence, or has someone from Anthropic been reading my newsletter? I guess we&#39;ll never know for sure...</p><p class="paragraph" style="text-align:left;">So yeah, I wasn&#39;t sure how to feel at first when Claude released a feature that, at least on the surface, looks a lot like what I&#39;ve spent so many late nights on. But up until this week, few besides me were even talking about agent workflows. I&#39;d much rather have the conversation move past whether you need workflows and toward <i>which</i> workflow orchestrator is right for you.</p><p class="paragraph" style="text-align:left;">In this article, I&#39;ll explain how both tools work and what problems each is best suited for.</p><h2 class="heading" style="text-align:left;" id="the-surface-level-similarity">The Surface Level Similarity</h2><p class="paragraph" style="text-align:left;">To find out what Claude Workflows actually are, I ran an experiment. I took my own <code>simple-change</code> workflow from Agent Runner and ported it to a Claude workflow: scout a small change, plan it, implement it with TDD, then have AI review the result.</p><p class="paragraph" style="text-align:left;">The first thing I noticed: Claude&#39;s workflow UI is eerily similar to mine. Like, nearly identical. My jaw dropped for a moment. Here is what they look like.</p><div class="image"><img alt="" class="image__image" style="" src="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/0147769e-6d6f-4035-8e27-24a4bdc2ed06/Pasted_image_20260531213950.png?t=1780280930"/><div class="image__source"><span class="image__source_text"><p><i>Claude Workflows: the ported </i><code>simple-change</code><i> run, with phases on the left and step progress in the main pane.</i></p></span></div></div><div class="image"><img alt="" class="image__image" style="" src="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/d74efef7-d86e-4fc6-b9fa-73eaa245a5bb/Pasted_image_20260531213926.png?t=1780280913"/><div class="image__source"><span class="image__source_text"><p><i>Claude Workflows: drilling into the </i><code>plan</code><i> step shows the prompt, activity, outcome, model, tokens, and tool calls.</i></p></span></div></div><div class="image"><img alt="" class="image__image" style="" src="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/8bb112ba-df29-410d-9152-5f4e72a61df8/Pasted_image_20260531213810.png?t=1780280876"/><div class="image__source"><span class="image__source_text"><p><i>Agent Runner: the original </i><code>simple-change</code><i> workflow with the interactive </i><code>plan</code><i> step selected and its prompt/session details visible.</i></p></span></div></div><p class="paragraph" style="text-align:left;">The anatomy is the same on both sides. A tree of phases and steps down the left. A detail pane on the right with the actual prompt that ran, the model, and the timing. A cursor on the selected step. And when a run stops, you resume it instead of starting over. Same muscle memory, drilling into a run to see what each agent actually did.</p><p class="paragraph" style="text-align:left;">Did someone at Anthropic have Agent Runner open in a tab? Probably not. More likely it&#39;s convergent evolution: once you put the agent inside the workflow, this is roughly the view you end up drawing.</p><p class="paragraph" style="text-align:left;">Once I started to dig deeper, the differences became apparent. My <code>plan</code> step stops to ask me what to build, and a Claude Workflow has nowhere to put a question like that, so it couldn&#39;t survive the port. It just vanished.</p><p class="paragraph" style="text-align:left;">The steps don&#39;t share a session either. Each one is a fresh agent with its own context window, carrying forward only what the previous step wrote down and passed along as text. Unlike with Agent Runner, there&#39;s no way a later step can resume an earlier agent&#39;s session, full context intact.</p><p class="paragraph" style="text-align:left;">The actual results? The Claude workflow worked. It found a real gap, wrote a test, got everything green, committed, and had reviewers try to tear it apart before signing off.</p><p class="paragraph" style="text-align:left;">But the experiment also showed the two tools aren&#39;t doing the same job. To see why, let&#39;s look at how each one actually works under the hood.</p><hr class="content_break"><h2 class="heading" style="text-align:left;" id="claude-workflows-subagents-as-code">Claude Workflows: Subagents as Code</h2><p class="paragraph" style="text-align:left;">Claude Workflows are JavaScript programs that run inside Claude Code. The script declares phases, calls <code>agent()</code> to start subagents, and uses normal code for the control flow: variables, conditionals, loops, <code>parallel()</code>, <code>pipeline()</code>, whatever the task needs.</p><p class="paragraph" style="text-align:left;">That is the important move. The orchestration lives in code, while the model handles the judgment inside each step.</p><p class="paragraph" style="text-align:left;">Here is the top of the workflow I ran:</p><div class="codeblock"><pre><code>export const meta = &#123;
  name: &#39;simple-change-trial&#39;,
  phases: [
    &#123; title: &#39;Scout&#39;,     detail: &#39;find one small, safe candidate change&#39; &#125;,
    &#123; title: &#39;Plan&#39;,      detail: &#39;turn the candidate into a concrete task&#39; &#125;,
    &#123; title: &#39;Implement&#39;, detail: &#39;implement with TDD in the worktree and commit&#39; &#125;,
    &#123; title: &#39;Validate&#39;, detail: &#39;independent reviewers try to refute the change&#39; &#125;,
  ],
&#125;
</code></pre></div><p class="paragraph" style="text-align:left;">Those phases are also what the progress UI draws. The script gives Claude Code a real structure to display and resume.</p><p class="paragraph" style="text-align:left;">Each unit of work is an <code>agent()</code> call:</p><div class="codeblock"><pre><code>phase(&#39;Scout&#39;)
const candidate = await agent(
  `Read the codebase and propose ONE small, safe change. ...`,
  &#123; label: &#39;scout&#39;, schema: CANDIDATE_SCHEMA &#125;,
)
</code></pre></div><p class="paragraph" style="text-align:left;">At the level Claude exposes, that starts a Claude Code subagent with its own context window and tools. The exact runtime internals are Anthropic&#39;s, but the composition unit is clear: you are composing agents. The <code>schema</code> option forces a structured result, so the next step can consume data instead of parsing vibes from prose.</p><p class="paragraph" style="text-align:left;">State moves through the script as variables:</p><div class="codeblock"><pre><code>const plan = await agent(
  `A scout proposed this change:\n$&#123;JSON.stringify(candidate, null, 2)&#125;\n\nProduce a minimal plan...`,
  &#123; schema: PLAN_SCHEMA &#125;,
)
</code></pre></div><p class="paragraph" style="text-align:left;">The scout returns <code>candidate</code>. The planner receives <code>candidate</code> and returns <code>plan</code>. Later steps receive the plan the same way. The main chat does not have to carry every intermediate result.</p><p class="paragraph" style="text-align:left;">Claude Workflows are especially strong when you want to fan work out to multiple agents:</p><div class="codeblock"><pre><code>phase(&#39;Validate&#39;)
const reviews = await parallel(
  LENSES.map((l) =&gt; () =&gt;
    agent(`ADVERSARIALLY review this change through the &quot;$&#123;l.key&#125;&quot; lens. Default to skepticism...`,
          &#123; schema: REVIEW_SCHEMA &#125;)),
)
const overall = reviews.some(r =&gt; r.verdict === &#39;reject&#39;)   ? &#39;reject&#39;
              : reviews.some(r =&gt; r.verdict === &#39;concerns&#39;) ? &#39;concerns&#39;
              : &#39;approve&#39;
</code></pre></div><p class="paragraph" style="text-align:left;">That fired three reviewers at the same change, gathered their structured results, and let plain JavaScript tally the verdict. No prompt gymnastics. No asking one agent to remember which reviewers it launched. The workflow script owned the coordination.</p><p class="paragraph" style="text-align:left;">There is one important boundary. The JavaScript is the conductor, but the subagents touch the repo. The script itself does not directly edit files or run shell commands. It asks subagents to do that work, then receives their results.</p><p class="paragraph" style="text-align:left;">That makes Claude Workflows especially natural for big, headless jobs: codebase sweeps, migrations, broad research passes, and adversarial review from multiple angles. In my trial, it was very good at that shape of work.</p><h2 class="heading" style="text-align:left;" id="agent-runner-processes-as-workflow-">Agent Runner: Processes as Workflow Steps</h2><p class="paragraph" style="text-align:left;">Agent Runner starts from a different primitive: a workflow step is a process.</p><p class="paragraph" style="text-align:left;">Sometimes that process is an agent CLI, like Claude Code, Codex, or opencode. Sometimes it is a plain shell command, like <code>make test</code>, <code>agent-validator</code>, <code>git</code>, or a project script. Agent Runner builds the command, runs it, captures the output, and decides what step comes next.</p><p class="paragraph" style="text-align:left;">Agent Runner ships with workflows for common developer loops, including <code>simple-change</code>. They are YAML files you can run as-is, copy, edit, or replace with your own.</p><p class="paragraph" style="text-align:left;">Here is the start of the built-in <code>simple-change</code> workflow:</p><div class="codeblock"><pre><code>name: simple-change
description: &quot;Quick plan + implement + validate workflow, okay for small changes&quot;

sessions:
  - name: lead-agent      # a named, explicit session reused across steps
    agent: planner
</code></pre></div><p class="paragraph" style="text-align:left;">The workflow is authored once as YAML. It also declares a named session, <code>lead-agent</code>, which gives later steps a handle back to the same agent conversation.</p><p class="paragraph" style="text-align:left;">That <code>agent: planner</code> line points at an agent profile in <code>~/.agent-runner/config.yaml</code>:</p><div class="codeblock"><pre><code>profiles:
    default:
        agents:
            planner:
                default_mode: interactive
                cli: claude
                model: opus
                effort: high
</code></pre></div><p class="paragraph" style="text-align:left;">The first step is a normal shell command:</p><div class="codeblock"><pre><code>- id: guard-clean-tree
  command: |
    agent-validator detect; status=$?; if [ $status -eq 0 ]; then echo &#39;Unvalidated changes detected. Run agent-validator before planning.&#39; &gt;&amp;2; exit 1; elif [ $status -ne 2 ]; then exit $status; fi
</code></pre></div><p class="paragraph" style="text-align:left;">No model needed. Before any planning starts, Agent Runner checks whether there are unvalidated changes and stops if the worktree is not ready.</p><p class="paragraph" style="text-align:left;">Then the workflow moves into the interactive planning step:</p><div class="codeblock"><pre><code>- id: plan
  session: lead-agent
  prompt: |
    Help the user plan the change. First, ask the user what the change
    is about. DO NOT attempt to guess. Then use the codagent:simple-plan skill.
</code></pre></div><p class="paragraph" style="text-align:left;">This is the line that disappeared when I ported the workflow to Claude Workflows. In Agent Runner, the human can be a step in the route. The agent stops, asks what to build, and continues from there. Planning writes a task file, and Agent Runner captures its path into <code>task_file</code> so later steps can use it.</p><p class="paragraph" style="text-align:left;">Then, implementation runs in a different agent profile:</p><div class="codeblock"><pre><code>- id: generate-code
  agent: implementor
  session: new
  mode: autonomous
  prompt: |
    Implement the task described in &#123;&#123;task_file&#125;&#125;. You MUST use the codagent:implement-with-tdd skill. When you are done implementing, commit your changes following the project&#39;s commit message conventions and prepend [&#123;&#123;step_id&#125;&#125;]. Then summarize to the user what you changed.
</code></pre></div><p class="paragraph" style="text-align:left;">That is the multi-agent part in action. Planning uses a Claude Code interactive session; code generation uses headless Codex. Both live in the same workflow, alongside shell commands.</p><p class="paragraph" style="text-align:left;">Workflows can also call other workflows:</p><div class="codeblock"><pre><code>- id: run-validator
  workflow: ../core/run-validator.yaml
  params:
    task_file: &quot;&#123;&#123;task_file&#125;&#125;&quot;
  continue_on_failure: true
</code></pre></div><p class="paragraph" style="text-align:left;">That validator step is a reusable route of its own: run checks, run review agents, fix failures, retry with bounds. <code>continue_on_failure</code> lets the parent workflow keep control when validation reports problems. No prompt has to remind an agent how the loop works.</p><p class="paragraph" style="text-align:left;">That is the core difference in the building block. Claude Workflows compose subagents. Agent Runner composes commands. A command can be an agent, a validator, a build, a test, or another workflow. If it has a CLI, Agent Runner can run it as a workflow step.</p><p class="paragraph" style="text-align:left;">The tradeoff is that Agent Runner is less focused on large parallel fan-out (right now). The payoff is that the route is durable, portable, and reusable for the daily engineering loop.</p><h2 class="heading" style="text-align:left;" id="different-tools-for-different-kinds">Different Tools for Different Kinds of Workflows</h2><p class="paragraph" style="text-align:left;">Here&#39;s my take: Agent Runner is better for common developer workflows because it can mix multiple agents with normal shell commands, builds, tests, and git. Claude Workflows are more flexible and powerful as a programming model because they are JavaScript, not declarative YAML.</p><p class="paragraph" style="text-align:left;">Agent Runner is a portable route for the daily engineering loop. Claude Workflows are built for big headless sweeps inside Claude Code.</p><p class="paragraph" style="text-align:left;">Here&#39;s a full comparison:</p><div style="padding:14px 15px 14px;"><table class="bh__table" width="100%" style="border-collapse:collapse;"><tr class="bh__table_row"><th class="bh__table_header" width="33%"><p class="paragraph" style="text-align:left;">Dimension</p></th><th class="bh__table_header" width="33%"><p class="paragraph" style="text-align:left;">Claude Workflows</p></th><th class="bh__table_header" width="33%"><p class="paragraph" style="text-align:left;">Agent Runner</p></th></tr><tr class="bh__table_row"><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Best job</p></td><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Fire-and-forget batch work: repo sweeps, migrations, broad research passes, multi-angle stress tests. Great when you want many agents working in the background and code-level orchestration flexibility.</p></td><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Common developer workflows: spec, build, validate, fix, review, ship. Great when the route needs agents, shell commands, validation tools, and git in one repeatable loop.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Composition atom</p></td><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">In-runtime Claude Code subagent. Each <code>agent()</code> call starts a fresh subagent inside Claude Code.</p></td><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">CLI process or shell command. A step can be an agent, a validator, a test command, a git command, or another workflow.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Authorship</p></td><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">JavaScript generated or saved for a task. More flexible than YAML: variables, loops, conditionals, <code>parallel()</code>, schemas, and arbitrary control flow.</p></td><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">YAML route authored once and reused. Less flexible as a programming model, but clearer for standard developer workflows that should run the same way every time.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Human checkpoints</p></td><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Headless by design. The docs recommend splitting work into separate workflows when you need a human checkpoint.</p></td><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Interactive steps and signal files can make the human a step. The <code>plan</code> step can stop, ask what to build, then continue.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">State</p></td><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Pass prior outputs through JS variables. The script can hand <code>candidate</code> to <code>plan</code>, then hand <code>plan</code> to later agents.</p></td><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Capture stdout into variables and interpolate them with <code>&#123;&#123;...&#125;&#125;</code>. A step can capture <code>task_file</code>, then a later shell command can use it directly.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Session</p></td><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Fresh subagent context per <code>agent()</code> call. Later agents see what earlier agents returned, not the full earlier conversation.</p></td><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Named sessions can be new/resume/inherit across steps and sub-workflows. A later step can reattach to the agent that wrote the plan or the code.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Parallelism</p></td><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Native <code>parallel()</code> fan-out. Powerful for big sweeps and multi-angle review.</p></td><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Sequential by design today. I designed parallel task execution and shelved it because most changes are relatively small and parallel support requires a local merge queue.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Token usage</p></td><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Anthropic warns workflows can consume substantially more tokens. My small trial used about 264,000 tokens to land a 51-line test.</p></td><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Lower orchestration token spend for common workflows because the route is already written and shell commands can run with no model overhead.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Shell/CI steps</p></td><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Subagents can run tools, but the JS script itself has no direct shell/filesystem access. The script coordinates agents that touch the repo.</p></td><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Shell commands, validators, builds, tests, git, and agents are all workflow steps. No model needed for a normal check, and no prompt needed to remember CI hygiene.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Vendor surface</p></td><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Deep Claude Code integration. Excellent if the team is already all-in on Claude Code.</p></td><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Any CLI agent with an adapter. A workflow can use Claude for one step, Codex for another, and a shell command for the next.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Paved road</p></td><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Powerful primitive. Teams can save workflows, parameterize them, and build their own paved roads on top.</p></td><td class="bh__table_cell" width="33%"><p class="paragraph" style="text-align:left;">Batteries-included SDD/validation route. A checklist says &quot;remember to validate.&quot; A paved road makes validation the next turn in the route.</p></td></tr></table></div><hr class="content_break"><h2 class="heading" style="text-align:left;" id="workflows-work">Workflows Work</h2><p class="paragraph" style="text-align:left;">The category is real now. A week ago, I still had to explain what I meant by an agent workflow. Now Anthropic has shipped one, people are trying it, and the conversation can move from &quot;do I need that?&quot; to &quot;which workflow tool fits this job?&quot;</p><p class="paragraph" style="text-align:left;">That is good for the whole category. It means less time arguing that workflows belong outside the chat transcript, and more time talking about the shape of workflow you actually want. There is room for both: Claude Workflows for huge headless sweeps inside Claude Code, Agent Runner for a durable, portable route through the daily engineering loop.</p><p class="paragraph" style="text-align:left;">Anthropic moved the loop out of the context window. Agent Runner moves it out of the vendor.</p><h2 class="heading" style="text-align:left;" id="try-it-out">Try It Out</h2><p class="paragraph" style="text-align:left;">Agent Runner is still an early release, and I&#39;d love feedback from people running it on real workflows. Try it here: <a class="link" href="https://github.com/Codagent-AI/agent-runner?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=agent-workflows-arrive" target="_blank" rel="noopener noreferrer nofollow">github.com/Codagent-AI/agent-runner</a>.</p><p class="paragraph" style="text-align:left;">Report issues on GitHub, or message me on Discord at <code>paulcaplan_75433</code>.</p><p class="paragraph" style="text-align:left;">And if you like what you see, please give the repo a star and share the newsletter with others who&#39;d find it helpful.</p></div><div class='beehiiv__footer'><br class='beehiiv__footer__break'><hr class='beehiiv__footer__line'><a target="_blank" class="beehiiv__footer_link" style="text-align: center;" href="https://www.beehiiv.com/powered-by?publication_logo=https%3A%2F%2Fmedia.beehiiv.com%2Fcdn-cgi%2Fimage%2Ffit%3Dscale-down%2Cformat%3Dauto%2Conerror%3Dredirect%2Cquality%3D80%2Fuploads%2Fpublication%2Flogo%2F75d4e32c-8d3f-4873-a605-ab2cefc33df5%2Fcodagent-logo.png%3Fv%3D1796528970&publication_name=Agents%2C+harnessed&utm_campaign=f94b4c51-ae6f-401e-927c-c7a86b25921b&utm_medium=post_rss&utm_source=agents_harnessed">Powered by beehiiv</a></div></div>
  ]]></content:encoded>
</item>

      <item>
  <title>Unshackle Your Agent</title>
  <description>The Portable Agent Harness</description>
      <enclosure url="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/2e879957-84bb-4bda-ae1d-f352db549104/Gemini_Generated_Image_j81f1lj81f1lj81f.png" length="2543159" type="image/png"/>
  <link>https://codagent.beehiiv.com/p/unshackle-your-agent</link>
  <guid isPermaLink="true">https://codagent.beehiiv.com/p/unshackle-your-agent</guid>
  <pubDate>Tue, 26 May 2026 04:00:00 +0000</pubDate>
  <atom:published>2026-05-26T04:00:00Z</atom:published>
    <dc:creator>Paul Caplan</dc:creator>
  <content:encoded><![CDATA[
    <div class='beehiiv'><style>
  .bh__table, .bh__table_header, .bh__table_cell { border: 1px solid #C0C0C0; }
  .bh__table_cell { padding: 5px; background-color: #FFFFFF; }
  .bh__table_cell p { color: #2D2D2D; font-family: 'Helvetica',Arial,sans-serif !important; overflow-wrap: break-word; }
  .bh__table_header { padding: 5px; background-color:#F1F1F1; }
  .bh__table_header p { color: #2A2A2A; font-family:'Trebuchet MS','Lucida Grande',Tahoma,sans-serif !important; overflow-wrap: break-word; }
</style><div class='beehiiv__body'><p class="paragraph" style="text-align:left;">You perfect your Claude setup. You save some memories, add some skills, wire up hooks, and write a <a class="link" href="https://CLAUDE.md?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=unshackle-your-agent" target="_blank" rel="noopener noreferrer nofollow">CLAUDE.md</a>. You build a harness that works for you.</p><p class="paragraph" style="text-align:left;">Then Anthropic changes their pricing. Or OpenAI ships a better model. Or you just want a second agent. These are not exactly theoretical problems anymore.</p><p class="paragraph" style="text-align:left;">And then you discover that everything you set up is locked inside one product. Your <a class="link" href="https://CLAUDE.md?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=unshackle-your-agent" target="_blank" rel="noopener noreferrer nofollow">CLAUDE.md</a> and custom skills aren&#39;t picked up by Codex. The memory the agent built up over weeks of working with you is invisible to every other tool. Nothing transfers smoothly.</p><p class="paragraph" style="text-align:left;">The setup that matters is not the one inside Claude Code, Codex, or any other tool. It&#39;s the portable layer around them: the knowledge, memory, plugins, validation, and workflows that survive when the tool changes.</p><p class="paragraph" style="text-align:left;">This matters for teams too. If one developer uses Claude Code, another uses Codex, and a third prefers Copilot, they should be able to share the same knowledge, skills, and workflow instead of rebuilding the harness inside each tool.</p><p class="paragraph" style="text-align:left;">In this issue, I&#39;ll break that layer down into concrete components and walk through how to set up your own.</p><h2 class="heading" style="text-align:left;" id="worth-reading-the-engineers-new-job"><b>Worth Reading: The Engineer&#39;s New Job</b></h2><p class="paragraph" style="text-align:left;">First, I want to recommend a related article from <a class="link" href="https://www.chrismdp.com/coding-with-ai/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=unshackle-your-agent" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">Chris Parsons</a>. He argues that the senior engineer&#39;s job has shifted from writing or reviewing code to &quot;training&quot; the AI to write it better - in other words, improving the harness.</p><p class="paragraph" style="text-align:left;">The part that connects directly to this issue is his distinction between vibe coding and agentic engineering: deciding which diffs need human eyes while tests and automated gates verify the rest. His advice lines up with the portable harness idea: invest in durable, tool-agnostic scaffolding, reset when an agent drifts, and treat verification, not generation, as the bottleneck.</p><hr class="content_break"><h2 class="heading" style="text-align:left;" id="so-whats-a-harness-really"><b>So What&#39;s a Harness, Really?</b></h2><p class="paragraph" style="text-align:left;">In <a class="link" href="https://codagent.beehiiv.com/p/harnesses-explained?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=unshackle-your-agent" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">Harnesses Explained</a>, I split the coding agent harness into two layers: the inner harness (Claude Code, Codex, etc.) and the outer harness (everything you bring to it). This time I want to get more concrete about what the outer harness actually contains.</p><p class="paragraph" style="text-align:left;">First, you have a global harness: the machine-level setup for a broad context of work, like your work projects, personal projects, or both. It contains:</p><p class="paragraph" style="text-align:left;"><b>Inner harness</b> - one or more agent tools you&#39;re using: Claude Code, Codex, Gemini CLI, a local model runner. The outer harness chooses, configures, and surrounds them.</p><p class="paragraph" style="text-align:left;"><b>Knowledge</b> - a durable reference layer. Intentionally maintained notes and docs the agent can consult.</p><p class="paragraph" style="text-align:left;"><b>Memory</b> - a shared recall layer across agent sessions. Compact, durable facts: preferences, conventions, tool quirks, project setup details, pointers back into the knowledge base.</p><p class="paragraph" style="text-align:left;"><b>Plugins</b> - skills, hooks, MCP servers, slash commands. Plugins are where much of your proactive shaping of agent behavior lives.</p><p class="paragraph" style="text-align:left;"><b>Workflow</b> - a reusable structure for task execution. E.g. plan → implement → verify → fix → review. The sequences, loops, and gates that make agent work repeatable.</p><p class="paragraph" style="text-align:left;">Then each project gets its own harness overlay. Usually that means a git repo, but it could also be a knowledge vault, a research effort, or another bounded area of work. The project overlay includes <b>instructions and skills</b> (how to operate here), <b>validation rules</b> (what &quot;correct&quot; means), and <b>specs</b> (what the work was supposed to do). More on these below.</p><div class="image"><img alt="" class="image__image" style="" src="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/914d2810-2524-48a1-b1cb-06ff9a6dc1f1/Gemini_Generated_Image_rnexwrrnexwrrnex.png?t=1779425715"/></div><h2 class="heading" style="text-align:left;" id="your-portable-outer-harness"><b>Your Portable Outer Harness</b></h2><p class="paragraph" style="text-align:left;">Whether you&#39;re new to coding agents or already using them for coding, knowledge work, or personal assistant workflows, the goal is the same: put the durable parts outside the agent. This section walks through what you need so you can switch the inner harness at any time.</p><h3 class="heading" style="text-align:left;" id="inner-harness-quality-models-subsid"><b>Inner harness: quality models, subsidized tokens</b></h3><p class="paragraph" style="text-align:left;">Start with access to both frontier model families through a Claude subscription and a GPT subscription. This won&#39;t last forever, but right now both companies are giving away too many &quot;free&quot; subsidized tokens to pass up. The models are good at different things, and cross-agent review is one of the easiest ways to catch blind spots.</p><p class="paragraph" style="text-align:left;">Other good options: Copilot or Cursor for multi-model support, Gemini when the price makes sense, or local models when privacy or cost matters more than frontier quality.</p><p class="paragraph" style="text-align:left;">The key phrase is <i>right now</i>. Claude and GPT keep leapfrogging each other. Gemini is getting stronger. Use the best one or two available today, and expect that to change.</p><h3 class="heading" style="text-align:left;" id="knowledge-own-your-reference-layer"><b>Knowledge: own your reference layer</b></h3><p class="paragraph" style="text-align:left;">Knowledge is the structured source of truth for substantial context: company knowledge, project architecture, decision records, research notes, runbooks, operating docs. For coding, that might mean architecture notes, runbooks, RFCs, and decision records. For knowledge work, it might mean research notes, source material, drafts, meeting notes, and reusable context.</p><p class="paragraph" style="text-align:left;">This is not just a docs folder inside your code repos. The knowledge layer here is global: either in the cloud or backed by its own repo. Agents should be able to reach the same information through MCP, a CLI, or plain files from whichever repo they&#39;re working in. It should live somewhere you control and can export.</p><p class="paragraph" style="text-align:left;">I use Obsidian backed by git. Local Markdown is ideal here: portable, searchable, version-controlled, and readable by any agent. Other tools can work too, as long as agents can reach them through MCP or a CLI.</p><h3 class="heading" style="text-align:left;" id="memory-shared-recall-across-agents"><b>Memory: shared recall across agents</b></h3><p class="paragraph" style="text-align:left;">If knowledge is the full reference library, memory is the compact operational recall layer: preferences, conventions, project decisions, and pointers back to source-of-truth notes. The distinction is not black and white, and best practices are still evolving here.</p><p class="paragraph" style="text-align:left;">A shared memory layer should give every agent access to the same durable recall. If one agent learns a convention, another can use it later. The service should handle the lifecycle around that recall: save durable facts, retrieve the relevant ones, scope them by global/project/session context, and keep the whole store inspectable, editable, deletable, and exportable.</p><p class="paragraph" style="text-align:left;">I use <a class="link" href="https://github.com/nickarail/agentmemory?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=unshackle-your-agent" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">agentmemory</a> as that shared memory service. Claude Code, Codex, and my assistant agent all hit the same local REST daemon through MCP or native integration. It stores long-term memories, session-derived observations, audit history, and search indexes. Recall is not just text matching: agentmemory can combine keyword search, semantic search, and graph traversal over extracted entities and relationships. This setup is still new for me, but I expect it to grow more useful as memories accumulate.</p><h3 class="heading" style="text-align:left;" id="plugins"><b>Plugins</b></h3><p class="paragraph" style="text-align:left;">Skills, hooks, MCP servers, slash commands: plugins are becoming a de facto standard across coding agent tools. Claude Code pioneered the pattern, and Codex is finally catching up. The common shape is a repo with a plugin manifest that bundles skills, hooks, and whatever else the plugin provides.</p><p class="paragraph" style="text-align:left;">Skills are one type of <b>feedforward control</b>, a term I introduced in <a class="link" href="https://codagent.beehiiv.com/p/harnesses-explained?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=unshackle-your-agent" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">Harnesses Explained</a>: they shape how the agent behaves <i>before</i> it acts. A debugging skill, a code review checklist, a release process: these are reusable procedures that steer the agent without relying on the model to figure everything out from scratch.</p><p class="paragraph" style="text-align:left;">Which plugins you install depends on the work. For spec-driven development and TDD, I use <a class="link" href="https://github.com/Codagent-AI/agent-skills?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=unshackle-your-agent" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">Codagent Agent Skills</a>. It packages reusable procedures for planning, test-driven development, code review, debugging, and validation so the agent has a workflow to follow instead of improvising from a prompt.</p><p class="paragraph" style="text-align:left;">For other use cases, look for plugins that encode repeatable behavior: research capture, document review, email triage, release checklists, formatting enforcement, whatever you want every agent to know how to do. You can browse the Claude plugin marketplace, and compatible plugins can be installed with the Codex CLI as well. <code>[claude|codex|copilot] plugin marketplace add org/repo</code> works in most agents now. In general, install plugins at the global level so they&#39;re available across projects.</p><h3 class="heading" style="text-align:left;" id="workflow-deterministic-sequencing-o"><b>Workflow: deterministic sequencing outside the context window</b></h3><p class="paragraph" style="text-align:left;">This is the layer I&#39;m personally most interested in, and it&#39;s the one most people don&#39;t have yet.</p><p class="paragraph" style="text-align:left;">A workflow is the reusable structure for task execution: plan → implement → verify → fix → review; research → synthesize → draft → edit; or triage → classify → route → follow up. It is the sequences, loops, checks, and handoffs that make agent work repeatable. Workflow is also where <b>feedback controls</b> live: the things that catch issues <i>after</i> the agent acts, like tests, validation commands, review agents, and verify/fix loops.</p><p class="paragraph" style="text-align:left;">You can describe a workflow in a prompt. The agent might follow it. It might skip a step. It might stop early and ask if you&#39;re &quot;ready to proceed.&quot; I covered <a class="link" href="https://codagent.beehiiv.com/p/harnesses-explained?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=unshackle-your-agent" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">why prompt-based workflows break down</a> two issues ago, and last issue I showed <a class="link" href="https://codagent.beehiiv.com/p/no-validation-left-behind?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=unshackle-your-agent" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">what happens when the workflow runs the agent instead</a>.</p><p class="paragraph" style="text-align:left;">For the workflows that matter - multi-step implementations, spec-driven development, anything with nested loops - external orchestration is not optional. That&#39;s why I&#39;m building Agent Runner, launching this month.</p><p class="paragraph" style="text-align:left;">Here&#39;s one real workflow definition from Agent Runner, slightly modified for this article. It normally does not run on its own; it is embedded as one step inside larger workflows.</p><div class="codeblock"><pre><code>name: run-validator
description: &quot;Counted retry loop: run validator, fix on failure, max 3 attempts&quot;

steps:
  - id: validator-retry
    loop:
      max: 3
    steps:
      - id: run-validator
        command: agent-validator run --report
        capture: validator_output
        capture_stderr: true
        continue_on_failure: true
        break_if: success

      - id: fix-violations
        session: inherit
        mode: autonomous
        prompt: |
          The validator found failures. Fix the issues you reasonably agree with.

          When done, commit your changes following the project&#39;s conventions and prepend [&#123;&#123;step_id&#125;&#125;]. Then summarize what you fixed, what you skipped, and why.

          &lt;validator-output&gt;
          &#123;&#123;validator_output&#125;&#125;
          &lt;/validator-output&gt;
        skip_if: previous_success
        continue_on_failure: true
</code></pre></div><h3 class="heading" style="text-align:left;" id="projectlevel-harness-the-overlay"><b>Project-level harness: the overlay</b></h3><p class="paragraph" style="text-align:left;">Once the global harness is in place, tailor it to the specific needs of each project.</p><p class="paragraph" style="text-align:left;">A &quot;project&quot; is typically a git repo, but it could also be a knowledge vault, a research effort, or a client engagement: any bounded area of work with its own context, constraints, and artifacts.</p><p class="paragraph" style="text-align:left;"><b>Instructions</b> tell the agent how to operate here. Architecture boundaries, coding standards, preferred libraries, domain vocabulary, &quot;don&#39;t touch&quot; areas, local setup notes. These live in <a class="link" href="https://CLAUDE.md?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=unshackle-your-agent" target="_blank" rel="noopener noreferrer nofollow">CLAUDE.md</a>, <a class="link" href="https://AGENTS.md?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=unshackle-your-agent" target="_blank" rel="noopener noreferrer nofollow">AGENTS.md</a>, <code>.codex/</code>, or whatever the agent loads automatically. Project-specific skills go here too: procedures that only make sense in this project&#39;s context.</p><p class="paragraph" style="text-align:left;"><b>Validation</b> defines what &quot;correct&quot; means. Test commands, type checks, lint rules, security scans, CI requirements, manual review criteria. Cross-agent review belongs here too, especially for catching issues deterministic checks miss. This is where <a class="link" href="https://github.com/Codagent-AI/agent-validator?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=unshackle-your-agent" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">Agent Validator</a> fits: a configurable feedback-loop runner for deterministic checks and LLM-based reviews, scoped to the project.</p><p class="paragraph" style="text-align:left;"><b>Specs</b> are durable artifacts that define intent for specific work. Feature specs, implementation plans, architecture designs, acceptance criteria, test plans. Even with every other harness component in place, if you&#39;re not doing <a class="link" href="https://codagent.beehiiv.com/p/think-before-you-prompt?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=unshackle-your-agent" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">spec-driven development</a>, you&#39;re still mostly vibing. Specs reduce reliance on chat history and give humans and agents a shared object to review.</p><h2 class="heading" style="text-align:left;" id="the-portable-human"><b>The Portable Human</b></h2><p class="paragraph" style="text-align:left;">Once your agent setup is portable, you should be too. The point is not to carry the agent, the context, and your laptop everywhere. Run the agent on hardware you control - a Mac mini, VPS, old laptop, whatever - and connect to it from wherever you are.</p><p class="paragraph" style="text-align:left;">Claude and Codex mobile apps can remotely control agent sessions. You can also use a mobile SSH client, chat gateway, or even email. The phone is only the control surface. The harness is comprised of the knowledge, memory, and skills that <i>any</i> of your devices can reach, wherever you are.</p><p class="paragraph" style="text-align:left;">Do you really need to check in on work from the gym, or is that just a novelty? Sometimes, sure. But the gym, the walk, or the ballgame is often where good ideas show up. When that light bulb goes on, you want a thinking partner and assistant that can reach your full context and tools, not just a chatbot.</p><p class="paragraph" style="text-align:left;">That is the real portability test. Can you capture the idea, ask the agent to research it, connect it to your notes, turn it into a spec, or queue the next workflow without sitting down at your main machine?</p><div class="image"><img alt="" class="image__image" style="" src="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/87439bea-cdfd-4a56-ab6a-a07aea0e3b4a/Gemini_Generated_Image_jxvnmejxvnmejxvn.png?t=1779426622"/></div><hr class="content_break"><h2 class="heading" style="text-align:left;" id="putting-it-all-together"><b>Putting It All Together</b></h2><p class="paragraph" style="text-align:left;">The coding agent tool should not be the center of your system. The portable harness should be.</p><p class="paragraph" style="text-align:left;"><b>Use multiple frontier agents.</b> They&#39;re good at different things, and cross-agent reviews catch blind spots self-reviews miss.</p><p class="paragraph" style="text-align:left;"><b>Access them from anywhere.</b> Run agents from infrastructure you control. When the runtime is yours, the harness is yours too.</p><p class="paragraph" style="text-align:left;"><b>Own the important information.</b> Keep knowledge in exportable files, memory in a shared service, plugins in git, and workflow in deterministic orchestration.</p><p class="paragraph" style="text-align:left;">The future is not one agent to rule them all. It is a portable harness that can use whichever agent is best today.</p><h2 class="heading" style="text-align:left;" id="come-say-hello"><b>Come Say Hello</b></h2><p class="paragraph" style="text-align:left;">I&#39;m giving a talk at <a class="link" href="https://sreday.com/2026-nyc-q2/Paul_Caplan_Teladoc_Health_Agent_Harnesses_From_Slot_Machines_to_Safety_Nets?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=unshackle-your-agent#speakers-section" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">SREday NYC</a> on June 6 at Datadog&#39;s office: &quot;Agent Harnesses: From Slot Machines to Safety Nets.&quot; If you&#39;ve read this newsletter, you&#39;ll recognize the themes: what a harness is, why the outer coordination layer matters, and how to become the engineer in the loop instead of the agent babysitter.</p><p class="paragraph" style="text-align:left;">I&#39;m also joining a harness engineering panel organized by Stellans during NYC Tech Week (date TBD). The panel focuses on what it takes to move AI agents from impressive demos into dependable enterprise work. If you&#39;re in the NYC area, hit me up.</p><hr class="content_break"></div><div class='beehiiv__footer'><br class='beehiiv__footer__break'><hr class='beehiiv__footer__line'><a target="_blank" class="beehiiv__footer_link" style="text-align: center;" href="https://www.beehiiv.com/powered-by?publication_logo=https%3A%2F%2Fmedia.beehiiv.com%2Fcdn-cgi%2Fimage%2Ffit%3Dscale-down%2Cformat%3Dauto%2Conerror%3Dredirect%2Cquality%3D80%2Fuploads%2Fpublication%2Flogo%2F75d4e32c-8d3f-4873-a605-ab2cefc33df5%2Fcodagent-logo.png%3Fv%3D1796528970&publication_name=Agents%2C+harnessed&utm_campaign=70b6882b-1040-41fe-a212-3715c44a2306&utm_medium=post_rss&utm_source=agents_harnessed">Powered by beehiiv</a></div></div>
  ]]></content:encoded>
</item>

      <item>
  <title>No Validation Left Behind</title>
  <description>Code review agents and the runner that never skips a beat</description>
      <enclosure url="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/9ded0e5d-5921-4f1e-8945-64872af1b9bf/Gemini_Generated_Image_9maybg9maybg9may.png" length="2698905" type="image/png"/>
  <link>https://codagent.beehiiv.com/p/no-validation-left-behind</link>
  <guid isPermaLink="true">https://codagent.beehiiv.com/p/no-validation-left-behind</guid>
  <pubDate>Sat, 09 May 2026 04:00:00 +0000</pubDate>
  <atom:published>2026-05-09T04:00:00Z</atom:published>
    <dc:creator>Paul Caplan</dc:creator>
    <category><![CDATA[Outer Harness]]></category>
    <category><![CDATA[Ai Code Reviews]]></category>
    <category><![CDATA[Agent Validation]]></category>
    <category><![CDATA[Agentic Coding]]></category>
    <category><![CDATA[Coding Agents]]></category>
    <category><![CDATA[Harness Engineering]]></category>
  <content:encoded><![CDATA[
    <div class='beehiiv'><style>
  .bh__table, .bh__table_header, .bh__table_cell { border: 1px solid #C0C0C0; }
  .bh__table_cell { padding: 5px; background-color: #FFFFFF; }
  .bh__table_cell p { color: #2D2D2D; font-family: 'Helvetica',Arial,sans-serif !important; overflow-wrap: break-word; }
  .bh__table_header { padding: 5px; background-color:#F1F1F1; }
  .bh__table_header p { color: #2A2A2A; font-family:'Trebuchet MS','Lucida Grande',Tahoma,sans-serif !important; overflow-wrap: break-word; }
</style><div class='beehiiv__body'><p class="paragraph" style="text-align:left;">In <a class="link" href="https://codagent.beehiiv.com/p/the-middle-agentic-path?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=no-validation-left-behind" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">The Middle Agentic Path</a>, I promised I would dig into code review agents in more depth. This is that deep dive.</p><p class="paragraph" style="text-align:left;">But code review agents are only one part of the story. There is a big difference between asking an agent to run a workflow and having a workflow that runs the agent.</p><p class="paragraph" style="text-align:left;">You can write the clearest instruction in the world: implement the task, run tests and linters, review the diff, fix failures, re-review, open the PR, wait for CI, address review comments. The agent may do most of it. But &quot;most&quot; is not a reliable engineering workflow.</p><p class="paragraph" style="text-align:left;">This issue is about the validation layer I use now: local and PR code review agents and the runner that takes your workflow from &quot;vibes&quot; to &quot;serious&quot; engineering.</p><h2 class="heading" style="text-align:left;" id="my-validation-workflow"><b>My Validation Workflow</b></h2><div class="blockquote"><blockquote class="blockquote__quote"><p class="paragraph" style="text-align:left;"><i>&quot;Make it work, make it right, make it fast&quot;</i></p><figcaption class="blockquote__byline"> - Kent Beck </figcaption></blockquote></div><p class="paragraph" style="text-align:left;">It starts with <a class="link" href="https://codagent.beehiiv.com/p/think-before-you-prompt?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=no-validation-left-behind" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">spec driven development</a>. I spent a <i>lot</i> of time on this, producing a detailed, thorough spec that includes an overview, multiple spec files, a design doc, and a task breakdown.</p><p class="paragraph" style="text-align:left;">Then, I don&#39;t just say &quot;implement this spec.&quot; Here is the full workflow for implementing a new feature:</p><p class="paragraph" style="text-align:left;">First, loop over every task file in the change. For each task, start a fresh agent that implements using TDD.</p><p class="paragraph" style="text-align:left;">Then <a class="link" href="https://github.com/Codagent-AI/agent-validator?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=no-validation-left-behind" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">Agent Validator</a> runs static checks (linter, type safety, build, tests, etc) and a local code review agent.</p><p class="paragraph" style="text-align:left;">The local code review agent checks for bugs, security issues, error handling gaps, and task compliance — did the agent actually implement what was in the spec?</p><p class="paragraph" style="text-align:left;">If Agent Validator finds failures, the same implementation session fixes them, commits, and runs Validator again in a loop.</p><p class="paragraph" style="text-align:left;">The reviewer doesn&#39;t have to be the same CLI as the implementor. For example, you could implement in Claude Code and have Codex CLI review, or vice versa.</p><p class="paragraph" style="text-align:left;">Once every task has gone through that loop, the &quot;lead&quot; agent reviews all assumptions made by the implementor agent and makes corrections where needed — surfacing anything <i>it&#39;s</i> not sure about back up to me at the end.</p><p class="paragraph" style="text-align:left;">Next, the lead agent runs a &quot;simplify&quot; skill - reviewing the whole diff for readability, duplication, and code reuse, then making improvements.</p><p class="paragraph" style="text-align:left;">Finally, Agent Validator runs again to address any issues introduced from the assumption corrections and simplifications.</p><p class="paragraph" style="text-align:left;">But the validations don&#39;t stop there. After the PR is created, two PR review agents run, catching things that the local review agents missed.</p><p class="paragraph" style="text-align:left;">Whew - that must be tedious getting through every step of the whole workflow, right?</p><p class="paragraph" style="text-align:left;">Not at all. (It runs fully autonomously while I&#39;m doing something else).</p><p class="paragraph" style="text-align:left;">But how often does the agent actually run all those steps without skipping a single validation, or stopping with &quot;ready to create PR when you are&quot;?</p><p class="paragraph" style="text-align:left;">Every single time. (Even on days when it&#39;s feeling lazy.)</p><p class="paragraph" style="text-align:left;">How do I get the whole workflow to run consistently without babysitting the agent? I&#39;ll get to that at the end. But first, let me explain what code review agents actually are, and how the ones I tested performed.</p><h3 class="heading" style="text-align:left;" id="feedback-controls"><b>Feedback Controls</b></h3><p class="paragraph" style="text-align:left;">In <a class="link" href="https://codagent.beehiiv.com/p/harnesses-explained?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=no-validation-left-behind" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">Harnesses Explained</a>, I talked about feedback controls as a core part of the outer harness: post-action observers that catch issues after the agent acts.</p><p class="paragraph" style="text-align:left;">There are two kinds. Some feedback controls are deterministic: linters, type checks, tests, security scanners. They are fast, computational, and boring in the best way. If the type checker says the code doesn&#39;t compile, there isn&#39;t much to debate.</p><p class="paragraph" style="text-align:left;">The other kind is inferential. This is where code review agents fit. They are slower and messier because they use a model to make a judgment: did this change hide a bug, miss an error path, violate the spec, or create a risk that normal checks don&#39;t know how to express? Agent Validator runs both types locally.</p><p class="paragraph" style="text-align:left;">PR review agents sit later in the workflow, after the branch becomes a PR, but they are the same kind of harness component: post-action observers trying to catch issues before I trust the change.</p><h2 class="heading" style="text-align:left;" id="how-do-code-review-agents-work"><b>How Do Code Review Agents Work?</b></h2><p class="paragraph" style="text-align:left;">Sometimes I come across code and think, &quot;who the heck wrote this?&quot;, only to check the git blame and realize the author was me. The situation is not that different with LLMs. Even asking the same model to review its own code in a fresh context window helps a lot. Cross-model review catches even more issues. That&#39;s the rationale for reviewing locally, before the PR even exists.</p><p class="paragraph" style="text-align:left;">The basic loop is the same everywhere: gather the code and surrounding context, ask a model to judge it against a prompt or policy, and turn likely problems into comments or structured findings. What varies is when they run and what context they get.</p><p class="paragraph" style="text-align:left;">In Agent Validator, the review runs before the PR exists. It can look at the local diff, the task or spec, and the output from the previous round of reviews. Then it returns structured findings back into the same implementation loop, so the implementor can fix them before moving on to the next task.</p><p class="paragraph" style="text-align:left;">On the other hand, many specialized tools run review agents after the PR is opened. The PR diff is the trigger and the place where comments get reported, but some tools also pull in repository context, prior PR history, project rules, or static analysis results before asking the model to judge the change.</p><p class="paragraph" style="text-align:left;">Local and PR review agents are doing the same basic thing: context-aware, model-judged review. Sometimes they are wrong. But when they get the right context, they catch problems that can&#39;t be caught by deterministic checks alone.</p><p class="paragraph" style="text-align:left;">So how well do they actually work? I evaluated both: local code review agents in Agent Validator, and PR review agents on real PRs. If you don&#39;t care about the eval details, skip to <a class="link" href="https://vscode-remote+ssh-002dremote-002b7b22686f73744e616d65223a223130302e3131342e32302e313234222c2275736572223a227061756c227d.vscode-resource.vscode-cdn.net/Users/paul/codagent/newsletter/6.md?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=no-validation-left-behind#putting-it-all-together" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">Putting it All Together</a> for the payoff.</p><h3 class="heading" style="text-align:left;" id="validating-the-validator"><b>Validating the Validator</b></h3><p class="paragraph" style="text-align:left;">I built an <a class="link" href="https://github.com/Codagent-AI/agent-validator/blob/main/docs/eval-framework.md?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=no-validation-left-behind" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">eval fixture</a> with 56 planted issues across TypeScript, Python, and Go — bugs, security holes, swallowed errors — and ran Agent Validator&#39;s local code review agents against them with different models, adapters, and prompt strategies. I&#39;ll cut to the chase.</p><p class="paragraph" style="text-align:left;">I expected the story to be about models. Use the strongest model, get the best results. That&#39;s not what happened. The harness mattered: Claude Code CLI with Sonnet timed out at 300 seconds, while the same Sonnet through Copilot CLI finished reliably and produced the best code-quality <a class="link" href="https://developers.google.com/machine-learning/crash-course/classification/accuracy-precision-recall?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=no-validation-left-behind#recall_or_true_positive_rate" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">recall</a> of anything I tested. Prompt strategy mattered too — for some model/adapter combos, one or two broad prompts beat three specialized ones.</p><p class="paragraph" style="text-align:left;">The best setup was a two-agent hybrid through Copilot: Sonnet for code quality, GPT-5.3 for a combined security and error-handling pass. I ran a <a class="link" href="https://github.com/Codagent-AI/agent-validator/blob/main/docs/eval-report-2026-05-02.md?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=no-validation-left-behind" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">second round in May</a> with newer and cheaper models — they didn&#39;t beat the <a class="link" href="https://github.com/Codagent-AI/agent-validator/blob/main/docs/eval-report-2026-04-25.md?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=no-validation-left-behind" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">April baseline</a>. The more expensive GPT-5.5 sometimes found more, but not reliably enough to recommend.</p><p class="paragraph" style="text-align:left;">My current default: Codex CLI with GPT-5.3 running a single combined prompt covering code quality, security, and error handling. One pass, strong precision, usually under 30 seconds. The Copilot two-pass hybrid has better recall, but Copilot is <a class="link" href="https://docs.github.com/en/enterprise-cloud@latest/copilot/reference/copilot-billing/models-and-pricing?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=no-validation-left-behind" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">moving to token-based billing on June 1</a>, so I can&#39;t recommend it on cost until I measure real token spend under the new system.</p><h2 class="heading" style="text-align:left;" id="reviewing-the-reviewers"><b>Reviewing the Reviewers</b></h2><p class="paragraph" style="text-align:left;">I also tried several PR review agents to see which ones work best for me. Caveat up front: this is a small sample set from Agent Runner and Agent Validator PRs, not a full evaluation.</p><p class="paragraph" style="text-align:left;">The result was clear enough for my purposes: CodeRabbit and Copilot found the most meaningful issues. Greptile and Qodo found some real bugs too, but in this eval they found fewer real issues and more findings that looked weak, stale, or misread.</p><p class="paragraph" style="text-align:left;">The best example was <a class="link" href="https://github.com/Codagent-AI/agent-validator/pull/134?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=no-validation-left-behind" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">agent-validator#134</a>, which added a shared trust ledger so validation state could carry across worktrees. Copilot found the important fault lines: trust being forced too broadly, brittle merge parsing, premature lock-state handling, and scope metadata that could mix checks and reviews. CodeRabbit found a real test reliability bug where <code>process.chdir</code> could leak global process state across tests.</p><p class="paragraph" style="text-align:left;">That pattern held across PRs. CodeRabbit tended to find broad practical implementation risks. Copilot was strongest on workflow invariants - the kind of bugs where the harness trusts the wrong thing or fails silently. Greptile and Qodo occasionally found something real, but produced more weak or misread findings.</p><p class="paragraph" style="text-align:left;">Greptile and Qodo are well respected, and both score well on other benchmarks. But on my Codagent projects, Copilot and CodeRabbit gave me the review layer I actually want after the PR opens. Agent Validator catches many issues locally and gives faster feedback, which keeps bugs from compounding. Copilot and CodeRabbit act as a safety net for the issues the earlier reviews missed.</p><h2 class="heading" style="text-align:left;" id="putting-it-all-together"><b>Putting it All Together</b></h2><p class="paragraph" style="text-align:left;">Have you ever tried telling an agent to loop over every task in a spec, start a fresh implementor for each one with TDD, run a validator with static checks and a code review agent in parallel, fix failures and re-run the validator in a loop until everything passes, then do an assumptions review across the whole change, simplify the diff, run the validator one more time, create a PR, wait for CI and PR review agents, and fix what they find?</p><p class="paragraph" style="text-align:left;">I have. How often did it do everything I asked? About as often as my teenager does when I ask him to clean his room but vacuum before he dusts, then switch the laundry but fold what&#39;s in the dryer first, then load the dishwasher but rinse everything and keep the good knives out, then take out the trash but separate the recycling (and don&#39;t stop until it&#39;s all complete).</p><p class="paragraph" style="text-align:left;">But that workflow I just described? Unlike my kid, it completes every step, every time. Without ever asking me if I&#39;m &quot;ready to proceed&quot; to the next step (or taking a break to scroll on social media).</p><p class="paragraph" style="text-align:left;">The key is Agent Runner, which I <a class="link" href="https://codagent.beehiiv.com/p/harnesses-explained?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=no-validation-left-behind" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">introduced last time</a> as the missing coordination layer in the outer harness.</p><p class="paragraph" style="text-align:left;">Claude and Codex have task lists. They can follow instructions. They can even keep a checklist. But complex workflows with nested loops are a different problem altogether.</p><p class="paragraph" style="text-align:left;">The usual answer is to put the workflow inside the agent&#39;s context and shout: NEVER skip steps, execute ALL steps in order, do NOT stop early. That helps, but it is still prompt-following. The workflow lives inside the context window, which makes it a suggestion, not a guarantee.</p><p class="paragraph" style="text-align:left;">Agent Runner flips that around. Instead of the agent calling my code when it happens to remember, my code tells the agent what to do next. It is a deterministic workflow layer outside the agent&#39;s context window.</p><p class="paragraph" style="text-align:left;">So I don&#39;t have to remember what comes next, or babysit the workflow to make sure each validation loop actually runs. Agent Runner does that for me. It runs those steps automatically and <i>autonomously</i>, in sequence. While I&#39;m focused entirely on something else, like planning the next change or taking out that garbage and recycling.</p><p class="paragraph" style="text-align:left;">PR creation is part of the workflow. Waiting for CI is part of the workflow. Addressing review comments is part of the workflow. If a validation step fails, the fix loop is part of the workflow too.</p><p class="paragraph" style="text-align:left;">So when I come back to the task, I can trust that it&#39;s already been verified for correctness and quality. I can instead focus on what I do best: <a class="link" href="https://codagent.beehiiv.com/p/the-middle-agentic-path?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=no-validation-left-behind" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">steering the ship</a>.</p><h2 class="heading" style="text-align:left;" id="next-time"><b>Next Time</b></h2><p class="paragraph" style="text-align:left;">Agent Runner 0.1 drops this month! Next time, I&#39;ll show you what the workflow looks like in code.</p></div><div class='beehiiv__footer'><br class='beehiiv__footer__break'><hr class='beehiiv__footer__line'><a target="_blank" class="beehiiv__footer_link" style="text-align: center;" href="https://www.beehiiv.com/powered-by?publication_logo=https%3A%2F%2Fmedia.beehiiv.com%2Fcdn-cgi%2Fimage%2Ffit%3Dscale-down%2Cformat%3Dauto%2Conerror%3Dredirect%2Cquality%3D80%2Fuploads%2Fpublication%2Flogo%2F75d4e32c-8d3f-4873-a605-ab2cefc33df5%2Fcodagent-logo.png%3Fv%3D1796528970&publication_name=Agents%2C+harnessed&utm_campaign=c8bf49e7-8820-427b-8a48-0156e5ca4e74&utm_medium=post_rss&utm_source=agents_harnessed">Powered by beehiiv</a></div></div>
  ]]></content:encoded>
</item>

      <item>
  <title>Harnesses Explained</title>
  <description>The Inner and Outer Workings of the Coding Agent Harness</description>
      <enclosure url="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/e88f7ccc-45f7-4637-b953-b162b13c8bb8/Gemini_Generated_Image_vxk12tvxk12tvxk1.png" length="7411581" type="image/png"/>
  <link>https://codagent.beehiiv.com/p/harnesses-explained</link>
  <guid isPermaLink="true">https://codagent.beehiiv.com/p/harnesses-explained</guid>
  <pubDate>Fri, 24 Apr 2026 03:17:22 +0000</pubDate>
  <atom:published>2026-04-24T03:17:22Z</atom:published>
    <dc:creator>Paul Caplan</dc:creator>
    <category><![CDATA[Agentic Coding]]></category>
    <category><![CDATA[Context Engineering]]></category>
    <category><![CDATA[Coding Agents]]></category>
    <category><![CDATA[Harness Engineering]]></category>
    <category><![CDATA[Inner Harness]]></category>
    <category><![CDATA[Outer Harness]]></category>
  <content:encoded><![CDATA[
    <div class='beehiiv'><style>
  .bh__table, .bh__table_header, .bh__table_cell { border: 1px solid #C0C0C0; }
  .bh__table_cell { padding: 5px; background-color: #FFFFFF; }
  .bh__table_cell p { color: #2D2D2D; font-family: 'Helvetica',Arial,sans-serif !important; overflow-wrap: break-word; }
  .bh__table_header { padding: 5px; background-color:#F1F1F1; }
  .bh__table_header p { color: #2A2A2A; font-family:'Trebuchet MS','Lucida Grande',Tahoma,sans-serif !important; overflow-wrap: break-word; }
</style><div class='beehiiv__body'><p class="paragraph" style="text-align:left;">When I started this newsletter, &quot;harness engineering&quot; was a term just starting to crop up. Now it&#39;s a household term in the community, and there&#39;s a lot of great material on it - most of it on building agentic systems with frameworks like LangGraph, or how coding agent tools like Claude Code and Codex work under the hood.</p><p class="paragraph" style="text-align:left;">But I&#39;m writing for people coding with agents, not necessarily building them. So why should you care about harness engineering? You&#39;re not building the harness, you&#39;re just using it - right?</p><p class="paragraph" style="text-align:left;">Not quite. The coding agent is only half of the harness equation. The other half is everything <i>you</i> bring to it: context, skills, specs, feedback loops, steering. Birgitta Böckeler <a class="link" href="https://martinfowler.com/articles/harness-engineering.html?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=harnesses-explained" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">calls this the &quot;outer harness&quot;</a> (and it&#39;s such an important piece that I&#39;m assigning her post as required reading after you finish this).</p><p class="paragraph" style="text-align:left;">In his <a class="link" href="https://aidailybrief.beehiiv.com/p/harness-engineering-101?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=harnesses-explained" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">AI Daily Brief</a>, Nathaniel Whittemore dubbed this split the &quot;inner&quot; vs &quot;outer&quot; harness, and I&#39;ll use these terms throughout. First, the inner harness - the core architecture and what it provides. Then the outer harness, and the piece I think is still missing.</p><h2 class="heading" style="text-align:left;" id="what-the-coding-agent-gives-you"><b>What the coding agent gives you</b></h2><p class="paragraph" style="text-align:left;">In the world of coding, the inner harness is the coding agent itself - Claude Code, Codex, etc. <a class="link" href="https://x.com/akshay_pachaar/status/2041146899319971922?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=harnesses-explained" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">Akshay Pachaar&#39;s thread</a> is the clearest overview I&#39;ve seen of how inner harnesses work. Based on my synthesis of that and a few other sources, the inner harness decomposes into seven components:</p><ol start="1"><li><p class="paragraph" style="text-align:left;"><b>Orchestration loop.</b> The core driver - ReAct, plan-and-execute, or some hybrid. Charriere (<a class="link" href="https://nicholascharriere.com/blog/the-great-convergence/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=harnesses-explained" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1"><i>The Great Convergence</i></a>) calls this the commoditizing essence of modern agents: <i>goal + tools + loop until done</i>. It&#39;s what everyone means when they say &quot;agent.&quot;</p></li><li><p class="paragraph" style="text-align:left;"><b>Tool interface.</b> File reads and edits, shell, grep, web search, MCP adapters - Millidge&#39;s analogy: tools are <a class="link" href="https://www.beren.io/2023-04-11-Scaffolded-LLMs-natural-language-computers/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=harnesses-explained" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">device drivers</a>.</p></li><li><p class="paragraph" style="text-align:left;"><b>Context management.</b> What&#39;s in the working window right now - compaction, trimming, just-in-time retrieval. The inner harness decides what the model sees and when.</p></li><li><p class="paragraph" style="text-align:left;"><b>State & session persistence.</b> What outlives a single turn or crash - checkpoints, session APIs, or git history as state.</p></li><li><p class="paragraph" style="text-align:left;"><b>Guardrails & permissions.</b> What the loop is allowed to do without asking - tool scoping, sandboxing, human-in-the-loop escape hatches.</p></li><li><p class="paragraph" style="text-align:left;"><b>Subagent orchestration.</b> Spawning isolated helpers with fresh context - fork, teammate, worktree - so subagent output doesn&#39;t drown the parent&#39;s context.</p></li><li><p class="paragraph" style="text-align:left;"><b>Extension surfaces.</b> The seams the outer harness plugs into - hook events, plugin slots (<code>skills/</code>, <code>agents/</code>, <code>commands/</code>), MCP servers, auto-loaded briefing files (<a class="link" href="https://CLAUDE.md?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=harnesses-explained" target="_blank" rel="noopener noreferrer nofollow">CLAUDE.md</a>, <a class="link" href="https://AGENTS.md?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=harnesses-explained" target="_blank" rel="noopener noreferrer nofollow">AGENTS.md</a>), session lifecycle events. This is the only component in the inner harness that exists <i>for</i> the outer harness. Everything else on the list is internal.</p></li></ol><p class="paragraph" style="text-align:left;">These seven are my distillation of several overlapping schemas - Pachaar&#39;s <a class="link" href="https://x.com/akshay_pachaar/status/2041146899319971922?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=harnesses-explained" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">12-component list</a>, Osmani&#39;s <a class="link" href="https://addyosmani.com/blog/agent-harness-engineering/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=harnesses-explained" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">behavioral breakdown</a>, <a class="link" href="https://aetna-labs.com/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=harnesses-explained" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">Aetna Labs&#39; three-layer model</a>, Anthropic&#39;s <a class="link" href="https://docs.anthropic.com/en/docs/agents?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=harnesses-explained" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">Managed Agents framing</a> - all map onto the same seven.</p><p class="paragraph" style="text-align:left;">The discipline of inner harness engineering is headed in a clear direction. <i>&quot;The field is moving toward thinner harnesses as models improve.&quot;</i></p><p class="paragraph" style="text-align:left;">Anthropic is publicly <a class="link" href="https://www.anthropic.com/engineering/harness-design-long-running-apps?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=harnesses-explained" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">deleting harness machinery</a> as newer models handle what scaffolding used to do. Garry Tan is <a class="link" href="https://x.com/garrytan/status/2042925773300908103?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=harnesses-explained" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">teaching the same principle at YC</a>: <i>&quot;thin harness, fat skills&quot;</i> - keep the harness to ~200 lines and push everything else into reusable skill files the model loads on demand.</p><p class="paragraph" style="text-align:left;">The inner harness is commoditizing (everyone ships roughly the same components) and thinning (control logic being removed). If that&#39;s true, the interesting question is what <i>you</i> layer on top - which is the outer harness.</p><h2 class="heading" style="text-align:left;" id="the-harness-only-you-can-provide"><b>The harness only you can provide</b></h2><p class="paragraph" style="text-align:left;"><i>&quot;A well-built outer harness serves two goals: it increases the probability that the agent gets it right in the first place, and it provides a feedback loop that self-corrects as many issues as possible before they even reach human eyes.&quot;</i> - Böckeler</p><div class="image"><img alt="" class="image__image" style="" src="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/98de9c8f-472b-4d7a-8d2b-35bfdc47d41c/Gemini_Generated_Image_vxk12tvxk12tvxk1.png?t=1777053196"/></div><p class="paragraph" style="text-align:left;">If the inner harness provides a set of core capabilities, the outer harness is everything you bring to it. Böckeler&#39;s framework breaks it into two categories: feedforward controls and feedback controls.</p><p class="paragraph" style="text-align:left;"><b>Feedforward controls</b>, or &quot;guides&quot;, are everything that shapes behavior <i>before</i> the agent acts, with the goal of preventing mistakes before they happen. They come in several flavors:</p><ol start="1"><li><p class="paragraph" style="text-align:left;"><b>Guidance</b> - <a class="link" href="https://CLAUDE.md?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=harnesses-explained" target="_blank" rel="noopener noreferrer nofollow">CLAUDE.md</a> files, architecture docs, coding conventions. Either auto-loaded by the agent or indexed so the agent reads them on demand when relevant.</p></li><li><p class="paragraph" style="text-align:left;"><b>Skills</b> - reusable procedures the agent activates based on their description matching the task.</p></li><li><p class="paragraph" style="text-align:left;"><b>Specs</b> - instructions the human explicitly tells the agent to read and follow. (I wrote about spec-driven development in <a class="link" href="https://codagent.beehiiv.com/p/think-before-you-prompt?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=harnesses-explained" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">Think Before You Prompt</a>.)</p></li></ol><p class="paragraph" style="text-align:left;">On the other side are <b>feedback controls</b> - post-action observers <i>&quot;optimised for LLM consumption.&quot;</i> (She calls these &quot;sensors.&quot;) <i>Deterministic feedback</i> comes from tools with fixed, repeatable outputs: linters, type checkers, test runners, build scripts. <i>LLM-based feedback</i> uses a second model to evaluate what the first model produced: code reviewers, spec-compliance checkers, evaluator agents - or the agent itself closing what Osmani calls the &quot;self-verification loop&quot; by observing its own output through a browser or screenshot tool.</p><p class="paragraph" style="text-align:left;">Deterministic feedback catches what rules can express; LLM-based feedback catches what only judgment can - architectural drift, spec misinterpretation, subtle regressions. Boris Cherny, creator of Claude Code, noted that giving the model a way to verify its work improves quality by 2–3×. The practitioner heuristic &quot;hooks over prompts for reliability&quot; is a statement about preferring feedback over feedforward - feedback doesn&#39;t depend on the agent&#39;s attention. My<a class="link" href="https://github.com/Codagent-AI/agent-validator?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=harnesses-explained" target="_blank" rel="noopener noreferrer nofollow"> Agent Validator </a>tool is a configurable feedback loop runner for both types - deterministic checks and LLM-based reviews.</p><p class="paragraph" style="text-align:left;">Two other pieces round out the outer harness: <b>persistent memory</b> and <b>codebase preparation</b>. Without cross-session recall, every conversation starts cold - the agent re-learns your codebase, your conventions, your past mistakes. And agents perform dramatically better on clean, well-structured code - the outer harness isn&#39;t only what you configure, it&#39;s also what you&#39;ve already cleaned up.</p><p class="paragraph" style="text-align:left;">All four connect through the <b>steering loop</b>: <i>&quot;Whenever an issue happens multiple times, the [harness] should be improved to make the issue less probable to occur in the future, or even prevent it.&quot;</i> When something goes wrong, you can improve a feedforward control (prevent it next time), add a feedback control (catch it next time), save it to memory (so the agent doesn&#39;t repeat it across sessions), or clean up the code that confused the agent in the first place - or some combination of the above.</p><p class="paragraph" style="text-align:left;">The human&#39;s job is the steering loop - channeling what goes wrong into better feedforward, feedback, memory, and code. I wrote about <a class="link" href="https://codagent.beehiiv.com/p/the-middle-agentic-path?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=harnesses-explained" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">what the human actually does</a> in issue #3.</p><p class="paragraph" style="text-align:left;">This is becoming one of the main functions of the human software engineering role - cultivating the harness.</p><h2 class="heading" style="text-align:left;" id="the-missing-coordination-layer"><b>The missing coordination layer</b></h2><p class="paragraph" style="text-align:left;">The inner harness <i>should</i> thin. That&#39;s a sign of progress - models handling more, vendors deleting scaffolding that&#39;s no longer needed. But the harness <i>overall</i> can&#39;t thin. Not yet.</p><p class="paragraph" style="text-align:left;">The thin-harness thesis depends on models that keep getting better at following instructions. But every model upgrade changes <i>how</i> the model follows them - prompts that worked on Opus 4.6 break on 4.7, workflows tuned for one model need retuning for the next. When coordination lives in-context, every upgrade is a migration. And not everyone can afford the frontier model anyway.</p><p class="paragraph" style="text-align:left;">And look at how much of the benchmark movement comes from harness changes, not just model changes. Blitzy beats GPT-5.4 on SWE-bench Pro (66.5% vs 57.7%). LLMCompiler plan-and-execute is 3.6× ReAct. Verification loops show 2–3× quality lifts. The harness is the lever - and in each case, external orchestration is a key part of what moved the numbers.</p><p class="paragraph" style="text-align:left;">So as the inner harness sheds structure, something in the outer harness - <i>your</i> harness - needs to pick up the slack. But the current tools for that have a fundamental problem.</p><p class="paragraph" style="text-align:left;">Feedforward lives in-context, which means it degrades as the window fills. BMAD-METHOD ships workflow files full of defensive ALL CAPS: <i>&quot;NEVER skip steps,&quot; &quot;Execute ALL steps in exact order,&quot; &quot;do NOT stop because of milestones.&quot;</i> Superpowers does the same thing with <code>&lt;HARD-GATE&gt;</code> tags. They shout because shouting is the only enforcement mechanism a prompt-based framework has. The workflow lives <i>inside</i> the agent&#39;s context, which makes it a suggestion, not a guarantee.</p><p class="paragraph" style="text-align:left;">How well does that shouting work? The ECC project&#39;s <a class="link" href="https://github.com/affaan-m/everything-claude-code/blob/main/agents/chief-of-staff.md?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=harnesses-explained" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">chief-of-staff agent docs</a> estimate that LLMs ignore prompt instructions roughly 20% of the time. And failures compound. Even at 99% per-step success - a far more generous estimate - a 20-step process lands at 82% end-to-end.</p><p class="paragraph" style="text-align:left;">Feedback mitigates this - but only if it actually <i>runs</i> every time. The current solution is hooks - and hooks help. But hooks are callbacks: the agent acts, your code reacts. You get execution points like &quot;before every tool call&quot; and &quot;after every stop,&quot; not control sequences &quot;run steps A, B, C in this order and don&#39;t proceed until each one passes.&quot;</p><p class="paragraph" style="text-align:left;">What&#39;s missing is the inverse - not the agent calling your code, but your code telling the agent what to do next. A <i>deterministic</i> workflow layer that lives <i>outside</i> the agent&#39;s context window - where sequencing is enforced by the system, not suggested in prompts.</p><h2 class="heading" style="text-align:left;" id="the-research-catches-up"><b>The research catches up</b></h2><p class="paragraph" style="text-align:left;">I&#39;ve shown you where the industry is today, and what I think is missing. But what does the research say? This month, we finally have the first academic paper focused specifically on harness engineering.</p><p class="paragraph" style="text-align:left;">Zhou, Zhang et al. published <a class="link" href="https://arxiv.org/abs/2604.08224?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=harnesses-explained" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1"><i>&quot;Externalization in LLM Agents&quot;</i></a> - a 50-page academic review, 21 authors, multiple institutions. If you haven&#39;t seen it yet, it&#39;s been making the rounds. What they found lines up exactly with the gap described above.</p><p class="paragraph" style="text-align:left;">The paper argues that when coordination lives inside the agent&#39;s context as prompts and instructions, every multi-step action becomes what they call <i>&quot;a fragile prompt-following exercise.&quot;</i> Their fix isn&#39;t better prompts - it&#39;s moving coordination <i>out</i> of the model entirely. <i>&quot;Multi-step interactions need coordination: who acts next, what state transitions are allowed, when a task is complete or has failed. Protocols externalize these sequencing rules into explicit state machines or event streams, removing them from the model&#39;s inferential burden.&quot;</i></p><p class="paragraph" style="text-align:left;">The model does what it&#39;s good at - reasoning, judgment, adaptation. The workflow layer does what <i>it&#39;s</i> good at - sequencing, validation, enforcement. Neither tries to do the other&#39;s job.</p><p class="paragraph" style="text-align:left;">What the paper calls the &quot;externalized interaction&quot; protocol - a deterministic workflow layer that coordinates agents without living inside their context - is the gap I described above. Their paper names it. I&#39;m building the solution - a free, open-source tool called Agent Runner. Releasing soon.</p></div><div class='beehiiv__footer'><br class='beehiiv__footer__break'><hr class='beehiiv__footer__line'><a target="_blank" class="beehiiv__footer_link" style="text-align: center;" href="https://www.beehiiv.com/powered-by?publication_logo=https%3A%2F%2Fmedia.beehiiv.com%2Fcdn-cgi%2Fimage%2Ffit%3Dscale-down%2Cformat%3Dauto%2Conerror%3Dredirect%2Cquality%3D80%2Fuploads%2Fpublication%2Flogo%2F75d4e32c-8d3f-4873-a605-ab2cefc33df5%2Fcodagent-logo.png%3Fv%3D1796528970&publication_name=Agents%2C+harnessed&utm_campaign=2bda933d-d577-496c-adc5-4091a4e0d5a2&utm_medium=post_rss&utm_source=agents_harnessed">Powered by beehiiv</a></div></div>
  ]]></content:encoded>
</item>

      <item>
  <title>Why did the agent cross the road?</title>
  <description>The humor edition of the &quot;Agents, Harnessed&quot; newsletter</description>
      <enclosure url="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/3da1c1ec-6c1b-4e04-bf13-ea00efc5f0f8/Gemini_Generated_Image_o8s5tbo8s5tbo8s5.png" length="7342530" type="image/png"/>
  <link>https://codagent.beehiiv.com/p/why-did-the-agent-cross-the-road</link>
  <guid isPermaLink="true">https://codagent.beehiiv.com/p/why-did-the-agent-cross-the-road</guid>
  <pubDate>Thu, 16 Apr 2026 04:00:00 +0000</pubDate>
  <atom:published>2026-04-16T04:00:00Z</atom:published>
    <dc:creator>Paul Caplan</dc:creator>
    <category><![CDATA[Harness Engineering]]></category>
    <category><![CDATA[Humor]]></category>
  <content:encoded><![CDATA[
    <div class='beehiiv'><style>
  .bh__table, .bh__table_header, .bh__table_cell { border: 1px solid #C0C0C0; }
  .bh__table_cell { padding: 5px; background-color: #FFFFFF; }
  .bh__table_cell p { color: #2D2D2D; font-family: 'Helvetica',Arial,sans-serif !important; overflow-wrap: break-word; }
  .bh__table_header { padding: 5px; background-color:#F1F1F1; }
  .bh__table_header p { color: #2A2A2A; font-family:'Trebuchet MS','Lucida Grande',Tahoma,sans-serif !important; overflow-wrap: break-word; }
</style><div class='beehiiv__body'><p class="paragraph" style="text-align:left;">A lighter one this week - just memes and some very real moments with AI coding agents.</p><p class="paragraph" style="text-align:left;">Before we get started, a couple quick updates. First, for short-form thoughts and anecdotes on harness engineering, please follow me here: <a class="link" href="https://x.com/paulcaplan?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-did-the-agent-cross-the-road" target="_blank" rel="noopener noreferrer nofollow">https://x.com/paulcaplan</a>. (Longstanding account, recently revived).</p><p class="paragraph" style="text-align:left;">Second, the very popular AI Daily Brief just did a <a class="link" href="https://open.spotify.com/episode/5AXQtTpSIK2MHwwo5aGIOE?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-did-the-agent-cross-the-road" target="_blank" rel="noopener noreferrer nofollow">101 on harness engineering</a>, hammering home the &quot;prompt engineering → context engineering → harness engineering&quot; progression and pushing the term further into the mainstream. Well worth a listen.</p><p class="paragraph" style="text-align:left;">Okay folks, there is nothing “serious” beyond this point; feel free to skip this issue if you don&#39;t like to laugh.</p><hr class="content_break"><p class="paragraph" style="text-align:left;">But first: I want to take a moment — a genuine, heartfelt moment — to share something I&#39;ve been sitting with for a while. In an era increasingly shaped by large language models, I&#39;ve made a decision that feels both important and deeply meaningful: <b>going forward, every single word of this newsletter will be written by hand — no AI editing, no shortcuts, no exceptions.</b></p><p class="paragraph" style="text-align:left;">This isn&#39;t just a stylistic choice — it&#39;s a commitment to authenticity, craft, and the kind of human connection that only unassisted prose can deliver. Here&#39;s why:</p><ul><li><p class="paragraph" style="text-align:left;"><b>Authenticity matters.</b> There is no substitute for the texture, rhythm, and idiosyncrasies of a human mind wrestling with an idea in real time.</p></li><li><p class="paragraph" style="text-align:left;"><b>Craft is a discipline.</b> Writing is not merely a vehicle for information — it is a practice, a craft, and, dare I say, an art form.</p></li><li><p class="paragraph" style="text-align:left;"><b>Trust is everything.</b> You, dear reader, deserve the considered, deliberate voice of a real person — not the statistical average of the internet&#39;s collective output.</p></li><li><p class="paragraph" style="text-align:left;"><b>The human touch is irreplaceable.</b> No model, however sophisticated, can replicate lived experience and emotional nuance.</p></li><li><p class="paragraph" style="text-align:left;"><b>It&#39;s about integrity.</b> At the end of the day, this is a matter of principle.</p></li></ul><p class="paragraph" style="text-align:left;">To further illustrate the stakes, consider the following comparison:</p><div class="codeblock"><pre><code>| Dimension           | Human-Written Prose                          | AI-Generated Prose                          |
|---------------------|----------------------------------------------|---------------------------------------------|
| **Voice**           | Idiosyncratic, textured, unmistakably yours  | Smooth, polished, eerily uniform            |
| **Emotion**         | Drawn from lived experience                  | Inferred from statistical patterns          |
| **Surprise**        | Genuine, hard-won, occasionally messy        | Predictable, symmetrical, suspiciously tidy |
| **Trust**           | Earned, sentence by sentence                 | Assumed, until it isn&#39;t                     |
| **Soul**            | Present                                      | Conspicuously absent                        |</code></pre></div><p class="paragraph" style="text-align:left;">In short: this newsletter will remain — now and always — a fundamentally, irreducibly human endeavor. Thank you for being part of this journey.</p><p class="paragraph" style="text-align:left;"><i>Disclaimer: This section was written entirely by AI.</i></p><hr class="content_break"><p class="paragraph" style="text-align:left;">With that out of the way, I’d like to take a look back at some of my favorite recent agentic moments…</p><h2 class="heading" style="text-align:left;" id="when-your-agent-is-feeling-stuck">When your agent is feeling stuck</h2><p class="paragraph" style="text-align:left;">Like that time I accidentally implemented an infinite loop using a Cursor stop hook. I could practically see the look of defeat on the LLM’s face.</p><div class="image"><img alt="" class="image__image" style="" src="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/f25c38cc-26bb-45ec-80a1-78ff5310069b/image.png?t=1776135576"/></div><hr class="content_break"><p class="paragraph" style="text-align:left;"></p><h2 class="heading" style="text-align:left;" id="some-things-never-change">Some things never change</h2><p class="paragraph" style="text-align:left;">Some things are eternal: the sun rises, the tide comes in, and developers will always look down on code they didn&#39;t write themselves. Apparently, AI-generated code is no exception.</p><div class="image"><img alt="" class="image__image" style="" src="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/548ebd34-6dad-4370-82de-b02cd8639c45/image.png?t=1776135699"/></div><hr class="content_break"><h2 class="heading" style="text-align:left;" id="if-coding-agents-were-cats">If coding agents were cats</h2><p class="paragraph" style="text-align:left;">I believe this one speaks for itself.</p><div class="image"><img alt="" class="image__image" style="" src="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/bfec8ae7-8575-4fd7-bd0a-6263b5fb9146/image.png?t=1776135886"/></div><hr class="content_break"><h2 class="heading" style="text-align:left;" id="prompt-engineering-irl-not-just-for">Prompt Engineering IRL: Not Just for Robots</h2><p class="paragraph" style="text-align:left;">From back when those “anatomy of a prompt” posts were circulating heavily.</p><p class="paragraph" style="text-align:left;"><span style="color:#000000;font-family:-apple-system, system-ui, &quot;system-ui&quot;, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, &quot;Fira Sans&quot;, Ubuntu, Oxygen, &quot;Oxygen Sans&quot;, Cantarell, &quot;Droid Sans&quot;, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, sans-serif;font-size:14px;">Are you skilled in LLM prompt engineering? Discover how to apply the same techniques to real-world human interactions—so you can:</span><br>👥<span style="color:#000000;font-family:-apple-system, system-ui, &quot;system-ui&quot;, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, &quot;Fira Sans&quot;, Ubuntu, Oxygen, &quot;Oxygen Sans&quot;, Cantarell, &quot;Droid Sans&quot;, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, sans-serif;font-size:14px;"> Delegate tasks to a “team of people”</span><br>🛑<span style="color:#000000;font-family:-apple-system, system-ui, &quot;system-ui&quot;, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, &quot;Fira Sans&quot;, Ubuntu, Oxygen, &quot;Oxygen Sans&quot;, Cantarell, &quot;Droid Sans&quot;, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, sans-serif;font-size:14px;"> Assert personal boundaries</span><br>🚗<span style="color:#000000;font-family:-apple-system, system-ui, &quot;system-ui&quot;, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, &quot;Fira Sans&quot;, Ubuntu, Oxygen, &quot;Oxygen Sans&quot;, Cantarell, &quot;Droid Sans&quot;, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, sans-serif;font-size:14px;"> Request airport rides</span><br>➕<span style="color:#000000;font-family:-apple-system, system-ui, &quot;system-ui&quot;, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, &quot;Fira Sans&quot;, Ubuntu, Oxygen, &quot;Oxygen Sans&quot;, Cantarell, &quot;Droid Sans&quot;, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, &quot;Lucida Grande&quot;, Helvetica, Arial, sans-serif;font-size:14px;"> And much more</span></p><div class="image"><img alt="" class="image__image" style="" src="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/19018ac7-0cee-46a0-8cd9-675b150ef847/image.png?t=1776135931"/></div><div class="image"><img alt="" class="image__image" style="" src="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/2a882158-a019-470a-9452-f94bae9302f4/image.png?t=1776135980"/></div><h2 class="heading" style="text-align:left;" id="codagent-update-and-more">Codagent update (and more)</h2><p class="paragraph" style="text-align:left;">I&#39;m actively building something awesome and will share more soon. In the meantime, I wanted to surface something I&#39;ve already shipped.</p><p class="paragraph" style="text-align:left;">I’ve made many skills that I use on a daily basis. The ones I have found absolutely the most indispensable - are not these.</p><p class="paragraph" style="text-align:left;">This plugin is for those days where the agent isn’t getting anything right. Perhaps if you forgot to run <a class="link" href="https://github.com/Codagent-AI/agent-validator?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-did-the-agent-cross-the-road" target="_blank" rel="noopener noreferrer nofollow">Agent Validator</a> or the LLM is just having a bad day.</p><p class="paragraph" style="text-align:left;">Are the skills well thought out? Not really. But are they useful? Try them out and see: <a class="link" href="https://github.com/pacaplan/wtf?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=why-did-the-agent-cross-the-road" target="_blank" rel="noopener noreferrer nofollow">https://github.com/pacaplan/wtf</a> .</p><div style="padding:14px 15px 14px;"><table class="bh__table" width="100%" style="border-collapse:collapse;"><tr class="bh__table_row"><th class="bh__table_header" width="50%"><p class="paragraph" style="text-align:left;"><b>Command</b></p></th><th class="bh__table_header" width="50%"><p class="paragraph" style="text-align:left;"><b>What it does</b></p></th></tr><tr class="bh__table_row"><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;"><code>/wtf:are-you-doing</code></p></td><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">Interrupt mid-task and demand an explanation of the plan.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;"><code>/wtf:are-you-thinking</code></p></td><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">Push back on something Claude just said. Forces a genuine re-examination.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;"><code>/wtf:did-you-say</code></p></td><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">TL;DR of a long autonomous agent chain. The &quot;I stepped away for coffee&quot; button.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;"><code>/wtf:fix-it</code></p></td><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">Skip the lecture. Just make it work.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;"><code>/wtf:is-this</code></p></td><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">Brutally honest code review, followed by a refactor.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;"><code>/wtf:should-i-do</code></p></td><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">Triage everything that&#39;s broken and give a prioritized action plan.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;"><code>/wtf:was-i-thinking</code></p></td><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">Self-review your own recent diffs and commits before opening a PR.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;"><code>/wtf:went-wrong</code></p></td><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">Root cause debugging. Traces the chain of causation, not just the symptom.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;"><code>/wtf:why-not</code></p></td><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">Evaluate an unconventional idea and make an honest case for why it might work.</p></td></tr><tr class="bh__table_row"><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;"><code>/wtf:wtf</code></p></td><td class="bh__table_cell" width="50%"><p class="paragraph" style="text-align:left;">Quick acknowledgement and redirect when you just say &quot;wtf&quot; without context.</p></td></tr></table></div><hr class="content_break"><p class="paragraph" style="text-align:left;"><span style="color:#1b222c;font-family:Helvetica, Arial, sans-serif;font-size:16px;">Next issue: I&#39;ll unpack what I see as the “three pillars” of harness engineering and continue my exploration of AI code review techniques.</span></p></div><div class='beehiiv__footer'><br class='beehiiv__footer__break'><hr class='beehiiv__footer__line'><a target="_blank" class="beehiiv__footer_link" style="text-align: center;" href="https://www.beehiiv.com/powered-by?publication_logo=https%3A%2F%2Fmedia.beehiiv.com%2Fcdn-cgi%2Fimage%2Ffit%3Dscale-down%2Cformat%3Dauto%2Conerror%3Dredirect%2Cquality%3D80%2Fuploads%2Fpublication%2Flogo%2F75d4e32c-8d3f-4873-a605-ab2cefc33df5%2Fcodagent-logo.png%3Fv%3D1796528970&publication_name=Agents%2C+harnessed&utm_campaign=762db39c-9a43-498d-a0ce-dfb9b1023d69&utm_medium=post_rss&utm_source=agents_harnessed">Powered by beehiiv</a></div></div>
  ]]></content:encoded>
</item>

      <item>
  <title>The Middle Agentic Path</title>
  <description>Why both sides are wrong about human-in-the-loop</description>
      <enclosure url="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/7c1144b2-f2a7-4713-98f0-f16d4e07840a/Gemini_Generated_Image_j9oimuj9oimuj9oi.png" length="9196569" type="image/png"/>
  <link>https://codagent.beehiiv.com/p/the-middle-agentic-path</link>
  <guid isPermaLink="true">https://codagent.beehiiv.com/p/the-middle-agentic-path</guid>
  <pubDate>Wed, 08 Apr 2026 03:30:47 +0000</pubDate>
  <atom:published>2026-04-08T03:30:47Z</atom:published>
    <dc:creator>Paul Caplan</dc:creator>
    <category><![CDATA[Agentic Coding]]></category>
    <category><![CDATA[Coding Agents]]></category>
    <category><![CDATA[Harness Engineering]]></category>
    <category><![CDATA[Agent Validation]]></category>
    <category><![CDATA[Ai Code Reviews]]></category>
  <content:encoded><![CDATA[
    <div class='beehiiv'><style>
  .bh__table, .bh__table_header, .bh__table_cell { border: 1px solid #C0C0C0; }
  .bh__table_cell { padding: 5px; background-color: #FFFFFF; }
  .bh__table_cell p { color: #2D2D2D; font-family: 'Helvetica',Arial,sans-serif !important; overflow-wrap: break-word; }
  .bh__table_header { padding: 5px; background-color:#F1F1F1; }
  .bh__table_header p { color: #2A2A2A; font-family:'Trebuchet MS','Lucida Grande',Tahoma,sans-serif !important; overflow-wrap: break-word; }
</style><div class='beehiiv__body'><h2 class="heading" style="text-align:left;" id="why-both-sides-are-wrong-about-huma"><b>Why both sides are wrong about human-in-the-loop</b></h2><p class="paragraph" style="text-align:left;">There are two loud camps in agentic coding right now. I think they&#39;re both wrong.</p><p class="paragraph" style="text-align:left;">Camp one says you need a human reviewing every line of AI-generated code before it ships. Responsible and &quot;serious&quot; - yet leaving reviewers increasingly swamped.</p><p class="paragraph" style="text-align:left;">Camp two says let the agents do everything. Steve Yegge&#39;s Gas Town epitomizes this idea - 20-30 simultaneous agents with specialized roles, plus an audacious vision called &quot;The Wasteland&quot; that federates thousands of these teams together.</p><p class="paragraph" style="text-align:left;">Somewhere between the swamp and the wasteland, there&#39;s a pragmatic path being paved: the human stays in the loop for every change - not wading through diffs, but charting the course. Exercising taste and judgment, and staying close enough to the ground to sense when things start to drift off course.</p><h2 class="heading" style="text-align:left;" id="code-review-is-dead"><b>Code review is dead</b></h2><p class="paragraph" style="text-align:left;">The &quot;review everything&quot; camp has strong advocates. Addy Osmani <a class="link" href="https://medium.com/@addyosmani/vibe-coding-is-not-the-same-as-ai-assisted-engineering-3f81088d5b98?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=the-middle-agentic-path" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">argued</a> that &quot;the human engineer remains firmly in control... reviewing and understanding every line of AI-generated code.&quot;</p><p class="paragraph" style="text-align:left;">I humbly beg to differ. I <a class="link" href="https://medium.com/@paul.caplan/the-era-of-mandatory-code-reviews-is-over-5c5593ba5613?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=the-middle-agentic-path" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">argued in December</a> that the era of mandatory code reviews was over, and the case is <a class="link" href="https://addyo.substack.com/p/code-review-in-the-age-of-ai?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=the-middle-agentic-path" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">getting stronger every day</a>.</p><p class="paragraph" style="text-align:left;">DORA&#39;s 2025 report found that AI-assisted teams produce 98% more PRs while review time increases 91%. Something&#39;s got to give. And beyond the throughput problem, most of what code review is <i>for</i> can now be done better by machines.</p><p class="paragraph" style="text-align:left;">What does a reviewer actually check? Maintainability - complexity, file size, dead code - is largely enforceable with static analysis and linter rules. Adherence to team and project standards is increasingly handled by <a class="link" href="https://AGENTS.md?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=the-middle-agentic-path" target="_blank" rel="noopener noreferrer nofollow">AGENTS.md</a> files and rule configurations; AI reviewers cross-reference these too, resulting in very high compliance. Catching bugs, security vulnerabilities, swallowed errors - this is where AI code review tools shine.</p><p class="paragraph" style="text-align:left;">Developers routinely miss 30-40% of defects in code review. Under time pressure, that climbs. Reviews of large diffs degrade fast - tracking state across hundreds of lines of unfamiliar code exceeds working memory. The subtle bugs survive, which is precisely the class of bug that AI agents are most likely to introduce.</p><p class="paragraph" style="text-align:left;">And there&#39;s a waste problem. Senior engineers - the ones whose review is most valuable - are also the most valuable for system design, architecture, and mentorship. Stop using your most expensive people as a quality gate that machines can handle for most PRs.</p><p class="paragraph" style="text-align:left;">The tooling is already here. Greptile <a class="link" href="https://www.greptile.com/benchmarks?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=the-middle-agentic-path" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">reports an 82% bug catch rate</a> in benchmarks across real-world PRs, hitting 100% on high-severity bugs. The Linux Foundation told CodeRabbit it catches <a class="link" href="https://www.coderabbit.ai/case-studies/how-coderabbit-helped-the-linux-foundation-streamline-code-reviews-and-accelerate-development?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=the-middle-agentic-path" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">90% or more of customer-facing bugs</a> and cut their review time in half. On <a class="link" href="https://codereview.withmartian.com/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=the-middle-agentic-path" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">Martian&#39;s independent benchmark</a> - the only one not run by a vendor - Qodo scored 64.3%, ten points ahead of the next competitor. These numbers aren&#39;t perfect, and every vendor&#39;s own benchmark conveniently ranks themselves first. But AI review tools are already catching bugs that human reviewers routinely miss.</p><p class="paragraph" style="text-align:left;">To be clear: I&#39;m not saying human review is without value. A senior engineer reviewing a tricky concurrency change or a security-critical auth flow - that&#39;s time well spent. What I am saying is that mandatory human review on every PR costs more than it&#39;s worth. The five-day queues, the rubber-stamping, the false sense of security from reviews that miss defects - for the majority of changes shipping today, that&#39;s a bad trade.</p><h2 class="heading" style="text-align:left;" id="you-dont-need-a-colony"><b>You don&#39;t need a colony</b></h2><p class="paragraph" style="text-align:left;">On the other end of the spectrum, Steve Yegge is betting that the future belongs to multi-agent colonies. He describes <a class="link" href="https://steve-yegge.medium.com/the-future-of-coding-agents-e9451a84207c?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=the-middle-agentic-path" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">Gas Town</a>, an orchestrator that coordinates 20-30 parallel Claude Code instances with specialized roles - each making autonomous decisions while a merge queue tries to keep their parallel work from colliding. The Wasteland extends this further: a federated network linking thousands of Gas Towns together, with a shared work board and a reputation system. He concludes: &quot;Colonies are going to win. Factories are going to win. Automation is going to win.&quot;</p><p class="paragraph" style="text-align:left;">Perhaps. But nature also spent millions of years evolving the coordination mechanisms that make colonies work. We&#39;ve had coding agents for about eighteen months. I&#39;m not ready to hand over my project to a colony.</p><p class="paragraph" style="text-align:left;">At project scale, failures compound. You spin up a colony, hand it a project, and don&#39;t see output until everything is built. One agent makes a wrong assumption early - say, the data model - and every agent building on top of it inherits that assumption silently, confidently. Glen Rhodes <a class="link" href="https://glenrhodes.com/agent-orchestration-failure-modes-silent-drift-reconciliation-and-the-supervision-mindset-shift/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=the-middle-agentic-path" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">calls this &quot;silent drift&quot;</a>: Agent A&#39;s flawed output becomes Agent B&#39;s unvalidated input, and so on. When you finally review the output, you&#39;re not fixing one thing. You&#39;re triaging across a dozen features trying to figure out which assumption was the root cause, which agent silently reinterpreted a constraint, and which agents started depending on each other in ways nobody planned for. The more agents you run in parallel, the more surfaces for drift - and untangling it is its own expensive project.</p><p class="paragraph" style="text-align:left;">To be clear, I&#39;m not arguing against using multiple agents - features like &quot;teams and swarms&quot; can be valuable for feature-level implementation. I&#39;m arguing against agents running autonomously at <i>project</i> scale, where coordination complexity and drift management become the dominant problems.</p><h2 class="heading" style="text-align:left;" id="what-the-human-actually-does"><b>What the human actually does</b></h2><p class="paragraph" style="text-align:left;">No spec is perfect. No matter how <a class="link" href="https://codagent.beehiiv.com/p/think-before-you-prompt?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=the-middle-agentic-path" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">sharp your specification is</a>, there will be gaps - edge cases you didn&#39;t think of, design decisions you left implicit, constraints you carry in your head but didn&#39;t write down. The agent will fill every one of those gaps with its best guess, silently, confidently. AI review tools will catch some of those - the ones that manifest as code-level issues. But the assumptions that are contextually wrong, aesthetically off, or architecturally misguided? Those pass every automated check.</p><p class="paragraph" style="text-align:left;">This is why you need a human checkpoint after each change, before continuing. Not to review the code line by line - but to exercise judgment that no tool can automate. Those judgments require being close enough to the work to have an informed opinion.</p><p class="paragraph" style="text-align:left;"><b>Taste.</b> When a feature comes back, I look at it - but not the way a traditional code reviewer does. Taste lives in <i>using</i> the thing, not reading the diff. An agent can pass every test and still produce something that feels wrong. Osmani <a class="link" href="https://addyo.substack.com/p/code-review-in-the-age-of-ai?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=the-middle-agentic-path" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">puts it well</a>: &quot;Run the application, click through the UI, use the feature yourself. When higher stakes are involved, read more code and add extra checks. And despite moving fast, fix ugly code when you see it rather than letting the mess accumulate.&quot;</p><p class="paragraph" style="text-align:left;"><b>Architectural coherence.</b> I&#39;m not reviewing implementation details - I&#39;m asking whether this feature&#39;s approach is coherent with the system&#39;s direction. Does this create a dependency I&#39;ll regret? Does this abstraction make the next three features easier or harder? OpenAI&#39;s harness engineering team had one engineer <a class="link" href="https://openai.com/index/harness-engineering/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=the-middle-agentic-path" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">whose role was exactly this</a> - maintaining architectural vision while &quot;shipping code he doesn&#39;t read line by line.&quot;</p><p class="paragraph" style="text-align:left;"><b>Bullshit detection.</b> Sometimes I look at clean, passing, well-structured code and still have a sense that something is off. Maybe the agent solved the wrong problem. Maybe it made an assumption that&#39;s invisible in the code but obvious if you know the domain.</p><p class="paragraph" style="text-align:left;"><b>Learning and steering.</b> Each cycle teaches me something that sharpens the next spec. And the next thing I planned may no longer be the right next thing to build - I can only know that if I&#39;ve engaged with what just shipped.</p><p class="paragraph" style="text-align:left;">Underneath all of it is accountability. As an old IBM training saying goes: &quot;A computer can never be held accountable. That&#39;s your job as the human in the loop.&quot; No matter how much AI contributed, a human must own the result.</p><p class="paragraph" style="text-align:left;">You can&#39;t exercise taste over thirty parallel agents&#39; output - the volume overwhelms the intuition. You can&#39;t maintain architectural coherence when thirty streams are making independent micro-decisions. You can&#39;t smell that something is off when you&#39;re distant from all of it. And you can&#39;t learn from the last feature to sharpen the next spec when everything is running at once. The colony model doesn&#39;t just skip the human checkpoint - it makes it structurally impossible.</p><h2 class="heading" style="text-align:left;" id="codagent-update"><b>Codagent Update</b></h2><p class="paragraph" style="text-align:left;">If you want a taste of the possible future, check out Gas Town. But if you&#39;re doing serious engineering work today, Codagent is building open-source tools for that.</p><p class="paragraph" style="text-align:left;">One of them is Agent Validator, a configurable “feedback loop” runner. No, it doesn&#39;t provide taste, steering, or bullshit detection - that&#39;s the human&#39;s job. But it will catch bugs, enforce standards, check for security holes. It runs a hybrid validation pipeline - deterministic checks (your tests, linters, type-checkers, security scanners) combined with cross-agent AI review.</p><p class="paragraph" style="text-align:left;">Agent Validator runs <i>during</i> development, not after a PR is opened. The agent writes code, Agent Validator runs checks and cross-agent reviews, the agent reads failures and iterates - in a tight loop until everything passes. By the time you see the result, it&#39;s already been put through &quot;the gauntlet&quot;.</p><p class="paragraph" style="text-align:left;">I also recommend pairing this with an AI-based PR review tool. The commercial options - CodeRabbit, Greptile, Qodo - are effective but not free, typically ~$25/seat/month or more (with tight review quotas). If that&#39;s out of budget, Agent Validator already gives you cross-agent review for cheap (or even free, if you have an underutilized subscription to Codex or Copilot). It&#39;s open-source and works with whatever CLI tools you already have. Check out <a class="link" href="https://github.com/Codagent-AI/agent-validator?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=the-middle-agentic-path" target="_blank" rel="noopener noreferrer nofollow">https://github.com/Codagent-AI/agent-validator</a> to get started.</p><p class="paragraph" style="text-align:left;">Next issue: I&#39;ll dig into AI code review in more depth: a review of the commercial PR-based tools, as well as my own evaluation of local cross-agent review comparing Claude, Codex, and GitHub Copilot. One agent is leading the pack and one is already ruled out. The results weren&#39;t what I expected - more on that next time.</p></div><div class='beehiiv__footer'><br class='beehiiv__footer__break'><hr class='beehiiv__footer__line'><a target="_blank" class="beehiiv__footer_link" style="text-align: center;" href="https://www.beehiiv.com/powered-by?publication_logo=https%3A%2F%2Fmedia.beehiiv.com%2Fcdn-cgi%2Fimage%2Ffit%3Dscale-down%2Cformat%3Dauto%2Conerror%3Dredirect%2Cquality%3D80%2Fuploads%2Fpublication%2Flogo%2F75d4e32c-8d3f-4873-a605-ab2cefc33df5%2Fcodagent-logo.png%3Fv%3D1796528970&publication_name=Agents%2C+harnessed&utm_campaign=94ff64b3-dee5-4762-823d-74649b4fe49d&utm_medium=post_rss&utm_source=agents_harnessed">Powered by beehiiv</a></div></div>
  ]]></content:encoded>
</item>

      <item>
  <title>Think Before You Prompt</title>
  <description>What spec-driven development is and isn&#39;t</description>
      <enclosure url="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/48fea47f-11c5-41fb-81c9-e6288a924051/Gemini_Generated_Image_5ibl3c5ibl3c5ibl.png" length="8021013" type="image/png"/>
  <link>https://codagent.beehiiv.com/p/think-before-you-prompt</link>
  <guid isPermaLink="true">https://codagent.beehiiv.com/p/think-before-you-prompt</guid>
  <pubDate>Fri, 03 Apr 2026 05:04:40 +0000</pubDate>
  <atom:published>2026-04-03T05:04:40Z</atom:published>
    <dc:creator>Paul Caplan</dc:creator>
    <category><![CDATA[Agentic Coding]]></category>
    <category><![CDATA[Context Engineering]]></category>
    <category><![CDATA[Coding Agents]]></category>
    <category><![CDATA[Harness Engineering]]></category>
    <category><![CDATA[Spec Driven Development]]></category>
  <content:encoded><![CDATA[
    <div class='beehiiv'><style>
  .bh__table, .bh__table_header, .bh__table_cell { border: 1px solid #C0C0C0; }
  .bh__table_cell { padding: 5px; background-color: #FFFFFF; }
  .bh__table_cell p { color: #2D2D2D; font-family: 'Helvetica',Arial,sans-serif !important; overflow-wrap: break-word; }
  .bh__table_header { padding: 5px; background-color:#F1F1F1; }
  .bh__table_header p { color: #2A2A2A; font-family:'Trebuchet MS','Lucida Grande',Tahoma,sans-serif !important; overflow-wrap: break-word; }
</style><div class='beehiiv__body'><h2 class="heading" style="text-align:left;" id="the-machine-around-the-model"><b>The machine around the model</b></h2><p class="paragraph" style="text-align:left;">The much-anticipated second edition is here (quite possibly the best issue yet)! Today we&#39;re going to talk all about &quot;spec-driven development&quot;: what it is and isn&#39;t. (Is it waterfall? Does it require &quot;writing&quot;?)</p><p class="paragraph" style="text-align:left;">But first, what is harness engineering again? That was the topic of my <a class="link" href="https://codagent.beehiiv.com/p/slot-machines-and-safety-nets?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=think-before-you-prompt" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">first installment</a>, but it&#39;s such a new discipline that it&#39;s worth defining a little more comprehensively.</p><p class="paragraph" style="text-align:left;">One of the best descriptions I&#39;ve seen comes from The AI Forum&#39;s <a class="link" href="https://medium.com/the-ai-forum/harness-engineering-building-the-operating-system-for-autonomous-agents-1e20c105f689?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=think-before-you-prompt" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">Harness Engineering: Building the OS for Autonomous Agents</a>:</p><div class="blockquote"><blockquote class="blockquote__quote"><p class="paragraph" style="text-align:left;">“While the AI model is the &#39;engine,&#39; the harness is the &#39;rest of the car,&#39; including the steering, brakes, lane boundaries, and maintenance schedules that keep the system on track. Harness engineering focuses on building a structured system around an LLM to improve reliability. Instead of changing the models, you control the environments in which they operate.”</p><figcaption class="blockquote__byline"></figcaption></blockquote></div><h2 class="heading" style="text-align:left;" id="anatomy-of-a-coding-agent-harness"><b>Anatomy of a coding agent harness</b></h2><p class="paragraph" style="text-align:left;">A point of confusion I keep seeing: is the coding agent (e.g. Claude Code) the harness? It&#39;s certainly a big part of it. Here&#39;s how I see it:</p><ul><li><p class="paragraph" style="text-align:left;"><b>Agent harness</b>: the complete system that wraps a model to make it reliable. The model is a reasoning engine; the harness is an engineering system. “Agent = Model + Harness. If you&#39;re not the model, you&#39;re the harness.”</p></li><li><p class="paragraph" style="text-align:left;"><b>Coding agent harness</b>: a specific type of agent harness built for software development. Two parts:</p><ul><li><p class="paragraph" style="text-align:left;"><b>Coding agent</b>: a product that wraps a foundation model for software development (Claude Code, Codex CLI, Gemini CLI, Cursor). Provides tool systems, context management, sandboxing, and the interaction model that lets the model write and modify code. A coding agent is itself a form of agent harness, engineered by the vendor.</p></li><li><p class="paragraph" style="text-align:left;"><b>Engineering layer</b>: everything developers build around the coding agent. The coding agent handles a single session; the engineering layer handles the full lifecycle of a software change. Its patterns fall into three categories: information architecture (how you organize and feed knowledge), coordination & control (how you orchestrate and verify), and infrastructure (execution environments and tool design). I&#39;ll dig into each of these in future issues.</p></li></ul></li></ul><p class="paragraph" style="text-align:left;">I&#39;ve also been distilling what I see as the 19 patterns of harness engineering. We won&#39;t dig into them today, but here&#39;s a diagram showing where they fit. More on individual patterns in future issues.</p><div class="image"><img alt="" class="image__image" style="" src="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/5728917d-8a7c-4be1-a526-857f0ee7b09a/Gemini_Generated_Image_228ts6228ts6228t.png?t=1775191732"/></div><h2 class="heading" style="text-align:left;" id="what-is-specdriven-development"><b>What is spec-driven development?</b></h2><p class="paragraph" style="text-align:left;">A friend sent me a video the other day tearing into spec-driven development: &quot;it’s just Waterfall in markdown,&quot; the usual. And I get it. The name alone makes experienced engineers flinch. But I’ve been using SDD daily for months now, and the results speak for themselves: <a class="link" href="https://developers.redhat.com/articles/2026/03/30/vibes-specs-skills-agents-ai-coding?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=think-before-you-prompt" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">Red Hat reports</a> a 40% reduction in code reviews, and undirected AI coding has been <a class="link" href="https://arxiv.org/abs/2511.04427?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=think-before-you-prompt" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">shown to increase code complexity by 41%</a>, a gap that specs aim to close by forcing clarity before the agent starts.</p><p class="paragraph" style="text-align:left;"><a class="link" href="https://www.alexcloudstar.com/blog/spec-driven-development-2026/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=think-before-you-prompt" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">SDD</a> has been <a class="link" href="https://developers.redhat.com/articles/2026/03/30/vibes-specs-skills-agents-ai-coding?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=think-before-you-prompt" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">popping</a> up a lot <a class="link" href="https://blog.mofi.dev/posts/spec-driven-development/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=think-before-you-prompt" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">recently</a>, so let’s talk about what it actually is and isn’t.</p><p class="paragraph" style="text-align:left;">If you’ve used planning mode in Claude Code, or any agent’s &quot;think before you code&quot; equivalent, you’ve touched the edge of spec-driven development. Planning mode is the agent reasoning about <i>how to implement</i>: &quot;I’ll create this file, modify that function, use this pattern.&quot; That reasoning is ephemeral (it dies with the session) and implementation-focused. The agent is planning its own work based on its own interpretation of your intent. It doesn’t significantly narrow the gap between what you meant and what gets built.</p><p class="paragraph" style="text-align:left;">SDD is the human reasoning about <i>what to build and why</i>: intent, requirements, constraints, and acceptance criteria, captured as durable artifacts that persist in the repo across sessions and can be consumed by any agent or team member.</p><p class="paragraph" style="text-align:left;">In practice, a spec is a markdown file, or maybe three. Red Hat recommends separating &quot;what-specs&quot; (goals, user stories, success criteria) from &quot;how-specs&quot; (constraints, security standards, testing requirements) into modular files. Alex Cloudstar’s starting point is even simpler: one markdown doc per feature covering what, why, technical constraints, and definition of done. Not a 200-page requirements document.</p><p class="paragraph" style="text-align:left;">But here’s the part that matters most, and Cloudstar puts it well: the value comes from &quot;specification-writing thinking, not tool complexity.&quot; SDD is about thinking, not writing. Experienced developers hear &quot;write a spec&quot; and immediately picture formal documentation nobody reads, outdated before it’s finished, existing to satisfy a process rather than clarify thinking. This is not that.</p><p class="paragraph" style="text-align:left;">The best approach is to have the agent interview you, a pattern pioneered by <a class="link" href="https://github.com/obra/superpowers?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=think-before-you-prompt" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">Superpowers</a>, Jesse Vincent&#39;s agentic skills framework. Instead of writing the spec yourself, the agent asks you questions one at a time, about one capability at a time. What should happen when a webhook delivery fails? What’s the retry policy? Should users configure notification channels, or is that a later feature? It forces you to confront edge cases and design decisions you wouldn’t have thought of on your own. That’s where the real value is, not in the document, but in the thinking the process demands. And don&#39;t worry, you’re not the one doing the writing. The agent produces the artifacts based on your answers. You review them; that review step matters, and you need to catch misunderstandings and hallucinated requirements. But the heavy lifting is the conversation, not the typing.</p><p class="paragraph" style="text-align:left;">Red Hat’s Rich Naszcyniec has a good name for the problem this solves: the &quot;encoding/decoding gap.&quot; The space between what you intend and what the AI produces. Natural language is a lossy channel for developer intent. You say &quot;clean, reactive dashboard for monitoring cluster health&quot; and the AI hears something close but not quite: it picks a deprecated charting library, skips authentication, and uses patterns that don’t match your codebase. The vibe was right, but the execution was off-key. A spec narrows that gap. Not because it’s magic, but because the thinking process behind it forces clarity before you prompt.</p><p class="paragraph" style="text-align:left;">Now, the obvious objection. &quot;Isn’t this just Waterfall?&quot;</p><p class="paragraph" style="text-align:left;">No. Cloudstar makes the distinction precisely: Waterfall’s failure &quot;was caused by prohibitively high costs discovering specifications were wrong, not from specifications being inherently bad.&quot; You’d write a 200-page requirements document, hand it to a development team, and not see deliverables until the next quarter. By then, requirements had drifted, the market had shifted, and the spec was fiction. Specs didn’t fail us; the economics around specs did.</p><p class="paragraph" style="text-align:left;">In SDD, the feedback loop is minutes long. Write a spec, hand it to an agent, review the output. If the spec was wrong, and it will be, you update it and regenerate. You’re editing a markdown file and re-running a prompt, not re-planning a quarter.</p><p class="paragraph" style="text-align:left;">And the distinction goes deeper than speed. Waterfall specs were static, frozen artifacts handed over the wall. SDD specs, done right, are the opposite. Red Hat calls it &quot;spec co-evolution&quot;: when an agent encounters a failure, it doesn’t just fix the immediate problem; it suggests an update to the relevant spec so the same class of error doesn’t recur. Waterfall specs degraded over time. SDD specs improve over time. Same artifact type, opposite trajectory.</p><h2 class="heading" style="text-align:left;" id="my-take"><b>My Take</b></h2><p class="paragraph" style="text-align:left;">SDD works, but only at the right scope. A spec for &quot;add webhook notifications with retry logic&quot; is small enough to evaluate in one pass. You read the output. It works or it doesn&#39;t. You adjust. The loop stays tight.</p><p class="paragraph" style="text-align:left;">Now try speccing &quot;build the notifications subsystem&quot;: webhooks, email digests, in-app alerts, user preferences, delivery tracking, retry logic, rate limiting. You skip the human review checkpoints, hand the whole thing to agents, and don&#39;t see output until everything is built. One wrong assumption early, say, the data model, silently compounds through every feature built on top of it. And when you finally review the output (it will be wrong), you&#39;re not fixing one thing. You&#39;re triaging across six features trying to figure out which assumption was the root cause, which interactions between features were underspecified, and which parts the agent silently reinterpreted. Untangling that is its own expensive project. Sound familiar? Big batch, late feedback: that&#39;s Waterfall by definition. It&#39;s running on faster hardware, but it&#39;s the same spiral.</p><p class="paragraph" style="text-align:left;">There&#39;s also a case for prototyping before you spec - vibe before you spec, if you will. You can&#39;t write a good spec for something you don&#39;t understand yet. Sometimes the fastest path to a good spec is building a rough prototype, learning what you didn&#39;t know you didn&#39;t know, throwing it away, and <i>then</i> speccing from real understanding. And even after a proper spec-driven implementation, if the output reveals that your spec was fundamentally wrong - wrong data model, wrong abstraction boundary, wrong assumptions about how users will actually use the thing - the right move is to throw it away and re-spec from scratch rather than trying to patch your way to something coherent. Erik Bernhardsson calls this the <a class="link" href="https://erikbern.com/2017/08/29/the-software-engineering-rule-of-3.html?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=think-before-you-prompt" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">Rule of 3</a>: your first two attempts to solve a problem will fail because you misunderstood the problem; the third time it works. The difference now is that each attempt costs you an afternoon, not a quarter.</p><p class="paragraph" style="text-align:left;">I also think SDD&#39;s bad reputation is partly the tooling&#39;s fault. The most prominent tools can push you toward project-scale specification before you write a line of code. GitHub Spec Kit runs a five-artifact pipeline: assessment, PRD, technical spec, ADR, tasks. <a class="link" href="https://marmelab.com/blog/2025/11/12/spec-driven-development-waterfall-strikes-back.html?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=think-before-you-prompt" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">One practitioner generated 1,300 lines of markdown just to display a date</a>. GSD (Get Shit Done) spawns four parallel researcher agents plus a plan-checker verification loop <i>per phase</i>. A single bug fix <a class="link" href="https://github.com/gsd-build/get-shit-done/issues/120?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=think-before-you-prompt" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">can consume 100+ agent spawns</a>. These tools have their place, but for most day-to-day work, that&#39;s a lot of ceremony before you&#39;ve written a line of code, and it&#39;s no surprise that some people look at the output and say, &quot;<a class="link" href="https://medium.com/@iamalvisng/spec-driven-development-is-waterfall-in-markdown-e2921554a600?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=think-before-you-prompt" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">this is just Waterfall in markdown</a>.&quot; I use <a class="link" href="https://github.com/Codagent-AI/openspec?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=think-before-you-prompt" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">OpenSpec</a> specifically because it&#39;s lighter: just markdown, scoped to a single change, no backlog planning or milestone ceremonies. More on this next time.</p><h2 class="heading" style="text-align:left;" id="codagent-update"><b>Codagent Update</b></h2><p class="paragraph" style="text-align:left;">So what does SDD look like when the tooling stays out of the way? That&#39;s the question I&#39;ve been trying to answer with Agent Skills. What sets it apart from other skills libraries is the end-to-end arc — from structured planning through autonomous execution, connected by a chain of constrained artifacts. The execution pipeline (Agent Runner) is still in development, but the planning workflow is available now.</p><p class="paragraph" style="text-align:left;">What sets <a class="link" href="https://github.com/Codagent-AI/agent-skills?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=think-before-you-prompt" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">Agent Skills</a> apart from other skills libraries is the end-to-end arc, from structured planning through autonomous execution, connected by a chain of constrained artifacts. The execution pipeline (Agent Runner) is still in development, but the planning workflow is available now, and that&#39;s where most of the value lives.</p><p class="paragraph" style="text-align:left;">The planning stage is collaborative: you and the agent, thinking together. The skills walk you through the full arc: <code>/propose</code> honestly evaluates whether the idea is worth building, then <code>/spec</code> moves into interview-driven discovery where the agent asks you questions one capability at a time, capturing behavioral contracts and testable scenarios. From there, the agent brainstorms architectural approaches through dialogue and produces a design with decisions and trade-offs. Finally, it decomposes the change into right-sized, independently implementable tasks, each self-contained with its own goal, context, and done criteria. <code>/review</code> lets you verify that the artifacts are a cohesive whole before moving on. You&#39;re in the loop the whole time, approving artifacts and catching bad assumptions early.</p><p class="paragraph" style="text-align:left;">The execution stage is autonomous. The agent dispatches a fresh subagent per task, runs Agent Validator as a quality gate, and commits on success. Then it handles the last mile: push, wait for CI, fix failures, repeat, with hard limits so it doesn&#39;t loop forever. It only comes back to you if something breaks that it can&#39;t fix.</p><p class="paragraph" style="text-align:left;">For managing spec documents, I recommend <a class="link" href="https://github.com/Codagent-AI/openspec?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=think-before-you-prompt" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">OpenSpec</a>. OpenSpec defines what the artifacts are and the process for keeping them current as your codebase evolves. Agent Skills defines the process for how each artifact gets created: the interviews, the brainstorming, the review gates. They&#39;re complementary: OpenSpec is the &quot;what,&quot; Agent Skills is the &quot;how.&quot; You can use Agent Skills on its own, but together you get the spec co-evolution piece, specs that stay accurate as living documents rather than rotting the moment implementation starts.</p><p class="paragraph" style="text-align:left;">This maps directly to what I said above: SDD&#39;s value comes from the thinking, not the format. Agent Skills enforces that thinking as a process. You can&#39;t skip straight to implementation because the implement skill reads from task files, which read from the design, which read from the specs, which read from the proposal. Each artifact constrains the next.</p><p class="paragraph" style="text-align:left;">Specs aren&#39;t the point; thinking is the point, and specs are just what the thinking produces. The tools should make that thinking easier, not bury it under ceremony. Agent Skills is available now as a plugin for Claude Code or Cursor (other agents coming soon); check out <a class="link" href="https://codagent.dev?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=think-before-you-prompt" target="_blank" rel="noopener noreferrer nofollow">codagent.dev</a> to get started. Next time: more on why the right unit of work is a feature, not a project.</p></div><div class='beehiiv__footer'><br class='beehiiv__footer__break'><hr class='beehiiv__footer__line'><a target="_blank" class="beehiiv__footer_link" style="text-align: center;" href="https://www.beehiiv.com/powered-by?publication_logo=https%3A%2F%2Fmedia.beehiiv.com%2Fcdn-cgi%2Fimage%2Ffit%3Dscale-down%2Cformat%3Dauto%2Conerror%3Dredirect%2Cquality%3D80%2Fuploads%2Fpublication%2Flogo%2F75d4e32c-8d3f-4873-a605-ab2cefc33df5%2Fcodagent-logo.png%3Fv%3D1796528970&publication_name=Agents%2C+harnessed&utm_campaign=2541e0b2-9e41-4c5a-84ab-22373dc413fa&utm_medium=post_rss&utm_source=agents_harnessed">Powered by beehiiv</a></div></div>
  ]]></content:encoded>
</item>

      <item>
  <title>Slot Machines and Safety Nets</title>
  <description>An intro to coding agent harnesses</description>
      <enclosure url="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/8f2d13a8-98a9-41fd-87fe-0eaebf595b02/slot-machines-and-safety-nets.jpg" length="146600" type="image/jpeg"/>
  <link>https://codagent.beehiiv.com/p/slot-machines-and-safety-nets</link>
  <guid isPermaLink="true">https://codagent.beehiiv.com/p/slot-machines-and-safety-nets</guid>
  <pubDate>Tue, 24 Mar 2026 04:01:55 +0000</pubDate>
  <atom:published>2026-03-24T04:01:55Z</atom:published>
    <dc:creator>Paul Caplan</dc:creator>
    <category><![CDATA[Harness Engineering]]></category>
    <category><![CDATA[Coding Agents]]></category>
    <category><![CDATA[Context Engineering]]></category>
    <category><![CDATA[Agentic Coding]]></category>
  <content:encoded><![CDATA[
    <div class='beehiiv'><style>
  .bh__table, .bh__table_header, .bh__table_cell { border: 1px solid #C0C0C0; }
  .bh__table_cell { padding: 5px; background-color: #FFFFFF; }
  .bh__table_cell p { color: #2D2D2D; font-family: 'Helvetica',Arial,sans-serif !important; overflow-wrap: break-word; }
  .bh__table_header { padding: 5px; background-color:#F1F1F1; }
  .bh__table_header p { color: #2A2A2A; font-family:'Trebuchet MS','Lucida Grande',Tahoma,sans-serif !important; overflow-wrap: break-word; }
</style><div class='beehiiv__body'><h1 class="heading" style="text-align:left;" id="slot-machines-and-safety-nets">Slot Machines and Safety Nets</h1><h2 class="heading" style="text-align:left;" id="prelude-to-a-harness">Prelude to a harness</h2><p class="paragraph" style="text-align:left;">It was a thing before it had a name. As is the case for all disciplines when they first emerge, I suppose.</p><p class="paragraph" style="text-align:left;">I first knew it was a thing when I caught the agentic coding bug last year.</p><p class="paragraph" style="text-align:left;">Agentic coding - engineers either love it or hate it. For me, it was love at first prompt. It has an addictive quality, largely because you never quite know what you’re going to get. One minute, the AI solves a bug that’s been plaguing you for hours. The next, it tries to delete your production database. That unpredictability creates a dopamine hit every time you “win.”</p><p class="paragraph" style="text-align:left;">Coding agents are like slot machines, and I was hooked. But I didn&#39;t just want to play the game - I wanted to &quot;beat the house&quot;. So I became obsessed: what changes could I make to win more often? To tilt the weights in my favor, so to speak.</p><p class="paragraph" style="text-align:left;">So I got to work, using agents to build tools for building with agents. It was not smooth sailing.</p><p class="paragraph" style="text-align:left;">The failures weren&#39;t just random - they were systematic. Agents drift when intent is ambiguous, skip steps when execution is unstructured, and declare &quot;done&quot; without running the verifications you asked for. They drown in noisy context, forget everything between sessions, and quietly spread bad patterns through a codebase like weeds.</p><p class="paragraph" style="text-align:left;">And yet the solutions were not obvious. Spec-driven development tools helped define artifacts but not processes. Agents disregarded even my most strongly worded prompts. And using multiple agents like Claude and Codex together was manual and clunky.</p><p class="paragraph" style="text-align:left;">But <span style="text-decoration:line-through;">gradually</span> quite rapidly, the industry has started to converge on a common set of solutions.</p><h2 class="heading" style="text-align:left;" id="what-is-harness-engineering">What is harness engineering?</h2><p class="paragraph" style="text-align:left;">Early this year, a term emerged for the thing myself and others have been building: <a class="link" href="https://martinfowler.com/articles/exploring-gen-ai/harness-engineering.html?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=slot-machines-and-safety-nets" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">harness engineering</a>.</p><p class="paragraph" style="text-align:left;">Harness engineering is the discipline of making AI coding agents reliable by engineering the system <i>around</i> the model - the workflows, specifications, validation loops, context strategies, tool interfaces, and governance mechanisms that make agents more deterministic and accountable.</p><p class="paragraph" style="text-align:left;">So what does a harness actually look like? The mental model I use is three nested loops:</p><ol start="1"><li><p class="paragraph" style="text-align:left;">The outer loop runs at the project level. This is where you capture intent: specs, architecture docs, the knowledge base that agents pull from. It&#39;s also where governance lives: human oversight, keeping the repo clean, making sure the codebase doesn&#39;t rot over time. Think of it as the environment the agent works in.</p></li><li><p class="paragraph" style="text-align:left;">The orchestration loop runs per feature. Plan before you build - requirements, design, task breakdown - where each artifact constrains the next. Only once the plan is solid does implementation begin, one task at a time, each verified before the next starts.</p></li><li><p class="paragraph" style="text-align:left;">The inner loop runs per task. Write the code, verify it works, and if it doesn&#39;t - feed the errors back and try again. How you structure that cycle determines whether the agent produces working software or confident garbage.</p></li></ol><div class="image"><img alt="" class="image__image" style="" src="https://media.beehiiv.com/cdn-cgi/image/fit=scale-down,format=auto,onerror=redirect,quality=80/uploads/asset/file/0e9439b6-81bb-4a18-85f4-495607128fdc/three-loops.png?t=1774324227"/></div><h2 class="heading" style="text-align:left;" id="the-three-loops-in-practice">The three loops in practice</h2><p class="paragraph" style="text-align:left;">This isn&#39;t hypothetical. Each loop shows up clearly in real projects. Here&#39;s one case study per loop.</p><h3 class="heading" style="text-align:left;" id="the-outer-loop-open-a-is-millionlin">The outer loop: OpenAI&#39;s million-line experiment</h3><p class="paragraph" style="text-align:left;">A small team at OpenAI <a class="link" href="https://openai.com/index/harness-engineering/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=slot-machines-and-safety-nets" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">built a product</a> from an empty repo to a million lines of code, roughly 1,500 pull requests over five months. The constraint: zero manually-written code. Every line was agent-generated. They estimated 10x time savings versus writing by hand.</p><p class="paragraph" style="text-align:left;">What makes this a case study in the outer loop is that the team&#39;s primary job wasn&#39;t writing code. It was designing the environment agents work in. When something failed, the fix was always: &quot;what capability is missing, and how do we make it both legible and enforceable for the agent?&quot;</p><p class="paragraph" style="text-align:left;">The first half of that is intent, making the repo the system of record. &quot;From the agent&#39;s point of view, anything it can&#39;t access in-context while running effectively doesn&#39;t exist. Knowledge that lives in Google Docs, chat threads, or people&#39;s heads is not accessible to the system.&quot; If a Slack conversation aligned the team on an architectural pattern but nobody wrote it down, it was invisible, to agents and to any engineer who joined later. So they moved everything into the repo: design docs, execution plans, acceptance criteria, architectural decisions. If it mattered, it was a versioned markdown file.</p><p class="paragraph" style="text-align:left;">But not all at once. They tried a monolithic instruction file first and it failed. &quot;A giant instruction file crowds out the task, the code, and the relevant docs, so the agent either misses key constraints or starts optimizing for the wrong ones.&quot; Instead, they built a short AGENTS.md (~100 lines) as a table of contents pointing into a structured <code>docs/</code> directory. Plans, known tech debt, and completed work were all versioned and co-located. The philosophy was progressive disclosure: give the agent a map, not a thousand-page manual.</p><p class="paragraph" style="text-align:left;">But intent alone isn&#39;t enough. Agents replicate whatever patterns exist in the repo, including bad ones. The team spent every Friday cleaning up &quot;AI slop.&quot; That didn&#39;t scale. So they encoded what they cared about as mechanical rules: a strict layered architecture (Types → Config → Repo → Service → Runtime → UI) enforced by custom linters that blocked the build if dependencies flowed the wrong direction. Naming conventions, structured logging, file size limits, all enforced by lint rules whose error messages doubled as remediation instructions for the agent. &quot;This is the kind of architecture you usually postpone until you have hundreds of engineers. With coding agents, it&#39;s an early prerequisite: the constraints are what allows speed without decay.&quot;</p><p class="paragraph" style="text-align:left;">And they fought entropy continuously. Background &quot;garbage collection&quot; agents scanned for deviations, graded quality, and opened targeted refactoring PRs. Human taste was captured once, then enforced on every line of code going forward. Daily standups became <i>more</i> important at this velocity, not less. When decisions happened in Slack, someone would immediately have Codex encode the decision as a guardrail. Human oversight set the direction; automated enforcement kept the codebase healthy enough for agents to keep working in it.</p><p class="paragraph" style="text-align:left;">The key takeaways for the outer loop are: capture intent so agents know what to build, and enforce governance so the codebase doesn&#39;t rot under them.</p><h3 class="heading" style="text-align:left;" id="the-orchestration-loop-meta-gp-ts-a">The orchestration loop: MetaGPT&#39;s assembly line</h3><p class="paragraph" style="text-align:left;">Give two agents an open-ended task and let them chat freely. What happens? The authors of <a class="link" href="https://github.com/FoundationAgents/MetaGPT?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=slot-machines-and-safety-nets" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">MetaGPT</a> (ICLR 2024) call it the telephone game problem. One agent hallucinates a requirement. The next builds on it. By the third handoff, the whole thing is confidently wrong.</p><p class="paragraph" style="text-align:left;">MetaGPT&#39;s fix is borrowed from how large enterprise organizations work: Standardized Operating Procedures. Not just &quot;assign roles,&quot; but enforce a strict pipeline where each agent consumes a document and produces a different one that the next agent in the chain consumes. A Product Manager produces a PRD. An Architect consumes it and produces a system design. A Project Manager consumes that and produces a task breakdown. Only then does an Engineer start writing code, bounded by everything upstream. A QA agent closes the loop by testing against the original requirements. No agent can &quot;code into a corner&quot; because it can&#39;t start until the planning artifacts exist as concrete documents.</p><p class="paragraph" style="text-align:left;">The results make the case for structure. When tested with roles removed one at a time, an Engineer agent working alone scored 1.0 out of 4.0 on executability. Adding each upstream role improved it step by step. With the full pipeline, executability jumped to 4.0 and human revisions needed fell from 10 to 2.5. Same model. The only difference was the harness around it.</p><p class="paragraph" style="text-align:left;">The lesson is that the orchestration loop needs two things: structured artifacts as the coordination medium (not chat), and a separation between planning and execution that prevents agents from skipping ahead.</p><h3 class="heading" style="text-align:left;" id="the-inner-loop-superpowers-subagent">The inner loop: Superpowers&#39; subagent discipline</h3><p class="paragraph" style="text-align:left;">The inner loop is a single agent working on a single task. The outer and orchestration loops can be perfect, but if the agent botches the implementation or declares &quot;done&quot; without verifying, none of it matters.</p><p class="paragraph" style="text-align:left;">The skills pack <a class="link" href="https://github.com/obra/superpowers?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=slot-machines-and-safety-nets" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">Superpowers</a> attacks this through discipline enforcement. Rather than replacing your agent or controlling its tools, Superpowers shapes <i>how the agent thinks</i> during execution through detailed skills that prescribe methodology, verification, and review.</p><p class="paragraph" style="text-align:left;">The core mechanism is subagent-driven development. A controller agent reads the plan, then dispatches a fresh subagent for each task. Each implementer starts with clean context: just the task description, architectural context, and working directory.</p><p class="paragraph" style="text-align:left;">Each task uses TDD - but TDD alone isn&#39;t enough; agents lie. Superpowers&#39; verification skill addresses this with a 5-step evidence gate: identify the command that proves your claim, run it, read the complete output, verify it matches, and only then make the claim.</p><p class="paragraph" style="text-align:left;">Then comes review. The controller dispatches separate reviewer subagents - spec compliance first (did you build what was asked?), code quality second (is it well-structured?). The reviewers explicitly distrust the implementer and verify everything independently. If issues are found, the implementer fixes and the <i>same reviewer</i> re-evaluates.</p><p class="paragraph" style="text-align:left;">The lesson from Superpowers is that the inner loop isn&#39;t just about tools or verification. It&#39;s about <i>methodology</i>. TDD, independent review, evidence-based completion claims, systematic debugging: these are engineering disciplines that humans learn through years of practice. Superpowers encodes them as behavioral specifications that shape the agent&#39;s approach.</p><h2 class="heading" style="text-align:left;" id="the-gap">The gap</h2><p class="paragraph" style="text-align:left;">These projects prove why each loop matters. But each leaves significant gaps.</p><p class="paragraph" style="text-align:left;">MetaGPT is a self-contained agent runtime - it replaces your coding agent rather than working with it. It doesn&#39;t integrate with Claude Code, Codex, or whatever CLI you&#39;re already using. And it requires that the whole pipeline be fully automated. For mission-critical projects, you need human-collaborative planning with hard approval gates - slower, but it catches hallucinated requirements early, before they compound downstream. And in-memory coordination is fast, but it&#39;s ephemeral. When your planning artifacts are files in a git repo, they&#39;re durable, diffable, human-readable, and reviewable. And they survive crashes.</p><p class="paragraph" style="text-align:left;">On the other hand, Superpowers works <i>within</i> Claude Code, shaping agent behavior from the inside. But everything is prompt-based - there&#39;s no deterministic enforcement. The model might skip TDD when the context window fills up, or decide it knows better than the verification skill. And its verification is reviewer-only - no pluggable system for automated checks like type-checking, security scanning, or custom linters as hard gates independent of reviewer judgment. When the reviewer is the same model family as the implementer, they share the same blind spots.</p><h2 class="heading" style="text-align:left;" id="whats-next">What&#39;s next</h2><p class="paragraph" style="text-align:left;">Most teams cobble together their orchestration loop from scripts, prompts, and manual handoffs. Better solutions are starting to emerge, but what&#39;s missing isn&#39;t more agent capabilities and plugins. <i>We need an entirely new kind of tooling layer that coordinates and constrains the coding agent</i>.</p><p class="paragraph" style="text-align:left;">I&#39;m building an open source production-grade alternative that works <i>with</i> the agents you already have. The things missing from these tools - session management across steps, crash recovery and resumption, agent-agnostic orchestration, human-in-the-loop approval gates, composable workflow primitives, and automated verification with cross-agent review - are what I&#39;m focused on. Bring your own agent. Codagent provides the harness.</p><p class="paragraph" style="text-align:left;">In the meantime, Agent Validator - the verification engine that powers the inner loop - is available now (free, open source). It handles the verify-fix cycle: configurable validation pipelines, cross-agent code review, and the feedback loop that keeps agents honest. I&#39;ll dig into how it works in the next issue. Check out <a class="link" href="https://codagent.dev/?utm_source=codagent.beehiiv.com&utm_medium=newsletter&utm_campaign=slot-machines-and-safety-nets" target="_blank" rel="noopener noreferrer nofollow" style="color: #006ab1">codagent.dev</a> if you want to get started now.</p><p class="paragraph" style="text-align:left;">I&#39;m &quot;all in&quot; on harnesses. What about you?</p></div><div class='beehiiv__footer'><br class='beehiiv__footer__break'><hr class='beehiiv__footer__line'><a target="_blank" class="beehiiv__footer_link" style="text-align: center;" href="https://www.beehiiv.com/powered-by?publication_logo=https%3A%2F%2Fmedia.beehiiv.com%2Fcdn-cgi%2Fimage%2Ffit%3Dscale-down%2Cformat%3Dauto%2Conerror%3Dredirect%2Cquality%3D80%2Fuploads%2Fpublication%2Flogo%2F75d4e32c-8d3f-4873-a605-ab2cefc33df5%2Fcodagent-logo.png%3Fv%3D1796528970&publication_name=Agents%2C+harnessed&utm_campaign=d0867e49-5d2b-40a2-b3a0-964359fb36c3&utm_medium=post_rss&utm_source=agents_harnessed">Powered by beehiiv</a></div></div>
  ]]></content:encoded>
</item>

  </channel>
</rss>
