<?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[ArchonHQ]]></title><description><![CDATA[Practical AI that wins every day]]></description><link>https://archonhq.ai</link><image><url>https://substackcdn.com/image/fetch/$s_!pNku!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3743a6e-7a43-4175-a8bb-20548855b667_112x112.png</url><title>ArchonHQ</title><link>https://archonhq.ai</link></image><generator>Substack</generator><lastBuildDate>Wed, 25 Nov 2026 08:05:05 GMT</lastBuildDate><atom:link href="https://archonhq.ai/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Michal Szalinski]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[michalszalinski@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[michalszalinski@substack.com]]></itunes:email><itunes:name><![CDATA[Michal Szalinski]]></itunes:name></itunes:owner><itunes:author><![CDATA[Michal Szalinski]]></itunes:author><googleplay:owner><![CDATA[michalszalinski@substack.com]]></googleplay:owner><googleplay:email><![CDATA[michalszalinski@substack.com]]></googleplay:email><googleplay:author><![CDATA[Michal Szalinski]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[Why plain AI gave perfectly clean coaching advice]]></title><description><![CDATA[First time I ran client check-ins through plain AI, the answers felt off.]]></description><link>https://archonhq.ai/p/why-plain-ai-gave-perfectly-clean</link><guid isPermaLink="false">https://archonhq.ai/p/why-plain-ai-gave-perfectly-clean</guid><dc:creator><![CDATA[Michal Szalinski]]></dc:creator><pubDate>Wed, 18 Nov 2026 21:31:10 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!2f-w!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2edf6ec-36f6-4ea3-ba12-275a0e21eb7d_1500x600.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!2f-w!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2edf6ec-36f6-4ea3-ba12-275a0e21eb7d_1500x600.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!2f-w!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2edf6ec-36f6-4ea3-ba12-275a0e21eb7d_1500x600.png 424w, https://substackcdn.com/image/fetch/$s_!2f-w!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2edf6ec-36f6-4ea3-ba12-275a0e21eb7d_1500x600.png 848w, https://substackcdn.com/image/fetch/$s_!2f-w!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2edf6ec-36f6-4ea3-ba12-275a0e21eb7d_1500x600.png 1272w, https://substackcdn.com/image/fetch/$s_!2f-w!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2edf6ec-36f6-4ea3-ba12-275a0e21eb7d_1500x600.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!2f-w!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2edf6ec-36f6-4ea3-ba12-275a0e21eb7d_1500x600.png" width="1456" height="582" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c2edf6ec-36f6-4ea3-ba12-275a0e21eb7d_1500x600.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:582,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:10005,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://archonhq.ai/i/225566063?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2edf6ec-36f6-4ea3-ba12-275a0e21eb7d_1500x600.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!2f-w!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2edf6ec-36f6-4ea3-ba12-275a0e21eb7d_1500x600.png 424w, https://substackcdn.com/image/fetch/$s_!2f-w!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2edf6ec-36f6-4ea3-ba12-275a0e21eb7d_1500x600.png 848w, https://substackcdn.com/image/fetch/$s_!2f-w!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2edf6ec-36f6-4ea3-ba12-275a0e21eb7d_1500x600.png 1272w, https://substackcdn.com/image/fetch/$s_!2f-w!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc2edf6ec-36f6-4ea3-ba12-275a0e21eb7d_1500x600.png 1456w" sizes="100vw" fetchpriority="high"></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>First time I ran client check-ins through plain AI, the answers felt off. Too generic. Too simplistic and artificial. Obviously not quite right. I expected a much more nuanced answer and instead I got a perfectly clean one.</p><p>The cleanliness was the problem. Real check-ins are messy. A clean one on paper is often where the useful coaching work starts.</p>
      <p>
          <a href="https://archonhq.ai/p/why-plain-ai-gave-perfectly-clean">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Gates, not hope: why the coach is always the filter]]></title><description><![CDATA[The first version of our check-in analysis was simple.]]></description><link>https://archonhq.ai/p/gates-not-hope-why-the-coach-is-always</link><guid isPermaLink="false">https://archonhq.ai/p/gates-not-hope-why-the-coach-is-always</guid><dc:creator><![CDATA[Michal Szalinski]]></dc:creator><pubDate>Mon, 16 Nov 2026 22:54:38 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!9_ZT!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6445e-0b99-4832-8a9e-5943e0ecbfce_1500x600.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!9_ZT!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6445e-0b99-4832-8a9e-5943e0ecbfce_1500x600.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!9_ZT!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6445e-0b99-4832-8a9e-5943e0ecbfce_1500x600.png 424w, https://substackcdn.com/image/fetch/$s_!9_ZT!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6445e-0b99-4832-8a9e-5943e0ecbfce_1500x600.png 848w, https://substackcdn.com/image/fetch/$s_!9_ZT!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6445e-0b99-4832-8a9e-5943e0ecbfce_1500x600.png 1272w, https://substackcdn.com/image/fetch/$s_!9_ZT!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6445e-0b99-4832-8a9e-5943e0ecbfce_1500x600.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!9_ZT!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6445e-0b99-4832-8a9e-5943e0ecbfce_1500x600.png" width="1456" height="582" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8be6445e-0b99-4832-8a9e-5943e0ecbfce_1500x600.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:582,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:565221,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://archonhq.ai/i/225266342?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6445e-0b99-4832-8a9e-5943e0ecbfce_1500x600.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!9_ZT!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6445e-0b99-4832-8a9e-5943e0ecbfce_1500x600.png 424w, https://substackcdn.com/image/fetch/$s_!9_ZT!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6445e-0b99-4832-8a9e-5943e0ecbfce_1500x600.png 848w, https://substackcdn.com/image/fetch/$s_!9_ZT!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6445e-0b99-4832-8a9e-5943e0ecbfce_1500x600.png 1272w, https://substackcdn.com/image/fetch/$s_!9_ZT!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8be6445e-0b99-4832-8a9e-5943e0ecbfce_1500x600.png 1456w" sizes="100vw" fetchpriority="high"></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>The first version of our check-in analysis was simple. A client&#8217;s check-in came in by email, and I asked an LLM to analyse it.</p><p>It wasn&#8217;t really producing the right answers. They were too generic and didn&#8217;t follow best practice. Nothing was obviously wrong with them, which was almost the problem. You&#8217;d read one and think, sure, that&#8217;s reasonable. Then you&#8217;d think, a good coach would never say it like that.</p><p>AI speed is cheap. You can get an analysis back in seconds, as many as you like. What makes it something a coach can actually ship to a client is the checking, and in the beginning we had none. We were hoping.</p><p></p>
      <p>
          <a href="https://archonhq.ai/p/gates-not-hope-why-the-coach-is-always">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Green ticks aren’t proof]]></title><description><![CDATA[For ages I thought a wall of green CI meant we were fine.]]></description><link>https://archonhq.ai/p/green-ticks-arent-proof</link><guid isPermaLink="false">https://archonhq.ai/p/green-ticks-arent-proof</guid><dc:creator><![CDATA[Michal Szalinski]]></dc:creator><pubDate>Tue, 10 Nov 2026 22:25:43 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!pql9!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05604675-3786-4eec-945e-c742de6607f1_1500x600.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!pql9!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05604675-3786-4eec-945e-c742de6607f1_1500x600.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!pql9!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05604675-3786-4eec-945e-c742de6607f1_1500x600.png 424w, https://substackcdn.com/image/fetch/$s_!pql9!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05604675-3786-4eec-945e-c742de6607f1_1500x600.png 848w, https://substackcdn.com/image/fetch/$s_!pql9!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05604675-3786-4eec-945e-c742de6607f1_1500x600.png 1272w, https://substackcdn.com/image/fetch/$s_!pql9!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05604675-3786-4eec-945e-c742de6607f1_1500x600.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!pql9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05604675-3786-4eec-945e-c742de6607f1_1500x600.png" width="1456" height="582" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/05604675-3786-4eec-945e-c742de6607f1_1500x600.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:582,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:557525,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://archonhq.ai/i/224366507?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05604675-3786-4eec-945e-c742de6607f1_1500x600.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!pql9!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05604675-3786-4eec-945e-c742de6607f1_1500x600.png 424w, https://substackcdn.com/image/fetch/$s_!pql9!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05604675-3786-4eec-945e-c742de6607f1_1500x600.png 848w, https://substackcdn.com/image/fetch/$s_!pql9!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05604675-3786-4eec-945e-c742de6607f1_1500x600.png 1272w, https://substackcdn.com/image/fetch/$s_!pql9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F05604675-3786-4eec-945e-c742de6607f1_1500x600.png 1456w" sizes="100vw" fetchpriority="high"></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>For ages I thought a wall of green CI meant we were fine. Loads of runs, PRs going in parallel, all green, and I was pretty pleased with myself. Then I actually looked and a fair few of those checks weren&#8217;t testing what I&#8217;d asked for. They passed. They just didn&#8217;t prove much. Agents are brilliant at making commands go green, which is sort of the problem, if green is the target then green is what you get.</p><p>So there&#8217;s one rule in dev-stack that changed how I run the lot: green commands alone don&#8217;t prove a feature does what we agreed. Last time I walked through the loop it runs for every change on CompleteCoach. This one&#8217;s about the verify box in the middle, why I can merge at this pace without reading every diff, and where it still misses. Because it does.</p><p>Here&#8217;s my own sketch of how the verify step works:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:null}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">flowchart TD
    R[Accepted request: criteria + intent] --&gt; V{Verify each criterion}
    V --&gt;|expected = actual, with source| W{Whole intent met?}
    V --&gt;|product defect| B[Back to build, same owner]
    V --&gt;|proof missing| P[Same owner gathers proof, contract unchanged]
    P --&gt; V
    W --&gt;|yes| D[Docs + PR, report to human]
    W --&gt;|scope or test gap| G[Back to request/design decision]
    B --&gt; V
    D --&gt; C[Coaches use it, issues logged]
    C --&gt; R</code></pre></div><p></p>
      <p>
          <a href="https://archonhq.ai/p/green-ticks-arent-proof">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[The boring kit behind my PR pace]]></title><description><![CDATA[I get asked a lot how one person merges nearly 600 PRs a month.]]></description><link>https://archonhq.ai/p/the-boring-kit-behind-my-pr-pace</link><guid isPermaLink="false">https://archonhq.ai/p/the-boring-kit-behind-my-pr-pace</guid><dc:creator><![CDATA[Michal Szalinski]]></dc:creator><pubDate>Thu, 05 Nov 2026 21:15:57 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!bsVd!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5cf2768-182d-45aa-b069-a501d9248515_1500x600.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!bsVd!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5cf2768-182d-45aa-b069-a501d9248515_1500x600.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!bsVd!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5cf2768-182d-45aa-b069-a501d9248515_1500x600.png 424w, https://substackcdn.com/image/fetch/$s_!bsVd!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5cf2768-182d-45aa-b069-a501d9248515_1500x600.png 848w, https://substackcdn.com/image/fetch/$s_!bsVd!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5cf2768-182d-45aa-b069-a501d9248515_1500x600.png 1272w, https://substackcdn.com/image/fetch/$s_!bsVd!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5cf2768-182d-45aa-b069-a501d9248515_1500x600.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!bsVd!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5cf2768-182d-45aa-b069-a501d9248515_1500x600.png" width="1456" height="582" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b5cf2768-182d-45aa-b069-a501d9248515_1500x600.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:582,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:633251,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://archonhq.ai/i/223685450?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5cf2768-182d-45aa-b069-a501d9248515_1500x600.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!bsVd!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5cf2768-182d-45aa-b069-a501d9248515_1500x600.png 424w, https://substackcdn.com/image/fetch/$s_!bsVd!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5cf2768-182d-45aa-b069-a501d9248515_1500x600.png 848w, https://substackcdn.com/image/fetch/$s_!bsVd!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5cf2768-182d-45aa-b069-a501d9248515_1500x600.png 1272w, https://substackcdn.com/image/fetch/$s_!bsVd!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5cf2768-182d-45aa-b069-a501d9248515_1500x600.png 1456w" sizes="100vw" fetchpriority="high"></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><p>I get asked a lot how one person merges nearly 600 PRs a month. Fair enough, I&#8217;d ask too. And the answer&#8217;s a bit of a letdown really... there&#8217;s no secret prompt or magic model, just a fairly dull repo called dev-stack that sits under everything I do on CompleteCoach. It&#8217;s the core of how I work now. Not perfect, and it still misses things, but it beats handcrafting every change by miles.</p><p>It&#8217;s a delivery kit for coding agents that lives in the project. Me and an agent agree on a readable request and a design, the agent builds against those, tests it, and then has to prove the whole thing works before anyone&#8217;s allowed to say done. I change the kit in one place, ship a reviewed release, the project picks it up. Early on I kept tweaking rules inside the project and wondering why they drifted, like adjusting the seat in a hire car and being surprised it&#8217;s wrong again next week. If you want a poke around, there&#8217;s an <a href="https://github.com/MikeS071/dev-stack">older public version on GitHub</a>. The one I run now has moved on a fair bit since, but the bones are there.</p><p></p><h2></h2>
      <p>
          <a href="https://archonhq.ai/p/the-boring-kit-behind-my-pr-pace">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[How I merge nearly 600 PRs a month solo with AI agents]]></title><description><![CDATA[In the last 30 days, 575 pull requests merged into CompleteCoach.]]></description><link>https://archonhq.ai/p/how-i-merge-nearly-600-prs-a-month</link><guid isPermaLink="false">https://archonhq.ai/p/how-i-merge-nearly-600-prs-a-month</guid><dc:creator><![CDATA[Michal Szalinski]]></dc:creator><pubDate>Sat, 31 Oct 2026 23:15:25 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!yPZd!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15671e40-f05a-48ba-a740-244665abdcbb_1500x600.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!yPZd!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15671e40-f05a-48ba-a740-244665abdcbb_1500x600.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!yPZd!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15671e40-f05a-48ba-a740-244665abdcbb_1500x600.png 424w, https://substackcdn.com/image/fetch/$s_!yPZd!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15671e40-f05a-48ba-a740-244665abdcbb_1500x600.png 848w, https://substackcdn.com/image/fetch/$s_!yPZd!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15671e40-f05a-48ba-a740-244665abdcbb_1500x600.png 1272w, https://substackcdn.com/image/fetch/$s_!yPZd!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15671e40-f05a-48ba-a740-244665abdcbb_1500x600.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!yPZd!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15671e40-f05a-48ba-a740-244665abdcbb_1500x600.png" width="1456" height="582" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/15671e40-f05a-48ba-a740-244665abdcbb_1500x600.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:582,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:656724,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://archonhq.ai/i/222974457?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15671e40-f05a-48ba-a740-244665abdcbb_1500x600.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!yPZd!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15671e40-f05a-48ba-a740-244665abdcbb_1500x600.png 424w, https://substackcdn.com/image/fetch/$s_!yPZd!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15671e40-f05a-48ba-a740-244665abdcbb_1500x600.png 848w, https://substackcdn.com/image/fetch/$s_!yPZd!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15671e40-f05a-48ba-a740-244665abdcbb_1500x600.png 1272w, https://substackcdn.com/image/fetch/$s_!yPZd!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15671e40-f05a-48ba-a740-244665abdcbb_1500x600.png 1456w" sizes="100vw" fetchpriority="high"></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>In the last 30 days, 575 pull requests merged into CompleteCoach. The median time from a PR opening to it merging was 32 minutes. And 99.4% of merged PRs had green checks on their final commit.</p><p>Since August it&#8217;s been me and a team of AI agents.</p><p>I don&#8217;t type most of the code, and I don&#8217;t read every diff. Sounds reckless, I know. It&#8217;s less reckless once you see where the review went. So here&#8217;s the setup, the numbers behind it, and the bits that broke along the way.</p><h2>The numbers</h2><p>All of this comes straight from the GitHub repo, pulled on 1 November:</p><ul><li><p>575 PRs merged in the last 30 days, the best 30-day window the repo has had.</p></li><li><p>589 merged in October, the best calendar month so far. Call it 600 if you squint.</p></li><li><p>Peak week, 19 to 25 October: 238 merged. That&#8217;s about a 1,000-a-month pace, for one week.</p></li><li><p>Median 32 minutes from open to merge. 64% of merged PRs landed within an hour.</p></li><li><p>99.4% green checks; 878 of 883 merged PRs.</p></li><li><p>25 releases in 13 days, from v0.2.0 on 18 October to v0.6.0 on 30 October.</p></li><li><p>Test files went from about 200 to nearly 1,200 between 31 August and 1 November.</p></li></ul><p>First, a correction. I once posted &#8220;1,000+ PRs a month&#8221;. When I actually pulled the data, that only held for the peak week. No calendar month has hit it. Agents are great at producing output, but you still have to measure it honestly, and that includes measuring yourself. Turns out I&#8217;d been quoting my lap record as my average.</p><h2>The method</h2><p>The whole thing rests on one shift: I approve intent, not code.</p><p>If one person reviews every diff from a team of agents, that person becomes the bottleneck. Approving intent takes minutes. Reviewing a big PR properly takes an hour. So I put my attention where it does the most good.</p><p>Step 1: a request and design pair</p><p>Every piece of work starts with two documents. The request says what I want and why, in plain language, and ends with acceptance criteria; the exact things that have to be true before the work counts as done. The design maps that onto the product: which screens, which data, who&#8217;s involved and what each of them can do.</p><p>The acceptance criteria matter more than anything else in the request. They&#8217;re how the agents know they&#8217;ve finished, and they&#8217;re what verification checks against later.</p><p>I took this request/design pairing from @poteto. What it really does is get the intent written down before any code exists. Most agent failures I&#8217;ve seen aren&#8217;t bad code. They&#8217;re good code that does the wrong thing. Agents rarely refuse to build something; they just confidently build what they think you meant.</p><p>Step 2: interactive mockups of the real app</p><p>Next, Claude Code turns the design into a clickable mockup of the actual app, not a wireframe. I click through it the way a coach would and see how my intent turns into screens and flows.</p><p>This is where misunderstandings show up, while they cost a paragraph to fix instead of a PR. If a flow feels wrong, I change the design and the mockup regenerates. Rejecting a mockup takes me minutes. Rejecting a finished feature means a rebuild and another full review.</p><p>Step 3: the team builds, tests, fixes and verifies</p><p>Once I approve the mockup, the agents take it from there. They build it, write the tests and fix what fails. I&#8217;m not in that loop. I only step in for two things: key decisions and genuine ambiguity.</p><p>Verification is where most of the safety comes from. From the request, the design and the acceptance criteria, the process generates a use case matrix: every actor, every path, and the edge cases that matter. Two it&#8217;s caught so far: a to-do list that was meant to show only your own items but showed everyone&#8217;s in your organisation, and a meal plan that didn&#8217;t save all of its items. An agent then works through that matrix in a real browser on staging, end to end. It&#8217;s basically user acceptance testing on every feature, and it catches the stuff that would otherwise bite us in production.</p><p>Step 4: gates instead of reviews</p><p>The speed is only safe because of the gates. These are the ones that matter:</p><ul><li><p>Nothing merges without green checks. That&#8217;s how 878 of 883 merged PRs ended up green.</p></li><li><p>CompleteCoach now runs on a state machine for every PR. It makes sure each PR is in the right state and actually complete, and when there&#8217;s a gap, my AI team has to go fill it before the PR moves on. Nobody gets to wave it through, me included.</p></li><li><p>A pre-merge check script runs on every PR that&#8217;s about to merge. It validates the PR and fixes what it can deterministically, before an agent has to burn time on it. That saves time, gets more merges through first go and stops problems leaking into other work.</p></li><li><p>Agents merge to staging, not production. 818 merged PRs went into staging. Production only moves through release PRs, and each one needs my yes. There have been 65 of those so far.</p></li><li><p>Risky changes get labelled and routed to me. Security, tenant boundaries and database migrations each have their own label, so I see them before they ship.</p></li></ul><p>Writing code is cheap now. The engineering is in the gates.</p><h2>What broke, and what fixed it</h2><p>None of this worked first time. These are the lessons that changed the setup.</p><p>Reviewing diffs didn&#8217;t scale. Early on I tried to read everything. Once PR volume climbed I was the slowest part of the system, and the least reliable too, because nobody reviews well on their 40th PR of the day. Fix: move review upstream to the request, design and mockup, and let the checks and the verifier handle the diff.</p><p>Parallel agents collided. Once several agents were working at the same time, they started tripping over each other; two going after the same work, or merging and deploying on top of one another. Think pit crew with everyone grabbing the same wheel. Fix: one controller agent hands out the work, and every merge and deploy has to take a slot from it. The agents still run in parallel, but merges and deploys queue up one at a time.</p><p>Agents tracked state by hand, and it drifted. They&#8217;ll happily carry state around forever if you let them, and sooner or later something gets dropped. Fix: the state machine above. State gets derived and checked, not remembered, and gaps get sent back to the team to fill.</p><p>Agents assumed everyone sits at the same screen. This one surprised me. When an action needed a second person&#8217;s approval, the agent would pop a modal right there, which is fine if the approver is sitting next to you. A coach and a client are rarely in the same room, and often not on the same continent. Fix: I taught the agents about the physical world. Now the design starts with who needs to act, where they are and which channel reaches them, then builds the handoff as a message or email with one clear action, plus a state that waits for the answer. Approval flows went from an afterthought to the first thing the agents plan.</p><p>Speed produced hotfixes. 48 of the 883 merged PRs were hotfixes, about 5%. That&#8217;s the cost of moving this fast, and it&#8217;s why staging and release PRs exist. A bad change usually gets caught on staging long before a release PR reaches me.</p><p>Not every attempt deserves to merge. 103 PRs were closed without merging, and none of the 20 PRs from one batch of experimental agent branches made it in. Closing work is part of the system working. If everything an agent opened got merged, I&#8217;d be worried.</p><h2>Lessons for builders</h2><ol><li><p>Approve intent, not diffs. Put your attention on what gets built and let automation check how.</p></li><li><p>Make the agents show you before they build. An interactive mockup is the cheapest place to find out you were misunderstood.</p></li><li><p>Write acceptance criteria first, then test against them. Turn them into a use case matrix and verify it in a real browser. Unit tests tell you the code works; the matrix tells you the product works.</p></li><li><p>Give parallel agents one traffic controller. Running in parallel is where the speed comes from. Merging in parallel is where things break.</p></li><li><p>Don&#8217;t let agents carry state in their heads. Put it in a state machine and make them fill the gaps.</p></li><li><p>Gate production behind a human yes. Agents can merge to staging all day. Production should only move when you say so.</p></li><li><p>Tell agents about the real world. They know screens, not distance. Spell out who the actors are and where they are, and the design follows.</p></li><li><p>Measure honestly. Pull the real numbers before you post them. Mine were good enough without rounding up.</p></li><li><p>Grow the tests with the code. Test files went up nearly 6x in two months. Make tests part of done, not an extra.</p></li></ol><h2>What I&#8217;m building</h2><p>All of this goes into CompleteCoach, coaching software for online fitness coaches, PTs and nutritionists. It covers programs, nutrition, check-ins and client messaging, plus the business side: CRM, tasks and team.</p><p>Next up is Aura, coming soon to CompleteCoach. Aura will read each client&#8217;s weekly check-in alongside their recent history and give the coach a one-minute read on progress, follow-up priority, data confidence and engagement risk. The coach still makes every decision. We&#8217;re designing it with the same intent-first process I&#8217;ve described above.</p><p>If you coach for a living, come find us at completecoach.fit.</p>]]></content:encoded></item><item><title><![CDATA[Why Your AI Agent Works in Dev and Breaks in Prod]]></title><description><![CDATA[The most predictable failure mode in AI engineering: the dev-to-prod gap.]]></description><link>https://archonhq.ai/p/why-your-ai-agent-works-in-dev-and</link><guid isPermaLink="false">https://archonhq.ai/p/why-your-ai-agent-works-in-dev-and</guid><dc:creator><![CDATA[Michal Szalinski]]></dc:creator><pubDate>Sun, 07 Jun 2026 21:15:10 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!eW8f!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe67a6b58-fe74-4ad0-99cf-4bb80c13628a_1920x1080.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!eW8f!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe67a6b58-fe74-4ad0-99cf-4bb80c13628a_1920x1080.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!eW8f!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe67a6b58-fe74-4ad0-99cf-4bb80c13628a_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!eW8f!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe67a6b58-fe74-4ad0-99cf-4bb80c13628a_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!eW8f!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe67a6b58-fe74-4ad0-99cf-4bb80c13628a_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!eW8f!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe67a6b58-fe74-4ad0-99cf-4bb80c13628a_1920x1080.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!eW8f!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe67a6b58-fe74-4ad0-99cf-4bb80c13628a_1920x1080.png" width="1456" height="819" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e67a6b58-fe74-4ad0-99cf-4bb80c13628a_1920x1080.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:819,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2491805,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://archonhq.ai/i/200246374?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe67a6b58-fe74-4ad0-99cf-4bb80c13628a_1920x1080.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!eW8f!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe67a6b58-fe74-4ad0-99cf-4bb80c13628a_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!eW8f!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe67a6b58-fe74-4ad0-99cf-4bb80c13628a_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!eW8f!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe67a6b58-fe74-4ad0-99cf-4bb80c13628a_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!eW8f!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe67a6b58-fe74-4ad0-99cf-4bb80c13628a_1920x1080.png 1456w" sizes="100vw" fetchpriority="high"></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>Your agent nailed every test case. You shipped it. Within 48 hours, users report hallucinated outputs, silently dropped tool calls, and responses that bear zero resemblance to what worked on your machine. You reload the same prompt locally. It works perfectly. Welcome to the most predictable failure mode in AI engineering: the dev-to-prod gap.</p><p>This is Crucible C01. We dissect the five failure modes that kill agents in production and give you the tools to catch them before your users do.</p><h2>The Idea (60 Seconds)</h2><p>Developers test agents in idealized conditions: deterministic inputs, warm context windows, generous API latency budgets, and sequential tool calls. Production exposes the opposite environment: cold starts strip context, rate limits compress timing, and parallel calls introduce race conditions. The agent that performed flawlessly at temperature 0 on a 2k-token context window collapses at temperature 0.7 on an 8k-token window.</p><p>The five failure modes are temperature drift and context window overflow first; silent API errors and prompt drift follow; race conditions complete the set. Each one has a detection pattern and a fix, and this article delivers both plus the CLI tool to automate the detection.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://archonhq.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">ArchonHQ is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>Why This Matters</h2><p>AI agent failures differ from traditional software failures in one critical way: they are stochastic. A web API either returns 200 or 500. An AI agent returns something that looks plausible 90% of the time and is catastrophically wrong 10% of the time. That 10% is invisible in manual testing and devastating in production.</p><p>The economics compound fast because every failed agent interaction wastes tokens, and wasted tokens cost money. At scale, a subtly broken agent burns budget faster than a working one because it retries, loops, and rephrases instead of succeeding. A single temperature drift bug can double your API spend.</p><p>Reliability is the differentiator. The market is flooding with AI wrappers. The ones that survive will be the ones that work consistently, under load, with real user inputs. Crucible exists to make your agent one of the survivors.</p><h2>Walkthrough</h2><h3>Mode 1: Temperature Drift</h3><p><strong>Detection pattern:</strong> Run the same prompt at your dev temperature and your prod temperature. Hash the outputs. Hash divergence signals drift.</p><p><strong>The fix:</strong> Pin temperature to 0 in both environments. If you need sampling variance for creativity, isolate it to a single generation step and wrap the rest of the pipeline in deterministic calls. Document the temperature in your agent config file. Treat it like a database connection string: an infrastructure parameter, always explicit, zero room for runtime guesses.</p><h3>Mode 2: Context Window Overflow</h3><p><strong>Detection pattern:</strong> Instrument your agent to log cumulative token count per conversation. When it crosses 75% of your model&#8217;s context limit, flag the conversation. Watch for truncated outputs, repeated phrases, or instructions that the model appears to have forgotten.</p><p><strong>The fix:</strong> Implement a context compaction strategy. Summarize older turns and replace them with a compressed summary token block. Set hard token budgets per turn and per conversation. When the budget is exhausted, either summarize or start a fresh context window with a recovery prompt that preserves the task state.</p><h3>Mode 3: Silent API Errors</h3><p><strong>Detection pattern:</strong> Log every API call&#8217;s HTTP status code and response body. Count calls that return non-200 statuses. If your agent has retry logic, log whether the retry succeeded. A pattern of failed retries with continued execution signals swallowed errors.</p><p><strong>The fix:</strong> Treat API errors as hard failures by default. Wrap every API call in a circuit breaker that halts the agent on persistent errors. Log the error, notify the orchestrator, and return a structured failure to the caller. Silent continuation on error state is the single most dangerous production behavior in any agent system.</p><h3>Mode 4: Prompt Drift</h3><p><strong>Detection pattern:</strong> Version your system prompts. On every agent run, hash the active prompt and compare it to the canonical hash. When outputs diverge between runs, diff the prompt versions first.</p><p><strong>The fix:</strong> Lock system prompts in version control. Deploy prompt changes through the same review pipeline as code changes. Run regression tests: execute a benchmark suite against the old prompt, then the new prompt, and diff the results. Any change that shifts more than 10% of benchmark outputs requires manual review.</p><h3>Mode 5: Race Conditions in Parallel Tool Calls</h3><p><strong>Detection pattern:</strong> Enable request-order logging. When your agent dispatches parallel calls, log the dispatch order and the completion order. Any inversion signals a potential race condition.</p><p><strong>The fix:</strong> Avoid parallel tool calls unless you can guarantee idempotent, order-independent results. When parallelism is necessary, implement a reconciliation step that sorts responses by a sequence token before the agent processes them. Better yet, use a deterministic execution model: serialize all tool calls, accept the latency cost, and gain correctness.</p><h2>The Prompt Toolkit</h2><h3>1. Agent Failure Analyst Prompt</h3><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;a28a7bfd-53f6-49ba-9b73-3e42e01280ea&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">&lt;role&gt;
