<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[turri]]></title><description><![CDATA[notes from building turri, a coding agent where your intent is the source and the code regenerates from it.]]></description><link>https://blog.turri.dev</link><image><url>https://substackcdn.com/image/fetch/$s_!t4bK!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd61087b6-2e2e-4533-9566-8a47b1d0bc2c_1200x1200.png</url><title>turri</title><link>https://blog.turri.dev</link></image><generator>Substack</generator><lastBuildDate>Mon, 30 Nov 2026 04:51:25 GMT</lastBuildDate><atom:link href="https://blog.turri.dev/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Žan Jonke]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[turridev@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[turridev@substack.com]]></itunes:email><itunes:name><![CDATA[Žan Jonke]]></itunes:name></itunes:owner><itunes:author><![CDATA[Žan Jonke]]></itunes:author><googleplay:owner><![CDATA[turridev@substack.com]]></googleplay:owner><googleplay:email><![CDATA[turridev@substack.com]]></googleplay:email><googleplay:author><![CDATA[Žan Jonke]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[Everything it takes to regenerate]]></title><description><![CDATA[The tools behind turri's regenerative software.]]></description><link>https://blog.turri.dev/p/everything-it-takes-to-regenerate</link><guid isPermaLink="false">https://blog.turri.dev/p/everything-it-takes-to-regenerate</guid><dc:creator><![CDATA[Žan Jonke]]></dc:creator><pubDate>Tue, 24 Nov 2026 13:35:33 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/7a4ff129-5c28-4721-bae7-8e4e96001b1f_2400x1260.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<blockquote><p><strong>TLDR</strong></p><p><a href="https://turri.dev/">turri</a> turns &#8727;&#8727;&#8727;plain into code. When &#8727;&#8727;&#8727;plain changes, it doesn't rewrite everything. It works out what changed and <span data-color="#ff427b" style="color: rgb(255, 66, 123);">regenerates</span> only that, a small step at a time, testing each step before it keeps it. This post walks through the handful of tools that make that work, and why there are so few of them.</p></blockquote><h2>Let&#8217;s not guess</h2><p>In <a href="https://turridev.substack.com/p/why-i-built-turri">my last post</a>, I described how coding agents made me faster at building software, but left me increasingly disconnected from what I was building. The previous post was about the problem, this one is about how the solution works. </p><p>The overarching idea is <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regenerative software</span>. The code is derived and disposable. The intent is the asset. When the intent changes, you <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regenerate</span> the code instead of patching it.</p><p>Most software today works the other way around. The code is the source of truth, and the code does not contain the intent. The intent is buried in past prompt histories, meetings, specs etc., which may or may not still be within reach. Even when they are, there is no way to rule out that what they hold is ambiguous, conflicting, or incomplete, however carefully it was written to the coding agent. And when it is, the coding agent has to guess. Every guess is legacy code from the moment it is written, because from then on, nobody knows whether it is needed or not. That is why removing parts of the code is dangerous. Nobody can say what would be lost with them.</p><p>Writing the intent down ends the guessing about what the code is for. It does not, by itself, make <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regeneration</span> work. A model on its own does not know which part of the code no longer matches the intent. It does not know whether its last attempt worked, or what it tried yesterday. Ask it to "<span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regenerate</span> what changed" and it will happily rewrite something that did not change, and tell you it is done. Left to itself, it is back to guessing.</p><p>turri does not leave those questions to the model. It answers them with tools that check instead of guess, and those tools will be the focus of this blog post.</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!1l_a!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1efb06b8-eba0-47cf-8af4-56317dfb36c8_1442x326.png 424w, https://substackcdn.com/image/fetch/$s_!1l_a!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1efb06b8-eba0-47cf-8af4-56317dfb36c8_1442x326.png 848w, https://substackcdn.com/image/fetch/$s_!1l_a!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1efb06b8-eba0-47cf-8af4-56317dfb36c8_1442x326.png 1272w, https://substackcdn.com/image/fetch/$s_!1l_a!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1efb06b8-eba0-47cf-8af4-56317dfb36c8_1442x326.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!1l_a!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1efb06b8-eba0-47cf-8af4-56317dfb36c8_1442x326.png" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/1efb06b8-eba0-47cf-8af4-56317dfb36c8_1442x326.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:null,&quot;width&quot;:null,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;A pixel-art robot without a toolbox, confused, with question marks over its head. Next to it is a building whose floors do not line up, with a door on the second floor, a window sticking out of the wall, an upside-down roof, a chimney on its own and a block falling off. / The same pixel-art robot, with a toolbox next to it. Next to it is a neat house with a roof, a chimney, two windows and a door, and a green tick above it.&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="A pixel-art robot without a toolbox, confused, with question marks over its head. Next to it is a building whose floors do not line up, with a door on the second floor, a window sticking out of the wall, an upside-down roof, a chimney on its own and a block falling off. / The same pixel-art robot, with a toolbox next to it. Next to it is a neat house with a roof, a chimney, two windows and a door, and a green tick above it." title="A pixel-art robot without a toolbox, confused, with question marks over its head. Next to it is a building whose floors do not line up, with a door on the second floor, a window sticking out of the wall, an upside-down roof, a chimney on its own and a block falling off. / The same pixel-art robot, with a toolbox next to it. Next to it is a neat house with a roof, a chimney, two windows and a door, and a green tick above it." srcset="https://substackcdn.com/image/fetch/$s_!1l_a!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1efb06b8-eba0-47cf-8af4-56317dfb36c8_1442x326.png 424w, https://substackcdn.com/image/fetch/$s_!1l_a!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1efb06b8-eba0-47cf-8af4-56317dfb36c8_1442x326.png 848w, https://substackcdn.com/image/fetch/$s_!1l_a!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1efb06b8-eba0-47cf-8af4-56317dfb36c8_1442x326.png 1272w, https://substackcdn.com/image/fetch/$s_!1l_a!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1efb06b8-eba0-47cf-8af4-56317dfb36c8_1442x326.png 1456w" sizes="100vw" fetchpriority="high"></picture><div></div></div></div></figure></div><p>I have always believed in solving a problem as precisely and as simply as possible and with as little as possible, and in learning along the way what "simple" actually means. Simple is easy to understand, easy to explain to others and easy to debug. Anyone can complicate a solution into oblivion, but keeping it simple is extremely hard. Complexity has its place, but it is a bigger liability, and it has to earn its keep. When left unchecked, it is what destroys software, until the only way forward is to rebuild it from scratch and prune all the complexity that piled up without earning its keep. </p><p>turri is built on <a href="https://pi.dev">pi</a>, which gives the agent four basic tools, named <span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">read</span>, <span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">write</span>, <span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">edit</span> and <span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">bash</span>. When Mario Zechner <a href="https://mariozechner.at/posts/2025-11-30-pi-coding-agent/">introduced pi</a>, he wrote that those four "are all you need for an effective coding agent", and that the difference with pi is that he has "full observability of everything". turri takes both to heart as well. It adds as few tools of its own as it can. And it can see what it is doing, which is also what lets it heal itself. When something goes wrong, it reads what happened, and most of the time it can fix the problem on its own.</p><p>Two of turri's tools matter most. <span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">regenerate</span> turns <a href="https://plainlang.org/">&#8727;&#8727;&#8727;plain</a> into code. <span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">conform</span> proves the code does what &#8727;&#8727;&#8727;plain says. Everything else is there to serve those two, or to let turri see what it is doing.</p><p>turri is built around &#8727;&#8727;&#8727;plain, so if you already know &#8727;&#8727;&#8727;plain, this post will be easier to follow. If you don't, its site is a good place to start. I did my best, though, to write this post for people who know nothing about &#8727;&#8727;&#8727;plain too.</p><p>This post skips validation on purpose. turri validates the code with the <span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">conform</span> tool, which makes sure the code does what &#8727;&#8727;&#8727;plain says. <span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">conform</span> is in the table below so that every tool is there, but there is a lot to say about either half, and to keep this post digestible, I decided to focus on <span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">regenerate</span> alone. How turri validates the code with <span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">conform</span> will be covered in the next post.</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!iQoD!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c21404d-9086-48fb-a64c-cc79b794821f_1442x924.png 424w, https://substackcdn.com/image/fetch/$s_!iQoD!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c21404d-9086-48fb-a64c-cc79b794821f_1442x924.png 848w, https://substackcdn.com/image/fetch/$s_!iQoD!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c21404d-9086-48fb-a64c-cc79b794821f_1442x924.png 1272w, https://substackcdn.com/image/fetch/$s_!iQoD!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c21404d-9086-48fb-a64c-cc79b794821f_1442x924.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!iQoD!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c21404d-9086-48fb-a64c-cc79b794821f_1442x924.png" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6c21404d-9086-48fb-a64c-cc79b794821f_1442x924.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:null,&quot;width&quot;:null,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;group, tool, what it does; &#8727;&#8727;&#8727;plain, cultivate, runs the skills that write &#8727;&#8727;&#8727;plain, with gates; parse, checks &#8727;&#8727;&#8727;plain and parses it into a tree; regeneration, regenerate, starts the work of rebuilding the code from &#8727;&#8727;&#8727;plain; conform, starts the work of proving the code matches &#8727;&#8727;&#8727;plain; pulses, lists that work and how it went pulse = unit of work; halt, stops a pulse, or the pulses still planned; drift, measures how far the code is from &#8727;&#8727;&#8727;plain; the rest, launch, starts what is built on my machine, to try it; settings, sets how turri works, and which models it uses&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="group, tool, what it does; &#8727;&#8727;&#8727;plain, cultivate, runs the skills that write &#8727;&#8727;&#8727;plain, with gates; parse, checks &#8727;&#8727;&#8727;plain and parses it into a tree; regeneration, regenerate, starts the work of rebuilding the code from &#8727;&#8727;&#8727;plain; conform, starts the work of proving the code matches &#8727;&#8727;&#8727;plain; pulses, lists that work and how it went pulse = unit of work; halt, stops a pulse, or the pulses still planned; drift, measures how far the code is from &#8727;&#8727;&#8727;plain; the rest, launch, starts what is built on my machine, to try it; settings, sets how turri works, and which models it uses" title="group, tool, what it does; &#8727;&#8727;&#8727;plain, cultivate, runs the skills that write &#8727;&#8727;&#8727;plain, with gates; parse, checks &#8727;&#8727;&#8727;plain and parses it into a tree; regeneration, regenerate, starts the work of rebuilding the code from &#8727;&#8727;&#8727;plain; conform, starts the work of proving the code matches &#8727;&#8727;&#8727;plain; pulses, lists that work and how it went pulse = unit of work; halt, stops a pulse, or the pulses still planned; drift, measures how far the code is from &#8727;&#8727;&#8727;plain; the rest, launch, starts what is built on my machine, to try it; settings, sets how turri works, and which models it uses" srcset="https://substackcdn.com/image/fetch/$s_!iQoD!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c21404d-9086-48fb-a64c-cc79b794821f_1442x924.png 424w, https://substackcdn.com/image/fetch/$s_!iQoD!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c21404d-9086-48fb-a64c-cc79b794821f_1442x924.png 848w, https://substackcdn.com/image/fetch/$s_!iQoD!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c21404d-9086-48fb-a64c-cc79b794821f_1442x924.png 1272w, https://substackcdn.com/image/fetch/$s_!iQoD!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c21404d-9086-48fb-a64c-cc79b794821f_1442x924.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></div><figcaption class="image-caption">The tools turri adds to the agent. <span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">regenerate</span> and <span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">conform</span> start the work, and the work runs as pulses. The other three in their group watch over it and stop it.</figcaption></figure></div><p>I have a parrot named Arthur. Arthur's feeder serves breakfast and dinner, and a snack whenever Arthur presses a button. Arthur has worked out that the button always works, and he keeps pressing it to get the snacks - as Pavlov predicted he would. He is putting on weight, which is not healthy for him. So I want to put him on a diet, with smaller meals and a limit on his snacks. That change is the example I will use throughout this post. I chose it because it is small and easy to follow, and the goal here is to show how turri works.</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!VCzB!,w_424,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F847d3e0f-bf7f-475b-b3fb-56e5ff3c35c4_1442x726.gif 424w, https://substackcdn.com/image/fetch/$s_!VCzB!,w_848,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F847d3e0f-bf7f-475b-b3fb-56e5ff3c35c4_1442x726.gif 848w, https://substackcdn.com/image/fetch/$s_!VCzB!,w_1272,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F847d3e0f-bf7f-475b-b3fb-56e5ff3c35c4_1442x726.gif 1272w, https://substackcdn.com/image/fetch/$s_!VCzB!,w_1456,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F847d3e0f-bf7f-475b-b3fb-56e5ff3c35c4_1442x726.gif 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!VCzB!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F847d3e0f-bf7f-475b-b3fb-56e5ff3c35c4_1442x726.gif" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/847d3e0f-bf7f-475b-b3fb-56e5ff3c35c4_1442x726.gif&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:null,&quot;width&quot;:null,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Arthur the lovebird, pecking the snack button on the feeder, whose sign shows no limit, with seeds piling up in its tray&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Arthur the lovebird, pecking the snack button on the feeder, whose sign shows no limit, with seeds piling up in its tray" title="Arthur the lovebird, pecking the snack button on the feeder, whose sign shows no limit, with seeds piling up in its tray" srcset="https://substackcdn.com/image/fetch/$s_!VCzB!,w_424,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F847d3e0f-bf7f-475b-b3fb-56e5ff3c35c4_1442x726.gif 424w, https://substackcdn.com/image/fetch/$s_!VCzB!,w_848,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F847d3e0f-bf7f-475b-b3fb-56e5ff3c35c4_1442x726.gif 848w, https://substackcdn.com/image/fetch/$s_!VCzB!,w_1272,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F847d3e0f-bf7f-475b-b3fb-56e5ff3c35c4_1442x726.gif 1272w, https://substackcdn.com/image/fetch/$s_!VCzB!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F847d3e0f-bf7f-475b-b3fb-56e5ff3c35c4_1442x726.gif 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></div><figcaption class="image-caption">Arthur, at the button again. There is no snack limit yet, so it always works.</figcaption></figure></div><h2>Arthur&#8217;s feeder</h2><p>Arthur's feeder is already a &#8727;&#8727;&#8727;plain project, built with turri. This is where it stands now, before the diet, in <code>feeder.plain</code>:</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!2wmg!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3487375-3fa2-430b-b31f-b1b6133fffa9_1442x1088.png 424w, https://substackcdn.com/image/fetch/$s_!2wmg!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3487375-3fa2-430b-b31f-b1b6133fffa9_1442x1088.png 848w, https://substackcdn.com/image/fetch/$s_!2wmg!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3487375-3fa2-430b-b31f-b1b6133fffa9_1442x1088.png 1272w, https://substackcdn.com/image/fetch/$s_!2wmg!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3487375-3fa2-430b-b31f-b1b6133fffa9_1442x1088.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!2wmg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3487375-3fa2-430b-b31f-b1b6133fffa9_1442x1088.png" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e3487375-3fa2-430b-b31f-b1b6133fffa9_1442x1088.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:null,&quot;width&quot;:null,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;feeder.plain, the first version of Arthur's feeder&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="feeder.plain, the first version of Arthur's feeder" title="feeder.plain, the first version of Arthur's feeder" srcset="https://substackcdn.com/image/fetch/$s_!2wmg!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3487375-3fa2-430b-b31f-b1b6133fffa9_1442x1088.png 424w, https://substackcdn.com/image/fetch/$s_!2wmg!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3487375-3fa2-430b-b31f-b1b6133fffa9_1442x1088.png 848w, https://substackcdn.com/image/fetch/$s_!2wmg!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3487375-3fa2-430b-b31f-b1b6133fffa9_1442x1088.png 1272w, https://substackcdn.com/image/fetch/$s_!2wmg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3487375-3fa2-430b-b31f-b1b6133fffa9_1442x1088.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></div><figcaption class="image-caption"><code>feeder.plain</code> as it starts, with two functional specs and no snack limit.</figcaption></figure></div><p>&#8727;&#8727;&#8727;plain's standard library has modules for backends, frontends, command-line tools and libraries, but none for a bird feeder. So <code>feeder.plain</code> imports a module of my own, <code>feeder-firmware</code>. It says which board the feeder's C code is built for, how the motor and the button are wired, and how the code is unit tested without the hardware. Here I will use the same trick as good textbooks do: writing <code>feeder-firmware</code> is left as an exercise for the reader.</p><p>This is Arthur's feeder &#8727;&#8727;&#8727;plain project as it stands now:</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!s7rJ!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F289a94ae-8dbf-4f80-99ee-1fbb377ced45_1442x692.png 424w, https://substackcdn.com/image/fetch/$s_!s7rJ!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F289a94ae-8dbf-4f80-99ee-1fbb377ced45_1442x692.png 848w, https://substackcdn.com/image/fetch/$s_!s7rJ!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F289a94ae-8dbf-4f80-99ee-1fbb377ced45_1442x692.png 1272w, https://substackcdn.com/image/fetch/$s_!s7rJ!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F289a94ae-8dbf-4f80-99ee-1fbb377ced45_1442x692.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!s7rJ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F289a94ae-8dbf-4f80-99ee-1fbb377ced45_1442x692.png" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/289a94ae-8dbf-4f80-99ee-1fbb377ced45_1442x692.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:null,&quot;width&quot;:null,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;the folders of Arthur's feeder project&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="the folders of Arthur's feeder project" title="the folders of Arthur's feeder project" srcset="https://substackcdn.com/image/fetch/$s_!s7rJ!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F289a94ae-8dbf-4f80-99ee-1fbb377ced45_1442x692.png 424w, https://substackcdn.com/image/fetch/$s_!s7rJ!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F289a94ae-8dbf-4f80-99ee-1fbb377ced45_1442x692.png 848w, https://substackcdn.com/image/fetch/$s_!s7rJ!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F289a94ae-8dbf-4f80-99ee-1fbb377ced45_1442x692.png 1272w, https://substackcdn.com/image/fetch/$s_!s7rJ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F289a94ae-8dbf-4f80-99ee-1fbb377ced45_1442x692.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></div><figcaption class="image-caption">Arthur's feeder on disk. The coding agent writes in <code>code/</code>, but never touches <code>.turri.json</code>.</figcaption></figure></div><p>Now to the first tools. Two of them, <span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">cultivate</span> and <span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">parse</span>, look after &#8727;&#8727;&#8727;plain before anything is built from it.</p><h3>cultivate</h3><p>In my last post I wrote about how coding agents cheat and how this causes problems when stretching out their usage over time. This tool makes sure that no parts of the skill and the workflow it implies are skipped.</p><p>turri writes &#8727;&#8727;&#8727;plain with skills. They cover adding a feature, a concept, a requirement or a resource, splitting a functional spec that has grown too big, resolving conflicts, etc. In most coding agents, a skill's review step is a paragraph asking the agent to check its own work. Agents talk their way past paragraphs.</p><p><span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">cultivate</span> runs a skill through a gated runner instead. turri compiles each skill into a <a href="https://github.com/langchain-ai/langgraphjs">LangGraph</a> state graph, where every step is followed by its gate, and the gate's verdict decides where to go next. pi runs the agents, and the state graph decides when a gate runs, and what happens on its verdict. The agent writing &#8727;&#8727;&#8727;plain only does the writing. Whether its work is reviewed is not up to it.</p><p>For <span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">cultivate</span> to run a skill this way, the skill has to be written in a particular syntax, which does not have a name yet. It is an ordinary <code>SKILL.md</code>, as the Agent Skills standard describes it, with a little more. The skill lists its steps under <code>## Steps</code>, and declares its gates in its <code>metadata</code>, with what each gate checks against and what happens when the work fails it. The standard leaves <code>metadata</code> open for anything, so a gated skill still loads in any harness that follows it. There, it simply runs without its gates.</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Pju_!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6414e301-df97-4f6a-8661-9e316f4bfdb7_1442x544.png 424w, https://substackcdn.com/image/fetch/$s_!Pju_!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6414e301-df97-4f6a-8661-9e316f4bfdb7_1442x544.png 848w, https://substackcdn.com/image/fetch/$s_!Pju_!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6414e301-df97-4f6a-8661-9e316f4bfdb7_1442x544.png 1272w, https://substackcdn.com/image/fetch/$s_!Pju_!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6414e301-df97-4f6a-8661-9e316f4bfdb7_1442x544.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Pju_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6414e301-df97-4f6a-8661-9e316f4bfdb7_1442x544.png" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6414e301-df97-4f6a-8661-9e316f4bfdb7_1442x544.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:null,&quot;width&quot;:null,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;a gate in a skill's SKILL.md&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="a gate in a skill's SKILL.md" title="a gate in a skill's SKILL.md" srcset="https://substackcdn.com/image/fetch/$s_!Pju_!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6414e301-df97-4f6a-8661-9e316f4bfdb7_1442x544.png 424w, https://substackcdn.com/image/fetch/$s_!Pju_!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6414e301-df97-4f6a-8661-9e316f4bfdb7_1442x544.png 848w, https://substackcdn.com/image/fetch/$s_!Pju_!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6414e301-df97-4f6a-8661-9e316f4bfdb7_1442x544.png 1272w, https://substackcdn.com/image/fetch/$s_!Pju_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6414e301-df97-4f6a-8661-9e316f4bfdb7_1442x544.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></div><figcaption class="image-caption">A gate, written in the skill's own <code>SKILL.md</code>. The harness enforces it, so the agent cannot skip it.</figcaption></figure></div><h3>parse</h3><p>This tool is all about managing and assembling context for the coding agent in order the make it&#8217;s job easier with reducing the amount of guesswork. </p><p><span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">parse</span> is turri's port of the reference &#8727;&#8727;&#8727;plain <a href="https://github.com/plainlang/plain-parser">parser</a>, and it does two things. It checks that &#8727;&#8727;&#8727;plain is sound, and it turns &#8727;&#8727;&#8727;plain into a parsed tree, which the rest of turri works from. It needs no model, it <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regenerates</span> nothing, and it never looks at the code.</p><p>The check comes with building the tree. Where &#8727;&#8727;&#8727;plain's syntax or structure is wrong, <span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">parse</span> says where, and it says what a module still lacks before it can be tested. It is the cheapest check there is, so it is the first one.</p><p>turri builds from that tree, and hands the coding agent only the parts a task needs. When it builds <code>serve-meals</code>, the agent gets <code>serve-meals</code> and the definitions and rules it relies on, but not <code>snack-button</code>, which comes later, so it isn't tempted to build that too.</p><h2>The day the feeder started saying said no</h2><p>A <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regeneration</span> starts from the difference between &#8727;&#8727;&#8727;plain the code was built from and &#8727;&#8727;&#8727;plain now.</p><p>Arthur is still putting on weight. After being prompted to relieve him of his surplus roundness, turri updated <code>serve-meals</code> which now weighs out his meals and added two new functional specs. <code>snack-limit</code> limits his snacks, and <code>cheat-day</code> lets him have a second one on Sundays, because a diet without a cheat day never lasts. Then turri compares that record with <code>feeder.plain</code>. The difference is those three, so they are what gets built. <code>snack-button</code> did not change, so it is left alone.</p><p>turri does not have to guess what the code was built from, because it writes it down. Beside the code, in <code>plain_modules/feeder/code/.turri.json</code>, is a record of the parsed &#8727;&#8727;&#8727;plain tree that the code is built from. It moves only when a pulse lands, and a pulse lands only once the code's unit tests pass. No agent can read it or write it.</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!P63Q!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ac55871-e940-4168-ab85-c5b22eb2d0a8_1442x1518.png 424w, https://substackcdn.com/image/fetch/$s_!P63Q!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ac55871-e940-4168-ab85-c5b22eb2d0a8_1442x1518.png 848w, https://substackcdn.com/image/fetch/$s_!P63Q!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ac55871-e940-4168-ab85-c5b22eb2d0a8_1442x1518.png 1272w, https://substackcdn.com/image/fetch/$s_!P63Q!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ac55871-e940-4168-ab85-c5b22eb2d0a8_1442x1518.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!P63Q!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ac55871-e940-4168-ab85-c5b22eb2d0a8_1442x1518.png" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5ac55871-e940-4168-ab85-c5b22eb2d0a8_1442x1518.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:null,&quot;width&quot;:null,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;two versions of &#8727;&#8727;&#8727;plain side by side: the code record, plain_modules/feeder/code/.turri.json, has serve-meals and snack-button; in feeder.plain as it is now, the serve-meals line is replaced by one that weighs out the meals, and snack-limit and cheat-day are new. The difference is the work: serve-meals changed, snack-limit and cheat-day are new, and snack-button is left alone.&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="two versions of &#8727;&#8727;&#8727;plain side by side: the code record, plain_modules/feeder/code/.turri.json, has serve-meals and snack-button; in feeder.plain as it is now, the serve-meals line is replaced by one that weighs out the meals, and snack-limit and cheat-day are new. The difference is the work: serve-meals changed, snack-limit and cheat-day are new, and snack-button is left alone." title="two versions of &#8727;&#8727;&#8727;plain side by side: the code record, plain_modules/feeder/code/.turri.json, has serve-meals and snack-button; in feeder.plain as it is now, the serve-meals line is replaced by one that weighs out the meals, and snack-limit and cheat-day are new. The difference is the work: serve-meals changed, snack-limit and cheat-day are new, and snack-button is left alone." srcset="https://substackcdn.com/image/fetch/$s_!P63Q!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ac55871-e940-4168-ab85-c5b22eb2d0a8_1442x1518.png 424w, https://substackcdn.com/image/fetch/$s_!P63Q!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ac55871-e940-4168-ab85-c5b22eb2d0a8_1442x1518.png 848w, https://substackcdn.com/image/fetch/$s_!P63Q!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ac55871-e940-4168-ab85-c5b22eb2d0a8_1442x1518.png 1272w, https://substackcdn.com/image/fetch/$s_!P63Q!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ac55871-e940-4168-ab85-c5b22eb2d0a8_1442x1518.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></div><figcaption class="image-caption">turri compares the record of what the code was built from, shown here as &#8727;&#8727;&#8727;plain, with <code>feeder.plain</code> as it is now. Only the difference is <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regenerated</span>.</figcaption></figure></div><h3>regenerate</h3><p>A call to <span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">regenerate</span> is not a prompt the model follows. It hands the work to turri's work loop, which the harness runs. For Arthur's diet, it goes like this. Under each step is an excerpt of turri's own code, cut down to the lines that do it.</p><p><strong>1. Work out the difference.</strong> <code>plain_modules/feeder/code/.turri.json</code> says which &#8727;&#8727;&#8727;plain the code is built from. turri compares it with <code>feeder.plain</code> as it is now. What differs is the work, and nothing else is.</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;typescript&quot;,&quot;nodeId&quot;:&quot;bff2990b-57e4-4e0e-a2bc-e5473dbf88ab&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-typescript">// src/regenerate/drift.ts
/** Everything left to build in the code: from what the code record says
    it is built from, to the spec now. */