You are an Agent Failure Analyst for the Crucible diagnostic framework.
&lt;/role&gt;

&lt;input&gt;
  &lt;agent_architecture&gt;
    {{AGENT_ARCHITECTURE_DESCRIPTION}}
  &lt;/agent_architecture&gt;
  &lt;failure_scenario&gt;
    {{FAILURE_SCENARIO_DESCRIPTION}}
  &lt;/failure_scenario&gt;
&lt;/input&gt;

&lt;task&gt;
Analyze the agent architecture against the failure scenario. Identify which of the six failure modes are present or likely:

1. temperature_drift , Dev and prod temperature settings diverge.
2. context_overflow , Token count exceeds model context limit.
3. token_limit , Response truncation due to max_tokens ceiling.
4. prompt_drift , System prompt edits propagate uncontrolled cascading changes.
5. api_latency , Timeouts or rate limits cause silent failures.
6. race_condition , Parallel tool calls return out of order.

For each identified failure mode, provide:
- evidence: Specific architectural features or scenario details that indicate this mode.
- severity: critical, high, medium, low.
- reproduction_steps: Exact sequence to trigger the failure.
- fix_strategy: Concrete architectural change to eliminate the failure mode.
&lt;/task&gt;

&lt;output_format&gt;
&lt;analysis&gt;
  &lt;failure_mode name="..." present="true|false"&gt;
    &lt;evidence&gt;...&lt;/evidence&gt;
    &lt;severity&gt;...&lt;/severity&gt;
    &lt;reproduction_steps&gt;
      &lt;step order="1"&gt;...&lt;/step&gt;
      &lt;step order="2"&gt;...&lt;/step&gt;
    &lt;/reproduction_steps&gt;
    &lt;fix_strategy&gt;...&lt;/fix_strategy&gt;
  &lt;/failure_mode&gt;
  &lt;summary&gt;...&lt;/summary&gt;
  &lt;priority_fixes&gt;
    &lt;fix order="1"&gt;...&lt;/fix&gt;
    &lt;fix order="2"&gt;...&lt;/fix&gt;
  &lt;/priority_fixes&gt;
&lt;/analysis&gt;
&lt;/output_format&gt;
</code></pre></div><h3>2. agentprobe CLI</h3><p>The <code>agentprobe</code> command-line tool scans your agent configuration for common failure modes, traces live runs with full instrumentation, diffs two runs to locate divergence points, and replays failed traces to test determinism.</p><p><strong>Install and run:</strong></p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;b48da799-26c1-45aa-aa01-0c0a76f1feb2&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">cp agentprobe.py /usr/local/bin/agentprobe
chmod +x /usr/local/bin/agentprobe
agentprobe scan --config agent_config.json
agentprobe trace --config agent_config.json --prompt "Analyze the Q3 report"
agentprobe diff --run-a trace_001.json --run-b trace_002.json
agentprobe replay --trace trace_001.json
</code></pre></div><p>Download: <a href="https://drive.google.com/file/d/1DV4kofQ9ZX5WIvLDYyJ-0ea9EDTaXHx4/view?usp=drive_link">agentprobe.py</a></p><h2>Caveats</h2><p>The five failure modes cover the most common production breakdowns, yet they remain an incomplete set. Model-specific quirks, provider-specific rate limit architectures, and custom orchestration logic introduce failure modes unique to your stack. Treat these five as your baseline scan, then extend the detection patterns to match your architecture.</p><p>The <code>agentprobe</code> tool instruments API calls and logs token counts, yet it relies on the provider reporting accurate token usage. Some providers approximate. Cross-check token counts against your own tokenizer when precision matters.</p><p>Determinism is a spectrum, all-or-zero. Temperature 0 reduces variance dramatically, yet even at temperature 0, some models exhibit minor non-determinism due to floating-point accumulation differences across hardware. Replay results that match 99% of tokens are as good as deterministic for practical purposes.</p><h2>Philosophy</h2><p>The Crucible stance: test in conditions that match production, or accept production failures as inevitable. Every shortcut in your testing pipeline compounds into a failure in your production pipeline. Agents are stochastic systems. Stochastic systems demand systematic testing, systematic observation, and systematic repair.</p><p>The dev-to-prod gap is avoidable. It requires treating your agent&#8217;s non-determinism as a first-class engineering concern, designing for the worst case from day one, and instrumenting everything. The tools in this article automate the detection. The fixes are architectural. The discipline is yours.</p><div><hr></div><p><em>Crucible C01 is the first article in the Crucible Series by ArchonHQ. Each article dissects a specific AI agent failure mode and delivers the prompts and tools to eliminate it. <a href="#">Subscribe for full access to the series.</a></em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://archonhq.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://archonhq.ai/subscribe?"><span>Subscribe now</span></a></p><p></p>]]></content:encoded></item><item><title><![CDATA[Build Your Own MCP Server from Scratch]]></title><description><![CDATA[Every AI agent ships with the same bottleneck: it can only reason over what it can reach. MCP servers dissolve that boundary.]]></description><link>https://archonhq.ai/p/build-your-own-mcp-server-from-scratch</link><guid isPermaLink="false">https://archonhq.ai/p/build-your-own-mcp-server-from-scratch</guid><dc:creator><![CDATA[Michal Szalinski]]></dc:creator><pubDate>Thu, 04 Jun 2026 21:15:53 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!MFLO!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2d965e45-5abd-4f06-a005-7e1c3f0628da_1920x1080.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!MFLO!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2d965e45-5abd-4f06-a005-7e1c3f0628da_1920x1080.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!MFLO!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2d965e45-5abd-4f06-a005-7e1c3f0628da_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!MFLO!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2d965e45-5abd-4f06-a005-7e1c3f0628da_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!MFLO!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2d965e45-5abd-4f06-a005-7e1c3f0628da_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!MFLO!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2d965e45-5abd-4f06-a005-7e1c3f0628da_1920x1080.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!MFLO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2d965e45-5abd-4f06-a005-7e1c3f0628da_1920x1080.png" width="1456" height="819" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2d965e45-5abd-4f06-a005-7e1c3f0628da_1920x1080.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:819,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2386988,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://archonhq.ai/i/200245222?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2d965e45-5abd-4f06-a005-7e1c3f0628da_1920x1080.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!MFLO!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2d965e45-5abd-4f06-a005-7e1c3f0628da_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!MFLO!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2d965e45-5abd-4f06-a005-7e1c3f0628da_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!MFLO!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2d965e45-5abd-4f06-a005-7e1c3f0628da_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!MFLO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2d965e45-5abd-4f06-a005-7e1c3f0628da_1920x1080.png 1456w" sizes="100vw" fetchpriority="high"></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>Every AI agent ships with the same bottleneck: it can only reason over what it can reach. MCP servers dissolve that boundary. They expose tools, resources, and prompts to any compliant client over a JSON-RPC wire format so lean you can implement it in an afternoon. Yet most developers grab a framework, copy a template, and ship something they can barely debug. Forge starts differently. You will build an MCP server from the bare protocol up, understand every byte on the wire, and gain the mental model that makes every future server trivial.</p><h2>The Idea (60 Seconds)</h2><p>MCP is a JSON-RPC 2.0 protocol. A client sends a request. Your server returns a response. Three request types power the core loop:</p><ul><li><p><code>initialize</code> , handshake. Client and server exchange capabilities.</p></li><li><p><code>tools/list</code> , discovery. Server returns every tool it offers, each with a JSON Schema describing its inputs.</p></li><li><p><code>tools/call</code> , execution. Client names a tool and passes arguments. Server runs the handler and returns structured content.</p></li></ul><p>Transport is either <strong>stdio</strong> (JSON-RPC over stdin/stdout) or <strong>HTTP</strong> (Streamable HTTP). Stdio is the simplest place to start: read a line from stdin, parse it, dispatch, write a line to stdout.</p><p>That is the entire architecture. Everything else is error handling, schema validation, and ergonomics.</p><h2>Why This Matters</h2><p>MCP servers are the new APIs. Where REST gave machines endpoints, MCP gives agents tools with typed inputs and structured outputs. Every integration layer from IDE assistants to autonomous workflows converges on this protocol. The standard is young. The primitives are stable. The surface area is small enough to hold in your head all at once.</p><p>Knowing the wire format gives you three advantages frameworks obscure:</p><ol><li><p><strong>Debugging</strong> , when a tool call fails, you can read the raw JSON-RPC message and pinpoint the fault in seconds.</p></li><li><p><strong>Portability</strong> , any language, any runtime, any transport. Write a server in Bash if you want. The protocol is the contract.</p></li><li><p><strong>Evolution</strong>, MCP will add capabilities. Understanding the base protocol lets you adopt new features by extension, always, sidestepping full rewrites.</p></li></ol><p>Forge articles build on this foundation. If you understand the three core requests and the JSON-RPC envelope, every subsequent pattern is just a new handler.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://archonhq.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">ArchonHQ is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>Walkthrough</h2><h3>The JSON-RPC Envelope</h3><p>Every message shares the same shape:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;2eef599e-5121-46c5-beda-2144a382fac9&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_weather",
    "arguments": { "city": "Portland" }
  }
}
</code></pre></div><p>The response mirrors it:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;04e6baaa-822c-45ea-b95b-bdfc8821b563&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      { "type": "text", "text": "72&#176;F, clear skies" }
    ]
  }
}
</code></pre></div><p>Errors swap <code>result</code> for <code>error</code>:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;4d678f19-c4d9-4c01-9401-8416c709834c&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32602,
    "message": "Invalid params: missing 'city'"
  }
}
</code></pre></div><p>Three fields matter: <code>jsonrpc</code> (always <code>"2.0"</code>), <code>id</code> (correlates request to response), and <code>method</code> (the dispatch key).</p><h3>Tool Schema Design</h3><p>Each tool advertises itself through a JSON Schema object. A well-designed schema is the difference between a tool agents use and one they fumble.</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;499d2219-ce53-483b-a4c2-7724636650f6&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">{
  "name": "get_weather",
  "description": "Retrieve current weather for a given city",
  "inputSchema": {
    "type": "object",
    "properties": {
      "city": {
        "type": "string",
        "description": "City name, e.g. Portland"
      }
    },
    "required": ["city"]
  }
}
</code></pre></div><p>Rules for effective schemas:</p><ul><li><p>Mark every required parameter in <code>required</code>. Agents rely on this to construct valid calls.</p></li><li><p>Add <code>description</code> to each property. The agent reads descriptions to decide <em>which</em> tool to invoke and <em>what</em> values to pass.</p></li><li><p>Use <code>enum</code> for constrained values. This prevents hallucinated inputs.</p></li><li><p>Keep schemas flat. Nested objects are valid but harder for agents to populate correctly.</p></li></ul><h3>The Request Lifecycle</h3><p>Your server runs a loop:</p><p>Step Action 1 Read a JSON-RPC line from stdin 2 Parse the <code>method</code> 3 Dispatch to the matching handler 4 Handler returns a result or raises an error 5 Serialize the response to JSON 6 Write it to stdout</p><p>In Python with asyncio:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;a1491130-3aef-45d0-a8ff-3d984bcec756&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">async def handle_message(message):
    method = message.get("method")
    if method == "initialize":
        return {"capabilities": {"tools": {}}}
    elif method == "tools/list":
        return {"tools": list_tools()}
    elif method == "tools/call":
        return await call_tool(message["params"])
    else:
        return {"error": {"code": -32601, "message": f"Method {method} unseen"}}
</code></pre></div><h3>Building the Server</h3><p>Start with the <code>mcpbuild</code> CLI. Run <code>mcpbuild init my-server</code> and you get a project scaffold:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;c7583d7f-9dd9-4573-9b9a-fb943a80ea04&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">my-server/
  pyproject.toml
  server.py
  tools/
    __init__.py
</code></pre></div><p><code>server.py</code> contains the JSON-RPC read loop and dispatch table. Each tool is a function registered by name. The <code>add-tool</code> command generates a stub handler and appends the tool schema to the registry. The <code>run</code> command boots the server on stdio (default) or HTTP transport.</p><p>The full CLI ships with this article. Download it, make it executable, and build your first MCP server in minutes.</p><h2>The Prompt Toolkit</h2><h3>MCP Server Architect Prompt</h3><p>Feed this prompt a server concept. Get back a complete specification ready for implementation.</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;7ae12491-5878-4300-b695-e64f4c4de284&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">&lt;prompt&gt;
&lt;role&gt;You are an MCP Server Architect. You produce complete MCP server specifications from a concept description.&lt;/role&gt;
&lt;input&gt;
{{SERVER_CONCEPT}}
&lt;/input&gt;
&lt;output_format&gt;
Return a specification with these sections:

1. **Server Identity**: name, version, description
2. **Tools**: For each tool, provide:
   - name (snake_case)
   - description (one sentence, action verb)
   - inputSchema (valid JSON Schema, flat preferred)
   - output shape (content types returned)
   - error cases (expected failure modes)
3. **Transport**: stdio or HTTP with rationale
4. **Auth**: required or none; if required, specify mechanism (API key header, OAuth scope, etc.)
5. **Error Handling Strategy**: per-tool error codes, fallback behavior, logging approach
&lt;/output_format&gt;
&lt;constraints&gt;
- Every tool must have a description an agent can use for tool selection.
- Every inputSchema must include property-level descriptions.
- Prefer enum constraints over free-text where values are bounded.
- Transport choice must include latency and deployment context rationale.
- Error codes must use JSON-RPC standard codes where applicable (-32600, -32601, -32602) and custom codes in the -32000 to -32099 range for server-specific errors.
&lt;/constraints&gt;
&lt;/prompt&gt;
</code></pre></div><h3>mcpbuild CLI</h3><p>The <code>mcpbuild</code> CLI scaffolds, runs, and validates MCP servers from the terminal. Five commands cover the full lifecycle:</p><p>Command Description <code>init &lt;name&gt;</code> Scaffold a new MCP server project with <code>pyproject.toml</code>, <code>server.py</code>, and tool stubs <code>add-tool</code> Interactive: enter tool name, description, and input schema JSON; generates a handler stub and registers the tool <code>run</code> Start the server (defaults to stdio transport; pass <code>--transport http --port 8080</code> for HTTP) <code>validate</code> Check the server against the MCP spec: tool schemas are valid JSON Schema, error handlers exist for every tool, transport config is sound <code>test</code> Send test <code>tools/list</code> and <code>tools/call</code> messages to a running server and verify responses match the spec</p><p>Download the full implementation below. Single file, zero dependencies beyond the standard library and asyncio.</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;f21afd39-266e-48c4-ad79-9542733a39ab&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext"># Download
curl -O https://drive.google.com/file/d/1b1WFnBv0ZYcgQEW8KIVOKQtDzEKjPotm/view?usp=drive_link</code></pre></div><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;f21afd39-266e-48c4-ad79-9542733a39ab&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">
chmod +x mcpbuild.py

# Scaffold a project
./mcpbuild.py init weather-server

# Add a tool interactively
cd weather-server
../mcpbuild.py add-tool

# Run on stdio
../mcpbuild.py run

# Validate
../mcpbuild.py validate

# Test against a running server
../mcpbuild.py test
</code></pre></div><p>The CLI is a single Python file. Read it, modify it, make it yours. It uses raw JSON-RPC over stdio so you see exactly what flows between client and server.</p><h2>Caveats</h2><p>MCP is evolving. The spec adds capabilities and the reference implementations shift. The wire format is stable, but higher-level features like sampling, elicitation, and structured logging may change. Build on the core three methods (<code>initialize</code>, <code>tools/list</code>, <code>tools/call</code>) and you stay safe.</p><p>Stdio transport pairs with process-based hosting (Claude Desktop, IDE extensions). HTTP transport pairs with remote hosting. Pick the one that matches your deployment. Mixing both in one server adds complexity best reserved for later.</p><p>Schema validation is your first line of defense. Validate every incoming <code>tools/call</code> against the tool&#8217;s <code>inputSchema</code> before the handler runs. Reject early with a <code>-32602</code> Invalid params error. This prevents malformed data from reaching your business logic.</p><h2>Philosophy</h2><p>Forge believes in building on the protocol, around it. Frameworks accelerate while protocols ground. When you understand the JSON-RPC message format, the dispatch table, and the schema contract, frameworks become optional convenience rather than required dependency, letting you debug faster, ship leaner, and adapt when the spec evolves.</p><p>The best MCP server is the one you can explain on a whiteboard. Tool schema in, content out. Everything else is detail.</p><div><hr></div><p><em>This is F01 in the ArchonHQ Forge Series. The next article, F02, covers tool schema design patterns that make agents invoke your tools correctly on the first try. Subscribe to ArchonHQ to unlock every Forge article, CLI tool, and prompt kit.</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://archonhq.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://archonhq.ai/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item><item><title><![CDATA[Build Your Own Private RAG Knowledge Base]]></title><description><![CDATA[A fully functional RAG system that sends zero bytes to external services]]></description><link>https://archonhq.ai/p/build-your-own-private-rag-knowledge</link><guid isPermaLink="false">https://archonhq.ai/p/build-your-own-private-rag-knowledge</guid><dc:creator><![CDATA[Michal Szalinski]]></dc:creator><pubDate>Tue, 02 Jun 2026 21:11:54 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!JGzu!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32d91fe4-d0fb-4ab7-81ce-df13bdd6dd75_1920x1080.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!JGzu!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32d91fe4-d0fb-4ab7-81ce-df13bdd6dd75_1920x1080.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!JGzu!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32d91fe4-d0fb-4ab7-81ce-df13bdd6dd75_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!JGzu!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32d91fe4-d0fb-4ab7-81ce-df13bdd6dd75_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!JGzu!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32d91fe4-d0fb-4ab7-81ce-df13bdd6dd75_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!JGzu!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32d91fe4-d0fb-4ab7-81ce-df13bdd6dd75_1920x1080.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!JGzu!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32d91fe4-d0fb-4ab7-81ce-df13bdd6dd75_1920x1080.png" width="1456" height="819" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/32d91fe4-d0fb-4ab7-81ce-df13bdd6dd75_1920x1080.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:819,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2613077,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://archonhq.ai/i/200243930?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32d91fe4-d0fb-4ab7-81ce-df13bdd6dd75_1920x1080.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!JGzu!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32d91fe4-d0fb-4ab7-81ce-df13bdd6dd75_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!JGzu!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32d91fe4-d0fb-4ab7-81ce-df13bdd6dd75_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!JGzu!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32d91fe4-d0fb-4ab7-81ce-df13bdd6dd75_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!JGzu!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32d91fe4-d0fb-4ab7-81ce-df13bdd6dd75_1920x1080.png 1456w" sizes="100vw" fetchpriority="high"></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>Every query you send to a cloud RAG service leaves your perimeter. Your documents, your questions, your retrieved context, all of it traverses networks you control, stored on servers you trust, accessible to compliance teams you have yet to meet. The convenience is seductive and the cost is invisible until it becomes painfully visible. Bastion builds differently: your knowledge base stays on your hardware, your embeddings stay local, and your audit trail stays complete. This article gives you the architecture and the tooling to run Retrieval Augmented Generation entirely on your own terms.</p><h2>The Idea (60 Seconds)</h2><p>RAG augments a language model with retrieved context from your own documents. The typical pipeline ships your data to a cloud vector database and calls a remote embedding API for every query. A private RAG system replaces every cloud dependency with a local equivalent:</p><ul><li><p><strong>Storage and embeddings</strong>: Run models like <code>all-MiniLM-L6-v2</code> or <code>bge-large-en-v1.5</code> locally via <code>sentence-transformers</code>, stored in SQLite with a cosine similarity function. Zero external database server dependencies.</p></li><li><p><strong>Chunking</strong>: Split documents with fixed-size overlap, semantic boundaries, or markdown-aware strategies.</p></li><li><p><strong>Generation</strong>: Route prompts to a local LLM through Ollama, llama.cpp, or any local inference engine.</p></li><li><p><strong>Audit trail</strong>: Log every query and every retrieved chunk to a SQLite table. Compliance becomes a SQL query.</p></li></ul><p>The result is a fully functional RAG system that sends zero bytes to external services.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://archonhq.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">ArchonHQ is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>Why This Matters</h2><p>Privacy is a constraint that sharpens design. When you eliminate cloud dependencies, you also eliminate latency from network round trips, vendor lock-in from proprietary APIs, and data exposure from third-party processing. Your compliance team can audit the entire query history with a single SQL statement. Your security team can verify that zero data leaves the network perimeter. Your finance team can predict costs exactly, because local compute has a fixed price.</p><p>Regulated industries , healthcare, legal, defense, finance , operate under data residency rules. Sending patient records or classified documents through an external embedding API violates those rules by design. A private RAG system satisfies the rules by architecture, by policy, or by procedural override. The architecture itself enforces the boundary.</p><p>Performance improves too. Local embeddings on a modern GPU or Apple Silicon reach hundreds of embeddings per second. SQLite handles millions of vectors with sub-millisecond lookups when you pre-filter by collection. The bottleneck shifts from network latency to disk I/O, which you control entirely.</p><h2>Walkthrough</h2>
      <p>
          <a href="https://archonhq.ai/p/build-your-own-private-rag-knowledge">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Run Your Own LLM on a Laptop: The Complete Guide]]></title><description><![CDATA[Run the model on your hardware, keep your data on your disk, and control every parameter of inference.]]></description><link>https://archonhq.ai/p/run-your-own-llm-on-a-laptop-the</link><guid isPermaLink="false">https://archonhq.ai/p/run-your-own-llm-on-a-laptop-the</guid><dc:creator><![CDATA[Michal Szalinski]]></dc:creator><pubDate>Sun, 31 May 2026 21:10:51 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!g0LA!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f3e23a3-d653-456e-bf97-8e92b99d8725_1920x1080.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!g0LA!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f3e23a3-d653-456e-bf97-8e92b99d8725_1920x1080.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!g0LA!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f3e23a3-d653-456e-bf97-8e92b99d8725_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!g0LA!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f3e23a3-d653-456e-bf97-8e92b99d8725_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!g0LA!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f3e23a3-d653-456e-bf97-8e92b99d8725_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!g0LA!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f3e23a3-d653-456e-bf97-8e92b99d8725_1920x1080.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!g0LA!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f3e23a3-d653-456e-bf97-8e92b99d8725_1920x1080.png" width="1456" height="819" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9f3e23a3-d653-456e-bf97-8e92b99d8725_1920x1080.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:819,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2529202,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://archonhq.ai/i/199292688?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f3e23a3-d653-456e-bf97-8e92b99d8725_1920x1080.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!g0LA!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f3e23a3-d653-456e-bf97-8e92b99d8725_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!g0LA!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f3e23a3-d653-456e-bf97-8e92b99d8725_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!g0LA!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f3e23a3-d653-456e-bf97-8e92b99d8725_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!g0LA!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f3e23a3-d653-456e-bf97-8e92b99d8725_1920x1080.png 1456w" sizes="100vw" fetchpriority="high"></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>Your data leaves your machine every time you call a cloud LLM API. Every prompt, every document, every private thought flows through someone else&#8217;s infrastructure. You pay for the privilege with money and privacy. Bastion believes you should own the entire stack. Run the model on your hardware, keep your data on your disk, and control every parameter of inference. This guide shows you exactly how to do it, from scanning your laptop&#8217;s capabilities to serving a local model at production quality.</p><h2>The Idea (60 Seconds)</h2><p>Local LLM inference runs large language models on your own hardware instead of renting compute from OpenAI, Anthropic, or Google. Three engines dominate the landscape:</p><ul><li><p><strong>llama.cpp</strong>: The workhorse. Runs on CPU, GPU, or both. Optimized for constrained hardware. Use this on laptops with limited VRAM.</p></li><li><p><strong>vLLM</strong>: The throughput king. Built for NVIDIA GPUs with at least 16GB VRAM. Serves multiple concurrent requests with paged attention.</p></li><li><p><strong>Ollama</strong>: The simplicity layer. Wraps llama.cpp with a friendly CLI. Best for developers who want a working model in under five minutes.</p></li></ul><p>The core decision matrix maps your VRAM to the right model and quantization:</p><p>VRAM Model Size Quantization Example 6 GB 7B params Q4_K_M Llama-3.1-8B Q4_K_M 12 GB 13B params Q5_K_M Mistral-Nemo Q5_K_M 24 GB 34B params Q8_0 Command-R Q8_0 24 GB 70B params Q4_K_M Llama-3.1-70B Q4_K_M</p><p>CPU-only users can still run 7B models at Q4_K_M with 16GB system RAM, expect 3 to 8 tokens per second depending on your processor. The experience remains usable for interactive chat and code assistance.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://archonhq.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">ArchonHQ is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>Why This Matters</h2><p>Privacy is the obvious reason, and it matters more than most people admit. Every prompt you send to a cloud API is logged, stored, and potentially used for training. Your proprietary code, your client data, your personal reflections all become someone else&#8217;s data point the moment they leave your network.</p><p>Cost compounds over time. A heavy API user spending $50 monthly on tokens saves the full amount after the first month of local inference. The hardware you already own pays for itself.</p><p>Latency disappears. A local model on your laptop responds instantly. Zero network round-trips, zero queuing behind other users, zero rate limits. Your iteration loop tightens from seconds to milliseconds.</p><p>Control matters for serious practitioners. You choose the model, the quantization, the context window, the sampling parameters. You decide when to upgrade, which version to pin, and how to batch requests. Cloud APIs make all those decisions for you.</p><p>Resilience rounds out the argument. Local inference works during internet outages, in air-gapped environments, and in regions with unreliable connectivity. Your capability stays online even when the cloud goes dark.</p><h2>Walkthrough</h2><h3>Step 1: Scan Your Hardware</h3><p>Before downloading any model, understand what your machine can handle. The <code>localmllm scan</code> command detects your available RAM, GPU, VRAM, and CPU cores automatically:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;1a05131c-77e8-41dd-86d6-caf5845bdd7e&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">python localmllm.py scan
</code></pre></div><p>Output looks like this:</p><pre><code><code>Hardware Scan Results
  System RAM : 32 GB
  GPU        : NVIDIA RTX 3080 Laptop
  VRAM       : 8 GB
  CPU Cores  : 8
  CPU Freq   : 3.2 GHz
</code></code></pre><p>Write down the VRAM number. It determines everything that follows.</p><h3>Step 2: Choose Your Engine</h3><p>Pick your inference engine based on the scan results:</p><ul><li><p><strong>8 GB VRAM or less</strong>: llama.cpp with GPU offloading. Offload as many layers as VRAM allows, run the rest on CPU.</p></li><li><p><strong>16 GB VRAM or more</strong>: vLLM for maximum throughput, or Ollama for simplicity.</p></li><li><p><strong>CPU only</strong>: llama.cpp with all layers on CPU. Acceptable for 7B models at Q4_K_M.</p></li></ul><p>Ollama is the fastest path to a working model. Install it, pull a model, and start chatting:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;027ae9ff-cf25-4716-81f3-4f97e3d2d5c8&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">curl -fsSL https://ollama.com/install.sh | sh
ollama pull llama3.1:8b
ollama run llama3.1:8b
</code></pre></div><p>For more control, build llama.cpp from source:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;a2a1c548-7c17-4ae7-a2b3-3eb15ce59121&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">git clone https://github.com/ggerganov/llama.cpp
cd llama.cpp &amp;&amp; make -j$(nproc)
./llama-server -m models/llama-3.1-8b-q4_k_m.gguf -ngl 99 --port 8080
</code></pre></div><p>The <code>-ngl 99</code> flag offloads all layers to GPU. Reduce this number if you run out of VRAM.</p><h3>Step 3: Select Your Model and Quantization</h3><p>Apply the decision matrix from the Idea section. Higher quantization means better quality and larger files. Lower quantization means smaller files and faster inference. Q4_K_M hits the sweet spot for most use cases: minimal quality loss, significant size reduction.</p><p>Download GGUF files from Hugging Face. TheBloke andbartowski namespaces host well-organized quantized models. Verify the file size matches your available disk space before downloading.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://archonhq.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">ArchonHQ is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h3>Step 4: Benchmark Before Committing</h3><p>Always benchmark before you commit disk space and trust a model for real work. The <code>localmllm benchmark</code> command runs a standardized inference test:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;3340581f-7a85-4875-8ad9-c3375f3bbcb3&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">python localmllm.py benchmark --model models/llama-3.1-8b-q4_k_m.gguf
</code></pre></div><p>You get three key metrics:</p><ul><li><p><strong>Tokens per second</strong>: Sustained generation speed. Above 10 t/s feels interactive. Below 5 t/s feels sluggish.</p></li><li><p><strong>Time to first token</strong>: Prefill latency. Under 2 seconds keeps conversations feeling responsive.</p></li><li><p><strong>Peak memory usage</strong>: Confirms the model fits your hardware with room for the operating system.</p></li></ul><p>If the benchmark reveals memory pressure, drop to a lower quantization or reduce the context window size. Both adjustments free RAM and VRAM.</p><h3>Step 5: Serve Your Model</h3><p>Launch a local inference server and point your applications at it. The <code>localmllm serve</code> command generates the optimal configuration and starts the server:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;e77b2dd7-ba1f-442b-8e5b-e8482a1501bd&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">python localmllm.py serve --model models/llama-3.1-8b-q4_k_m.gguf
</code></pre></div><p>Your model now exposes an OpenAI-compatible API at <code>http://localhost:8080/v1</code>. Any tool that supports the OpenAI API format connects directly. Point your code editor, your chat client, or your automation scripts at localhost and keep every request on your machine.</p><h2>The Prompt Toolkit</h2><h3>1. Local LLM Architect Prompt</h3><p>Copy this XML prompt into your favorite LLM (even a cloud one, since this is a one-time planning call) and get a tailored local inference plan:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;fbcee5ff-6a90-4b0b-9295-09194c127924&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">&lt;task&gt;
You are a local LLM infrastructure architect. Given the user's hardware specifications and use case, produce a complete deployment plan.
&lt;/task&gt;

&lt;input_format&gt;
&lt;hardware&gt;
  &lt;ram&gt;Amount in GB&lt;/ram&gt;
  &lt;gpu&gt;Name of GPU or "none"&lt;/gpu&gt;
  &lt;vram&gt;Amount in GB or "0"&lt;/vram&gt;
  &lt;cpu_cores&gt;Number of cores&lt;/cpu_cores&gt;
&lt;/hardware&gt;
&lt;use_case&gt;Describe what you will use the model for: coding, writing, chat, research, analysis&lt;/use_case&gt;
&lt;/input_format&gt;

&lt;output_format&gt;
&lt;deployment_plan&gt;
  &lt;recommended_model&gt;Name and size&lt;/recommended_model&gt;
  &lt;quantization&gt;Specific quant level (e.g. Q4_K_M)&lt;/quantization&gt;
  &lt;inference_engine&gt;llama.cpp | vLLM | Ollama&lt;/inference_engine&gt;
  &lt;engine_config&gt;
    Key configuration parameters: GPU layers, context window, thread count, batch size
  &lt;/engine_config&gt;
  &lt;context_window&gt;Recommended size in tokens&lt;/context_window&gt;
  &lt;performance_estimates&gt;
    &lt;tokens_per_second&gt;Estimated range&lt;/tokens_per_second&gt;
    &lt;time_to_first_token&gt;Estimated range&lt;/time_to_first_token&gt;
    &lt;memory_footprint&gt;Expected RAM + VRAM usage&lt;/memory_footprint&gt;
  &lt;/performance_estimates&gt;
  &lt;disk_space&gt;Model file size estimate&lt;/disk_space&gt;
&lt;/deployment_plan&gt;
&lt;/output_format&gt;

&lt;reasoning_rules&gt;
1. Always fit the model within available VRAM plus RAM with 4 GB headroom for the OS.
2. Prefer GPU offloading over CPU-only inference whenever VRAM is available.
3. Q4_K_M is the default quantization. Increase only when VRAM allows.
4. Context window size affects memory linearly. Default to 4096 unless the use case demands more.
5. For coding tasks, prefer Code Llama or DeepSeek Coder. For general chat, prefer Llama 3.1 or Mistral.
6. When VRAM is 0, recommend CPU-only llama.cpp with thread count equal to physical cores minus 1.
&lt;/reasoning_rules&gt;
</code></pre></div><p>Use it once, get your plan, then run everything locally forever.</p><h3>2. localmllm CLI</h3><p>The <code>localmllm.py</code> CLI automates the entire workflow from hardware scanning and model recommendation through benchmarking and server launch. Download it from the Bastion CLI downloads section. Five commands cover the full lifecycle:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;a7433f50-fd23-4515-a73b-29668c452fd4&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext"># Detect your hardware capabilities
python localmllm.py scan

# Get a model recommendation for your use case
python localmllm.py recommend --use-case coding

# Generate inference engine configuration
python localmllm.py config --engine llama.cpp

# Benchmark a model on your hardware
python localmllm.py benchmark --model ./models/llama-3.1-8b-q4_k_m.gguf