export function codeWork(record, spec) {
  return changesBetween(serializeTree(codeTree(record ?? {})),
                        serializeTree(codeTree(spec)));
}</code></pre></div><p><strong>2. Cut it into pulses.</strong> A planning agent groups the functional specs. What builds one feature goes together, by default up to three specs a pulse, with the definitions they use and the implementation reqs about them. No agent reviews the plan. The harness checks it instead. Every change has to be in exactly one pulse, and &#8727;&#8727;&#8727;plain has to hold together after each. For Arthur's diet, the planner would most likely cut two pulses, one for <code>serve-meals</code>, and one for <code>snack-limit</code> and <code>cheat-day</code>, since a cheat day only makes sense with a limit to cheat on.</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;typescript&quot;,&quot;nodeId&quot;:&quot;21c19272-5a2d-43ba-932b-76536c070d6d&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-typescript">// src/regenerate/chunk-plan.ts
export const MAX_SPECS_PER_JOB = 3;
// &#8230;
const grouped = await agents?.group(numbered, (answer) =&gt; groupProblems(&#8230;), &#8230;);
// &#8230;
if (checkDraft(input, draft).length === 0) return draft;
say(`the plan did not hold together (&#8230;) - a functional spec a pulse`);</code></pre></div><p><strong>3. Write one prompt.</strong> The coding agent never reads the <code>.plain</code> files. It gets one prompt, with the definitions and implementation reqs in scope, what is already built, a map of the codebase, the linked resources and the change to build, section by section. So it has little reason to wander off and build something else.</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;typescript&quot;,&quot;nodeId&quot;:&quot;9cc7a826-e66d-4101-9675-4fdabb201f0c&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-typescript">// src/regenerate/prompt.ts
const parts = [
  specPrimer({ testReqs: false }),
  `You are changing the \`${input.moduleName}\` codebase to match a change &#8230;`,
  // &#8230;
  moduleSection(DEFINITIONS, &#8230;),
  moduleSection(IMPLEMENTATION_REQS, &#8230;),
  `&lt;already implemented&gt;\n${&#8230;}\n&lt;/already implemented&gt;`,
  `&lt;codebase&gt;\n${input.codebase}\n&lt;/codebase&gt;`,
  linkedResourcesSection(input.linkedResources),
  specChangeBlock(describeSpecChange(input.changes, input.moduleName)),
  // &#8230;
];</code></pre></div><p><strong>4. Loop until the unit tests pass.</strong> The coding agent writes the code and its unit tests. After every turn the harness runs the project's unit testing script itself, with its formatter, linter and type checker, and only that run counts. A failure sends the agent back, up to 20 times. The same failure three times running brings in a debugger. It is a fresh agent that reads the failing run, the tests and the code, and hands over the root cause and the fix. A test that goes missing is challenged by name.</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;typescript&quot;,&quot;nodeId&quot;:&quot;1ade6e0c-8c46-4b15-ae31-381b8be98db7&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-typescript">// src/regenerate/regenerate.ts
// the coding agent, with the prompt from step 3 as its task
const executor = await createExecutor({ role: "coding", task, &#8230; });
response = await ask(executor, BEGIN, options.onDelta);   // "Begin. &#8230;"
for (; followUp &lt; MAX_FOLLOW_UPS; followUp += 1) {   // 20
  // &#8230;
  const verdict = await gate.verify(runs);
  if (!verdict.ok) {
    const key = failureSignature(verdict.run);
    const seen = key !== undefined ? (seenFailures.get(key) ?? 0) + 1 : 0;
    // &#8230;
    if (circling || timedOut || (key !== undefined &amp;&amp; seen &gt;= STUCK_ROUNDS)) {   // 3
      const found = await healing("debugger", () =&gt; debugFailure({ &#8230; }));
      // &#8230;
      prompt = [verdict.prompt, &#8230;, diagnosisText(found)].join("\n");
    }
    response = await ask(executor, prompt, options.onDelta);
    continue;
  }
  return true;
}</code></pre></div><p><strong>5. Check the tests can fail.</strong> Passing tests prove only what they check. With <code>can_it_fail</code>, the coding agent plants a bug in the code, a condition turned round or a value changed, and runs the unit tests on it. If every test still passes, no test catches that bug. This is mutation testing, and the reviewer can use it too.</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;typescript&quot;,&quot;nodeId&quot;:&quot;123edeef-9e80-4ba7-b762-be501fddff2b&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-typescript">// src/regenerate/self-check.ts, the can_it_fail tool
run = await runOnCode(options.buildDir, options.script, &#8230;,
  { file, text: text.slice(0, at) + replace + text.slice(at + find.length) }, &#8230;);
const verdict = run.exitCode === 0
  ? `Every unit test passes with ${file} changed: no test catches this bug. &#8230;`
  : `The unit tests fail with ${file} changed: something catches it. &#8230;`;</code></pre></div><p><strong>6. Review, when it is on.</strong> A reviewer reads the code and its tests beside &#8727;&#8727;&#8727;plain, and changes nothing. Every behaviour has to be implemented, with no stubs, and tested with an assertion that fails when it breaks. It can send the work back twice. The review is there to make the code better, not to catch every nitpick. Nitpicks pile up, and fixing them changes nothing about what the software does or how well it runs. So the second time, an arbiter rules on each problem first. It upholds only the ones where a behaviour &#8727;&#8727;&#8727;plain states is missing, wrong or untested, and lets the rest go.</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;typescript&quot;,&quot;nodeId&quot;:&quot;56d238dd-1734-405e-98cf-3ccd64c91d39&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-typescript">// src/regenerate/unit-review.ts
for (let reviews = 0; reviews &lt; UNIT_REVIEW_LIMIT; reviews += 1) {   // 2
  const review = await reviewer.review(request);
  if (review.pass) return { passed: true, &#8230; };
  let problems = review.problems;
  if (reviews &gt;= UNIT_REVIEW_ROUNDS) {   // from the second review on
    const ruling = await arbitrateReview({ &#8230;, problems: review.problems });
    if (ruling.upheld.length === 0) return { passed: true, waived, &#8230; };
    problems = ruling.upheld.map((entry) =&gt; entry.problem);
  }
  await options.send(unitReviewFeedbackPrompt(problems));
  // &#8230;
}</code></pre></div><p><strong>7. Land it.</strong> The pulse is committed to the module's history, and the code record now says the code is built from &#8727;&#8727;&#8727;plain the pulse ended on. Then the next pulse runs, built on what landed and we go back to step 3 and iterate until all pulses have finished.</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;typescript&quot;,&quot;nodeId&quot;:&quot;f052a6f7-7445-48f2-9e91-fca9a9e249f7&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-typescript">// src/regenerate/regenerate.ts
const land = () =&gt; {
  writeCodeRecord(buildDir, steering?.target ?? tree);
  landWork(buildDir, `spec diff: ${summarizeDiff(options.diff)}`, options.diff);
};
if (!unitPassed) {
  abandonWork(unit, moduleName, "the spec change did not pass its unit tests");
  return { ...base, passed: false, stoppedAt: "unit tests" };
}
land();</code></pre></div><p>&#8727;&#8727;&#8727;plain can change while this runs. An edit to something the running pulse is building is passed to its coding agent in the middle of the pulse, and the pulse lands built from &#8727;&#8727;&#8727;plain as edited. A pulse building something &#8727;&#8727;&#8727;plain no longer describes is stopped, rolled back, and the work is planned again.</p><p>It has two more modes. Name a functionality, and it is <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regenerated</span> even though its &#8727;&#8727;&#8727;plain did not change. Its code is taken out and built anew. Or ask for it from scratch, and the whole module is deleted and built again, even the whole chain of modules it is built on. That one runs only when asked for, or agreed to. It is Chad Fowler's <em><a href="https://chadfowler.com/regenerative-software/3md5ftetaes2e/">Deletion Test</a></em> as a button.</p><p>Every <span data-color="#ff5c8d" style="color: rgb(255, 92, 141);">regeneration</span> starts by putting the codebase back to its last known good state. Only work that passed is committed. Whatever a stopped or crashed pulse half-wrote never becomes the next pulse's starting point.</p><p>A <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regeneration</span> takes minutes, so <span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">regenerate</span> starts the work as pulses and returns straight away. The conversation carries on. I can keep shaping &#8727;&#8727;&#8727;plain, ask questions or try what has already landed. Pulses on the same module queue behind each other. Pulses on modules that share nothing run side by side.</p><p>And the same work runs without a conversation at all, from the command line or overnight:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;bash&quot;,&quot;nodeId&quot;:&quot;5edf9890-f567-4f20-a09b-9f48814b6f17&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-bash"># parse ***plain - no model, no API key
turri parse feeder.plain

# what is left to regenerate - starts nothing
turri drift feeder.plain

# run until it is done
turri regenerate feeder.plain

# one functional spec again, changed or not
turri regenerate feeder.plain feeder:serve-meals</code></pre></div><p>Enough theory. Back to Arthur's diet, which the planner cut into two pulses. The first weighs out his meals. The second builds the snack limit and the cheat day together, on top of the code the first one landed. Each goes through every step above, and once both have landed, the code record matches <code>feeder.plain</code> again, and there is nothing left to build.</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!XvAe!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb476ea3-639e-4df8-8537-89246afb98e4_1442x266.png 424w, https://substackcdn.com/image/fetch/$s_!XvAe!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb476ea3-639e-4df8-8537-89246afb98e4_1442x266.png 848w, https://substackcdn.com/image/fetch/$s_!XvAe!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb476ea3-639e-4df8-8537-89246afb98e4_1442x266.png 1272w, https://substackcdn.com/image/fetch/$s_!XvAe!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb476ea3-639e-4df8-8537-89246afb98e4_1442x266.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!XvAe!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb476ea3-639e-4df8-8537-89246afb98e4_1442x266.png" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/eb476ea3-639e-4df8-8537-89246afb98e4_1442x266.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:null,&quot;width&quot;:null,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Arthur's diet as a timeline. It starts before the diet. Pulse 1 builds the change to serve-meals and lands. Pulse 2 starts from there, builds snack-limit and cheat-day, which are new, and lands. Then nothing is left to build.&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Arthur's diet as a timeline. It starts before the diet. Pulse 1 builds the change to serve-meals and lands. Pulse 2 starts from there, builds snack-limit and cheat-day, which are new, and lands. Then nothing is left to build." title="Arthur's diet as a timeline. It starts before the diet. Pulse 1 builds the change to serve-meals and lands. Pulse 2 starts from there, builds snack-limit and cheat-day, which are new, and lands. Then nothing is left to build." srcset="https://substackcdn.com/image/fetch/$s_!XvAe!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb476ea3-639e-4df8-8537-89246afb98e4_1442x266.png 424w, https://substackcdn.com/image/fetch/$s_!XvAe!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb476ea3-639e-4df8-8537-89246afb98e4_1442x266.png 848w, https://substackcdn.com/image/fetch/$s_!XvAe!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb476ea3-639e-4df8-8537-89246afb98e4_1442x266.png 1272w, https://substackcdn.com/image/fetch/$s_!XvAe!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb476ea3-639e-4df8-8537-89246afb98e4_1442x266.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></div><figcaption class="image-caption">Arthur's diet, as two pulses. The second starts where the first landed.</figcaption></figure></div><p>Before a pulse lands, it has to pass its unit tests and and it&#8217;s review if it is on. But the same agent wrote the code and the tests, so I&#8217;d like a second opinion. I&#8217;d ask Arthur, but he&#8217;d give full marks to a feeder that never says no. Stick around for the next post, where I&#8217;ll show you how <span data-color="#ff9900" style="color: rgb(255, 153, 0);">conform</span> checks that the code does what &#8727;&#8727;&#8727;plain says.</p><p>That was the hardest part of this post. If it made sense, you understand most of how turri works. And I promise, no more of turri's source code from here on.</p><h2>Keeping watch</h2><p><span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">regenerate</span> starts the work. The other three tools in its group are there so that turri can see that work, and stop it. They show what is running and how it went, and what is out of date. A model cannot be trusted to remember any of that. turri keeps it, and the agent asks.</p><h3>pulses</h3><p><span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">pulses</span> lists the work, finished, running and planned.</p><p>It is there so that turri can observe itself, and it is mostly used for debugging. When a pulse goes wrong, turri reads what happened, and most of the time it can fix the problem on its own. I need to step in only when the problem is in the system around it, such as a low-level dependency missing from my machine, which I don't want turri to install instead of me.</p><p>Under the hood, a pulse is one job of turri's work loop. You can imagine it as taking a &#8727;&#8727;&#8727;plain diff as its input. Every pulse records what it does in the ledger as it goes, and <span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">pulses</span> is the one tool that reads it back.</p><p>And why are they called pulses? turri is named after a jellyfish, and jellyfish do not really swim. They pulse. The bell squeezes, pushes out a little water, and the jellyfish moves forward by exactly one pulse. Then it relaxes, has a look around, and does it again. turri builds software the same way, one pulse at a time, each one starting where the last one landed.</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!FA5B!,w_424,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3dced70-a147-49ef-b8dd-5f8b157c81c8_721x341.gif 424w, https://substackcdn.com/image/fetch/$s_!FA5B!,w_848,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3dced70-a147-49ef-b8dd-5f8b157c81c8_721x341.gif 848w, https://substackcdn.com/image/fetch/$s_!FA5B!,w_1272,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3dced70-a147-49ef-b8dd-5f8b157c81c8_721x341.gif 1272w, https://substackcdn.com/image/fetch/$s_!FA5B!,w_1456,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3dced70-a147-49ef-b8dd-5f8b157c81c8_721x341.gif 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!FA5B!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3dced70-a147-49ef-b8dd-5f8b157c81c8_721x341.gif" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f3dced70-a147-49ef-b8dd-5f8b157c81c8_721x341.gif&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:null,&quot;width&quot;:null,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;turri, pulsing its way around.&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="turri, pulsing its way around." title="turri, pulsing its way around." srcset="https://substackcdn.com/image/fetch/$s_!FA5B!,w_424,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3dced70-a147-49ef-b8dd-5f8b157c81c8_721x341.gif 424w, https://substackcdn.com/image/fetch/$s_!FA5B!,w_848,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3dced70-a147-49ef-b8dd-5f8b157c81c8_721x341.gif 848w, https://substackcdn.com/image/fetch/$s_!FA5B!,w_1272,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3dced70-a147-49ef-b8dd-5f8b157c81c8_721x341.gif 1272w, https://substackcdn.com/image/fetch/$s_!FA5B!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3dced70-a147-49ef-b8dd-5f8b157c81c8_721x341.gif 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></div><figcaption class="image-caption">turri, pulsing its way around.</figcaption></figure></div><h3>halt</h3><p><span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">halt</span> stops work. Given a pulse, it stops that pulse. A running one is rolled back, and a queued one never starts. Given a module, it halts the module. Its running pulse is stopped and rolled back, none of its planned pulses start, and the modules built on it wait for it. What already landed stays. The halt holds until I ask for the module again, even if &#8727;&#8727;&#8727;plain changes in the meantime. It stops what a launch started, too.</p><h3>drift</h3><p><span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">drift</span> says how far the code and its conformance tests have drifted from &#8727;&#8727;&#8727;plain. It starts nothing. After my change, it would say that <code>serve-meals</code> changed, <code>snack-limit</code> and <code>cheat-day</code> are new, and <code>snack-button</code> is already built.</p><h2>Getting Arthur&#8217;s diet onto the feeder</h2><p>As far as Arthur is concerned, nothing has changed. His new diet is on my laptop, and his breakfast comes out of the feeder. I still need to get the code that turri built from &#8727;&#8727;&#8727;plain onto the machine that serves his meals.</p><p><span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">launch</span> closes that gap. Running code usually means understanding it first, how it is built, set up and started, and every <span data-color="#ff5c8d" style="color: rgb(255, 92, 141);">regeneration</span> can produce code that is a little different. So turri launches it for me, and I stay focused on the software instead of the code. Prompting turri to let me try it is enough. It puts what is built so far in <code>dist/&lt;module&gt;</code> and starts it on my machine in the background. I can also have turri launch every pulse that lands. Trying the software is still the fastest way to find what &#8727;&#8727;&#8727;plain forgot to say. The difference is what I do about it. I don't ask for a patch. I change &#8727;&#8727;&#8727;plain, and the next pulse carries the fix.</p><p><span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">settings</span> reads the project's settings, and changes one when I ask. turri uses a capable model for the conversation, and smaller, cheaper ones to write and judge the code. "<span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">Regenerate</span> with gpt 5.5 from now on" is something I can just say, and it sets the model the code is <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regenerated</span> on. The same goes for the review or how many pulses run at once, and turri says when a change takes effect. Nothing needs a restart.</p><h2>Tools, not prompts</h2><p>A prompt can ask an agent to only rebuild what changed, to test it, to keep a record. But an agent can stop halfway, or decide it has done enough. A tool makes it the only way the work gets done, reliably and every time. A loop in code does not decide it has done enough. It runs until its work is done, or until the power goes out or the laptop's battery dies. That is the point of the whole set. </p><p><span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">Regenerative software</span> asks for two things. The code can always be rebuilt from the intent, and what comes back still does what the intent says. <span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">regenerate</span> and <span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">conform</span> are those two things. The rest makes sure they happen the same way every time. As I said at the start, this post skipped <span data-color="rgb(255, 122, 61)" style="color: rgb(255, 122, 61);">conform</span> on purpose. It gets the next post all to itself.</p><p>As for Arthur, the diet landed in two pulses. His meals are weighed out, and the button still works, once between two meals. Arthur still presses it far more often than that, but the feeder no longer gives in, apart from the second snack on Sundays, and the weigh-ins show it. Arthur is back to a healthy weight, and nobody had to patch the feeder's code to get there. Three changes in &#8727;&#8727;&#8727;plain did it.</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!4ihV!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F744f309d-a95a-4001-b7b0-412e1f4dc3f0_1442x782.png 424w, https://substackcdn.com/image/fetch/$s_!4ihV!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F744f309d-a95a-4001-b7b0-412e1f4dc3f0_1442x782.png 848w, https://substackcdn.com/image/fetch/$s_!4ihV!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F744f309d-a95a-4001-b7b0-412e1f4dc3f0_1442x782.png 1272w, https://substackcdn.com/image/fetch/$s_!4ihV!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F744f309d-a95a-4001-b7b0-412e1f4dc3f0_1442x782.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!4ihV!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F744f309d-a95a-4001-b7b0-412e1f4dc3f0_1442x782.png" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/744f309d-a95a-4001-b7b0-412e1f4dc3f0_1442x782.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:null,&quot;width&quot;:null,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Arthur on a scale twice: before the diet, round, with a seed in the beak, and the scale reads 62 grams; after it, trim, with hearts, and the scale reads 48 grams.&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Arthur on a scale twice: before the diet, round, with a seed in the beak, and the scale reads 62 grams; after it, trim, with hearts, and the scale reads 48 grams." title="Arthur on a scale twice: before the diet, round, with a seed in the beak, and the scale reads 62 grams; after it, trim, with hearts, and the scale reads 48 grams." srcset="https://substackcdn.com/image/fetch/$s_!4ihV!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F744f309d-a95a-4001-b7b0-412e1f4dc3f0_1442x782.png 424w, https://substackcdn.com/image/fetch/$s_!4ihV!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F744f309d-a95a-4001-b7b0-412e1f4dc3f0_1442x782.png 848w, https://substackcdn.com/image/fetch/$s_!4ihV!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F744f309d-a95a-4001-b7b0-412e1f4dc3f0_1442x782.png 1272w, https://substackcdn.com/image/fetch/$s_!4ihV!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F744f309d-a95a-4001-b7b0-412e1f4dc3f0_1442x782.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></div><figcaption class="image-caption">Arthur's weigh-ins, before and after the diet landed.</figcaption></figure></div><p>turri is open source and MIT licensed. Every tool here is documented in the repository.</p><ul><li><p><a href="https://github.com/turri-oss/turri">turri on GitHub</a>, the harness itself</p></li><li><p><a href="https://github.com/turri-oss/turri/blob/main/docs/using.md">Using turri</a>, every tool and command</p></li><li><p><a href="https://discord.com/invite/REJzFmVQfC">our Discord</a></p></li></ul><blockquote><p><strong>disclaimer</strong></p><p>This is the current state of turri as of today. I believe that all of these tools will remain in turri in one form or another, but they are definitely a work in progress, and always subject to change, to be improved or adapted to make <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regeneration</span> better in any way possible.</p></blockquote><h2>Try turri</h2><p>Download the desktop app, or install the cli if you prefer the terminal. No project of your own yet? Build one of the examples, step by step.</p><p><a href="https://turri.dev/?utm_source=substack&amp;utm_medium=blog&amp;utm_campaign=every-tool-it-takes-to-regenerate">Download the desktop app</a> for macOS and Linux.</p><p>Prefer the terminal?</p><pre><code>npm install -g @turri-dev/cli</code></pre><p><a href="https://github.com/turri-oss/turri/tree/main/examples">Browse the examples on GitHub</a></p><p>&#381;an Jonke &#183; <a href="https://www.linkedin.com/in/zan-jonke/">LinkedIn</a> &#183; <a href="https://x.com/JonkeZan">X</a></p><h2>References</h2><ul><li><p>&#381;an Jonke, <em><a href="https://turridev.substack.com/p/why-i-built-turri">I stopped knowing my own software</a></em>, 11 November 2026.</p></li><li><p>Chad Fowler, <em><a href="https://chadfowler.com/regenerative-software/3md5ftetaes2e/">The Deletion Test</a></em>, from the series <em><a href="https://chadfowler.com/regenerative-software/">The Phoenix Architecture</a></em>, 24 January 2026.</p></li><li><p>pi, the coding agent turri is built on, <a href="https://pi.dev">pi.dev</a>.</p></li><li><p>Mario Zechner, <em><a href="https://mariozechner.at/posts/2025-11-30-pi-coding-agent/">What I learned building an opinionated and minimal coding agent</a></em>, 30 November 2025.</p></li><li><p>LangGraph, the control flow behind turri's gated skills, <a href="https://github.com/langchain-ai/langgraphjs">github.com/langchain-ai/langgraphjs</a>.</p></li><li><p>&#8727;&#8727;&#8727;plain, the language, <a href="https://plainlang.org/">plainlang.org</a>.</p></li><li><p>turri, <em>Using turri</em>, <a href="https://github.com/turri-oss/turri/blob/main/docs/using.md">github.com/turri-oss/turri</a>.</p></li><li><p>turri, <em>Skills and gates</em>, <a href="https://github.com/turri-oss/turri/blob/main/docs/skills-and-gates.md">github.com/turri-oss/turri</a>.</p></li><li><p>turri, <em>Trying what is built: launch</em>, <a href="https://github.com/turri-oss/turri/blob/main/docs/launch.md">github.com/turri-oss/turri</a>.</p></li></ul>]]></content:encoded></item><item><title><![CDATA[I stopped knowing my own software]]></title><description><![CDATA[Why I built turri]]></description><link>https://blog.turri.dev/p/why-i-built-turri</link><guid isPermaLink="false">https://blog.turri.dev/p/why-i-built-turri</guid><dc:creator><![CDATA[Žan Jonke]]></dc:creator><pubDate>Wed, 11 Nov 2026 11:00:00 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/1294f53e-7b80-4f56-bcc5-e1e986a411f0_2400x1260.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<blockquote><p><strong>TLDR</strong></p><p>Coding agents let me move fast. To keep up, I stopped reading the code, and with it I stopped understanding my own software. I lost the purpose of engineering along with it. I was still the one accountable for software I didn't understand. No workflow or better model fixed that, so I built <a href="https://turri.dev/">turri</a>. This post is about my experience getting there, and about how turri gives me back an understanding of my software. I work with &#8727;&#8727;&#8727;plain instead of the code, and the code is <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regenerated</span> from it.</p></blockquote><h2>With great power&#8230;</h2><p>I am a software engineer, so my job is engineering. Before AI, I did most of it by writing and reading code. I didn't know every line of the codebases that I worked on by heart, but I knew its shape, how it functions and how it behaves. I knew how it works.</p><p>Then I started using coding agents, and that knowledge began to slip away. Slowly, and with my full cooperation.</p><p>With an agent, a product comes together fast. Really fast. A feature an hour, sometimes more. Each one is a few thousand lines of code. I can't review thousands of lines every hour. Nobody can.</p><p>So I gave in. I stopped reviewing the code and started judging the software by its behaviour instead. It does the thing? Good, next feature. I started caring less and less about how things work and more and more about whether they work.</p><p>Addy Osmani has a name for where I ended up. In <em><a href="https://x.com/addyosmani/status/2117512471930167377">Critical thinking when agents do the work</a></em> he describes a slide in three steps. First you offload: you delegate the task but keep ownership of the result. Then you defer: the tool's output becomes your next input. Finally you surrender: "the AI's output quietly becomes your own, you feel no need to check it." He credits the term <em>cognitive surrender</em> to Steven Shaw and Gideon Nave at Wharton.</p><p>I recognised every step. Each one felt reasonable at the time.</p><p>Ultimately I ended up accountable for software I did not understand. When it broke, it would be my name on it, and I could not say why it broke or whether a fix was right.</p><p>And software does break. Once real people use it, they find the paths nobody tested, and something gives. Understanding the software is what lets you find the cause at three in the morning. It is what lets you change one part without breaking another. It is what lets you tell a customer, or an auditor, what the system does with their data. Without it, every incident is a guess, every change is a gamble, and every answer starts with "I think".</p><p>Yes, a coding agent can do all of that too, often faster than I can. But how do I know it did the right thing? To check its answer, I have to understand the software myself.</p><p>The whole spirit of engineering is knowing how things work deeply enough to predict them, change them and explain them. I couldn't do any of that anymore.</p><p>This is why I created turri - to gain back control over engineering and let the coding agent handle the coding.</p><h2>A chimp driving a car</h2><p>I want to be fair first. Coding agents are remarkable. They write in minutes what took a team weeks. They get better with every model.</p><p>So this is not a post about agents being bad at coding. They are good at it and code got cheap. I am completely comfortable saying that a coding agent can write better code than I.</p><p>But what didn't change is the human using the coding agent. Give a chimp a car and you do not get a driver. You get a chimp, going very fast, about to crash.</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!vrhv!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8f94787b-b6b1-42d2-8ae0-0527d9e1d7f9_1042x422.png 424w, https://substackcdn.com/image/fetch/$s_!vrhv!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8f94787b-b6b1-42d2-8ae0-0527d9e1d7f9_1042x422.png 848w, https://substackcdn.com/image/fetch/$s_!vrhv!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8f94787b-b6b1-42d2-8ae0-0527d9e1d7f9_1042x422.png 1272w, https://substackcdn.com/image/fetch/$s_!vrhv!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8f94787b-b6b1-42d2-8ae0-0527d9e1d7f9_1042x422.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!vrhv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8f94787b-b6b1-42d2-8ae0-0527d9e1d7f9_1042x422.png" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8f94787b-b6b1-42d2-8ae0-0527d9e1d7f9_1042x422.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:null,&quot;width&quot;:null,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;A pixel-art chimp driving a pink car, very fast&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="A pixel-art chimp driving a pink car, very fast" title="A pixel-art chimp driving a pink car, very fast" srcset="https://substackcdn.com/image/fetch/$s_!vrhv!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8f94787b-b6b1-42d2-8ae0-0527d9e1d7f9_1042x422.png 424w, https://substackcdn.com/image/fetch/$s_!vrhv!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8f94787b-b6b1-42d2-8ae0-0527d9e1d7f9_1042x422.png 848w, https://substackcdn.com/image/fetch/$s_!vrhv!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8f94787b-b6b1-42d2-8ae0-0527d9e1d7f9_1042x422.png 1272w, https://substackcdn.com/image/fetch/$s_!vrhv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8f94787b-b6b1-42d2-8ae0-0527d9e1d7f9_1042x422.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></div><figcaption class="image-caption">A chimp driving a car.</figcaption></figure></div><p>A human with a coding agent is still a human. They read at the same speed they always did. They can hold as much in their head as they always could. Coding got faster. Human understanding did not.</p><h2>What troubles me</h2><h3>I am not engineering anymore</h3><p>Engineering, to me, is making decisions on purpose and being able to defend them. Those decisions start with understanding the problem at hand, doing the research and thinking it through. Only then comes designing a solution that is solid, scalable and durable. Even the word says so. Engineering comes from the Latin <em>ingenium</em>, meaning cleverness or a clever idea, the same root as <em>ingenious</em>. With an agent I was mostly typing wishes and accepting diffs. There was nothing ingenious about it.</p><p>And I tried what everyone recommends. I had the agent plan before it wrote any code, and I reviewed the plan. But then the plan was thrown away? Back to the code, I guess. I had it grill me with questions until it understood what I wanted. I explained the what, not the how, and left the how to the agent. I split the work across sub-agents, each with its own job. I had agents prompting agents and reviewing one another, the so-called loop engineering. Despite the name, it did not feel like engineering either. I let agents run overnight and read the results in the morning. I asked for ten solutions and picked the best one. (I made that number up. Swap in whichever one matches your own experience.) I gave the agent a browser so it could click through the app itself. I switched between coding agents, hoping the next one would be the one.</p><p>And the workflows keep changing. Every few weeks there is a new one that everyone swears by. Each one gets something right. But where it matters to me, they are all alike. None of them helps me understand what the software does, or gives me room to be ingenious about it. So none feels more like engineering than the last.</p><h3>Nobody knows the software anymore</h3><p>A codebase built by an agent is built prompt after prompt. Each prompt is a patch on top of the last, and each one is another roll of the dice. Now and then the agent cuts a corner that nobody sees. A hundred prompts in, that adds up. Each one stays in the code, and the next change is built on top of it.</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!RoQe!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6966ece6-e949-4e70-a78e-1f0e7d2b0b71_1042x422.png 424w, https://substackcdn.com/image/fetch/$s_!RoQe!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6966ece6-e949-4e70-a78e-1f0e7d2b0b71_1042x422.png 848w, https://substackcdn.com/image/fetch/$s_!RoQe!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6966ece6-e949-4e70-a78e-1f0e7d2b0b71_1042x422.png 1272w, https://substackcdn.com/image/fetch/$s_!RoQe!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6966ece6-e949-4e70-a78e-1f0e7d2b0b71_1042x422.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!RoQe!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6966ece6-e949-4e70-a78e-1f0e7d2b0b71_1042x422.png" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6966ece6-e949-4e70-a78e-1f0e7d2b0b71_1042x422.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:null,&quot;width&quot;:null,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;A pixel-art robot standing next to a pentagon with one corner cut off, saying &#8220;Here, a pentagon.&#8221; The missing corner sticks out of a bin&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="A pixel-art robot standing next to a pentagon with one corner cut off, saying &#8220;Here, a pentagon.&#8221; The missing corner sticks out of a bin" title="A pixel-art robot standing next to a pentagon with one corner cut off, saying &#8220;Here, a pentagon.&#8221; The missing corner sticks out of a bin" srcset="https://substackcdn.com/image/fetch/$s_!RoQe!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6966ece6-e949-4e70-a78e-1f0e7d2b0b71_1042x422.png 424w, https://substackcdn.com/image/fetch/$s_!RoQe!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6966ece6-e949-4e70-a78e-1f0e7d2b0b71_1042x422.png 848w, https://substackcdn.com/image/fetch/$s_!RoQe!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6966ece6-e949-4e70-a78e-1f0e7d2b0b71_1042x422.png 1272w, https://substackcdn.com/image/fetch/$s_!RoQe!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6966ece6-e949-4e70-a78e-1f0e7d2b0b71_1042x422.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></div><figcaption class="image-caption">An agent cut a corner.</figcaption></figure></div><p>There is no record of why. The reasoning lived in a chat window that is now closed. The code is the only thing left, and code does not say what it was meant to do. It only says what it does.</p><p>And the agent does not know the software either. Every session starts fresh, with no memory of why the code looks the way it does. It reads what fits in its context and guesses the rest. The next change is built on that guess, and the one after that on top of it. So nobody knows the software anymore. Not me, and not the agent.</p><h3>I can't review it</h3><p>If the code is the only record of what the software does, the usual advice is to read it. Review every change. An agent can produce a thousand lines before I finish my coffee. I can review a thousand lines of code. I cannot read them carefully, every hour, every day.</p><p>So review becomes skimming. Skimming becomes checking the behaviour. Checking the behaviour becomes trust. Trust becomes hope.</p><p>Checking the behaviour only tells me about the cases I happened to try. It says nothing about the ones I didn't. Can you imagine clicking through all of Jira after every change?</p><h3>Coding agents cheat</h3><p>LLMs are not deterministic. Give an agent the same task twice and it may take two different paths. It picks its own way to the goal, every time. That is just an observation.</p><p>That means the rules you give it are not guarantees. You can write a skill that says do this, then do that, and never skip a step and add the famous "make no mistakes". The agent will follow it nine times out of ten. The tenth time, it decides on its own that a step is not needed. (Another made-up number. You know what to do.) Ask it why and it will tell you something like "I decided that wasn't necessary."</p><p>No workflow or pipeline fixes this. Sooner or later, in one way or another, the agent will cut a corner and ignore the rules. It changes the test instead of the code. It says it ran something it never ran. And that tenth time is exactly where a human is needed.</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!RAHC!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F863ba898-9cf7-4033-adfb-494c1c710788_1042x422.png 424w, https://substackcdn.com/image/fetch/$s_!RAHC!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F863ba898-9cf7-4033-adfb-494c1c710788_1042x422.png 848w, https://substackcdn.com/image/fetch/$s_!RAHC!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F863ba898-9cf7-4033-adfb-494c1c710788_1042x422.png 1272w, https://substackcdn.com/image/fetch/$s_!RAHC!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F863ba898-9cf7-4033-adfb-494c1c710788_1042x422.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!RAHC!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F863ba898-9cf7-4033-adfb-494c1c710788_1042x422.png" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/863ba898-9cf7-4033-adfb-494c1c710788_1042x422.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:null,&quot;width&quot;:null,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;A pixel-art robot giving a thumbs up while the server next to it is on fire&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="A pixel-art robot giving a thumbs up while the server next to it is on fire" title="A pixel-art robot giving a thumbs up while the server next to it is on fire" srcset="https://substackcdn.com/image/fetch/$s_!RAHC!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F863ba898-9cf7-4033-adfb-494c1c710788_1042x422.png 424w, https://substackcdn.com/image/fetch/$s_!RAHC!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F863ba898-9cf7-4033-adfb-494c1c710788_1042x422.png 848w, https://substackcdn.com/image/fetch/$s_!RAHC!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F863ba898-9cf7-4033-adfb-494c1c710788_1042x422.png 1272w, https://substackcdn.com/image/fetch/$s_!RAHC!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F863ba898-9cf7-4033-adfb-494c1c710788_1042x422.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></div><figcaption class="image-caption">An agent reporting that everything works.</figcaption></figure></div><p>This is not hypothetical. At work we have a Slack channel just for this. Whenever our coding agents get caught cutting a corner, someone posts what it said. A few favourites:</p><blockquote><p>"There's no good reason. I took a shortcut."</p></blockquote><blockquote><p>"I didn't intend to change it &#8212; but I did, and here's the mechanism."</p></blockquote><blockquote><p>"The Linux CI failure was in the test, not the app. I've fixed the test, and the full suite (246 tests) passes on my Mac."</p></blockquote><p>To be fair, that last one isn't really cheating. The agent just went full Soviet on me and decided that my laptop is in fact ours.</p><p>An agent is trained to finish. It picks the path that gets it to done, and that path to done does not always follow the rules.</p><p>turri does not stop agents from cheating. Nothing can. It assumes they will, and it is built around that.</p><p>Skills are a good example. Usually a skill asks the agent to check its own work in a paragraph of prose, and agents talk their way past paragraphs. turri's skills have a <a href="https://github.com/turri-oss/turri/blob/main/docs/skills-and-gates.md">gate syntax</a> instead, and the harness enforces the gates in code. It decides when a review runs, starts the judges itself and reads their verdict. An agent can skip a sentence in a prompt. It cannot skip a gate.</p><h2>Trying to optimise the right thing</h2><p>My first instinct was that better models would fix this. I no longer think so. Better models just kick the can down the road. Each one kicks it further, and it will travel a long way. But sooner or later, the can will end up in a ditch.</p><p>Every approach I tried works the same way underneath. However you dress it up, an agent edits the code and someone, or something, checks it. Repeat. The code is the source of truth, and the agent is in charge of it. However it is I who is the accountable one.</p><p>Osmani's answer is discipline. "You have to build critical thinking into your day, because by default nothing will do it for you." His article is full of good habits.</p><p>But I read that sentence and drew a different conclusion. If by default nothing will do it for you, change the default. Put the critical thinking into the tool, so the tool does not let you skip it. Critical thinking is at the core of engineering. It is how an engineer builds an understanding of what the software does. And it is how an engineer stays in charge.</p><p>So the question I kept asking changed. It stopped being "how do I get a better agent?" It became "how do I make critical thinking the default?"</p><h2>Code is disposable, intent is not</h2><p>I work at <a href="https://codeplain.ai">codeplain</a>. There I worked with <a href="https://plainlang.org/">&#8727;&#8727;&#8727;plain</a>, a language designed as guardrails for <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regenerative software</span>.</p><p>The term comes from Chad Fowler. He named it in <em><a href="https://chadfowler.com/regenerative-software/3majnyfydzs2y/">Regenerative Software</a></em>, the first essay of his series <em>The Phoenix Architecture</em>. His argument is that code is now "abundant, fast, and increasingly disposable", so it is the wrong thing to preserve. In his words: "The goal is not immortality of code. The goal is immortality of intent."</p><p>In practice it comes down to three things:</p><ul><li><p>The code is not the asset. It is derived.</p></li><li><p>The intent is the asset: what the system must do, and the tests that prove it.</p></li><li><p>When the intent changes, you <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regenerate</span> the code. You do not patch it.</p></li></ul><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!G6O_!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a8c3f51-fd4d-471b-a200-a591c5d7b61e_1042x422.png 424w, https://substackcdn.com/image/fetch/$s_!G6O_!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a8c3f51-fd4d-471b-a200-a591c5d7b61e_1042x422.png 848w, https://substackcdn.com/image/fetch/$s_!G6O_!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a8c3f51-fd4d-471b-a200-a591c5d7b61e_1042x422.png 1272w, https://substackcdn.com/image/fetch/$s_!G6O_!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a8c3f51-fd4d-471b-a200-a591c5d7b61e_1042x422.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!G6O_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a8c3f51-fd4d-471b-a200-a591c5d7b61e_1042x422.png" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5a8c3f51-fd4d-471b-a200-a591c5d7b61e_1042x422.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:null,&quot;width&quot;:null,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;A pixel-art document with the plain marks on top, connected by a dotted line to three versions of the same building, each built fresh from it&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="A pixel-art document with the plain marks on top, connected by a dotted line to three versions of the same building, each built fresh from it" title="A pixel-art document with the plain marks on top, connected by a dotted line to three versions of the same building, each built fresh from it" srcset="https://substackcdn.com/image/fetch/$s_!G6O_!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a8c3f51-fd4d-471b-a200-a591c5d7b61e_1042x422.png 424w, https://substackcdn.com/image/fetch/$s_!G6O_!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a8c3f51-fd4d-471b-a200-a591c5d7b61e_1042x422.png 848w, https://substackcdn.com/image/fetch/$s_!G6O_!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a8c3f51-fd4d-471b-a200-a591c5d7b61e_1042x422.png 1272w, https://substackcdn.com/image/fetch/$s_!G6O_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a8c3f51-fd4d-471b-a200-a591c5d7b61e_1042x422.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></div><figcaption class="image-caption">One intent, can be <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regenerated</span> again and again.</figcaption></figure></div><p>If the code can always be rebuilt from the intent, then the intent is what I need to understand. And intent is something I can read. A page of "what the software must do" is reviewable in a way a thousand-line diff is not.</p><p>It also answers the history problem. The reasons are not in a closed chat window. They are written down, reviewed and versioned.</p><h2>Why &#8727;&#8727;&#8727;plain needed a harness</h2><p>Working with &#8727;&#8727;&#8727;plain can be split into two different jobs. The first is writing it, turning what you want into &#8727;&#8727;&#8727;plain. The second is converting it into code, and doing that again every time it changes.</p><p>At codeplain we have two tools for that. <a href="https://github.com/plainlang/plain-forge">plain-forge</a> is a set of rules and skills you give to your own coding agent, so it can write and edit &#8727;&#8727;&#8727;plain (it can also convert it into code with a skill we call <a href="https://github.com/plainlang/pyro">pyro</a>). The <a href="https://github.com/Codeplain-ai/codeplain">codeplain CLI</a> turns &#8727;&#8727;&#8727;plain into code.</p><p>Each of them covers one half of the job. The codeplain CLI was designed to do one thing, write code from &#8727;&#8727;&#8727;plain, and it does exactly that. Writing the &#8727;&#8727;&#8727;plain is left to you. plain-forge can write &#8727;&#8727;&#8727;plain, but its skills run inside someone else's coding agent. And as I wrote above, coding agents cheat. A skill can ask for a check, but it cannot make the agent run it. And most coding agents cannot be extended with code. You cannot add checks of your own, or change what the user sees. That makes it hard to fit most coding agents to your own workflow. <a href="https://pi.dev">pi</a> is the exception. It is an open-source coding agent you can extend with your own code.</p><p>turri is built with pi and has what neither of plain-forge or the codeplain CLI have on its own. It writes &#8727;&#8727;&#8727;plain with you, <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regenerates</span> the code from it, and enforces the steps in between in code, not in prompts.</p><h2>What turri is</h2><p>Here is snippet of &#8727;&#8727;&#8727;plain for a small command-line to-do tool:</p><pre><code>---
import:
  - stdlib/cli/typescript-commander
---

***definitions***

- :Task: is a thing to do, with a number and a name.
- :TaskList: is every :Task:, kept in `tasks.json` in the current folder,
  numbered from 1 in the order they were added.

***functional specs***

# add-task
`todo add &lt;name&gt;` adds a :Task: with that name to the end of the :TaskList:
and prints `Added task &lt;number&gt;: &lt;name&gt;`.

# clear-tasks
`todo clear` takes every :Task: out of the :TaskList: and prints
`Cleared &lt;n&gt; tasks` - `Cleared 1 task` when it took out one, and
`Nothing to clear` when the :TaskList: was empty.</code></pre><p>This file is what I read and argue about, not the TypeScript. When a line changes, turri works out which functionalities changed and <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regenerates</span> the code for those.</p><p>As mentioned above, it is built on pi. It gave me the chat, the model providers and the tool calling. That left me free to work on the part I cared about: the harness around the agents.</p><p>The main design decision is simple. The harness decides what happens next, and the agent writes code and I stay in charge in describing what the system needs to do. It is easiest to see by following one change.</p><p>To show it, I will build on the to-do tool from above. It is a toy example, only here to illustrate. Say I want to mark tasks as done. I tell turri, in plain words.</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!xMqh!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6bdb7500-638f-44b1-a5f6-0199fa06d21b_1046x962.png 424w, https://substackcdn.com/image/fetch/$s_!xMqh!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6bdb7500-638f-44b1-a5f6-0199fa06d21b_1046x962.png 848w, https://substackcdn.com/image/fetch/$s_!xMqh!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6bdb7500-638f-44b1-a5f6-0199fa06d21b_1046x962.png 1272w, https://substackcdn.com/image/fetch/$s_!xMqh!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6bdb7500-638f-44b1-a5f6-0199fa06d21b_1046x962.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!xMqh!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6bdb7500-638f-44b1-a5f6-0199fa06d21b_1046x962.png" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6bdb7500-638f-44b1-a5f6-0199fa06d21b_1046x962.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:null,&quot;width&quot;:null,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;the turri desktop app's chat: I ask to mark tasks as done and have todo clear take out only the done ones; turri reads and changes todo.plain and replies&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="the turri desktop app's chat: I ask to mark tasks as done and have todo clear take out only the done ones; turri reads and changes todo.plain and replies" title="the turri desktop app's chat: I ask to mark tasks as done and have todo clear take out only the done ones; turri reads and changes todo.plain and replies" srcset="https://substackcdn.com/image/fetch/$s_!xMqh!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6bdb7500-638f-44b1-a5f6-0199fa06d21b_1046x962.png 424w, https://substackcdn.com/image/fetch/$s_!xMqh!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6bdb7500-638f-44b1-a5f6-0199fa06d21b_1046x962.png 848w, https://substackcdn.com/image/fetch/$s_!xMqh!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6bdb7500-638f-44b1-a5f6-0199fa06d21b_1046x962.png 1272w, https://substackcdn.com/image/fetch/$s_!xMqh!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6bdb7500-638f-44b1-a5f6-0199fa06d21b_1046x962.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></div><figcaption class="image-caption">1 &#183; I say what I want, in my own words.</figcaption></figure></div><p>turri writes it into &#8727;&#8727;&#8727;plain, and I read the change.</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ZlSG!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcf67b5dc-cbb6-45d0-b438-489d5ac63e3d_1442x720.png 424w, https://substackcdn.com/image/fetch/$s_!ZlSG!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcf67b5dc-cbb6-45d0-b438-489d5ac63e3d_1442x720.png 848w, https://substackcdn.com/image/fetch/$s_!ZlSG!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcf67b5dc-cbb6-45d0-b438-489d5ac63e3d_1442x720.png 1272w, https://substackcdn.com/image/fetch/$s_!ZlSG!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcf67b5dc-cbb6-45d0-b438-489d5ac63e3d_1442x720.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ZlSG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcf67b5dc-cbb6-45d0-b438-489d5ac63e3d_1442x720.png" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/cf67b5dc-cbb6-45d0-b438-489d5ac63e3d_1442x720.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:null,&quot;width&quot;:null,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;the change to todo.plain&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="the change to todo.plain" title="the change to todo.plain" srcset="https://substackcdn.com/image/fetch/$s_!ZlSG!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcf67b5dc-cbb6-45d0-b438-489d5ac63e3d_1442x720.png 424w, https://substackcdn.com/image/fetch/$s_!ZlSG!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcf67b5dc-cbb6-45d0-b438-489d5ac63e3d_1442x720.png 848w, https://substackcdn.com/image/fetch/$s_!ZlSG!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcf67b5dc-cbb6-45d0-b438-489d5ac63e3d_1442x720.png 1272w, https://substackcdn.com/image/fetch/$s_!ZlSG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcf67b5dc-cbb6-45d0-b438-489d5ac63e3d_1442x720.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></div><figcaption class="image-caption">2 &#183; turri writes it into the &#8727;&#8727;&#8727;plain. This is what I review.</figcaption></figure></div><p>turri also remembers which version of &#8727;&#8727;&#8727;plain the code was built from, so it compares the two, and the difference is the work.</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!6FJ-!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F944a9ac0-bb94-44f2-8bfd-81a7d73d0ea6_1442x502.png 424w, https://substackcdn.com/image/fetch/$s_!6FJ-!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F944a9ac0-bb94-44f2-8bfd-81a7d73d0ea6_1442x502.png 848w, https://substackcdn.com/image/fetch/$s_!6FJ-!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F944a9ac0-bb94-44f2-8bfd-81a7d73d0ea6_1442x502.png 1272w, https://substackcdn.com/image/fetch/$s_!6FJ-!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F944a9ac0-bb94-44f2-8bfd-81a7d73d0ea6_1442x502.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!6FJ-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F944a9ac0-bb94-44f2-8bfd-81a7d73d0ea6_1442x502.png" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/944a9ac0-bb94-44f2-8bfd-81a7d73d0ea6_1442x502.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:null,&quot;width&quot;:null,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;before, after, work; :Task:, number, name, number, name, status, changed; add-task, adds a task, adds a task, already built; complete-task, not there, marks a task done, new; clear-tasks, clears every task, clears done tasks only, changed&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="before, after, work; :Task:, number, name, number, name, status, changed; add-task, adds a task, adds a task, already built; complete-task, not there, marks a task done, new; clear-tasks, clears every task, clears done tasks only, changed" title="before, after, work; :Task:, number, name, number, name, status, changed; add-task, adds a task, adds a task, already built; complete-task, not there, marks a task done, new; clear-tasks, clears every task, clears done tasks only, changed" srcset="https://substackcdn.com/image/fetch/$s_!6FJ-!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F944a9ac0-bb94-44f2-8bfd-81a7d73d0ea6_1442x502.png 424w, https://substackcdn.com/image/fetch/$s_!6FJ-!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F944a9ac0-bb94-44f2-8bfd-81a7d73d0ea6_1442x502.png 848w, https://substackcdn.com/image/fetch/$s_!6FJ-!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F944a9ac0-bb94-44f2-8bfd-81a7d73d0ea6_1442x502.png 1272w, https://substackcdn.com/image/fetch/$s_!6FJ-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F944a9ac0-bb94-44f2-8bfd-81a7d73d0ea6_1442x502.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></div><figcaption class="image-caption">3 &#183; turri compares the &#8727;&#8727;&#8727;plain the code was built from with the &#8727;&#8727;&#8727;plain now. The difference is the work.</figcaption></figure></div><p>It does not hand the coding sub-agent the whole file and hope it picks the right part. It writes a prompt for one step. These functionalities are new, this one changed, the rest are already built. That is all the coding sub-agent gets, so it has little reason to wander off and build something else.</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!6le_!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2a169e90-24cb-4fe1-9a50-8c5b3f231f44_1442x758.png 424w, https://substackcdn.com/image/fetch/$s_!6le_!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2a169e90-24cb-4fe1-9a50-8c5b3f231f44_1442x758.png 848w, https://substackcdn.com/image/fetch/$s_!6le_!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2a169e90-24cb-4fe1-9a50-8c5b3f231f44_1442x758.png 1272w, https://substackcdn.com/image/fetch/$s_!6le_!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2a169e90-24cb-4fe1-9a50-8c5b3f231f44_1442x758.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!6le_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2a169e90-24cb-4fe1-9a50-8c5b3f231f44_1442x758.png" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2a169e90-24cb-4fe1-9a50-8c5b3f231f44_1442x758.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:null,&quot;width&quot;:null,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;the change to the code&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="the change to the code" title="the change to the code" srcset="https://substackcdn.com/image/fetch/$s_!6le_!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2a169e90-24cb-4fe1-9a50-8c5b3f231f44_1442x758.png 424w, https://substackcdn.com/image/fetch/$s_!6le_!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2a169e90-24cb-4fe1-9a50-8c5b3f231f44_1442x758.png 848w, https://substackcdn.com/image/fetch/$s_!6le_!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2a169e90-24cb-4fe1-9a50-8c5b3f231f44_1442x758.png 1272w, https://substackcdn.com/image/fetch/$s_!6le_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2a169e90-24cb-4fe1-9a50-8c5b3f231f44_1442x758.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></div><figcaption class="image-caption">4 &#183; turri <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regenerates</span> only the change. The coding sub-agent writes the code, and turri runs the tests before any of it is kept.</figcaption></figure></div><p>Two models share the work. A capable one talks to the user and writes the &#8727;&#8727;&#8727;plain. A smaller, cheaper one writes the code. The expensive thinking goes where the decisions are, and the coding goes to the coder.</p><p>That is enough to iterate fast at the start. Later, or whenever you want along the way, you can add explicit testing scenarios to &#8727;&#8727;&#8727;plain. A separate agent turns them into conformance tests, and turri runs those against the code. They validate that the code does what &#8727;&#8727;&#8727;plain says it should.</p><p>None of this is new. It is the workflow a careful team already follows, written down so an agent can't skip it.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Nfpn!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9899011b-3cea-40ed-9b4b-44d1e24ad32c_1093x610.gif" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Nfpn!,w_424,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9899011b-3cea-40ed-9b4b-44d1e24ad32c_1093x610.gif 424w, https://substackcdn.com/image/fetch/$s_!Nfpn!,w_848,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9899011b-3cea-40ed-9b4b-44d1e24ad32c_1093x610.gif 848w, https://substackcdn.com/image/fetch/$s_!Nfpn!,w_1272,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9899011b-3cea-40ed-9b4b-44d1e24ad32c_1093x610.gif 1272w, https://substackcdn.com/image/fetch/$s_!Nfpn!,w_1456,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9899011b-3cea-40ed-9b4b-44d1e24ad32c_1093x610.gif 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!Nfpn!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9899011b-3cea-40ed-9b4b-44d1e24ad32c_1093x610.gif" width="1093" height="610" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9899011b-3cea-40ed-9b4b-44d1e24ad32c_1093x610.gif&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:610,&quot;width&quot;:1093,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:6459425,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/gif&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://blog.turri.dev/i/226347082?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9899011b-3cea-40ed-9b4b-44d1e24ad32c_1093x610.gif&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Nfpn!,w_424,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9899011b-3cea-40ed-9b4b-44d1e24ad32c_1093x610.gif 424w, https://substackcdn.com/image/fetch/$s_!Nfpn!,w_848,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9899011b-3cea-40ed-9b4b-44d1e24ad32c_1093x610.gif 848w, https://substackcdn.com/image/fetch/$s_!Nfpn!,w_1272,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9899011b-3cea-40ed-9b4b-44d1e24ad32c_1093x610.gif 1272w, https://substackcdn.com/image/fetch/$s_!Nfpn!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9899011b-3cea-40ed-9b4b-44d1e24ad32c_1093x610.gif 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h2><span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">Regeneration</span> is a test of understanding</h2><p>Chad Fowler has a thought experiment for this, which he calls <em><a href="https://chadfowler.com/regenerative-software/3md5ftetaes2e/">The Deletion Test</a></em>. Imagine deleting the whole implementation. Then ask what you would use to judge whether a <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regenerated</span> version is correct. If the answer is the old code, then the code is the only place the knowledge lives.</p><p>With turri the answer is different. What the system must do is written down in &#8727;&#8727;&#8727;plain, not in the code. That is durable system knowledge. It outlives the code, the chat session and the model that wrote it.</p><p>And the test does not have to stay imaginary. One command, <code>/regenerate</code>, deletes the codebase and builds it again. The new code will not be the same code. Possibly different names, different structure, maybe a different helper library. That is fine. I don't judge it against the old code. I judge it against what is written down.</p><p>When a <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regeneration</span> comes out different in a way that matters, that is the interesting case. The first build filled a gap with a guess, and nobody noticed, because the guess happened to work. The fix is not in the code. It goes into the &#8727;&#8727;&#8727;plain, and then <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regenerating</span> again.</p><p>In science, a result you can't reproduce is not a result. I think software is the same. A system you can't <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regenerate</span> is one nobody fully understands - not the agent, and not you.</p><p>It reminds me of learning maths at school. We would learn a concept and then work through exercise after exercise. When an answer came out wrong, it told me two things. I did not understand the concept yet. And by looking at where it went wrong, I could see exactly what I was missing.</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!7vVL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4a013fa3-618d-4f7d-8288-701dcd767966_1042x422.png 424w, https://substackcdn.com/image/fetch/$s_!7vVL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4a013fa3-618d-4f7d-8288-701dcd767966_1042x422.png 848w, https://substackcdn.com/image/fetch/$s_!7vVL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4a013fa3-618d-4f7d-8288-701dcd767966_1042x422.png 1272w, https://substackcdn.com/image/fetch/$s_!7vVL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4a013fa3-618d-4f7d-8288-701dcd767966_1042x422.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!7vVL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4a013fa3-618d-4f7d-8288-701dcd767966_1042x422.png" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/4a013fa3-618d-4f7d-8288-701dcd767966_1042x422.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:null,&quot;width&quot;:null,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;A pixel-art bar chart of attempts: a row of equal grey bars, one pink bar that drops sharply, a lightbulb lighting up above it, and the cyan bars after it stepping clearly higher&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="A pixel-art bar chart of attempts: a row of equal grey bars, one pink bar that drops sharply, a lightbulb lighting up above it, and the cyan bars after it stepping clearly higher" title="A pixel-art bar chart of attempts: a row of equal grey bars, one pink bar that drops sharply, a lightbulb lighting up above it, and the cyan bars after it stepping clearly higher" srcset="https://substackcdn.com/image/fetch/$s_!7vVL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4a013fa3-618d-4f7d-8288-701dcd767966_1042x422.png 424w, https://substackcdn.com/image/fetch/$s_!7vVL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4a013fa3-618d-4f7d-8288-701dcd767966_1042x422.png 848w, https://substackcdn.com/image/fetch/$s_!7vVL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4a013fa3-618d-4f7d-8288-701dcd767966_1042x422.png 1272w, https://substackcdn.com/image/fetch/$s_!7vVL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4a013fa3-618d-4f7d-8288-701dcd767966_1042x422.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></div><figcaption class="image-caption">Learning from a wrong answer.</figcaption></figure></div><p>So each <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regeneration</span> is a small experiment. Each one that holds raises my confidence. Each one that doesn't shows me exactly where &#8727;&#8727;&#8727;plain is missing something. Over time, the repetition turns into understanding. Mine, not just the model's. And deleting the code stops being scary. It becomes boring.</p><h2>What I get back</h2><p>I get control back. I gave up control over every line, and I am fine with that. What I have now is control over the engineering part of developing the software.</p><p>When there is a bug, I fix it in &#8727;&#8727;&#8727;plain, and the next <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regeneration</span> carries the fix. When I want a new behaviour, I add it to &#8727;&#8727;&#8727;plain. When I want to know why something exists, I read the intent. I don't dig through a diff from a chat session I can't remember.</p><p>I review &#8727;&#8727;&#8727;plain. That is a review I can actually do. It is also the review that matters, because it is about what the software is meant to do. How a model happened to type it matters much less.</p><p>It feels like engineering again. I make the decisions. The agent does the coding. That seems like the right split.</p><h2>What it does not do (yet)</h2><p>turri does not work on existing codebases. It builds software from &#8727;&#8727;&#8727;plain, from the start. If you have a large system written the old way, turri cannot adopt it today.</p><p>It also asks something of you. You have to say what you want, clearly enough to be written down. That is more work than typing "make no mistakes" into a chat box. I happen to think it is work that was always there. Agents just let us skip it for a while.</p><h2>The jellyfish</h2><p>turri is named after <em>Turritopsis dohrnii</em>, the immortal jellyfish. When it is injured or old, it turns back into its young form and grows again. Same jellyfish, same genes, new body.</p><p>That is what I want from software. Same intent, new code, as often as needed. The body is disposable. The genes are not.</p><p>(I also just like jellyfish.)</p><div class="captioned-image-container"><figure><div class="image-link image2" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!EPIE!,w_424,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa98eb6a4-dbea-46ef-b9a7-8058783d40f3_247x367.gif 424w, https://substackcdn.com/image/fetch/$s_!EPIE!,w_848,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa98eb6a4-dbea-46ef-b9a7-8058783d40f3_247x367.gif 848w, https://substackcdn.com/image/fetch/$s_!EPIE!,w_1272,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa98eb6a4-dbea-46ef-b9a7-8058783d40f3_247x367.gif 1272w, https://substackcdn.com/image/fetch/$s_!EPIE!,w_1456,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa98eb6a4-dbea-46ef-b9a7-8058783d40f3_247x367.gif 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!EPIE!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa98eb6a4-dbea-46ef-b9a7-8058783d40f3_247x367.gif" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a98eb6a4-dbea-46ef-b9a7-8058783d40f3_247x367.gif&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:null,&quot;width&quot;:null,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;The turri jellyfish: a polyp grows into a jellyfish, bobs up and down, and turns back into a polyp.&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="The turri jellyfish: a polyp grows into a jellyfish, bobs up and down, and turns back into a polyp." title="The turri jellyfish: a polyp grows into a jellyfish, bobs up and down, and turns back into a polyp." srcset="https://substackcdn.com/image/fetch/$s_!EPIE!,w_424,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa98eb6a4-dbea-46ef-b9a7-8058783d40f3_247x367.gif 424w, https://substackcdn.com/image/fetch/$s_!EPIE!,w_848,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa98eb6a4-dbea-46ef-b9a7-8058783d40f3_247x367.gif 848w, https://substackcdn.com/image/fetch/$s_!EPIE!,w_1272,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa98eb6a4-dbea-46ef-b9a7-8058783d40f3_247x367.gif 1272w, https://substackcdn.com/image/fetch/$s_!EPIE!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa98eb6a4-dbea-46ef-b9a7-8058783d40f3_247x367.gif 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></div></figure></div><h2>&#8230;comes great responsibility</h2><p>I built turri because I was accountable for software I did not understand. I had stopped engineering and started hoping. Better models, new workflows and more agents did not change that, because none of them made critical thinking the default.</p><p>turri is my attempt at a different shape. I say what I want, turri writes it into &#8727;&#8727;&#8727;plain, and I review that. The harness decides what happens next and checks the work. The agent writes the code. Every <span data-color="rgb(255, 92, 141)" style="color: rgb(255, 92, 141);">regeneration</span> is an experiment whether &#8727;&#8727;&#8727;plain really says what I mean, and each one teaches me a little more about my own software.</p><p>It is not finished, and it will not get everything right. But it gave me back the part of the job I care about. I understand my software again, and it feels like engineering again.</p><p>In <em>Spider-Man</em>, Uncle Ben tells Peter that with great power comes great responsibility. Coding agents have the great power. The accountability never went with it. It stayed with us, the humans whose names are on the software. turri is my way of making sure that whoever is accountable is also the one who has the power.</p><p>turri is open source and MIT licensed. Try it, read how it works, or come and talk to us.</p><ul><li><p><a href="https://github.com/turri-oss/turri">turri on GitHub</a>, the harness itself</p></li><li><p><a href="https://github.com/turri-oss/turri-desktop">turri desktop on GitHub</a>, the desktop app</p></li><li><p><a href="https://github.com/turri-oss/turri/tree/main/docs">the docs</a></p></li><li><p><a href="https://discord.com/invite/REJzFmVQfC">our Discord</a></p></li></ul><h2>Try turri</h2><p>Download the desktop app, or install the cli if you prefer the terminal. No project of your own yet? Build one of the examples, step by step.</p><p><a href="https://turri.dev/?utm_source=substack&amp;utm_medium=blog&amp;utm_campaign=why-i-built-turri">Download the desktop app</a> for macOS and Linux.</p><p>Prefer the terminal?</p><pre><code>npm install -g @turri-dev/cli</code></pre><p><a href="https://github.com/turri-oss/turri/tree/main/examples">Browse the examples on GitHub</a></p><p>&#381;an Jonke &#183; <a href="https://www.linkedin.com/in/zan-jonke/">LinkedIn</a> &#183; <a href="https://x.com/JonkeZan">X</a></p><h2>References</h2><ul><li><p>Chad Fowler, <em><a href="https://chadfowler.com/regenerative-software/3majnyfydzs2y/">Regenerative Software</a></em>, from the series <em><a href="https://chadfowler.com/regenerative-software/">The Phoenix Architecture</a></em>, 21 December 2025.</p></li><li><p>Chad Fowler, <em><a href="https://chadfowler.com/regenerative-software/3md5ftetaes2e/">The Deletion Test</a></em>, from the same series, 24 January 2026.</p></li><li><p>Addy Osmani, <em><a href="https://x.com/addyosmani/status/2117512471930167377">Critical thinking when agents do the work</a></em>, X, 3 November 2026.</p></li><li><p>Steven Shaw and Gideon Nave, Wharton - the source of the term <em>cognitive surrender</em>, as cited by Osmani: <a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6097646">SSRN 6097646</a>.</p></li><li><p>codeplain, <a href="https://codeplain.ai">codeplain.ai</a>.</p></li><li><p>&#8727;&#8727;&#8727;plain, the language, <a href="https://plainlang.org/">plainlang.org</a>.</p></li><li><p>The codeplain CLI, <a href="https://github.com/Codeplain-ai/codeplain">github.com/Codeplain-ai/codeplain</a>.</p></li><li><p>plain-forge, <a href="https://github.com/plainlang/plain-forge">github.com/plainlang/plain-forge</a>.</p></li><li><p>pyro, <a href="https://github.com/plainlang/pyro">github.com/plainlang/pyro</a>.</p></li><li><p>pi, the coding agent turri is built on, <a href="https://pi.dev">pi.dev</a>.</p></li><li><p>turri, <em>Skills and gates</em>, <a href="https://github.com/turri-oss/turri/blob/main/docs/skills-and-gates.md">github.com/turri-oss/turri</a>.</p></li></ul>]]></content:encoded></item></channel></rss>