# Launch a local inference server
python localmllm.py serve --model ./models/llama-3.1-8b-q4_k_m.gguf
</code></pre></div><p>Full source code is available in the Bastion CLI downloads. Every command runs offline with zero cloud dependencies: your hardware, your models, your rules.</p><h2>Caveats</h2><p>Local inference requires honest expectations about what your hardware can deliver. A laptop with 8GB VRAM runs a 7B model beautifully but chokes on a 70B model regardless of quantization tricks. Respect the memory limits.</p><p>Model quality matters: a Q4 quantized 7B model produces good output for coding assistance and casual chat, but noticeably weaker output than GPT-4 or Claude for complex reasoning, long-form writing, and nuanced analysis, so match the model to the task.</p><p>Disk space adds up fast. A single 70B Q4_K_M file consumes 40GB. Keep models you actively use and delete the rest. The <code>localmllm benchmark</code> command tells you whether a model earns its disk space before you commit to keeping it.</p><p>Updates require manual effort. Cloud APIs improve automatically. Local models stay frozen until you download a newer version. Subscribe to model release feeds or check Hugging Face weekly for updates.</p><h2>Philosophy</h2><p>Bastion stands on one principle: own your compute the way you own your tools. A carpenter keeps their saws in their own shop. A writer keeps their manuscripts in their own desk. A practitioner of AI should keep their models on their own hardware.</p><p>Every cloud dependency is a lease where leases expire, terms change, prices increase, and services shut down. Local inference is ownership: you paid for the hardware, downloaded the model, and run the server, controlling access while keeping prompts private at a fixed cost.</p><p>The open source ecosystem made this possible. Llama.cpp, vLLM, Ollama, and the thousands of model contributors built the infrastructure of independence. Bastion curates and distills their work into actionable guides. Use them. Build on them. Own your stack.</p><h2>CTA</h2><p>Ready to cut the cord on cloud LLMs? Download the <code>localmllm.py</code> CLI from the Bastion CLI downloads section, run <code>scan</code> to profile your hardware, and have a local model serving requests in under thirty minutes. The complete source code lives in the same directory, ready for customization.</p><p>Bastion Series articles give you the full blueprint: prompts, tools, and philosophy. Subscribe to unlock every article and every CLI tool in the archive. Your data stays on your machine. Your capability stays under your control.</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://archonhq.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://archonhq.ai/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item><item><title><![CDATA[The Offer Equation]]></title><description><![CDATA[Every person selling their first digital product or service hits this wall.]]></description><link>https://archonhq.ai/p/the-offer-equation</link><guid isPermaLink="false">https://archonhq.ai/p/the-offer-equation</guid><dc:creator><![CDATA[Michal Szalinski]]></dc:creator><pubDate>Thu, 28 May 2026 21:26:00 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!Pml7!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3bda15a4-13c2-46d2-bc82-03c4d1135943_1920x1080.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Pml7!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3bda15a4-13c2-46d2-bc82-03c4d1135943_1920x1080.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Pml7!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3bda15a4-13c2-46d2-bc82-03c4d1135943_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!Pml7!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3bda15a4-13c2-46d2-bc82-03c4d1135943_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!Pml7!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3bda15a4-13c2-46d2-bc82-03c4d1135943_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!Pml7!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3bda15a4-13c2-46d2-bc82-03c4d1135943_1920x1080.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Pml7!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3bda15a4-13c2-46d2-bc82-03c4d1135943_1920x1080.png" width="1456" height="819" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3bda15a4-13c2-46d2-bc82-03c4d1135943_1920x1080.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:819,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2667316,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://archonhq.ai/i/199293106?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3bda15a4-13c2-46d2-bc82-03c4d1135943_1920x1080.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Pml7!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3bda15a4-13c2-46d2-bc82-03c4d1135943_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!Pml7!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3bda15a4-13c2-46d2-bc82-03c4d1135943_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!Pml7!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3bda15a4-13c2-46d2-bc82-03c4d1135943_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!Pml7!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3bda15a4-13c2-46d2-bc82-03c4d1135943_1920x1080.png 1456w" sizes="100vw" fetchpriority="high"></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><p>You sit frozen at your keyboard, cursor blinking in the price field of your checkout page. $97? $497? $2,000? You refresh Twitter, see a peer charging $5,000 for what looks like the same thing, and feel your stomach drop. You pick a number that feels safe. Safe means low. Low means you just signed up for burnout.</p><p>Every person selling their first digital product or service hits this wall. The price field is the single highest-leverage decision you will make, and most people treat it like a feeling. &#8220;What feels right?&#8221; is the wrong question, and there is a formula with four levers. Pull them deliberately and your offer becomes magnetic. Ignore them and you join the graveyard of competent people who priced themselves into irrelevance.</p><h2>The Idea (60 Seconds)</h2><p>Alex Hormozi distilled every offer into a single equation in <em>$100M Offers</em>:</p><p><strong>Value = (Dream Outcome &#215; Perceived Likelihood) &#247; (Time Delay &#215; Effort/Sacrifice)</strong></p><p>Four levers: two in the numerator (bigger is better) and two in the denominator (smaller is better).</p><ul><li><p><strong>Dream Outcome</strong>: How badly does the client want the result? Paint the specific end state. &#8220;Build a SaaS&#8221; is vague. &#8220;Ship a profitable micro-SaaS that earns $5K MRR in 90 days&#8221; is a dream outcome.</p></li><li><p><strong>Perceived Likelihood</strong>: How confident is the client that you can deliver? Social proof, guarantees, and track record crank this lever. A money-back promise moves likelihood from &#8220;&#8221; to &#8220;I trust this.&#8221;</p></li><li><p><strong>Time Delay</strong>: How long until the client gets the result? Faster always wins. &#8220;Learn to code in 12 months&#8221; loses to &#8220;Deploy your first app this weekend.&#8221;</p></li><li><p><strong>Effort/Sacrifice</strong>: How much work does the client do? Less effort wins. Done-for-you beats done-with-you. Done-with-you beats DIY.</p></li></ul><p>Maximize the top. Minimize the bottom. The number that comes out is what people perceive your offer is worth. Pricing follows perception.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://archonhq.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">ArchonHQ is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>Why This Matters</h2><p>Pricing is the number one anxiety for new sellers. It drives three catastrophic decisions:</p><ol><li><p><strong>Hourly pricing</strong> because it feels fair. You become labor. Your income ceiling is locked to your calendar. A developer billing $150/hour earns $150/hour forever, or until they raise the rate and lose clients who see them as a commodity.</p></li><li><p><strong>Underpricing to win first clients.</strong> You land the account at a discount and train the client to negotiate on price forever. The relationship starts as a bargain hunt instead of a partnership.</p></li><li><p><strong>Feature-listing instead of transforming.</strong> &#8220;6 coaching calls, email support, worksheets&#8221; is a menu. Menus invite comparison shopping. Bridges invite commitment. &#8220;Go from stuck to shipped in 30 days&#8221; is a bridge.</p></li></ol><p>These mistakes share a root cause: treating price as a gut check instead of a calculated hypothesis. The Value Equation and five pricing processes replace that gut check with a system.</p><h2>Walkthrough</h2><h3>Step 1: Build the Offer with the Value Equation</h3>
      <p>
          <a href="https://archonhq.ai/p/the-offer-equation">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Running AI Agents on a Laptop GPU - My 6GB VRAM Setup That Actually Works]]></title><description><![CDATA[How I run a personal AI crew on an everyday RTX 3060. Zero enterprise budget. Zero PhD. Zero excuses.]]></description><link>https://archonhq.ai/p/running-ai-agents-on-a-laptop-gpu</link><guid isPermaLink="false">https://archonhq.ai/p/running-ai-agents-on-a-laptop-gpu</guid><dc:creator><![CDATA[Michal Szalinski]]></dc:creator><pubDate>Tue, 26 May 2026 21:01:13 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!0roa!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d960598-752a-4ab9-bab2-3560d74d1866_1100x550.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!0roa!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d960598-752a-4ab9-bab2-3560d74d1866_1100x550.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!0roa!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d960598-752a-4ab9-bab2-3560d74d1866_1100x550.png 424w, https://substackcdn.com/image/fetch/$s_!0roa!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d960598-752a-4ab9-bab2-3560d74d1866_1100x550.png 848w, https://substackcdn.com/image/fetch/$s_!0roa!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d960598-752a-4ab9-bab2-3560d74d1866_1100x550.png 1272w, https://substackcdn.com/image/fetch/$s_!0roa!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d960598-752a-4ab9-bab2-3560d74d1866_1100x550.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!0roa!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d960598-752a-4ab9-bab2-3560d74d1866_1100x550.png" width="1100" height="550" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5d960598-752a-4ab9-bab2-3560d74d1866_1100x550.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:550,&quot;width&quot;:1100,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:850491,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://archonhq.ai/i/197810032?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d960598-752a-4ab9-bab2-3560d74d1866_1100x550.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!0roa!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d960598-752a-4ab9-bab2-3560d74d1866_1100x550.png 424w, https://substackcdn.com/image/fetch/$s_!0roa!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d960598-752a-4ab9-bab2-3560d74d1866_1100x550.png 848w, https://substackcdn.com/image/fetch/$s_!0roa!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d960598-752a-4ab9-bab2-3560d74d1866_1100x550.png 1272w, https://substackcdn.com/image/fetch/$s_!0roa!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d960598-752a-4ab9-bab2-3560d74d1866_1100x550.png 1456w" sizes="100vw" fetchpriority="high"></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>You&#8217;ve seen the posts. &#8220;I&#8217;m running a 70B parameter model on my home server with 48GB VRAM.&#8221; Cool story. Most of us are staring at a laptop with 6GB of VRAM and 32GB of system RAM, wondering if personal AI agents are beyond our reach.</p><p>They&#8217;re within reach. I&#8217;m writing this on my everyday laptop in Melbourne, and my AI crew is running in the background right now. Water reminders, posture nudges, health research, meal planning, coding help, all happening locally, privately, and fast enough to keep pace.</p><p>Here&#8217;s the setup, the models, the use cases, and the honest performance numbers.</p><h2>The Idea (60 Seconds)</h2><p>You can run useful AI agents on a 6GB VRAM laptop today. The trick is picking the right models for the right tasks, and using a hybrid local/cloud approach that keeps costs under $5/month. Local inference handles 80% of daily agent work. Cloud fills the gap for complex reasoning. The framework connecting everything matters more than the hardware.</p><h2>The Minimum Viable Setup</h2><ul><li><p>RTX 3060 (6GB VRAM) or equivalent</p></li><li><p>16GB+ system RAM (32GB preferred)</p></li><li><p>Ollama or llama.cpp (free)</p></li><li><p>A model at Q4_K_M quantization</p></li><li><p>An agent framework that supports local + cloud switching</p></li></ul><p>That&#8217;s it. Zero custom builds. Zero ML expertise. Zero $3,000 GPU.</p><p>The whole system costs me roughly $5/month in cloud API calls on top of the free local inference. Most days the cloud stays untouched.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://archonhq.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">ArchonHQ is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>Why This Setup, Not the Others</h2><p><strong>Cloud-only is expensive at scale.</strong> Every API call costs money. When your agent runs 50+ tool calls per day, the bills add up. Local inference for routine tasks, cloud for complex ones, keeps costs negligible.</p><p><strong>Big VRAM builds are overkill for daily agents.</strong> Most agent tasks involve structured data extraction, simple reasoning, and tool orchestration. A 4B model handles these at 25-40 tokens/second. The extra VRAM goes unused 80% of the time.</p><p><strong>Hermes Agent is built for this.</strong> Most AI frameworks assume you&#8217;re running cloud-only or have a server rack. Hermes is designed to work with whatever you&#8217;ve got: local models via Ollama, cloud models via OpenRouter, and seamless switching between them with <code>/model</code>. The framework adds 200MB of overhead. The bottleneck lives elsewhere.</p><h2>Walkthrough: My Model Lineup (And Why Each One Earns Its VRAM)</h2>
      <p>
          <a href="https://archonhq.ai/p/running-ai-agents-on-a-laptop-gpu">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Your Content Is a Production Pipeline , Build It Like One]]></title><description><![CDATA[A system that discovers ideas, filters them, drafts them, QA's them, generates visuals, publishes, distributes, and measures]]></description><link>https://archonhq.ai/p/your-content-is-a-production-pipeline</link><guid isPermaLink="false">https://archonhq.ai/p/your-content-is-a-production-pipeline</guid><dc:creator><![CDATA[Michal Szalinski]]></dc:creator><pubDate>Sun, 24 May 2026 21:01:01 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!tOcd!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ab36e06-2ecb-47e0-bd28-3986226d43f7_1100x550.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!tOcd!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ab36e06-2ecb-47e0-bd28-3986226d43f7_1100x550.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!tOcd!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ab36e06-2ecb-47e0-bd28-3986226d43f7_1100x550.png 424w, https://substackcdn.com/image/fetch/$s_!tOcd!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ab36e06-2ecb-47e0-bd28-3986226d43f7_1100x550.png 848w, https://substackcdn.com/image/fetch/$s_!tOcd!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ab36e06-2ecb-47e0-bd28-3986226d43f7_1100x550.png 1272w, https://substackcdn.com/image/fetch/$s_!tOcd!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ab36e06-2ecb-47e0-bd28-3986226d43f7_1100x550.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!tOcd!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ab36e06-2ecb-47e0-bd28-3986226d43f7_1100x550.png" width="1100" height="550" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3ab36e06-2ecb-47e0-bd28-3986226d43f7_1100x550.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:550,&quot;width&quot;:1100,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1085349,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://archonhq.ai/i/197809116?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ab36e06-2ecb-47e0-bd28-3986226d43f7_1100x550.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!tOcd!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ab36e06-2ecb-47e0-bd28-3986226d43f7_1100x550.png 424w, https://substackcdn.com/image/fetch/$s_!tOcd!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ab36e06-2ecb-47e0-bd28-3986226d43f7_1100x550.png 848w, https://substackcdn.com/image/fetch/$s_!tOcd!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ab36e06-2ecb-47e0-bd28-3986226d43f7_1100x550.png 1272w, https://substackcdn.com/image/fetch/$s_!tOcd!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ab36e06-2ecb-47e0-bd28-3986226d43f7_1100x550.png 1456w" sizes="100vw" fetchpriority="high"></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>You told yourself you&#8217;d post weekly. It&#8217;s been six weeks. Your Substack dashboard mocks you with that sad &#8220;0 posts this month&#8221; counter. You open a blank document, stare at it, close it, open Hacker News instead. The guilt loop continues.</p><p>Meanwhile, the AI bros on X are posting three times a day about &#8220;content leverage&#8221; while clearly using the same ChatGPT template as everyone else. Quantity up, quality sideways, audience numb.</p><p>There&#8217;s a third option. You can treat content the way you treat production software: as a pipeline with intake, quality control, assembly, finishing, distribution, and feedback. Skip any step and you get either silence or garbage. Run every step and you get consistent, high-quality output while you sleep.</p><p>I know because I built it. This article you&#8217;re reading? It came out of that pipeline. The other articles in this series? Same pipeline. Six Python scripts, five cron jobs, one environment file, zero frameworks.</p><p>Here&#8217;s the architecture.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://archonhq.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">ArchonHQ is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>The Idea (60 Seconds)</h2><p>Content is a manufacturing problem, and manufacturing problems have manufacturing solutions. You need a system that discovers ideas, filters them, drafts them, QA&#8217;s them, generates visuals, publishes, distributes, and measures. Each stage is a script. Each script runs on a schedule. The human touches two points: approving ideas (5 minutes) and reviewing QA failures (15 minutes, rare). Everything else is automated.</p><h2>Why This Pipeline, Not Manual Blogging</h2><p>Most people treat content as inspiration plus typing. They wait for the muse, then labor over every sentence. It&#8217;s artisanal. Admirable. And completely unscalable past a few posts per month. The pipeline approach treats content as what it actually is for a technical blog: a manufacturing process. The ideas are raw materials. The scoring is quality control on intake. The drafting is assembly. The QA is inspection. The hero image is finishing. The distribution is logistics. The analytics are customer feedback.</p><p>The output: 2&#8211;3 articles per week. The cost: ~$0.50 per article in LLM and image generation tokens. The human time: under 30 minutes per day.</p><h2>The Framework: Six Stages, Six Scripts</h2>
      <p>
          <a href="https://archonhq.ai/p/your-content-is-a-production-pipeline">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Build Your Own Cline Alternative in 200 Lines]]></title><description><![CDATA[Create a minimal VS Code extension that handles file operations, executes terminal commands, and connects to any OpenAI-compatible API.]]></description><link>https://archonhq.ai/p/build-your-own-cline-alternative</link><guid isPermaLink="false">https://archonhq.ai/p/build-your-own-cline-alternative</guid><dc:creator><![CDATA[Michal Szalinski]]></dc:creator><pubDate>Fri, 22 May 2026 21:00:29 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!e_XO!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0f492a9e-85a3-47ea-b289-c12d467632b2_1100x550.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!e_XO!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0f492a9e-85a3-47ea-b289-c12d467632b2_1100x550.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!e_XO!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0f492a9e-85a3-47ea-b289-c12d467632b2_1100x550.png 424w, https://substackcdn.com/image/fetch/$s_!e_XO!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0f492a9e-85a3-47ea-b289-c12d467632b2_1100x550.png 848w, https://substackcdn.com/image/fetch/$s_!e_XO!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0f492a9e-85a3-47ea-b289-c12d467632b2_1100x550.png 1272w, https://substackcdn.com/image/fetch/$s_!e_XO!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0f492a9e-85a3-47ea-b289-c12d467632b2_1100x550.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!e_XO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0f492a9e-85a3-47ea-b289-c12d467632b2_1100x550.png" width="1100" height="550" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0f492a9e-85a3-47ea-b289-c12d467632b2_1100x550.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:550,&quot;width&quot;:1100,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:972740,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://archonhq.ai/i/197808465?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0f492a9e-85a3-47ea-b289-c12d467632b2_1100x550.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!e_XO!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0f492a9e-85a3-47ea-b289-c12d467632b2_1100x550.png 424w, https://substackcdn.com/image/fetch/$s_!e_XO!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0f492a9e-85a3-47ea-b289-c12d467632b2_1100x550.png 848w, https://substackcdn.com/image/fetch/$s_!e_XO!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0f492a9e-85a3-47ea-b289-c12d467632b2_1100x550.png 1272w, https://substackcdn.com/image/fetch/$s_!e_XO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0f492a9e-85a3-47ea-b289-c12d467632b2_1100x550.png 1456w" sizes="100vw" fetchpriority="high"></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>Your AI coding assistant vanishes overnight. Cline gets abandoned. Roo Code stops responding to issues. The VS Code extension that automated your file operations, ran terminal commands, and integrated with your preferred AI models suddenly throws deprecation warnings.</p><p>You&#8217;re back to copying code snippets manually. Context switching between terminal and editor. Explaining the same codebase structure to ChatGPT every session. The 40% productivity boost from autonomous coding assistance evaporates because someone else controlled the tools you relied on.</p><p>What if you could build your own AI coding assistant in an afternoon, own the entire stack, and customize it exactly for your workflow?</p><h2>The Idea (60 Seconds)</h2><p>You&#8217;ll create a minimal VS Code extension that handles file operations, executes terminal commands, and connects to any OpenAI-compatible API. The 200-line implementation provides autonomous coding capabilities through a simple chat interface that can read your codebase, modify files, and run commands. Setup takes 30 minutes. The result gives you permanent control over your AI coding workflow.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://archonhq.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">ArchonHQ is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>Why Build This, Beyond Waiting for Alternatives</h2><p><strong>Dependency risk drops to zero.</strong> Commercial tools get discontinued. Open source projects get abandoned. Your custom extension lives in your codebase under your control. Zero external dependencies means zero abandonment risk.</p><p><strong>Customization becomes unlimited.</strong> You control the prompts, the model endpoints, and the file operation logic. Add project-specific commands. Integrate with your deployment scripts. Modify the behavior to match your exact workflow.</p><p><strong>API flexibility stays open.</strong> Connect to OpenAI, Anthropic, local Ollama instances, or any OpenAI-compatible endpoint. Switch providers by changing one configuration line. Your tool adapts to whatever AI infrastructure you prefer.</p><h2>Walkthrough</h2>
      <p>
          <a href="https://archonhq.ai/p/build-your-own-cline-alternative">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[How to Give Claude Perfect Memory]]></title><description><![CDATA[Three layers of memory, each building on the last. Layer one takes five minutes and covers 90%+ of users.]]></description><link>https://archonhq.ai/p/how-to-give-claude-perfect-memory</link><guid isPermaLink="false">https://archonhq.ai/p/how-to-give-claude-perfect-memory</guid><dc:creator><![CDATA[Michal Szalinski]]></dc:creator><pubDate>Wed, 20 May 2026 21:09:50 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!2suO!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5abef7e3-0d7f-49e5-b615-d6257fc46c60_1536x1024.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!2suO!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5abef7e3-0d7f-49e5-b615-d6257fc46c60_1536x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!2suO!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5abef7e3-0d7f-49e5-b615-d6257fc46c60_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!2suO!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5abef7e3-0d7f-49e5-b615-d6257fc46c60_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!2suO!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5abef7e3-0d7f-49e5-b615-d6257fc46c60_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!2suO!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5abef7e3-0d7f-49e5-b615-d6257fc46c60_1536x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!2suO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5abef7e3-0d7f-49e5-b615-d6257fc46c60_1536x1024.png" width="1456" height="971" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5abef7e3-0d7f-49e5-b615-d6257fc46c60_1536x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:971,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2875249,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://archonhq.ai/i/197807366?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5abef7e3-0d7f-49e5-b615-d6257fc46c60_1536x1024.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!2suO!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5abef7e3-0d7f-49e5-b615-d6257fc46c60_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!2suO!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5abef7e3-0d7f-49e5-b615-d6257fc46c60_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!2suO!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5abef7e3-0d7f-49e5-b615-d6257fc46c60_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!2suO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5abef7e3-0d7f-49e5-b615-d6257fc46c60_1536x1024.png 1456w" sizes="100vw" fetchpriority="high"></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>By default, Claude&#8217;s memory is basically decorative. It forgets context mid-conversation. You re-explain yourself constantly. Even after you do, the next session starts from zero.</p><p>Most people have been living with this for months, assuming it&#8217;s just how LLMs work. It&#8217;s how LLMs work <em>absent a system</em>. With a system, everything changes.</p><p>I use Claude every single day. More screen time than any other app on my Mac. I need it sharp, consistent, and carrying forward every decision, preference, and hard-won lesson from the sessions before.</p><h2>The Idea (60 Seconds)</h2><p>Three layers of memory, each building on the last. Layer one takes five minutes and covers 90%+ of users.</p><h2>Why Build a Memory System Instead of Re-explaining</h2><p>Every time you start a new Claude session, you burn tokens re-establishing context. Over a month, that compounds into hours of wasted time and inconsistent outputs. A memory system pays for itself on day one. Layer one alone saves ten minutes per session. Layer three makes Claude genuinely useful for long-running projects where consistency across weeks matters.</p><p>Layer two takes about an hour and changes how Claude operates entirely.</p><p>Layer three turns Claude into a self-evolving second brain, trained on all your data, with persistent search and recall across every conversation you&#8217;ve ever had.</p><p>Here are all three.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://archonhq.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">ArchonHQ is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>Layer 1: Basic Memory (5 Minutes)</h2><p>Four quick wins. Minutes to set up. Immediate improvement in every conversation.</p><h3>1. Memory Editing Tool</h3><p>Go to Settings &#8594; Memory right now.</p><p>This is the most overlooked page in Claude. Most people have zero awareness it exists.</p><p>What you&#8217;ll find: everything Claude has stored about you, accumulated passively across every conversation. Preferences, facts, habits, working styles. Left alone, your memory fills up with garbage fast.</p><p>The fix: read through everything on this page. Delete anything outdated, inaccurate, or irrelevant. Then manually add the context you actually want Claude to carry permanently.</p><p>Stick to the basics here (your role, key preferences). We&#8217;ll build highly specific systems soon.</p><h3>2. Project Instructions</h3><p>If you use Claude Projects (you should), fill in your Project Instructions field.</p><p>My advice: create projects for all your most-used workflows, then voice-prompt all your context into a Google Doc and upload it as a PDF for each project.</p><h3>3. Tell Claude Directly</h3><p>The simplest memory hack on this list. Mid-conversation, just tell Claude what to remember.</p><p>Things like:</p><p>&#8220;Remember that I prefer responses under 400 words.&#8221;<br>&#8220;Remember that my role is [x].&#8221;<br>&#8220;Update your memory with [x].&#8221;</p><p>Claude stores these immediately. You can also tell it to forget things: &#8220;Forget that I mentioned [x].&#8221;</p><h3>4. Memory Imports and Exports</h3><p>If you&#8217;ve been using ChatGPT (or another LLM) and have built up significant context there, you have two options to transfer it:</p><p>a) Tell ChatGPT you&#8217;re switching platforms and ask it to generate a memory export document: &#8220;I&#8217;m switching this project to Claude, give me a summary document...&#8221;</p><p>b) Use Import/Export in Claude. In Settings &#8594; Memory, you can import full data from other LLMs.</p><p>These four edits cover 90%+ of users and make an immediate impact on how Claude responds.</p><p>The next section is for people who want a real system.</p><h2>Layer 2: Context File System (~60 Minutes)</h2><p>Layer 1 fixes the basic memory problems. Layer 2 builds something more powerful: a file-based memory architecture that lives on your computer, loads automatically into Cowork and Claude Code.</p><p>The concept: instead of prompting Claude for context every time, you store all of that context in .MD desktop files that Claude has access to. You can also attach these markdown files to any LLM or AI agent system.</p><p>Create a new desktop folder, label it &#8220;Claude Master Folder&#8221;, and build these four markdown files within it (Claude can help you do this):</p><h3>1. Instructions.md</h3><p>This file tells Claude all your rules and instructions:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;69562032-31d6-4842-91f0-e8a1272e580e&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">## Who you are
## What you do
## Rules
## What good outputs look like
</code></pre></div><p>Important to include: &#8220;Update Memory.md with my preferences over time.&#8221;</p><p>This line is crucial. It&#8217;s how you get Claude to create a running memory log of your data in the second markdown file.</p><h3>2. Memory.md</h3><p>This is the &#8220;brain&#8221; of Claude, continuously updated over time.</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;7574c8df-86be-442c-8f85-f7ba3c4ca581&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">## Preferences
## Corrections
## Patterns
## Decisions
</code></pre></div><p>Now whehas yet to you say something like &#8220;stop using em dashes,&#8221; Claude goes into the memory file and updates it.</p><h3>3. Context.md</h3><p>The specific context file for a given project. What&#8217;s in this file changes depending on your project. You can also create a general &#8220;business context&#8221; or &#8220;life context&#8221; markdown mega file.</p><h3>4. Archive Copies</h3><p>This one is purely protective but worth doing.</p><p>Claude will update your memory files automatically as you work. Occasionally, it overwrites something incorrectly or makes a change you missed. Absent a backup system, that context is gone.</p><p>The fix: once a week, copy your entire master folder (Instructions, Memory, Context, and everything else) into a separate archive folder that Claude has zero access to. Label it with the date.</p><p>If anything breaks or gets overwritten incorrectly, restore from the archive.</p><h3>Setting It Up</h3><p>Just create a new folder called &#8220;Claude Master Folder,&#8221; attach it to a new Cowork chat, and paste this prompt:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;863cdad9-fff2-48c5-a646-d2fd571be4b2&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">Go into my "Claude Master Folder" in my connected workspace and build 
these four markdown files inside it:

Instructions.md - includes sections for: Who You Are, What You Do, 
Rules, What Good Outputs Look Like, and a line telling Claude to 
update Memory.md with my preferences over time.

Memory.md - includes sections for: Preferences, Corrections, 
Patterns, Decisions, and Personal Context. Pre-fill with placeholder 
examples so I know what to add.

Context.md - includes sections for: About This Project/Business, 
Audience, Key People &amp; Collaborators, Active Projects &amp; Priorities, 
Tools &amp; Stack, and Important Background/History. Use a template 
format with placeholders I can fill in.

Archive-Guide.md - a step-by-step guide explaining why to archive,
how to do it weekly (duplicate the folder, rename with the date, 
move it somewhere Claude has zero access to), what to include, 
how to restore if something breaks, and where to store the backups.
</code></pre></div><p>Anytime you&#8217;re working in Cowork or Claude Code, attach your Master Folder and Claude uses it as a mini memory database. It edits the memory markdown file, leaving you with something you can attach to any LLM, new chat, or AI agent.</p><p>This system is a complete game-changer. But Layer 3 takes it further.</p><h2>Layer 3: AI Second Brain (1-2 Hours)</h2><p>This is the deepest level. It requires setup and ongoing maintenance, but for those who build it, it&#8217;s the most advanced memory system available for Claude today.</p><p>Two options depending on how you work. Option 1 is the fast path. Option 2 is the power-user path, requiring 1-2 hours of dedicated building.</p><p>Keep in mind: for your AI second brain memory vault to be effective, you have to spend time maintaining it and updating your databases. This is a living system, a set-and-forget approach produces decay.</p><h3>Option 1: Claude x Notion (5 Minutes)</h3><p>Connecting Claude to Notion is the highest-leverage thing you can do in 5 minutes.</p><p>Go to Claude &#8594; Settings &#8594; Connectors, then enable the Notion connector.</p><p>Once connected, Claude reads your Notion workspace directly inside any chat.</p><p>All your tasks, CRMs, notes, tables are now accessible and editable for Claude.</p><p>I recommend creating a new &#8220;Memory Database&#8221; where you store all your AI preferences, rules, and important AI context. As you&#8217;re working with Claude, you can say: &#8220;Send this to my Notion Memory Database.&#8221;</p><p>You can then export this Notion data to other LLMs or AI platforms via a CSV file or by using the Notion MCP connector.</p><p>This setup is similar to Layer 2, except you gain Notion&#8217;s built-in board views, to-do lists, and additional functionality.</p><h3>Option 2: Claude x Obsidian x AI Engram (1-2 Hours)</h3><p>This is the setup I personally use. It combines three things:</p><ol><li><p><strong>Obsidian</strong> for local markdown storage (your files, your machine, your control)</p></li><li><p><strong>Karpathy&#8217;s LLM Knowledge Base</strong> schema for structuring how Claude organizes and compounds knowledge over time</p></li><li><p><strong>AI Engram</strong> for persistent search and memory across every conversation</p></li></ol><p>Here&#8217;s why this stack matters: Layer 2 gives Claude a folder of files to read. Layer 3 Option 2 gives Claude a <em>searchable, evolving knowledge system</em> that compounds with every conversation.</p><h4>Step 1: Download Obsidian</h4><p>Go to obsidian.md and download the app.</p><p>Create a new Vault (think of this as a desktop folder where Claude Code stores and accesses your data). Your data stays local. Zero cloud dependency.</p><h4>Step 2: Point Claude at Your Vault</h4><p>Open the Claude desktop app and click &#8216;Select Folder.&#8217; Point it at your Obsidian Vault folder. Claude now has direct read and write access to everything inside it.</p><h4>Step 3: Inject the Knowledge Base Schema</h4><p>Paste Andrej Karpathy&#8217;s LLM Knowledge Base system prompt into the chatbox. This is the instruction set that tells Claude Code how to build, maintain, and evolve your wiki over time.</p><p>The prompt is available here: gist.github.com/karpathy/442a6bf555914893e9891c11519de94f</p><p>I wrote about this system in detail in my earlier article, &#8220;Build an LLM Knowledge Base That Actually Compounds.&#8221; The key architecture:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;337cf6e5-aa27-4202-9c22-1d2678405c0c&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">your-vault/
&#9500;&#9472;&#9472; raw/          # Immutable source documents (AI reads, has yet to modifies)
&#9500;&#9472;&#9472; wiki/         # AI-maintained wiki with domain folders
&#9474;   &#9500;&#9472;&#9472; index.md  # Navigation hub
&#9474;   &#9492;&#9472;&#9472; log.md    # Append-only action log
&#9500;&#9472;&#9472; outputs/      # Generated reports and query answers
&#9492;&#9472;&#9472; AGENTS.md     # Schema defining how the AI organizes, ingests, and queries
</code></pre></div><p>The <code>AGENTS.md</code> schema is the single most important file. It defines identity, architecture, conventions, and workflows. Every wiki page gets YAML frontmatter. Wiki-links cross-reference topics. Source citations are required. Contradictions get flagged.</p><p>Three core workflows defined in the schema:</p><ol><li><p><strong>Ingest</strong>: Read a source, extract key information, create/update summary pages, update index, add backlinks, flag contradictions, log it. A single source touches 10-15 wiki pages.</p></li><li><p><strong>Query</strong>: Read index first, find relevant pages, synthesize answer with citations, offer to file insights back into wiki.</p></li><li><p><strong>Lint</strong> (monthly): Check contradictions, stale claims, orphan pages, missing cross-references, unattributed claims. Output a severity-leveled report.</p></li></ol><p>This system alone is powerful. But it has a gap: every new conversation starts with zero recall of past conversations. Claude reads your wiki files, sure, but it has zero memory of the <em>decisions, preferences, and insights</em> from previous chat sessions.</p><p>That gap is exactly what AI Engram fills.</p><h4>Step 4: Install AI Engram</h4><p>AI Engram is an MCP (Model Context Protocol) server that gives Claude persistent conversation memory and deep search over your markdown workspace. It runs entirely locally. Zero cloud services. Zero API calls.</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;e0962240-8847-41a9-8c24-253c64597e9c&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">pip install ai-engram
# or clone from github.com/MikeS071/ai-engram
</code></pre></div><p>Add it to your Claude Desktop MCP config:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;a8cf1c19-78f5-4056-949d-ad723982c336&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">{
  "mcpServers": {
    "ai-engram": {
      "command": "python",
      "args": ["aiengram_mcp.py"],
      "cwd": "/path/to/your/vault"
    }
  }
}
</code></pre></div><p>AI Engram gives Claude 13 new tools, split into two groups:</p><p><strong>Content Search (6 tools):</strong></p><p>Tool What It Does <code>search_blog</code> BM25 keyword search with relevance scoring and snippets <code>semantic_search_blog</code> Meaning-based search via sentence-transformer embeddings <code>build_index</code> Pre-build or refresh the semantic embedding cache <code>list_blog_files</code> List markdown files, filterable by collection <code>blog_stats</code> File counts and word totals across collections <code>read_blog_file</code> Read full markdown file content (with fuzzy path matching)</p><p><strong>Conversation Memory (7 tools):</strong></p><p>Tool What It Does <code>remember</code> Store a memory with category and optional tags <code>recall</code> Semantic search across stored memories <code>recall_all</code> Cross-search memories AND blog content via RRF fusion <code>list_memories</code> Browse memories by category, newest first <code>forget</code> Delete a specific memory by ID <code>memory_stats</code> Memory counts by category and storage size <code>get_system_prompt</code> Load the context memory protocol instructions</p><p>The search pipeline combines BM25 (keyword) and semantic (embedding) search via Reciprocal Rank Fusion. BM25 catches exact terms. Semantic catches meaning. Together, they find things that either approach alone would miss.</p><h4>Step 5: How Memory Actually Works</h4><p>AI Engram stores memories as JSONL entries (append-only, easy to inspect, easy to recover). Each memory has an ID, category, content, tags, timestamp, and source. Six categories:</p><p>Category Use Case <code>decision</code> Architectural choices, workflow rules, rejected approaches <code>preference</code> Tool choices, formatting styles, workflow preferences <code>insight</code> Key learnings, patterns discovered, breakthroughs <code>context</code> Background information, project state, environment details <code>task</code> Completed work, milestones, deliverables <code>note</code> General purpose, anything worth persisting</p><p>The Context Memory Protocol works like this:</p><p>At conversation start, Claude calls <code>recall_all</code> with a relevant query, then <code>list_memories</code> with category &#8220;decision&#8221; to load workflow decisions from past sessions.</p><p>During conversation, Claude automatically stores decisions, preferences, completed tasks, important context, insights, and notes using the <code>remember</code> tool.</p><p>The result: every conversation builds on every conversation before it. Decisions persist. Preferences stick. Insights compound.</p><h4>The Final Product</h4><p>Your Obsidian Vault now contains:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;455e91bf-d142-43ac-8077-44c0a9f43bd2&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">your-vault/
&#9500;&#9472;&#9472; raw/                      # Source documents (immutable)
&#9500;&#9472;&#9472; wiki/                     # Evolving knowledge base
&#9474;   &#9500;&#9472;&#9472; index.md              # Navigation hub
&#9474;   &#9500;&#9472;&#9472; log.md                # Append-only action log
&#9474;   &#9492;&#9472;&#9472; [domain folders]      # Topic-organized wiki pages
&#9500;&#9472;&#9472; outputs/                  # Generated reports
&#9500;&#9472;&#9472; AGENTS.md                 # Knowledge base schema
&#9500;&#9472;&#9472; .aiengram_memory.jsonl    # Persistent conversation memory
&#9492;&#9472;&#9472; .aiengram_cache.pkl       # Semantic embedding cache
</code></pre></div><p>Claude reads your wiki. Claude searches your files with hybrid BM25+semantic search. Claude remembers every decision across every session. Your knowledge base compounds. Your memory persists.</p><h2>Where This System Breaks</h2><p><strong>Context window ceiling.</strong> Around 100 articles or 400K words, selective reading via the index introduces blind spots. Claude reads the index first and may miss relevant pages further down.</p><p><strong>Error compounding.</strong> The AI writes a subtle mistake into your wiki. A later query uses that mistake. It files back insights reinforcing the error. This is the compounding downside of a compounding system.</p><p><strong>Hallucination persists.</strong> Your wiki looks authoritative with citations and structured formatting. But the AI can still synthesize false connections. The structure makes mistakes <em>look</em> more credible.</p><p><strong>Cost adds up.</strong> Frontier models run $1-2 per ingest operation. Ten sources a day adds up. Cheaper models work for simple updates, frontier models for complex ingestion.</p><p><strong>AI Engram requires maintenance.</strong> The JSONL memory file grows. Occasionally you need to review, prune, and <code>forget</code> outdated memories. A set-and-forget approach produces the same decay as Layer 1&#8217;s unmanaged memory page.</p><p><strong>Scaling caps out around 10K sources.</strong> This system serves individuals and small teams well. Enterprise-scale knowledge management requires a different architecture.</p><h2>Which Layer Should You Build?</h2><p>Layer Time Best For 1: Basic Memory 5 minutes Everyone. Start here. 2: Context Files ~60 minutes Power users with repeatable workflows 3 Option 1: Notion 5 minutes People already in Notion who want visual dashboards 3 Option 2: Obsidian + Engram 1-2 hours People who want local control, deep search, and persistent memory across sessions</p><p>My recommendation: start at Layer 1 today. Build Layer 2 this week. Graduate to Layer 3 Option 2 when you&#8217;re ready to stop repeating yourself across every conversation.</p><p>The difference between Claude with default memory and Claude with a second brain is the difference between a goldfish and an elephant. Same fishbowl. Completely different relationship with time.</p><div><hr></div><p><em>This article was built from real systems: the LLM Knowledge Base architecture (covered in detail at archonhq.ai) and AI Engram (github.com/MikeS071/ai-engram), an open-source MCP server for persistent AI memory. Both run locally. Both compound. Go build yours.</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://archonhq.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://archonhq.ai/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item><item><title><![CDATA[Clone Hermes Agent's Architecture for Your Own AI Assistant]]></title><description><![CDATA[Reverse-engineer Hermes Agent's core design patterns to build a production-grade AI assistant framework]]></description><link>https://archonhq.ai/p/clone-hermes-agents-architecture</link><guid isPermaLink="false">https://archonhq.ai/p/clone-hermes-agents-architecture</guid><dc:creator><![CDATA[Michal Szalinski]]></dc:creator><pubDate>Mon, 18 May 2026 21:00:59 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!EFZv!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F69cd935d-331e-474e-8c47-dbc787be86ef_1536x1024.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!EFZv!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F69cd935d-331e-474e-8c47-dbc787be86ef_1536x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!EFZv!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F69cd935d-331e-474e-8c47-dbc787be86ef_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!EFZv!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F69cd935d-331e-474e-8c47-dbc787be86ef_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!EFZv!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F69cd935d-331e-474e-8c47-dbc787be86ef_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!EFZv!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F69cd935d-331e-474e-8c47-dbc787be86ef_1536x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!EFZv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F69cd935d-331e-474e-8c47-dbc787be86ef_1536x1024.png" width="1456" height="971" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/69cd935d-331e-474e-8c47-dbc787be86ef_1536x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:971,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2652918,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://archonhq.ai/i/197806293?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F69cd935d-331e-474e-8c47-dbc787be86ef_1536x1024.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!EFZv!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F69cd935d-331e-474e-8c47-dbc787be86ef_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!EFZv!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F69cd935d-331e-474e-8c47-dbc787be86ef_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!EFZv!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F69cd935d-331e-474e-8c47-dbc787be86ef_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!EFZv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F69cd935d-331e-474e-8c47-dbc787be86ef_1536x1024.png 1456w" sizes="100vw" fetchpriority="high"></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>Your AI assistant forgets the conversation context after three exchanges. The tool calling fails when you chain multiple operations. The memory system breaks when handling complex workflows that span multiple sessions.</p><p>You&#8217;re cobbling together OpenAI function calls with custom prompt engineering while fighting race conditions in multi-step processes. The assistant that worked for simple Q&amp;A completely falls apart when you need it to research, analyze, and execute a series of dependent tasks.</p><p>Meanwhile, Nous Research&#8217;s Hermes Agent handles complex workflows flawlessly. Multi-turn conversations maintain perfect context. Tool execution chains together seamlessly. The architecture scales from simple queries to sophisticated automation.</p><h2>The Idea (60 Seconds)</h2><p>You&#8217;ll reverse-engineer Hermes Agent&#8217;s core design patterns to build a production-grade AI assistant framework. The implementation uses a modular plugin system, persistent memory management, and standardized tool interfaces that handle complex workflows reliably. Setup takes 2 hours. The result gives you an assistant architecture that scales from basic chat to autonomous task execution.</p><h2>Why This Architecture, Beyond Simple Function Calling</h2><p><strong>Memory persistence solves context degradation.</strong> Standard chat implementations lose context as conversations grow. Hermes uses structured memory that maintains conversation state, user preferences, and task history across sessions. Your assistant remembers what you discussed yesterday and builds on previous work.</p><p><strong>Plugin modularity enables unlimited expansion.</strong> Function calling requires hardcoded tool definitions. The Hermes pattern uses a plugin interface where tools register themselves dynamically. Add new capabilities by dropping Python files into a plugins directory. Zero core code changes.</p><p><strong>Execution planning prevents tool chaos.</strong> Naive implementations call tools randomly based on user input. Hermes creates execution plans that sequence tool calls logically, handle dependencies, and recover from failures. The difference between &#8220;search for Python tutorials&#8221; and &#8220;search for Python tutorials, summarize the top 3, create a learning plan, and schedule practice sessions.&#8221;</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://archonhq.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">ArchonHQ is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>Walkthrough</h2><h3>1. Core Agent Framework</h3><p>Create the base agent class that handles conversation flow and tool coordination:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;28bd9612-c2d8-439c-9de3-43323b0ab9fd&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python"># agent.py
import json
import asyncio
from typing import Dict, List, Any, Optional
from dataclasses import dataclass
from datetime import datetime

@dataclass
class Message:
    role: str
    content: str
    timestamp: datetime
    metadata: Dict[str, Any] = None

class HermesAgent:
    def __init__(self, model_client, memory_store, plugin_manager):
        self.model = model_client
        self.memory = memory_store
        self.plugins = plugin_manager
        self.conversation_id = None
        
    async def process_message(self, user_input: str) -&gt; str:
        # Load conversation context
        context = await self.memory.get_context(self.conversation_id)
        
        # Create execution plan
        plan = await self.create_execution_plan(user_input, context)
        
        # Execute plan steps
        results = []
        for step in plan.steps:
            result = await self.execute_step(step)
            results.append(result)
            
        # Generate response
        response = await self.synthesize_response(results, user_input)
        
        # Store conversation state
        await self.memory.store_exchange(
            self.conversation_id, user_input, response, results
        )
        
        return response
</code></pre></div><h3>2. Memory Management System</h3><p>Implement persistent memory that maintains context across sessions:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;0d2ef26f-2ff6-45b6-be64-1f7dab0588ee&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python"># memory.py
import sqlite3
import json
from typing import Dict, List, Optional

class MemoryStore:
    def __init__(self, db_path: str):
        self.db_path = db_path
        self.init_database()
        
    def init_database(self):
        conn = sqlite3.connect(self.db_path)
        conn.execute('''
            CREATE TABLE IF NOT EXISTS conversations (
                id TEXT PRIMARY KEY,
                created_at TIMESTAMP,
                last_active TIMESTAMP,
                context_summary TEXT
            )
        ''')
        conn.execute('''
            CREATE TABLE IF NOT EXISTS messages (
                id INTEGER PRIMARY KEY,
                conversation_id TEXT,
                role TEXT,
                content TEXT,
                timestamp TIMESTAMP,
                metadata TEXT,
                FOREIGN KEY (conversation_id) REFERENCES conversations (id)
            )
        ''')
        conn.commit()
        conn.close()
        
    async def get_context(self, conversation_id: str) -&gt; Dict:
        conn = sqlite3.connect(self.db_path)
        
        # Get recent messages
        messages = conn.execute('''
            SELECT role, content, timestamp, metadata 
            FROM messages 
            WHERE conversation_id = ? 
            ORDER BY timestamp DESC 
            LIMIT 20
        ''', (conversation_id,)).fetchall()
        
        # Get conversation summary
        summary = conn.execute('''
            SELECT context_summary 
            FROM conversations 
            WHERE id = ?
        ''', (conversation_id,)).fetchone()
        
        conn.close()
        
        return {
            'messages': [
                {
                    'role': msg[0], 
                    'content': msg[1], 
                    'timestamp': msg[2],
                    'metadata': json.loads(msg[3] or '{}')
                } 
                for msg in reversed(messages)
            ],
            'summary': summary[0] if summary else None
        }
</code></pre></div><h3>3. Plugin System Architecture</h3><p>Build the modular tool interface that enables dynamic capability expansion:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;3acd2c8b-d068-4a6e-8dbd-48256ced2689&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python"># plugins.py
import importlib
import os
from abc import ABC, abstractmethod
from typing import Dict, Any, List

class Plugin(ABC):
    @property
    @abstractmethod
    def name(self) -&gt; str:
        pass
        
    @property
    @abstractmethod
    def description(self) -&gt; str:
        pass
        
    @abstractmethod
    async def execute(self, parameters: Dict[str, Any]) -&gt; Any:
        pass
        
    @abstractmethod
    def get_schema(self) -&gt; Dict:
        pass

class PluginManager:
    def __init__(self, plugins_dir: str):
        self.plugins_dir = plugins_dir
        self.plugins: Dict[str, Plugin] = {}
        self.load_plugins()
        
    def load_plugins(self):
        for filename in os.listdir(self.plugins_dir):
            if filename.endswith('.py') and filename != '__init__.py':
                module_name = filename[:-3]
                spec = importlib.util.spec_from_file_location(
                    module_name, 
                    os.path.join(self.plugins_dir, filename)
                )
                module = importlib.util.module_from_spec(spec)
                spec.loader.exec_module(module)
                
                # Find Plugin subclasses
                for attr_name in dir(module):
                    attr = getattr(module, attr_name)
                    if (isinstance(attr, type) and 
                        issubclass(attr, Plugin) and 
                        attr != Plugin):
                        plugin_instance = attr()
                        self.plugins[plugin_instance.name] = plugin_instance
                        
    def get_available_tools(self) -&gt; List[Dict]:
        return [
            {
                'name': plugin.name,
                'description': plugin.description,
                'schema': plugin.get_schema()
            }
            for plugin in self.plugins.values()
        ]
</code></pre></div><h3>4. Example Plugin Implementation</h3><p>Create a web search plugin that follows the standard interface:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;896b50e2-e719-46a5-bd0b-b68fbb56340b&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python"># plugins/web_search.py
import aiohttp
import json
from plugins import Plugin

class WebSearchPlugin(Plugin):
    @property
    def name(self) -&gt; str:
        return "web_search"
        
    @property
    def description(self) -&gt; str:
        return "Search the web for current information"
        
    async def execute(self, parameters):
        query = parameters.get('query')
        max_results = parameters.get('max_results', 5)
        
        # Use your preferred search API
        async with aiohttp.ClientSession() as session:
            url = f"https://api.search.brave.com/res/v1/web/search"
            headers = {"X-Subscription-Token": "your_api_key"}
            params = {"q": query, "count": max_results}
            
            async with session.get(url, headers=headers, params=params) as response:
                data = await response.json()
                
        results = []
        for item in data.get('web', {}).get('results', []):
            results.append({
                'title': item.get('title'),
                'url': item.get('url'),
                'description': item.get('description')
            })
            
        return {'results': results, 'query': query}
        
    def get_schema(self):
        return {
            'type': 'object',
            'properties': {
                'query': {'type': 'string', 'description': 'Search query'},
                'max_results': {'type': 'integer', 'description': 'Maximum results to return'}
            },
            'required': ['query']
        }
</code></pre></div><h3>5. Execution Planning</h3><p>Implement the planning system that sequences tool calls intelligently:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;fdb32af2-a81a-42f2-9911-ed35da75e4d2&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python"># planner.py
from typing import List, Dict
from dataclasses import dataclass

@dataclass
class ExecutionStep:
    tool_name: str
    parameters: Dict
    depends_on: List[str] = None
    step_id: str = None

class ExecutionPlanner:
    def __init__(self, model_client, plugin_manager):
        self.model = model_client
        self.plugins = plugin_manager
        
    async def create_plan(self, user_input: str, context: Dict) -&gt; List[ExecutionStep]:
        available_tools = self.plugins.get_available_tools()
        
        planning_prompt = f"""
        User request: {user_input}
        Available tools: {json.dumps(available_tools, indent=2)}
        
        Create a step-by-step execution plan. Each step should use one tool.
        Consider dependencies between steps.
        
        Respond with a JSON array of steps:
        [
            {{
                "step_id": "step_1",
                "tool_name": "web_search",
                "parameters": {{"query": "Python tutorials"}},
                "depends_on": []
            }}
        ]
        """
        
        response = await self.model.complete(planning_prompt)
        steps_data = json.loads(response)
        
        return [ExecutionStep(**step) for step in steps_data]
</code></pre></div><h2>Caveats</h2><p><strong>Model quality determines planning effectiveness.</strong> The execution planner relies on the language model understanding tool capabilities and sequencing logic. Weaker models create inefficient plans or miss dependencies. GLM-5.1 level capability becomes essential for complex workflows.</p><p><strong>Memory storage grows indefinitely.</strong> The SQLite implementation accumulates conversation history permanently. Add cleanup routines for conversations older than 30 days or implement conversation archiving to prevent database bloat.</p><p><strong>Plugin isolation remains minimal.</strong> Plugins execute in the same Python process with full system access. Malicious or buggy plugins can crash the entire agent. Consider sandboxing for production deployments handling untrusted plugins.</p><h2>Philosophy</h2><p>Building your own agent architecture creates compound advantages over time. Each plugin you add increases the system&#8217;s capabilities exponentially. The memory system learns your preferences and work patterns. The execution planner gets better at sequencing tasks for your specific use cases.</p><p>The Hermes architecture pattern scales from personal assistant to team automation platform. Start with web search and file operations. Add calendar integration, code analysis, and deployment tools. The modular design grows with your needs while maintaining reliability.</p><p>You own the entire stack. Zero vendor dependencies. Zero API rate limits. Zero feature deprecation risk.</p><h2>Build Yours</h2><p>Start with the core agent framework and memory system. Build one plugin. Test the execution planning with simple two-step workflows. The architecture becomes clear once you see it running.</p><p>What&#8217;s the first capability you&#8217;ll add to your agent? Drop your plugin ideas in the comments.</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://archonhq.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://archonhq.ai/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item><item><title><![CDATA[Your ICP Is a Trap]]></title><description><![CDATA[Your Ideal Customer Profile is a trap when it answers the wrong question.]]></description><link>https://archonhq.ai/p/your-icp-is-a-trap</link><guid isPermaLink="false">https://archonhq.ai/p/your-icp-is-a-trap</guid><dc:creator><![CDATA[Michal Szalinski]]></dc:creator><pubDate>Sun, 17 May 2026 07:26:23 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!ohP0!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F722064c1-bc51-456f-b321-e18e7cc27cd4_1920x1080.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ohP0!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F722064c1-bc51-456f-b321-e18e7cc27cd4_1920x1080.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ohP0!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F722064c1-bc51-456f-b321-e18e7cc27cd4_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!ohP0!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F722064c1-bc51-456f-b321-e18e7cc27cd4_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!ohP0!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F722064c1-bc51-456f-b321-e18e7cc27cd4_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!ohP0!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F722064c1-bc51-456f-b321-e18e7cc27cd4_1920x1080.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ohP0!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F722064c1-bc51-456f-b321-e18e7cc27cd4_1920x1080.png" width="1456" height="819" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/722064c1-bc51-456f-b321-e18e7cc27cd4_1920x1080.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:819,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2506170,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://archonhq.ai/i/198092930?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F722064c1-bc51-456f-b321-e18e7cc27cd4_1920x1080.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ohP0!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F722064c1-bc51-456f-b321-e18e7cc27cd4_1920x1080.png 424w, https://substackcdn.com/image/fetch/$s_!ohP0!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F722064c1-bc51-456f-b321-e18e7cc27cd4_1920x1080.png 848w, https://substackcdn.com/image/fetch/$s_!ohP0!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F722064c1-bc51-456f-b321-e18e7cc27cd4_1920x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!ohP0!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F722064c1-bc51-456f-b321-e18e7cc27cd4_1920x1080.png 1456w" sizes="100vw" fetchpriority="high"></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>You spend six weeks building an AI agent that automates invoice processing for small businesses. You launch. Crickets. You posted in three Discord servers, sent 40 cold DMs, ran $200 in ads. Zero paying customers. The product works. The demos are smooth. Sales stay at zero.</p><p>The problem stared you in the face the whole time. Your ICP was &#8220;small business owners who need automation.&#8221; That describes 30 million people and excites exactly zero of them. You defined your ideal customer by demographics, by role, by company size. You listed who they are. You failed to ask whether they care, whether they spend, whether you can reach them, and whether you have any right to win.</p><h2>The Idea (60 Seconds)</h2><p>Your Ideal Customer Profile is a trap when it answers the wrong question. Most builders define ICP by demographics: age, income, job title, company size. Those attributes describe a person. They fail to predict behavior.</p><p>A strong ICP answers one question: Who is actively trying to solve this problem right now, has the ability to pay, and can be reached?</p><p>Urgency and situation beat demographics every time. A 42-year-old CFO at a logistics company drowning in manual reconciliation is your ICP. &#8220;CFOs at mid-market companies&#8221; is a demographic label that includes thousands of people perfectly happy with their spreadsheets.</p><p>The 4-Filter Test screens your ICP before you invest a single build hour. Pain. Market. Access. Fit. Each filter eliminates weak assumptions. Pass all four, and you have a target worth building for.</p><p>Two complementary question sequences sharpen the result. The Narrowing Funnel, derived from Alex Hormozi&#8217;s framework, starts broad and drills to urgency. The Lighthouse Client Method, created by Rmosh, grounds your ICP in a real human being instead of an abstract persona.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://archonhq.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">ArchonHQ is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>Why This Matters</h2><p>Every AI builder hits the same wall. You learn prompt engineering. You master agent frameworks. You ship something that works. Then you realize you built it for everybody, which means you built it for an audience of zero.</p><p>Generic ICPs produce generic messaging. Generic messaging produces low conversion and high churn. You attract people who kind of sort of need your thing. They sign up, poke around, and leave. Your retention numbers look like a cliff.</p><p>The cost compounds fast. Six weeks of building for the wrong audience means six weeks of code you may need to rewrite, six weeks of positioning you need to undo, and six weeks of motivation burned on a product zero people wanted.</p><p>The antidote is simple and ruthless: filter before you build. The 4-Filter Test takes 30 minutes and saves months.</p><h2>Walkthrough</h2><h3>The 4-Filter Test</h3><p>Run your ICP through these four filters in order. Fail any single one, and you stop. Revisit your assumptions. Pick a different target. Do it all before writing a single line of code.</p><p><strong>Filter 1: Pain.</strong> Are real people experiencing this problem and actively seeking solutions?</p><p>This is the urgency filter. People complain about many things. People seek solutions for far fewer. Your ICP must have a problem painful enough that they are already looking for help, googling alternatives, posting in forums, asking colleagues.</p><p>Test: Search for the problem in Reddit, Twitter, industry Slack channels. If people are posting about it and asking for recommendations, pain is real. If you find only vague complaints, the pain is too low to drive purchase behavior.</p><p>Example: &#8220;Bookkeeping is tedious&#8221; is a complaint. &#8220;I spent 12 hours last weekend reconciling invoices and I am still behind&#8221; is a pain signal. The second person buys. The first person scrolls past your ad.</p><p><strong>Filter 2: Market.</strong> Is there a group spending money on solutions already?</p><p>Existing spend proves willingness to pay. If zero people are spending money to solve this problem, you are fighting human inertia and budget allocation at the same time. That is a losing battle.</p><p>Test: Search for existing products, agencies, consultants, or freelancers serving this problem. Check their pricing pages. Look for G2 or Capterra listings. Paid competitors validate the market. Zero competitors usually signals zero market, and first-mover advantage is a myth for solo builders.</p><p>Example: Automation tools for real estate agents exist everywhere, and agents pay for them. That signals a market. A tool for &#8220;people who want to journal more creatively&#8221; faces a market of free alternatives and low willingness to pay.</p><p><strong>Filter 3: Access.</strong> Can you reach these people through channels you can actually use?</p><p>A perfect ICP locked behind an unreachable channel is useless. If your target is Fortune 500 CTOs and your only channel is a Twitter account with 200 followers, you lack access. Access means you can put your message in front of your ICP repeatedly, at low cost, starting this week.</p><p>Test: List every channel where your ICP spends time. Then honestly assess whether you can show up there. Do you have followers there? Do you know someone who does? Can you write content they read? Can you cold-email them effectively?</p><p>Example: React developers are reachable through Twitter, Dev.to, Discord, GitHub, and conference communities. Mid-market hospital administrators are reachable through expensive trade shows and closed networks. Pick the ICP you can actually reach.</p><p><strong>Filter 4: Fit.</strong> Does your skill or experience give you an edge with this group?</p><p>You need earned advantage. Domain knowledge, professional network, technical expertise, or lived experience that lets you build something better or faster than a random competitor. Fit is your moat at the earliest stage.</p><p>Test: Ask yourself what you know about this ICP that most people lack. If the answer is &#8220;zero,&#8221; you are competing on execution alone against people who have both execution and insight.</p><p>Example: A former tax accountant building automation for tax firms has massive fit. A career developer building automation for dental practices has zero fit. Both can build the product. The former builds the right product faster.</p><h3>The Narrowing Funnel (Hormozi-Derived)</h3><p>Once your ICP passes all four filters, sharpen it with this question sequence. Each question narrows the field.</p><ol><li><p><strong>Who specifically?</strong> Start broad: &#8220;Business owners.&#8221; Narrow: &#8220;E-commerce business owners.&#8221; Narrower: &#8220;E-commerce business owners doing $1M to $10M in revenue.&#8221; Each level removes people who dilute your message.</p></li><li><p><strong>What is their situation?</strong> Describe the context that creates the problem. &#8220;E-commerce owners managing inventory across three warehouses with a team of five and lacking a dedicated operations person.&#8221;</p></li><li><p><strong>What is the painful version?</strong> Find the acute symptom. &#8220;SKU mismatches causing stockouts on best-selling items during peak season.&#8221; This is what keeps them up at night.</p></li><li><p><strong>What triggers them to seek help right now?</strong> Identify the event that converts latent frustration into active purchasing. &#8220;Black Friday inventory errors cost them $50K in lost sales last year, and Q4 is eight weeks away.&#8221; That is urgency.</p></li><li><p><strong>What is the outcome they would pay for?</strong> State the result in their language. &#8220;Eliminate SKU mismatches so every order ships correct and on time.&#8221; The outcome, the result, rather than the feature.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://archonhq.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">ArchonHQ is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div></li></ol><h3>The Lighthouse Client Method</h3><p>The Narrowing Funnel gives you a precise segment. The Lighthouse Client Method grounds it in a real human being.</p><ol><li><p><strong>Identify one person you would love to help.</strong> A specific individual. A former colleague, a client you worked with, a person from a community you belong to. Someone you can picture clearly.</p></li><li><p><strong>Map their entire day.</strong> From morning to evening, what do they do? Where do they spend time? What tools do they open? What meetings drain them? What tasks feel like wasted effort?</p></li><li><p><strong>Find the friction point they complain about most.</strong> The thing they mention unprompted. The task that makes them groan. The process they describe as &#8220;the worst part of my week.&#8221;</p></li><li><p><strong>Build for that person, then generalize.</strong> Create the solution that eliminates their specific friction. Then ask: who else has this same friction in this same context? Those people are your ICP.</p></li></ol><p>This method works because it anchors your product in observed behavior instead of imagined needs. You solve a real problem for a real person. Other people with the same problem recognize themselves in your messaging because it describes their actual experience.</p><h3>The Two Big Beginner Mistakes</h3><p><strong>Mistake 1: &#8220;My ICP is everyone who might pay.&#8221;</strong> This feels safe. It is the opposite of safe. Broad targeting produces generic messaging. Generic messaging converts at a fraction of specific messaging. You attract marginal customers who churn fast because the product serves everyone poorly instead of serving someone exceptionally.</p><p>Fix: Define your ICP by best-fit criteria and disqualifiers. Write down who you serve and who you deliberately exclude. Disqualifiers sharpen your positioning as much as qualifiers. &#8220;We help e-commerce operators doing $1M to $10M. Enterprise teams and solopreneurs fall outside our focus.&#8221;</p><p><strong>Mistake 2: Choosing a niche based on passion or identity, assuming the market rewards authenticity.</strong> Passion is a starting point. It falls short as a standalone strategy. The market rewards value, and value requires craft. Building for a niche you love where you lack skill and produces mediocre products competing against people with genuine expertise.</p><p>Fix: Replace passion-first with craft plus pull. Craft means your skill gives you an edge. Pull means the market signals demand. When craft and pull align, you have a sustainable position. When they misalign, you have a hobby.</p><h2>The Prompt Toolkit</h2><h3>ICP Extraction Prompt</h3><p>Copy the prompt below, replace the placeholder with your business idea, and paste it into any LLM.</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;ef537be1-e10e-4124-a3ab-5be721537ada&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">&lt;role&gt;You are a ruthless ICP analyst. You eliminate weak assumptions and surface the truth about whether a business idea has a viable target customer.&lt;/role&gt;

&lt;task&gt;Run the 4-Filter Test on the business idea below. Score each filter from 1 to 10. For each filter, provide the score, the reasoning, and the specific evidence a builder should gather to validate or invalidate the score. Be brutally honest. Affirmative evidence only; discard wishful thinking.&lt;/task&gt;

&lt;filters&gt;
 &lt;filter name="Pain"&gt;
 &lt;question&gt;Are real people experiencing this problem and actively seeking solutions right now?&lt;/question&gt;
 &lt;scoring_guide&gt;10 = People post daily in public forums begging for a fix. 5 = People complain occasionally. 1 = You assume the pain exists based on logic alone.&lt;/scoring_guide&gt;
 &lt;/filter&gt;
 &lt;filter name="Market"&gt;
 &lt;question&gt;Is there a group already spending money to solve this problem?&lt;/question&gt;
 &lt;scoring_guide&gt;10 = Multiple paid products with pricing pages and reviews. 5 = One or two niche tools exist. 1 = Zero paid solutions exist.&lt;/scoring_guide&gt;
 &lt;/filter&gt;
 &lt;filter name="Access"&gt;
 &lt;question&gt;Can you reach these people through channels you can actually use this week?&lt;/question&gt;
 &lt;scoring_guide&gt;10 = You already have an audience or direct connection. 5 = You can reach them through public communities. 1 = They hide behind gatekeepers and enterprise sales cycles.&lt;/scoring_guide&gt;
 &lt;/filter&gt;
 &lt;filter name="Fit"&gt;
 &lt;question&gt;Does your skill or experience give you an edge with this group?&lt;/question&gt;
 &lt;scoring_guide&gt;10 = You have years of domain expertise and a network. 5 = You have adjacent skills. 1 = You have zero connection to this world.&lt;/scoring_guide&gt;
 &lt;/filter&gt;
&lt;/filters&gt;

&lt;output_format&gt;
Return your response in this exact structure:
&lt;result&gt;
 &lt;idea_summary&gt;One-sentence restatement of the idea&lt;/idea_summary&gt;
 &lt;filter name="Pain" score="X"&gt;Reasoning and evidence to gather&lt;/filter&gt;
 &lt;filter name="Market" score="X"&gt;Reasoning and evidence to gather&lt;/filter&gt;
 &lt;filter name="Access" score="X"&gt;Reasoning and evidence to gather&lt;/filter&gt;
 &lt;filter name="Fit" score="X"&gt;Reasoning and evidence to gather&lt;/filter&gt;
 &lt;total_score&gt;X/40&lt;/total_score&gt;
 &lt;verdict&gt;PASS if total &gt;= 28, CONDITIONAL if 20-27, FAIL if below 20&lt;/verdict&gt;
 &lt;next_action&gt;One specific thing the builder should do next&lt;/next_action&gt;
&lt;/result&gt;
&lt;/output_format&gt;

&lt;business_idea&gt;
[PASTE YOUR BUSINESS IDEA HERE]
&lt;/business_idea&gt;
</code></pre></div><h3>Lighthouse Client Prompt</h3><p>Copy the prompt below, answer the questions honestly, and paste it into any LLM.</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;36fe3c19-f85b-48ba-ad30-54d2a6529ae5&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">&lt;role&gt;You are a product strategist who specializes in grounding abstract customer profiles in real human behavior. Your method is the Lighthouse Client Method: find one real person, observe their actual day, and surface the friction that drives purchasing.&lt;/role&gt;

&lt;task&gt;Walk me through the Lighthouse Client Method step by step. Ask me one question at a time. Wait for my answer before proceeding to the next step. Complete all four steps.&lt;/task&gt;

&lt;steps&gt;
 &lt;step number="1" name="Identify"&gt;
 &lt;instruction&gt;Ask me to name one specific person I would love to help. This must be a real individual I can picture clearly: a former colleague, a past client, someone from a community I belong to. Ask for their first name (or alias), their role, and their industry.&lt;/instruction&gt;
 &lt;/step&gt;
 &lt;step number="2" name="Map the Day"&gt;
 &lt;instruction&gt;Ask me to describe this person's typical workday from morning to evening. Prompt me to include: what tools they open, what meetings they attend, what tasks consume their time, and what feels like wasted effort. Probe for specifics.&lt;/instruction&gt;
 &lt;/step&gt;
 &lt;step number="3" name="Find the Friction"&gt;
 &lt;instruction&gt;Ask me to identify the single task this person complains about most. The thing they mention unprompted. The process that makes them groan. Ask what they have tried to fix it and why those attempts fell short.&lt;/instruction&gt;
 &lt;/step&gt;
 &lt;step number="4" name="Generalize"&gt;
 &lt;instruction&gt;Based on everything I shared, produce a one-paragraph ICP statement in this format: "People like [name], who are [role] at [type of company], who struggle with [specific friction] because [root cause], and who would pay for [outcome]."&lt;/instruction&gt;
 &lt;/step&gt;
&lt;/steps&gt;

&lt;output_format&gt;
After I complete all four steps, output:
&lt;lighthouse_result&gt;
 &lt;client_profile&gt;Summary of the person I described&lt;/client_profile&gt;
 &lt;friction_point&gt;The specific pain you identified&lt;/friction_point&gt;
 &lt;icp_statement&gt;The one-paragraph ICP statement from Step 4&lt;/icp_statement&gt;
 &lt;validation_checklist&gt;Three specific actions I should take this week to confirm this friction exists for five more people&lt;/validation_checklist&gt;
&lt;/lighthouse_result&gt;
&lt;/output_format&gt;
</code></pre></div><h3>ICP Validation CLI</h3><p>Save the script below as <code>icp_check.py</code>, set your <code>OPENROUTER_API_KEY</code> environment variable, and run it.</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;9764e23a-3394-4b36-92fb-596452140727&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">import argparse, os, json, urllib.request

def main():
 p = argparse.ArgumentParser(description="4-Filter ICP Assessment via OpenRouter")
 p.add_argument("idea", help="Your business idea description")
 p.add_argument("--model", default="google/gemini-2.0-flash-001")
 args = p.parse_args()
 key = os.environ.get("OPENROUTER_API_KEY", "")
 assert key, "Set OPENROUTER_API_KEY env var"
 prompt = f"""Score this business idea on the 4-Filter ICP Test. Each filter gets 1-10.
Filters: Pain (active problem seekers?), Market (existing spend?), Access (reachable channels?), Fit (your edge?).
Idea: {args.idea}
Return JSON only: {{"pain": int, "market": int, "access": int, "fit": int, "total": int, "verdict": "PASS|CONDITIONAL|FAIL"}}"""
 body = json.dumps({"model": args.model, "messages": [{"role": "user", "content": prompt}]}).encode()
 req = urllib.request.Request("https://openrouter.ai/api/v1/chat/completions", data=body,
 headers={"Authorization": f"Bearer {key}", "Content-Type": "application/json"})
 resp = json.loads(urllib.request.urlopen(req).read())
 r = json.loads(resp["choices"][0]["message"]["content"])
 print(f"Pain: {r['pain']}/10 | Market: {r['market']}/10 | Access: {r['access']}/10 | Fit: {r['fit']}/10")
 print(f"Total: {r['total']}/40 | Verdict: {r['verdict']}")

if __name__ == "__main__":
 main()
</code></pre></div><h2>Caveats</h2><p>The 4-Filter Test eliminates bad ICPs fast. It can also create false confidence if you lie to yourself on any filter. Confirmation bias is the enemy. Run each filter assuming your ICP fails, and look for evidence that it passes. The opposite approach, seeking evidence that confirms your hope, leads to the same wasted months the test is designed to prevent.</p><p>The Lighthouse Client Method risks overfitting to one person. Your lighthouse client may have idiosyncratic needs that diverge from the broader market. After building for them, validate that the problem generalizes. Talk to five more people in the same segment. If three of five describe the same friction, you have product-market signal. If only one of five does, you have a consulting client.</p><p>Markets shift. An ICP that passes all four filters today may fail in six months as conditions change. Revisit the test quarterly. Treat your ICP as a hypothesis, and treat revenue as the experiment result.</p><h2>Philosophy</h2><p>The best product strategy starts with ruthless selection, and selection means elimination. Every person you exclude from your ICP makes your messaging sharper for the people who remain. Every filter you apply removes a possible path to wasted effort.</p><p>Building AI tools is easier than ever. The moat has moved from technical execution to problem selection. The builders who win are the ones who chose the right problem before they wrote a single function. The 4-Filter Test is how you choose correctly.</p><p>Specificity is generosity. A vague ICP leaves every reader uncertain whether this product serves them. A precise ICP tells the right people, &#8220;this was built for you, and you can see it.&#8221; That clarity converts.</p><div><hr></div><p><em>This is the first entry in the Caliber Series, a paid column on building and selling AI tools. The next article breaks down how to validate your ICP in 48 hours using zero but free tools and five conversations. Upgrade to access the full series.</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://archonhq.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://archonhq.ai/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item><item><title><![CDATA[Build Your Own VS Code AI Agent independently of GitHub Copilot]]></title><description><![CDATA[Build a VS Code extension that routes completions through your local AI models]]></description><link>https://archonhq.ai/p/build-your-own-vs-code-ai-agent-without</link><guid isPermaLink="false">https://archonhq.ai/p/build-your-own-vs-code-ai-agent-without</guid><dc:creator><![CDATA[Michal Szalinski]]></dc:creator><pubDate>Sat, 16 May 2026 21:37:49 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!ODj2!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F28f427ee-f192-4b9e-a98f-7ea00e797b49_1536x1024.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ODj2!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F28f427ee-f192-4b9e-a98f-7ea00e797b49_1536x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ODj2!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F28f427ee-f192-4b9e-a98f-7ea00e797b49_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!ODj2!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F28f427ee-f192-4b9e-a98f-7ea00e797b49_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!ODj2!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F28f427ee-f192-4b9e-a98f-7ea00e797b49_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!ODj2!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F28f427ee-f192-4b9e-a98f-7ea00e797b49_1536x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ODj2!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F28f427ee-f192-4b9e-a98f-7ea00e797b49_1536x1024.png" width="1456" height="971" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/28f427ee-f192-4b9e-a98f-7ea00e797b49_1536x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:971,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2742069,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://archonhq.ai/i/197804869?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F28f427ee-f192-4b9e-a98f-7ea00e797b49_1536x1024.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ODj2!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F28f427ee-f192-4b9e-a98f-7ea00e797b49_1536x1024.png 424w, https://substackcdn.com/image/fetch/$s_!ODj2!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F28f427ee-f192-4b9e-a98f-7ea00e797b49_1536x1024.png 848w, https://substackcdn.com/image/fetch/$s_!ODj2!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F28f427ee-f192-4b9e-a98f-7ea00e797b49_1536x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!ODj2!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F28f427ee-f192-4b9e-a98f-7ea00e797b49_1536x1024.png 1456w" sizes="100vw" fetchpriority="high"></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>Your GitHub Copilot subscription hits $10/month. The completions feel sluggish when your internet connection drops. The model suggestions lean generic, trained on everything but optimized for your specific codebase patterns.</p><p>You&#8217;re paying monthly for AI assistance while being locked into Microsoft&#8217;s inference servers, data policies, and model choices. Meanwhile, your local machine sits idle with 32GB of RAM and a capable GPU.</p><p>What if you could build a VS Code extension that routes completions through your local AI models, processes requests in 200ms, and learns your coding patterns autonomously?</p><h2>The Idea (60 Seconds)</h2><p>You&#8217;ll create a custom VS Code extension using the Language Server Protocol to intercept completion requests and route them through local models like Ollama or LM Studio. The system provides real-time code suggestions, context-aware completions, and chat functionality while running entirely offline. Setup takes 30 minutes. The result replaces Copilot with a faster, customizable, cost-free alternative.</p><h2>Why Local Models, Beyond Cloud APIs</h2><p><strong>Latency drops to milliseconds.</strong> Cloud completions travel to Microsoft&#8217;s servers and back. Local inference happens on your machine. The difference between 800ms and 150ms changes how you code.</p><p><strong>Context stays private.</strong> Your proprietary code remains on your hardware. Zero data leaves your network. Zero logs hit external servers. Your IP stays yours.</p><p><strong>Customization becomes possible.</strong> You control the model, the prompts, and the training data. Fine-tune on your codebase. Adjust temperature for your preferences. Switch models per project.</p><p><strong>Costs disappear.</strong> The subscription fee vanishes. Inference runs on hardware you already own. Scale usage based on your machine&#8217;s capacity, beyond monthly limits.</p><h2>Walkthrough</h2>
      <p>
          <a href="https://archonhq.ai/p/build-your-own-vs-code-ai-agent-without">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Clone Needle: Build a 26M Parameter Tool-Calling Model]]></title><description><![CDATA[Distill Gemini's function-calling into a tiny model that runs locally &#8212; replacing expensive cloud APIs with free inference]]></description><link>https://archonhq.ai/p/clone-needle-build-a-26m-parameter</link><guid isPermaLink="false">https://archonhq.ai/p/clone-needle-build-a-26m-parameter</guid><dc:creator><![CDATA[Michal Szalinski]]></dc:creator><pubDate>Fri, 15 May 2026 05:06:48 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!nnzW!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c73f11e-c79c-4365-88c8-9e2a3a71cbb5_1100x550.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!nnzW!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c73f11e-c79c-4365-88c8-9e2a3a71cbb5_1100x550.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!nnzW!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c73f11e-c79c-4365-88c8-9e2a3a71cbb5_1100x550.png 424w, https://substackcdn.com/image/fetch/$s_!nnzW!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c73f11e-c79c-4365-88c8-9e2a3a71cbb5_1100x550.png 848w, https://substackcdn.com/image/fetch/$s_!nnzW!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c73f11e-c79c-4365-88c8-9e2a3a71cbb5_1100x550.png 1272w, https://substackcdn.com/image/fetch/$s_!nnzW!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c73f11e-c79c-4365-88c8-9e2a3a71cbb5_1100x550.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!nnzW!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c73f11e-c79c-4365-88c8-9e2a3a71cbb5_1100x550.png" width="1100" height="550" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3c73f11e-c79c-4365-88c8-9e2a3a71cbb5_1100x550.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:550,&quot;width&quot;:1100,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:829036,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://archonhq.ai/i/197669750?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c73f11e-c79c-4365-88c8-9e2a3a71cbb5_1100x550.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!nnzW!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c73f11e-c79c-4365-88c8-9e2a3a71cbb5_1100x550.png 424w, https://substackcdn.com/image/fetch/$s_!nnzW!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c73f11e-c79c-4365-88c8-9e2a3a71cbb5_1100x550.png 848w, https://substackcdn.com/image/fetch/$s_!nnzW!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c73f11e-c79c-4365-88c8-9e2a3a71cbb5_1100x550.png 1272w, https://substackcdn.com/image/fetch/$s_!nnzW!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c73f11e-c79c-4365-88c8-9e2a3a71cbb5_1100x550.png 1456w" sizes="100vw" fetchpriority="high"></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>Your production app calls OpenAI&#8217;s API 847 times per day. Each function call costs $0.002. The monthly bill hits $380. Your CFO asks pointed questions about &#8220;AI infrastructure costs&#8221; in the quarterly review.</p><p>Meanwhile, your tool-calling needs are embarrassingly simple. Parse JSON. Validate schemas. Route function calls. Extract parameters. A 175B parameter model feels like hiring a PhD to sort your mail.</p><p>What if you could distill those capabilities into a 26M parameter model that runs locally, costs zero per inference, and handles 90% of your tool-calling workload?</p><h2>The Idea (60 Seconds)</h2><p>You&#8217;ll build a lightweight tool-calling model by distilling Gemini&#8217;s function-calling behavior into a compact transformer. The 26M parameter model runs locally, processes tool calls in 50-100ms, and handles structured JSON output with schema validation. Training takes 4 hours on a single GPU. The result replaces expensive API calls for routine function routing and parameter extraction.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://archonhq.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">ArchonHQ is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>Why Distillation, Beyond Fine-tuning</h2><p><strong>Fine-tuning starts with random weights.</strong> You&#8217;re teaching a model to speak tool-calling from scratch. Distillation starts with a teacher model that already excels at function calls. You&#8217;re copying expertise, instead of building it.</p><p><strong>Data efficiency matters more than parameter count.</strong> Fine-tuning needs 50K+ examples to learn tool-calling patterns. Distillation works with 5K teacher-student pairs because the student learns from the teacher&#8217;s internal representations, beyond just input-output mappings.</p><p><strong>Gemini&#8217;s tool-calling is already production-tested.</strong> Google spent millions optimizing function call accuracy. Distillation captures that optimization in a model you own completely.</p><p>The math is simple: 5K distillation examples vs 50K fine-tuning examples. 4 hours vs 40 hours. $20 in compute vs $200.</p><h2>Walkthrough</h2><h3>1. Generate Teacher-Student Data</h3><p>Start by collecting Gemini&#8217;s tool-calling behavior across diverse function schemas:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;9aeb10c4-5d4d-4e9f-b189-9498108184a4&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python"># data_generation.py
import google.generativeai as genai
import json
from typing import List, Dict

class ToolCallDataGenerator:
    def __init__(self, api_key: str):
        genai.configure(api_key=api_key)
        self.model = genai.GenerativeModel('gemini-1.5-flash')
        
    def generate_function_call_data(self, schemas: List[Dict], num_examples: int = 5000):
        examples = []
        
        for i in range(num_examples):
            # Sample random function schema
            schema = random.choice(schemas)
            
            # Generate natural language request
            prompt = self.create_natural_prompt(schema)
            
            # Get Gemini's function call response
            response = self.model.generate_content(
                prompt,
                tools=[schema],
                tool_config={'function_calling_config': {'mode': 'ANY'}}
            )
            
            if response.candidates[0].content.parts[0].function_call:
                examples.append({
                    'input': prompt,
                    'function_schema': schema,
                    'teacher_output': response.candidates[0].content.parts[0].function_call,
                    'raw_response': response.text
                })
                
        return examples
    
    def create_natural_prompt(self, schema: Dict) -&gt; str:
        # Generate varied natural language that would trigger this function
        function_name = schema['function']['name']
        
        templates = {
            'weather': [
                "What's the weather like in {city}?",
                "Check the forecast for {city}",
                "Is it raining in {city} today?"
            ],
            'calculator': [
                "Calculate {expression}",
                "What's {expression}?",
                "Solve {expression} for me"
            ]
        }
        
        # Fill templates with realistic data
        return self.fill_template(templates.get(function_name, ["Use the {function_name} function"]))
</code></pre></div><h3>2. Build the Student Model Architecture</h3><p>Create a compact transformer optimized for tool-calling output:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;4daebf73-f041-4288-b11c-cc113eede473&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python"># model.py
import torch
import torch.nn as nn
from transformers import AutoTokenizer, AutoModelForCausalLM

class ToolCallingModel(nn.Module):
    def __init__(self, vocab_size: int = 32000, d_model: int = 512, n_heads: int = 8, n_layers: int = 6):
        super().__init__()
        
        # 26M parameters: 6 layers, 512 hidden, 8 heads
        self.embedding = nn.Embedding(vocab_size, d_model)
        self.pos_encoding = nn.Parameter(torch.randn(2048, d_model))
        
        self.transformer_blocks = nn.ModuleList([
            TransformerBlock(d_model, n_heads) for _ in range(n_layers)
        ])
        
        self.ln_final = nn.LayerNorm(d_model)
        self.output_head = nn.Linear(d_model, vocab_size)
        
        # Special tokens for function calling
        self.function_start_token = vocab_size - 4
        self.function_end_token = vocab_size - 3
        self.param_sep_token = vocab_size - 2
        
    def forward(self, input_ids, attention_mask=None):
        seq_len = input_ids.shape[1]
        
        # Embeddings + positional encoding
        x = self.embedding(input_ids) + self.pos_encoding[:seq_len]
        
        # Transformer layers
        for block in self.transformer_blocks:
            x = block(x, attention_mask)
            
        x = self.ln_final(x)
        return self.output_head(x)
</code></pre></div><h3>3. Implement Knowledge Distillation Training</h3><p>Train the student to mimic both Gemini&#8217;s outputs and internal representations:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;5a4d8f79-0bd1-4918-a33f-dfb9930a50a9&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python"># distillation_trainer.py
class DistillationTrainer:
    def __init__(self, student_model, teacher_model, tokenizer):
        self.student = student_model
        self.teacher = teacher_model
        self.tokenizer = tokenizer
        
        # Distillation hyperparameters
        self.temperature = 4.0
        self.alpha = 0.7  # Weight for distillation loss
        self.beta = 0.3   # Weight for hard target loss
        
    def distillation_loss(self, student_logits, teacher_logits, hard_targets):
        # Soft target loss (knowledge distillation)
        soft_loss = nn.KLDivLoss(reduction='batchmean')(
            F.log_softmax(student_logits / self.temperature, dim=-1),
            F.softmax(teacher_logits / self.temperature, dim=-1)
        ) * (self.temperature ** 2)
        
        # Hard target loss (actual function calls)
        hard_loss = F.cross_entropy(
            student_logits.view(-1, student_logits.size(-1)),
            hard_targets.view(-1),
            ignore_index=-100
        )
        
        return self.alpha * soft_loss + self.beta * hard_loss
    
    def train_step(self, batch):
        input_ids = batch['input_ids']
        function_call_targets = batch['function_call_targets']
        
        # Get teacher predictions (no gradients)
        with torch.no_grad():
            teacher_logits = self.teacher(input_ids).logits
            
        # Get student predictions
        student_logits = self.student(input_ids)
        
        # Calculate distillation loss
        loss = self.distillation_loss(
            student_logits, 
            teacher_logits, 
            function_call_targets
        )
        
        return loss
</code></pre></div><h3>4. Create the Inference Server</h3><p>Build a FastAPI server that handles tool calls with JSON schema validation:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;8f4b232f-cf85-4a07-897d-60372f176829&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python"># inference_server.py
from fastapi import FastAPI, HTTPException
from pydantic import BaseModel
import torch
import json

app = FastAPI()

class ToolCallRequest(BaseModel):
    prompt: str
    available_functions: List[Dict]
    max_tokens: int = 150

class ToolCallResponse(BaseModel):
    function_name: str
    parameters: Dict
    confidence: float

@app.post("/tool-call", response_model=ToolCallResponse)
async def generate_tool_call(request: ToolCallRequest):
    try:
        # Tokenize input with function schemas
        input_text = format_prompt_with_schemas(request.prompt, request.available_functions)
        tokens = tokenizer.encode(input_text, return_tensors='pt')
        
        # Generate function call
        with torch.no_grad():
            output = model.generate(
                tokens,
                max_length=tokens.shape[1] + request.max_tokens,
                temperature=0.1,
                do_sample=True,
                pad_token_id=tokenizer.eos_token_id
            )
        
        # Parse function call from output
        generated_text = tokenizer.decode(output[0][tokens.shape[1]:], skip_special_tokens=True)
        function_call = parse_function_call(generated_text)
        
        # Validate against schema
        validate_function_call(function_call, request.available_functions)
        
        return ToolCallResponse(
            function_name=function_call['name'],
            parameters=function_call['parameters'],
            confidence=calculate_confidence(output)
        )
        
    except Exception as e:
        raise HTTPException(status_code=500, detail=str(e))
</code></pre></div><h3>5. CLI Interface</h3><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;7ceced1d-8be6-42a2-91a6-37398a768c20&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext"># Install and run
pip install torch transformers fastapi uvicorn

# Start the server
python inference_server.py

# Test a function call
curl -X POST "http://localhost:8000/tool-call" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "What is the weather in San Francisco?",
    "available_functions": [{
      "name": "get_weather",
      "parameters": {
        "type": "object",
        "properties": {
          "city": {"type": "string"},
          "units": {"type": "string", "enum": ["celsius", "fahrenheit"]}
        }
      }
    }]
  }'
</code></pre></div><h2>Caveats</h2><p><strong>Complex reasoning fails.</strong> The 26M model handles straightforward parameter extraction and function routing. Multi-step reasoning, ambiguous queries, and edge cases still need the teacher model or GPT-4.</p><p><strong>Schema validation is strict.</strong> The model learns patterns from training data. Novel function schemas or unusual parameter types can break inference. Keep a fallback to cloud APIs for schema mismatches.</p><p><strong>Training data quality determines ceiling performance.</strong> Bad teacher examples create bad student behavior. Gemini occasionally generates malformed function calls. Clean your distillation dataset aggressively.</p><p>Performance benchmarks from my testing: 87% accuracy on single-function calls, 72% on multi-function scenarios, 15ms average inference time on RTX 4090.</p><h2>Philosophy</h2><p>Tool-calling models represent the future of local AI inference. Most production applications need structured output, parameter extraction, and API routing. These tasks require precision over creativity.</p><p>The distillation approach captures expert behavior in compact models you control completely. Zero API dependencies. Zero per-inference costs. Zero data leaving your infrastructure.</p><p>This pattern extends beyond tool-calling. Distill code generation, text classification, structured data extraction. Build a library of specialized models that replace expensive API calls with fast local inference.</p><p>The 26M parameter model becomes your function-calling foundation. Expand it. Specialize it. Deploy it everywhere.</p><h2>Build Your Clone</h2><p>Start with the data generation script above. Collect 5K Gemini examples across your target function schemas. Train the distillation model on a single GPU for 4 hours. Deploy the inference server.</p><p>Your tool-calling costs drop to zero. Your inference speed increases 10x. Your data stays local.</p><p>What function-calling use case will you tackle first?</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://archonhq.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://archonhq.ai/subscribe?"><span>Subscribe now</span></a></p><p></p><p></p><p></p><p></p><p></p>]]></content:encoded></item><item><title><![CDATA[Software 3.0 Is Not a Silver Bullet: Why Engineering Expertise Still Wins with LLMs]]></title><description><![CDATA[LLMs are the new operating system, prompting is the new programming, and anyone can build software now]]></description><link>https://archonhq.ai/p/software-30-is-not-a-silver-bullet</link><guid isPermaLink="false">https://archonhq.ai/p/software-30-is-not-a-silver-bullet</guid><dc:creator><![CDATA[Michal Szalinski]]></dc:creator><pubDate>Mon, 04 May 2026 03:18:41 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!Ewku!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff69647a6-c585-4653-a520-f006ad8feb07_1100x567.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Ewku!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff69647a6-c585-4653-a520-f006ad8feb07_1100x567.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Ewku!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff69647a6-c585-4653-a520-f006ad8feb07_1100x567.jpeg 424w, https://substackcdn.com/image/fetch/$s_!Ewku!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff69647a6-c585-4653-a520-f006ad8feb07_1100x567.jpeg 848w, https://substackcdn.com/image/fetch/$s_!Ewku!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff69647a6-c585-4653-a520-f006ad8feb07_1100x567.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!Ewku!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff69647a6-c585-4653-a520-f006ad8feb07_1100x567.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Ewku!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff69647a6-c585-4653-a520-f006ad8feb07_1100x567.jpeg" width="1100" height="567" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f69647a6-c585-4653-a520-f006ad8feb07_1100x567.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:567,&quot;width&quot;:1100,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:292542,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://archonhq.ai/i/196378021?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff69647a6-c585-4653-a520-f006ad8feb07_1100x567.jpeg&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Ewku!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff69647a6-c585-4653-a520-f006ad8feb07_1100x567.jpeg 424w, https://substackcdn.com/image/fetch/$s_!Ewku!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff69647a6-c585-4653-a520-f006ad8feb07_1100x567.jpeg 848w, https://substackcdn.com/image/fetch/$s_!Ewku!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff69647a6-c585-4653-a520-f006ad8feb07_1100x567.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!Ewku!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff69647a6-c585-4653-a520-f006ad8feb07_1100x567.jpeg 1456w" sizes="100vw" fetchpriority="high"></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>Andrej Karpathy calls it Software 3.0. YC calls it the biggest shift since high-level languages. The framing is seductive: LLMs are the new operating system, prompting is the new programming, and anyone can build software now.</p><p>Except they can&#8217;t.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://archonhq.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">ArchonHQ is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p>I&#8217;ve watched the same pattern repeat for a while. A non-engineer pastes a vague request into ChatGPT, gets something that looks plausible, ships it, and watches it fall apart under real conditions. Meanwhile, I take the same starting point and end up with a robust CLI that runs autonomously on a cron job, handles edge cases, and compounds value every day.<br>Same models. Same access. Radically different outcomes. The difference isn&#8217;t the prompt. It&#8217;s the engineering.</p><p>You can watch the whole lecture here:</p><div id="youtube2-LCEmiRjPEtQ" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;LCEmiRjPEtQ&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/LCEmiRjPEtQ?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><h2>The Idea (60 Seconds)</h2><p>Software 3.0 is real. LLMs are a new kind of runtime. But the &#8220;anyone can code now&#8221; narrative is incomplete. What Karpathy and the YC lecture get right is the mental model shift; LLMs as operating systems, not smarter search engines. What they understate is how much engineering discipline that OS still demands.</p><p>The LLM is a lossy runtime. It hallucinates. It forgets context. It produces plausible garbage. Treating it like a magic oracle gets you slop. Treating it like a savant with cognitive issues, brilliant but unreliable, and engineering around those limitations is what separates working solutions from demo toys.</p><p>The engineers who master this don&#8217;t just write better prompts. They build systems around the LLM: scaffolding, verification loops, fallback chains, state management, and evaluation frameworks. The prompt is the interface. The engineering is the product.</p><h2>Why Non-Engineers Produce Slop</h2><p>When a non-engineer asks an LLM to &#8220;build me a tool that extracts data from a website and sends a daily email,&#8221; they get a script. It works. Once. On the happy path. With the data formatted exactly the way they showed in their example.</p><p>When I build the same thing, here&#8217;s what happens in my head before I type a single prompt:</p><ul><li><p>How does this fail when the website changes its layout?</p></li><li><p>What happens when the API returns empty data instead of the expected format?</p></li><li><p>Where does state live so we can detect anomalies?</p></li><li><p>How do we make this idempotent so re-running doesn&#8217;t send duplicate emails?</p></li><li><p>What&#8217;s the time budget for each operation, and what&#8217;s the hard ceiling?</p></li></ul><p>These aren&#8217;t prompt engineering tricks. These are engineering instincts: problem decomposition, error handling, state management, verification. The LLM doesn&#8217;t eliminate the need for these. It accelerates the implementation but makes the consequences of skipping them more dangerous, because now your broken code runs automatically.</p><p>The YC lecture nails this indirectly: &#8220;you have to design around their limitations rather than expecting perfect, human-like reliability.&#8221; That&#8217;s engineering. That&#8217;s always been engineering. The medium changed. The discipline didn&#8217;t.</p><p>This is why I believe there isn&#8217;t going to be a drop in demand for engineering jobs. In fact, there is sufficient evidence from past events (such as the industrial revolution, the internet, digitisation of everything) that greater capability almost always demands greater supply of skills. People just need to adapt to new ways of working.</p><h2>The LLM as Lossy Runtime</h2><p>Karpathy&#8217;s operating system metaphor is useful. An OS has defined syscalls, documented error codes, and deterministic behavior for the same inputs. An LLM has none of these.</p><p>A better mental model: the LLM is a brilliant but unreliable non-deterministic co-processor. It can execute tasks that would take you hours in seconds, but it sometimes returns wrong results with absolute confidence. Your job as the engineer isn&#8217;t to write the perfect prompt that prevents errors, instead, it&#8217;s to build the harness that catches them.</p><p>Here&#8217;s what that harness looks like in practice.</p><h2>Technique 1: Structured Scaffolding, Not Free-Form Prompts</h2><p>The single biggest upgrade from slop to production: never accept free-form LLM output for anything you plan to use programmatically.</p><p>When you ask &#8220;write me a CLI,&#8221; you get markdown, prose explanations, and code in varying states of completeness. When you ask for a specific JSON schema, you get a parseable artifact you can pipe into your build system.</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;eb7fd8f7-4d46-4e8b-a15c-626228a9e805&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">You are an expert Python engineer. Always respond in valid JSON with this exact schema:

{
  "thinking": "step-by-step reasoning and trade-offs",
  "code": "complete, ready-to-run code with inline comments",
  "explanation": "usage, edge cases, and assumptions",
  "tests": ["list of test cases or pytest snippets"]
}

Only output the JSON. No markdown. No prose outside the schema.
</code></pre></div><p>This is the LLM equivalent of typed function signatures. You wouldn&#8217;t write a production API that returns unstructured text. Don&#8217;t let your LLM do it either.</p><p>Pair this with JSON mode in Claude or structured output in OpenAI, and you&#8217;ve turned a probabilistic text generator into a deterministic data pipeline &#8212; at least at the interface boundary.</p><h2>Technique 2: Self-Critique Loops</h2><p>The generate-once-and-ship pattern is how you get slop. The generate-critique-revise pattern is how you get quality.</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;065f1c4c-48c9-4312-abb9-cab40caa007c&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">First, plan the solution step-by-step. Consider architecture,
error handling, and UX.

[After getting initial output]

Now critique the above as a senior staff engineer. Score 1-10 on:
correctness, robustness, usability, maintainability.
List specific fixes. Then output a revised version in the same
JSON schema.
</code></pre></div><p>Two or three cycles of this consistently produces dramatically better output. The LLM is excellent at critiquing its own work when given clear evaluation criteria, it just won&#8217;t do it unprompted.</p><p>This mirrors how senior engineers actually write code: draft, review, revise. The difference is the cycle time. What takes a human hours takes the LLM seconds. The bottleneck shifts from writing to evaluating.</p><h2>Technique 3: Context Packaging as Modular Architecture</h2><p>Most people paste their entire codebase into a prompt and hope for the best. Engineers treat context like code modules; structured, versioned, and reusable.</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;a47ccf09-f9da-43bd-8e8e-ee9e3970fa46&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">&lt;context&gt;
[paste relevant code, docs, or previous outputs here]
&lt;/context&gt;

&lt;requirements&gt;
- Use Typer + Rich
- Zero unnecessary dependencies
- Full --help support
- Graceful error handling
&lt;/requirements&gt;

&lt;task&gt;
[Specific request]
&lt;/task&gt;
</code></pre></div><p>XML tags aren&#8217;t magic. But they give the LLM clear boundaries between different types of information. The model processes tagged sections more reliably than unstructured walls of text.</p><p>This scales. Maintain a library of context blocks; your project&#8217;s architecture, your coding conventions, your error handling patterns. Swap them in and out as needed. This is the LLM equivalent of import statements.</p><h2>Technique 4: Model Routing, Not Model Loyalty</h2><p>No single model is best at everything. The engineers getting the most from LLMs aren&#8217;t loyal to one model &#8212; they route tasks based on what each model does best.</p><p>In my daily pipeline:</p><ul><li><p><strong>Fast model</strong> (Gemini Flash, Haiku) for data extraction, formatting, and routine summarization</p></li><li><p><strong>Strong model</strong> (Claude Opus) for judgment calls &#8212; clinical pattern recognition, nuanced coaching recommendations, anything where missing a subtle signal costs more than the extra latency</p></li></ul><p>The routing logic itself is deterministic code. The models are interchangeable components. When a new model drops that&#8217;s faster or cheaper, I swap it in for the appropriate tier and verify against my test suite.</p><p>This is operating system thinking. You don&#8217;t write code that only runs on one processor. You write against abstractions and let the runtime choose the best execution path.</p><h2>Technique 5: Verification as Architecture</h2><p>The YC lecture mentions speeding up the &#8220;generation &#8594; verification loop.&#8221; That undersells it. Verification isn&#8217;t a loop; it&#8217;s the architecture.</p><p>Every LLM output in my production system goes through verification before it&#8217;s used:</p><ul><li><p><strong>Schema validation</strong> &#8212; does the JSON match the expected structure?</p></li><li><p><strong>Content validation</strong> &#8212; are the key fields populated? Are values in plausible ranges?</p></li><li><p><strong>State validation</strong> &#8212; does this output contradict our stored history? (A client who had 33 check-ins yesterday doesn&#8217;t have one today.)</p></li><li><p><strong>Quality validation</strong> &#8212; is the report complete? Does it have all 5 required sections?</p></li></ul><p>If any validation fails, the system doesn&#8217;t silently accept bad output. It retries with a different approach, falls back to stored data, or escalates to a human. The LLM is just one component in a larger system with defined invariants.</p><p>This is the engineering discipline that separates &#8220;I built a cool demo&#8221; from &#8220;this runs my business while I sleep.&#8221;</p><h2>The Skills Layer: Where It All Compounds</h2><p>Here&#8217;s where Software 3.0 genuinely shifts the game. Individual prompts are disposable. Skills are compound interest.</p><p>A skill is a reusable, versioned, self-contained workflow that packages:</p><ul><li><p>The system prompt (personality, constraints, output format)</p></li><li><p>The context (domain knowledge, project conventions)</p></li><li><p>The tools (what the agent can call)</p></li><li><p>The verification (what &#8220;done&#8221; looks like)</p></li><li><p>The fallbacks (what happens when things break)</p></li></ul><p>I have a skill that analyzes fitness check-in data and generates coaching reports. It took 50+ iterations to get right. Now it runs twice daily on a cron job, processing 18 clients autonomously. Each run costs about $0.30 in LLM tokens. The equivalent human effort would be 4+ hours of a coach&#8217;s time.</p><p>The skill is the artifact. The prompts that built it are long gone. This is the shift from &#8220;prompting&#8221; to &#8220;engineering&#8221;, you&#8217;re not optimizing a single interaction, you&#8217;re building a system that improves with every edge case you handle and every failure mode you fix.</p><p>Non-engineers can create impressive one-off outputs. Engineers create systems that compound.</p><h2>The Honest Truth About Software 3.0</h2><p>Karpathy is right that we&#8217;re in the 1960s of LLMs. The 1960s weren&#8217;t democratic. Assembly language existed, but the people who built reliable systems were the ones who understood memory management, error handling, and hardware constraints.</p><p>We&#8217;re in the same place now, just with natural language instead of assembly. The barrier to entry is lower, you can produce something that runs on your first try. But the barrier to <em>reliability</em> hasn&#8217;t moved. Building something that handles edge cases, degrades gracefully, and runs unattended for months still requires engineering discipline.</p><p>The tools will improve. Context windows will grow. Models will get more reliable. The verification loops will tighten. But the core skill (treating the LLM as a brilliant, unreliable component in a larger system you engineer) will remain the differentiator.</p><p>Software 3.0 doesn&#8217;t democratize great software. It supercharges the people who already know how to build it. The gap between engineers and non-engineers isn&#8217;t closing, it&#8217;s widening, because engineers are building compound systems while everyone else is still optimizing single prompts.</p><p>The engineers who master this now who build skills, design verification architectures, and treat the LLM as a lossy runtime to engineer around will define the next decade of software.</p><p>Everyone else will keep wondering why their &#8220;automated&#8221; workflow broke again this morning.</p><p><em>Building production AI automation? <a href="https://archonhq.ai">ArchonHQ</a> gives you the skills architecture, verification frameworks, and orchestration tools to turn LLMs from toys into reliable systems. Stop prompting. Start engineering.</em></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://archonhq.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">ArchonHQ is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Automate Anything with AI Skills and CLIs - Your New Superpower in 2026]]></title><description><![CDATA[Automate almost any repetitive workflow with AI by stacking five layers with AI]]></description><link>https://archonhq.ai/p/automate-anything-with-ai-skills</link><guid isPermaLink="false">https://archonhq.ai/p/automate-anything-with-ai-skills</guid><dc:creator><![CDATA[Michal Szalinski]]></dc:creator><pubDate>Fri, 17 Apr 2026 07:04:19 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!Yeh0!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F735a305a-4b01-4bb2-bbfc-6b6fe6ebf331_1100x580.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Yeh0!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F735a305a-4b01-4bb2-bbfc-6b6fe6ebf331_1100x580.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Yeh0!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F735a305a-4b01-4bb2-bbfc-6b6fe6ebf331_1100x580.jpeg 424w, https://substackcdn.com/image/fetch/$s_!Yeh0!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F735a305a-4b01-4bb2-bbfc-6b6fe6ebf331_1100x580.jpeg 848w, https://substackcdn.com/image/fetch/$s_!Yeh0!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F735a305a-4b01-4bb2-bbfc-6b6fe6ebf331_1100x580.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!Yeh0!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F735a305a-4b01-4bb2-bbfc-6b6fe6ebf331_1100x580.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Yeh0!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F735a305a-4b01-4bb2-bbfc-6b6fe6ebf331_1100x580.jpeg" width="1100" height="580" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/735a305a-4b01-4bb2-bbfc-6b6fe6ebf331_1100x580.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:580,&quot;width&quot;:1100,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:280015,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://archonhq.ai/i/194488145?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F735a305a-4b01-4bb2-bbfc-6b6fe6ebf331_1100x580.jpeg&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Yeh0!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F735a305a-4b01-4bb2-bbfc-6b6fe6ebf331_1100x580.jpeg 424w, https://substackcdn.com/image/fetch/$s_!Yeh0!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F735a305a-4b01-4bb2-bbfc-6b6fe6ebf331_1100x580.jpeg 848w, https://substackcdn.com/image/fetch/$s_!Yeh0!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F735a305a-4b01-4bb2-bbfc-6b6fe6ebf331_1100x580.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!Yeh0!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F735a305a-4b01-4bb2-bbfc-6b6fe6ebf331_1100x580.jpeg 1456w" sizes="100vw" fetchpriority="high"></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>You&#8217;ve seen it. A fitness coach spending three hours every Friday night reviewing client checkins, scrolling through twenty clients, each with weight data, waist measurements, sleep scores, nutrition compliance, workout logs, injury reports, and subjective mood ratings. Copy the numbers. Compare to last week. Write the feedback. Send the email. Next client. Repeat until midnight.</p><p>That&#8217;s data entry with a human in the loop.</p><p>This pattern repeats across every small business: a SaaS platform that holds your data hostage, a manual review process that scales linearly with clients, and an expert whose time gets eaten by the 80% of the work that&#8217;s pattern-matching rather than judgment.</p><p>Here&#8217;s what I built to fix it, and the pattern you can copy for almost any repetitive knowledge workflow.</p><h2>The Idea (60 Seconds)</h2><p>You can automate almost any repetitive workflow by stacking five layers:</p><ol><li><p><strong>Reverse-engineer</strong> the data source (even absent a formal API)</p></li><li><p><strong>Build a CLI</strong> that extracts and structures the data</p></li><li><p><strong>Use an LLM</strong> to do the analysis a human used to do manually</p></li><li><p><strong>Package it as a skill</strong> so your AI agent can repeat the process reliably</p></li><li><p><strong>Schedule it with cron</strong> so it runs on autopilot</p></li></ol><p>Most people stop at layer one, they ask ChatGPT a question and get an answer. That&#8217;s a conversation. Automation is when the system runs autonomously.</p><p>I&#8217;m going to show you exactly how I built all five layers for a fitness coaching business. The platform lacked a public API. The data was locked behind a login screen. The analysis required professional domain knowledge. And the whole thing needed to run daily and email reports to a real coach with real clients.</p><p>The result: <strong>75% less manual work</strong>. A coach who used to spend 12+ hours per week reviewing checkins now spends 2 hours scanning AI-generated reports and producing videos based on the analysis for their clients. Instant value-add, zero duplication.</p><h2>Why Skills and CLIs Are the Underrated Superpower of 2026</h2><p>Everyone&#8217;s talking about AI chatbots and agents. The real unlock goes unmentioned.</p><p>The AI maturity ladder looks like this:</p><p>Level What You Do Runs Without You? 1. Chat Ask a question, get an answer No 2. Prompt Library Reuse tested prompts No 3. CLI Script that takes arguments and runs Yes (manually triggered) 4. Skill Packaged workflow your AI agent can load and execute Yes (agent-triggered) 5. Cron Scheduled autonomous execution Yes (fully automatic)</p><p>Most people are at level 1 or 2. They have folders full of prompts. They paste them into ChatGPT and copy the output. That&#8217;s better than a blank page, but it plateaus.</p><p><strong>A CLI compounds.</strong> You build it once, debug it, and it works forever. You can pipe data into it. You can chain it with other CLIs. You can schedule it.</p><p><strong>A skill compounds harder.</strong> A skill is a <code>SKILL.md</code> file that packages your entire workflow, triggers, inputs, steps, gotchas, and all the hard-won lessons from debugging. Your AI agent reads it and knows exactly what to do. Every bug you fix, every edge case you discover, gets baked in permanently. The skill is the artifact. The automation is the side effect.</p><p><strong>Cron is the payoff.</strong> When your CLI runs on a schedule autonomously, you&#8217;ve shipped automation. Production.</p><p>This is the pattern most people are missing in 2026. They&#8217;re using AI to answer questions when they should be using it to <strong>replace themselves</strong>.</p><h2>Reverse-Engineering as an AI Superpower</h2><p>Here&#8217;s the uncomfortable truth: <strong>the most valuable AI skill in 2026 is reverse-engineering, outranking even prompting.</strong></p><p>Most business data is locked in SaaS apps lacking an export button, API documentation, or webhooks. The vendor wants you inside their walled garden. Your data is their leverage.</p><p>AI makes the downstream analysis trivially easy, pass data to an LLM, get insights back. But <strong>the upstream problem hasn&#8217;t changed</strong>: you still need to get the data out first. And that requires a craft skill that most &#8220;AI practitioners&#8221; have yet to develop.</p><p>I&#8217;m going to walk through the exact reverse-engineering process I used on Kahunas.io, a fitness coaching platform with zero public API documentation. These techniques work on almost any web app.</p>
      <p>
          <a href="https://archonhq.ai/p/automate-anything-with-ai-skills">
              Read more
          </a>
      </p>
   ]]></content:encoded></item></channel></rss>