<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Patrick Ellis</title>
        <link>https://patrickellis.io</link>
        <description>Patrick Ellis on building with AI agents: workflows, experiments, and talk write-ups.</description>
        <lastBuildDate>Tue, 10 Nov 2026 04:36:43 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <image>
            <title>Patrick Ellis</title>
            <url>https://patrickellis.io/favicon.ico</url>
            <link>https://patrickellis.io</link>
        </image>
        <copyright>All rights reserved 2026</copyright>
        <item>
            <title><![CDATA[Vibe Coding in Production: The AI Coding Workflow I Shared with Seattle Founders]]></title>
            <link>https://patrickellis.io/articles/ai-vibe-coding-best-practices-foundations-seattle-speech</link>
            <guid>https://patrickellis.io/articles/ai-vibe-coding-best-practices-foundations-seattle-speech</guid>
            <pubDate>Thu, 13 Mar 2025 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<p>I am excited to share the best strategies and workflows I have found for using AI CodeGen tools (Cursor, Windsurf, Claude Code, Bolt, Lovable, and more) to dramatically speed up our development process.</p>
<figure class="my-10"><div class="overflow-hidden rounded-xl bg-zinc-100 leading-[0] shadow-card ring-1 ring-zinc-900/5 dark:bg-zinc-800 dark:ring-white/10"><img alt="Patrick Ellis speaking to founders at Seattle Foundations" loading="lazy" width="3669" height="2353" decoding="async" data-nimg="1" class="block w-full" style="color:transparent;display:block;line-height:0" sizes="(min-width: 768px) 42rem, 100vw" srcset="/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-speaking.1d466f01.jpg&amp;w=640&amp;q=75 640w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-speaking.1d466f01.jpg&amp;w=750&amp;q=75 750w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-speaking.1d466f01.jpg&amp;w=828&amp;q=75 828w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-speaking.1d466f01.jpg&amp;w=1080&amp;q=75 1080w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-speaking.1d466f01.jpg&amp;w=1200&amp;q=75 1200w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-speaking.1d466f01.jpg&amp;w=1920&amp;q=75 1920w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-speaking.1d466f01.jpg&amp;w=2048&amp;q=75 2048w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-speaking.1d466f01.jpg&amp;w=3840&amp;q=75 3840w" src="/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-speaking.1d466f01.jpg&amp;w=3840&amp;q=75"></div><figcaption class="mt-3 text-center font-hand text-base leading-snug text-zinc-600 dark:text-zinc-400">Patrick Ellis speaking to founders at Seattle Foundations</figcaption></figure>
<p>They've truly been a game changer for our early stage, highly AI-leveraged team. My engineering workflow is almost entirely different from just two months ago! We revised the way we approach company strategy, engineering architecture, software development, market research, and even how we think about the development life cycle. Check out the talk below from me, including my co-speakers Pejman Pour-Moezzi (Magoosh Co-Founder), and Kevin Leneway (Principal AI Software Engineer at PSL), to get very tactical best practices along with high-level strategic insights.</p>
<figure class="my-10 "><div class="relative w-full overflow-hidden rounded-xl bg-zinc-900 leading-[0] shadow-card ring-1 ring-zinc-900/5 dark:ring-white/10"><div class="relative pb-[56.25%] bg-black"><iframe src="https://www.youtube.com/embed/wW_nseHqalg?si=bkGc2E7HDcSP5sD3" title="Vibe Coding in Production (with Claude Code): A Founder/CTO’s 2025 AI Engineering Playbook (Cursor, Windsurf, Lovable)" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" loading="lazy" class="absolute inset-0 h-full w-full bg-black border-0" style="display:block"></iframe></div></div></figure>
<p>Thanks to the team at <a target="_blank" href="https://seattlefoundations.org/">Foundations</a> for hosting us, and curating such a wonderful group of Seattle-based founders sharing with, and learning from, each other.</p>
<figure class="my-10"><div class="overflow-hidden rounded-xl bg-zinc-100 leading-[0] shadow-card ring-1 ring-zinc-900/5 dark:bg-zinc-800 dark:ring-white/10"><img alt="Patrick Ellis speaking to founders at Seattle Foundations" loading="lazy" width="5025" height="2960" decoding="async" data-nimg="1" class="block w-full" style="color:transparent;display:block;line-height:0" sizes="(min-width: 768px) 42rem, 100vw" srcset="/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-speaking-wide.019aa0e5.jpg&amp;w=640&amp;q=75 640w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-speaking-wide.019aa0e5.jpg&amp;w=750&amp;q=75 750w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-speaking-wide.019aa0e5.jpg&amp;w=828&amp;q=75 828w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-speaking-wide.019aa0e5.jpg&amp;w=1080&amp;q=75 1080w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-speaking-wide.019aa0e5.jpg&amp;w=1200&amp;q=75 1200w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-speaking-wide.019aa0e5.jpg&amp;w=1920&amp;q=75 1920w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-speaking-wide.019aa0e5.jpg&amp;w=2048&amp;q=75 2048w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-speaking-wide.019aa0e5.jpg&amp;w=3840&amp;q=75 3840w" src="/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-speaking-wide.019aa0e5.jpg&amp;w=3840&amp;q=75"></div><figcaption class="mt-3 text-center font-hand text-base leading-snug text-zinc-600 dark:text-zinc-400">Patrick Ellis speaking to founders at Seattle Foundations</figcaption></figure>]]></content:encoded>
            <author>hi@patrickellis.io (Patrick Ellis)</author>
        </item>
        <item>
            <title><![CDATA[DubHacks, 10 Years Later: The Founding Story and the Anniversary Keynote]]></title>
            <link>https://patrickellis.io/articles/dubhacks-the-founding-story</link>
            <guid>https://patrickellis.io/articles/dubhacks-the-founding-story</guid>
            <pubDate>Mon, 14 Oct 2024 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<p><em>Originally posted on <a href="https://www.linkedin.com/feed/update/urn:li:activity:7257393623304974336/" target="_blank" rel="noopener noreferrer">LinkedIn<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a>.</em></p>
<p>Exactly 10 years ago this month, a group of friends from UW and I witnessed a wild dream of ours come roaring to life. We initially set out to bring all of our smartest, most ambitious, most energetic friends together for an epic night of hacking on cool projects and connecting with each other.</p>
<figure class="my-10"><div class="overflow-hidden rounded-xl bg-zinc-100 leading-[0] shadow-card ring-1 ring-zinc-900/5 dark:bg-zinc-800 dark:ring-white/10"><img alt="DubHacks 2014 GeekWire Interview" loading="lazy" width="2048" height="1152" decoding="async" data-nimg="1" class="block w-full" style="color:transparent;display:block;line-height:0" sizes="(min-width: 768px) 42rem, 100vw" srcset="/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fdubhacks-2014-geekwire-interview.240c0894.jpeg&amp;w=640&amp;q=75 640w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fdubhacks-2014-geekwire-interview.240c0894.jpeg&amp;w=750&amp;q=75 750w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fdubhacks-2014-geekwire-interview.240c0894.jpeg&amp;w=828&amp;q=75 828w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fdubhacks-2014-geekwire-interview.240c0894.jpeg&amp;w=1080&amp;q=75 1080w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fdubhacks-2014-geekwire-interview.240c0894.jpeg&amp;w=1200&amp;q=75 1200w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fdubhacks-2014-geekwire-interview.240c0894.jpeg&amp;w=1920&amp;q=75 1920w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fdubhacks-2014-geekwire-interview.240c0894.jpeg&amp;w=2048&amp;q=75 2048w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fdubhacks-2014-geekwire-interview.240c0894.jpeg&amp;w=3840&amp;q=75 3840w" src="/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fdubhacks-2014-geekwire-interview.240c0894.jpeg&amp;w=3840&amp;q=75"></div><figcaption class="mt-3 text-center font-hand text-base leading-snug text-zinc-600 dark:text-zinc-400">DubHacks 2014 GeekWire Interview</figcaption></figure>
<p>But the dream grew. And grew. And eventually snowballed into a 500+ person, 24hr hackathon on UW's campus - in the heart of the Husky Union Building. It took an intense near year of hard work, relentless vision casting, and working through far more logistics than I could have ever imagined.</p>
<p>But thanks to the tireless work of our fearless founding team, generous corporate sponsors, and 35+ volunteers, DubHacks was born! Earning the title of the largest collegiate hackathon in the PNW, with students in attendance from over 17 countries, and throughout the nation.</p>
<p>From having to pack 100's of Chipotle burritos and giant bowls of guac into my Tahoe, due to a last-minute delivery truck breakdown, through to the nervousness of being on live TV news, it was a truly humbling experience.</p>
<p>A few weeks ago, I had the enormous honor of getting to attend, and co-deliver the keynote speech, at the 10th anniversary DubHacks. It was truly surreal, and is already a cherished life experience.</p>
<figure class="my-10"><div class="overflow-hidden rounded-xl bg-zinc-100 leading-[0] shadow-card ring-1 ring-zinc-900/5 dark:bg-zinc-800 dark:ring-white/10"><img alt="Patrick Ellis giving DubHacks 2024 keynote speech" loading="lazy" width="2048" height="1210" decoding="async" data-nimg="1" class="block w-full" style="color:transparent;display:block;line-height:0" sizes="(min-width: 768px) 42rem, 100vw" srcset="/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-giving-keynote.970bcfe1.jpeg&amp;w=640&amp;q=75 640w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-giving-keynote.970bcfe1.jpeg&amp;w=750&amp;q=75 750w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-giving-keynote.970bcfe1.jpeg&amp;w=828&amp;q=75 828w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-giving-keynote.970bcfe1.jpeg&amp;w=1080&amp;q=75 1080w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-giving-keynote.970bcfe1.jpeg&amp;w=1200&amp;q=75 1200w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-giving-keynote.970bcfe1.jpeg&amp;w=1920&amp;q=75 1920w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-giving-keynote.970bcfe1.jpeg&amp;w=2048&amp;q=75 2048w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-giving-keynote.970bcfe1.jpeg&amp;w=3840&amp;q=75 3840w" src="/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fpatrick-giving-keynote.970bcfe1.jpeg&amp;w=3840&amp;q=75"></div><figcaption class="mt-3 text-center font-hand text-base leading-snug text-zinc-600 dark:text-zinc-400">Patrick Ellis giving DubHacks 2024 keynote speech</figcaption></figure>
<p>Standing on the same stage I had stood exactly 10yrs prior. Looking out at 1000+ college students in attendance, and feeling the joy/excitement - wondering whether DubHacks would have a similar impact on them. Will they meet their future co-founders over these two days? Get introduced to a life-long intellectual passion/career? Or maybe even meet life-long friends?</p>
<figure class="my-10"><div class="overflow-hidden rounded-xl bg-zinc-100 leading-[0] shadow-card ring-1 ring-zinc-900/5 dark:bg-zinc-800 dark:ring-white/10"><img alt="DubHacks 2024" loading="lazy" width="2048" height="1086" decoding="async" data-nimg="1" class="block w-full" style="color:transparent;display:block;line-height:0" sizes="(min-width: 768px) 42rem, 100vw" srcset="/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fdubhacks-2024.24d39d90.jpeg&amp;w=640&amp;q=75 640w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fdubhacks-2024.24d39d90.jpeg&amp;w=750&amp;q=75 750w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fdubhacks-2024.24d39d90.jpeg&amp;w=828&amp;q=75 828w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fdubhacks-2024.24d39d90.jpeg&amp;w=1080&amp;q=75 1080w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fdubhacks-2024.24d39d90.jpeg&amp;w=1200&amp;q=75 1200w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fdubhacks-2024.24d39d90.jpeg&amp;w=1920&amp;q=75 1920w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fdubhacks-2024.24d39d90.jpeg&amp;w=2048&amp;q=75 2048w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fdubhacks-2024.24d39d90.jpeg&amp;w=3840&amp;q=75 3840w" src="/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fdubhacks-2024.24d39d90.jpeg&amp;w=3840&amp;q=75"></div><figcaption class="mt-3 text-center font-hand text-base leading-snug text-zinc-600 dark:text-zinc-400">DubHacks 2024</figcaption></figure>
<p>My hope is that the humble origin story of DubHacks, having started and being run to this day by students, would inspire those in attendance to <mark class="highlighter bg-transparent [color:inherit] dark:text-zinc-100">dream BIG. To take bold, relentless action.</mark> And to be able to experience waking up 10yrs later to the impact of those dreams and actions.</p>
<p>They truly do compound.</p>
<p>A huge shout out to Sabrina, Andrew, and the entire DubHacks team for building the non-profit into what it is today! I am amazed. And it was a true honor to speak alongside Karan and Grant (and the rest of the founding team in spirit). Deeply inspiring to see the legacy of a decade of incredibly dedicated Huskies, working together to build a bright future. :)</p>
<p>DubHacks 2024: <a href="https://dh24.dubhacks.co/" target="_blank" rel="noopener noreferrer">https://dh24.dubhacks.co/<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a></p>
<p>GeekWire's video feature of the inaugural 2014 DubHacks:</p>
<figure class="my-10 "><div class="relative w-full overflow-hidden rounded-xl bg-zinc-900 leading-[0] shadow-card ring-1 ring-zinc-900/5 dark:ring-white/10"><div class="relative pb-[56.25%] bg-black"><iframe src="https://www.youtube.com/embed/s1stO0R9MAI?si=b-t-r-GU5PzMlyVA" title="GeekWire's video feature of the inaugural 2014 DubHacks" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" loading="lazy" class="absolute inset-0 h-full w-full bg-black border-0" style="display:block"></iframe></div></div></figure>]]></content:encoded>
            <author>hi@patrickellis.io (Patrick Ellis)</author>
        </item>
        <item>
            <title><![CDATA[Turn Claude Code Into Your Own Software Factory: The Four-Pillar Orchestration Layer]]></title>
            <link>https://patrickellis.io/articles/turn-claude-code-into-a-software-factory</link>
            <guid>https://patrickellis.io/articles/turn-claude-code-into-a-software-factory</guid>
            <pubDate>Fri, 09 Oct 2026 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<p>Every frontier lab is building for the same thing: agents that take a task and run for hours without you. Most teams haven't changed how they work to match. They still prompt their coding agents the way they did a year ago, in short loops, answering questions as they come.</p>
<p>The leverage in this shift isn't coming from the models getting smarter. It's coming from the <strong>orchestration layer</strong> around them: the context, tools, workflows, and verification that let an agent answer its own questions. At Snapbar, we've used Claude Code and Codex in production since they launched, and with this setup we shipped a production analytics platform (Pub/Sub, Cloud Run, and BigQuery) end to end in about a week.</p>
<p>This is the written version of my latest video, with the templates I use and a 30-day plan to build the layer yourself. Each section links to its part of the video if you'd rather watch.</p>
<figure class="my-10 "><div class="relative w-full overflow-hidden rounded-xl bg-zinc-900 leading-[0] shadow-card ring-1 ring-zinc-900/5 dark:ring-white/10"><div class="relative pb-[56.25%] bg-black"><iframe src="https://www.youtube.com/embed/6lfC9W5J-0Y" title="Turn Claude Code Into Your Own Software Factory" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" loading="lazy" class="absolute inset-0 h-full w-full bg-black border-0" style="display:block"></iframe></div></div></figure>
<div class="not-prose my-12 flex flex-col items-center gap-8 sm:flex-row sm:gap-10"><a href="https://raw.githubusercontent.com/OneRedOak/claude-code-workflows/main/guides/orchestration-layer/orchestration-layer-playbook.pdf" aria-hidden="true" tabindex="-1" class="block w-40 shrink-0 -rotate-2 transition duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] hover:rotate-0 motion-reduce:transition-none sm:w-44"><div class="paper-grain relative rounded-lg bg-white p-2 pb-3 shadow-card ring-1 ring-zinc-900/5 dark:ring-white/10"><span aria-hidden="true" class="absolute -top-2 left-1/2 z-10 h-4 w-14 -translate-x-1/2 rounded-[1px] shadow-[0_1px_2px_rgb(0_0_0/0.12)] ring-1 bg-patrick-orange-200/80 ring-patrick-orange-300/70 rotate-[-4deg]"></span><img alt="" loading="lazy" width="816" height="1056" decoding="async" data-nimg="1" class="block w-full rounded-sm" style="color:transparent" sizes="11rem" srcset="/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fplaybook-cover.074b67ee.jpg&amp;w=16&amp;q=75 16w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fplaybook-cover.074b67ee.jpg&amp;w=32&amp;q=75 32w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fplaybook-cover.074b67ee.jpg&amp;w=48&amp;q=75 48w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fplaybook-cover.074b67ee.jpg&amp;w=64&amp;q=75 64w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fplaybook-cover.074b67ee.jpg&amp;w=96&amp;q=75 96w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fplaybook-cover.074b67ee.jpg&amp;w=128&amp;q=75 128w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fplaybook-cover.074b67ee.jpg&amp;w=256&amp;q=75 256w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fplaybook-cover.074b67ee.jpg&amp;w=384&amp;q=75 384w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fplaybook-cover.074b67ee.jpg&amp;w=640&amp;q=75 640w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fplaybook-cover.074b67ee.jpg&amp;w=750&amp;q=75 750w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fplaybook-cover.074b67ee.jpg&amp;w=828&amp;q=75 828w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fplaybook-cover.074b67ee.jpg&amp;w=1080&amp;q=75 1080w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fplaybook-cover.074b67ee.jpg&amp;w=1200&amp;q=75 1200w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fplaybook-cover.074b67ee.jpg&amp;w=1920&amp;q=75 1920w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fplaybook-cover.074b67ee.jpg&amp;w=2048&amp;q=75 2048w, /_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fplaybook-cover.074b67ee.jpg&amp;w=3840&amp;q=75 3840w" src="/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fplaybook-cover.074b67ee.jpg&amp;w=3840&amp;q=75"></div></a><div class="text-center sm:text-left"><p class="text-lg font-semibold text-zinc-900 dark:text-zinc-50">The Orchestration Layer Playbook</p><p class="mt-2 text-base text-zinc-600 dark:text-zinc-400">The free 16-page companion to the video: the framework, checklists, and the 30-day rollout. No signup required.</p><div class="mt-5 flex flex-wrap items-center justify-center gap-x-6 gap-y-3 sm:justify-start"><a class="inline-flex items-center justify-center outline-offset-2 transition focus-visible:outline focus-visible:outline-2 active:transition-none gap-2 rounded-md px-3.5 py-2.5 text-sm bg-patrick-blue-700 font-semibold text-white hover:bg-patrick-blue-800 focus-visible:outline-patrick-blue-600 active:bg-patrick-blue-800 active:text-white/80 dark:bg-patrick-blue-400 dark:text-zinc-950 dark:hover:bg-patrick-blue-300 dark:focus-visible:outline-patrick-blue-300 dark:active:bg-patrick-blue-400 dark:active:text-zinc-950/70" href="https://raw.githubusercontent.com/OneRedOak/claude-code-workflows/main/guides/orchestration-layer/orchestration-layer-playbook.pdf">Download the PDF</a><a href="https://github.com/OneRedOak/claude-code-workflows/tree/main/guides/orchestration-layer" class="text-link text-sm font-semibold">Templates on GitHub</a></div></div></div>
<h2 class="scroll-mt-24" id="the-bottleneck-moved">The bottleneck moved</h2>
<p>Anthropic and OpenAI are converging on long-horizon autonomy: give the model everything it needs up front, then let it run until the work is done, without stopping because it lacks clarity, a tool, or a sense of what the right answer is. <a href="https://www.youtube.com/watch?v=6lfC9W5J-0Y&amp;t=89s" target="_blank" rel="noopener noreferrer">Watch from 1:29<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a></p>
<p>On the <a href="https://www.youtube.com/watch?v=OXOypK7_90c" target="_blank" rel="noopener noreferrer">OpenAI Podcast<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a>, Greg Brockman described the "AGI-pilled" vision for Codex. Their first CLI felt too iterative, so they rebuilt Codex around tasks that run in the cloud for hours, eventually days, and come back done.</p>
<p>The two tools started at opposite ends. Claude Code grew up as a scrappy pair programmer: it runs a million bash searches and greps its way around messy, real-world codebases. Codex was the academic: systematic and precise, brilliant when you hand it a full plan, weaker at figuring things out mid-flight. The old rule was Codex when you knew the spec and Claude Code when you didn't. Now the two are converging, and the new rule is simpler: set either one up properly, then let it run.</p>
<p>The mental model I use is onboarding. Treat the model like an incredibly capable college graduate on their first day, brand new to your team, your company, your project, and you. You wouldn't expect a new hire to ship a correct PR without onboarding, so spell out the resources, your expectations for code quality, and the tools they can use, and answer the questions they'd ask before they ask them.</p>
<p>When people say the newest models ask too many questions or go off the rails, I believe them. Usually, though, they're running a new model on an old workflow. If an agent is asking too many questions, it wasn't given enough answers up front.</p>
<blockquote class="relative my-10 border-l-0 pl-10 font-medium not-italic text-zinc-800 dark:text-zinc-200 [&amp;>p]:my-0"><svg class="absolute left-0 top-1 h-6 w-6 text-patrick-blue/50" fill="currentColor" viewBox="0 0 32 32" aria-hidden="true"><path d="M9.352 4C4.456 7.456 1 13.12 1 19.36c0 5.088 3.072 8.064 6.624 8.064 3.36 0 5.856-2.688 5.856-5.856 0-3.168-2.208-5.472-5.088-5.472-.576 0-1.344.096-1.536.192.48-3.264 3.552-7.104 6.624-9.024L9.352 4zm16.512 0c-4.8 3.456-8.256 9.12-8.256 15.36 0 5.088 3.072 8.064 6.624 8.064 3.264 0 5.856-2.688 5.856-5.856 0-3.168-2.304-5.472-5.184-5.472-.576 0-1.248.096-1.44.192.48-3.264 3.456-7.104 6.528-9.024L25.864 4z"></path></svg>
<p><strong>Try this on every model release.</strong> Skip the one-line test prompts and give the new model the most ambitious end-to-end project you can think of. Mine is usually a raw meeting transcript plus a few mockups, turned into detailed PRDs against our company wiki. That's exactly how the analytics project below started. Single prompts can't show you what a model can do over hours.</p>
</blockquote>
<h2 class="scroll-mt-24" id="the-four-pillars">The four pillars</h2>
<p>If the model isn't the bottleneck, what is? Everything you set up around it so it can answer its own questions. I used to describe this as three pillars: context, tools, and verification. The fourth, workflows, is the newest and the one almost nobody builds: the process the model follows, not just the facts it knows. <a href="https://www.youtube.com/watch?v=6lfC9W5J-0Y&amp;t=310s" target="_blank" rel="noopener noreferrer">Watch from 5:10<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a></p>
<div class="table-scroll"><table><thead><tr><th>Pillar</th><th>What it covers</th><th>Examples</th></tr></thead><tbody><tr><td><strong>Context</strong></td><td>What the model knows</td><td>Product, goals and scope, design language, performance requirements, adjacent repos, docs, Slack, your wiki</td></tr><tr><td><strong>Tools</strong></td><td>How it acts</td><td>grep, web search, GitHub CLI, Playwright MCP, Sentry, gcloud, Terraform, database CLIs</td></tr><tr><td><strong>Workflows</strong></td><td>The process it follows</td><td>Engineering, design, and security reviews, gstack, your own skills, task tracking</td></tr><tr><td><strong>Verification</strong></td><td>How it checks itself</td><td>UI mocks and screenshots, tests, linters, type checks, dead-code audits, CI</td></tr></tbody></table></div>
<p>Together, they hold up one loop (plan, use tools, observe, verify, iterate) that runs for hours instead of minutes. They're also what makes parallel agents possible: if every agent needs you to answer its questions, you can't run eight at once. The target I hold myself to is cutting the questions on a long-running task from about 100 to 5.</p>
<h2 class="scroll-mt-24" id="pillar-1-context">Pillar 1: Context</h2>
<p>Feed the agent everything a new hire would ask for, captured once and reused by every session. <a href="https://www.youtube.com/watch?v=6lfC9W5J-0Y&amp;t=330s" target="_blank" rel="noopener noreferrer">Watch from 5:30<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a></p>
<p>This is the inventory I work through:</p>
<ul>
<li><strong>Company and product:</strong> what you're building, for whom, and why it wins</li>
<li><strong>Goals and scope:</strong> what's in and out of the current push</li>
<li><strong>Design language:</strong> the components, tokens, and tone you prefer</li>
<li><strong>Performance requirements:</strong> budgets, SLOs, and expected scale</li>
<li><strong>Adjacent codebases:</strong> the sibling repos and services it should know exist</li>
<li><strong>Third-party APIs:</strong> the contracts you integrate with</li>
<li><strong>Docs, Slack, and history:</strong> wherever decisions and tribal knowledge live</li>
</ul>
<h3 class="scroll-mt-24">Consume the exhaust</h3>
<p>Don't write context from scratch. Your best context already exists as a byproduct of work: meeting transcripts, task boards, Slack threads, git history, and your team's wiki. Pipe that exhaust in. The analytics platform in the case study below started from a raw meeting transcript and a few mockups.</p>
<h3 class="scroll-mt-24">Start with a CLAUDE.md</h3>
<p>Here's the skeleton I start from. Write it for a brilliant stranger, and keep it under about 200 lines:</p>
<figure data-code-block="true" class="code-block dark not-prose my-8 overflow-hidden rounded-xl bg-zinc-900 [.dark_&amp;]:bg-zinc-950 [.dark_&amp;]:ring-1 [.dark_&amp;]:ring-zinc-700/60"><figcaption class="flex h-11 items-center gap-2 border-b border-zinc-800 bg-zinc-800/40 pl-4 pr-1.5 text-xs font-medium text-zinc-300 sm:pl-5"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5 shrink-0 text-zinc-500"><path d="M4.25 1.75h4.5l3.5 3.5v8a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-10.5a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"></path><path d="M8.75 1.75v3.5h3.5" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"></path></svg><span class="min-w-0 truncate">CLAUDE.md</span><button type="button" class="ml-auto shrink-0 inline-flex h-9 items-center gap-1.5 rounded-md px-3 text-xs font-medium transition-colors duration-200 hover:bg-zinc-800 hover:text-zinc-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-patrick-blue-300 text-zinc-400"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5"><path d="M5.75 5.25V3.75a1 1 0 0 1 1-1h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-1.5m-6.5-4.5h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-5.5a1 1 0 0 1-1-1v-5.5a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span aria-live="polite">Copy</span></button></figcaption><pre class="language-markdown overflow-x-auto px-4 py-4 font-mono text-[0.8125rem] leading-[1.7] text-zinc-200 [font-variant-ligatures:none] [tab-size:2] sm:px-5 sm:py-5 sm:text-sm sm:leading-[1.75]"><code class="language-markdown" data-title="CLAUDE.md"><span class="token title important"><span class="token punctuation">#</span> {Product}: agent onboarding</span>

<span class="token title important"><span class="token punctuation">##</span> What this is</span>
{2–3 sentences: the product, the customer, and the job
this repo does.}

<span class="token title important"><span class="token punctuation">##</span> Scope right now</span>
IN: {current initiative, e.g. analytics v2}
OUT: {explicitly not now; this stops scope creep}

<span class="token title important"><span class="token punctuation">##</span> Architecture in one breath</span>
{Repo layout, key services, data flow.
Adjacent repos: ../api, ../gallery, ../infra}

<span class="token title important"><span class="token punctuation">##</span> Design language</span>
{Tokens and components to reuse. "Extend, don't invent."
Link the style guide.}

<span class="token title important"><span class="token punctuation">##</span> Quality bar</span>
<span class="token list punctuation">-</span> Before calling anything done: npm run verify:quick
<span class="token list punctuation">-</span> Lint must pass; no dead code
<span class="token list punctuation">-</span> No new dependencies without a note in the PR

<span class="token title important"><span class="token punctuation">##</span> Where truth lives</span>
<span class="token list punctuation">-</span> Specs and PRDs: /docs/specs
<span class="token list punctuation">-</span> Decisions: /docs/adr · Wiki: {link}
<span class="token list punctuation">-</span> Infra state: /infra (Terraform is the source of truth)

<span class="token title important"><span class="token punctuation">##</span> When unsure</span>
Prefer reading the codebase over asking.
Ask only when two valid paths conflict.
</code></pre></figure>
<p>The test: could a talented engineer with no history at your company open this file and make a correct PR today? If so, an agent can too.</p>
<p>If you use both Claude Code and Codex, keep one source of truth. Codex reads <code>AGENTS.md</code>, and a <code>CLAUDE.md</code> can import it with a single line, so both tools start from the same context:</p>
<figure data-code-block="true" class="code-block dark not-prose my-8 overflow-hidden rounded-xl bg-zinc-900 [.dark_&amp;]:bg-zinc-950 [.dark_&amp;]:ring-1 [.dark_&amp;]:ring-zinc-700/60"><figcaption class="flex h-11 items-center gap-2 border-b border-zinc-800 bg-zinc-800/40 pl-4 pr-1.5 text-xs font-medium text-zinc-300 sm:pl-5"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5 shrink-0 text-zinc-500"><path d="M4.25 1.75h4.5l3.5 3.5v8a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-10.5a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"></path><path d="M8.75 1.75v3.5h3.5" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"></path></svg><span class="min-w-0 truncate">CLAUDE.md</span><button type="button" class="ml-auto shrink-0 inline-flex h-9 items-center gap-1.5 rounded-md px-3 text-xs font-medium transition-colors duration-200 hover:bg-zinc-800 hover:text-zinc-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-patrick-blue-300 text-zinc-400"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5"><path d="M5.75 5.25V3.75a1 1 0 0 1 1-1h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-1.5m-6.5-4.5h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-5.5a1 1 0 0 1-1-1v-5.5a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span aria-live="polite">Copy</span></button></figcaption><pre class="language-markdown overflow-x-auto px-4 py-4 font-mono text-[0.8125rem] leading-[1.7] text-zinc-200 [font-variant-ligatures:none] [tab-size:2] sm:px-5 sm:py-5 sm:text-sm sm:leading-[1.75]"><code class="language-markdown" data-title="CLAUDE.md">@AGENTS.md
</code></pre></figure>
<p>Planning with full context up front, the first 10% of the work, can feel like a chore. It's also what lets you skip hundreds of questions mid-run. That's the whole trade.</p>
<h2 class="scroll-mt-24" id="pillar-2-tools">Pillar 2: Tools</h2>
<p>Tools let the agent gather its own context and act on it. Without them, you're back to babysitting. <a href="https://www.youtube.com/watch?v=6lfC9W5J-0Y&amp;t=869s" target="_blank" rel="noopener noreferrer">Watch from 14:29<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a></p>
<div class="table-scroll"><table><thead><tr><th>Tool</th><th>What it gives the agent</th><th>When you notice</th></tr></thead><tbody><tr><td>grep and web search</td><td>A way around your codebase and the outside world</td><td>It cites the file you forgot existed</td></tr><tr><td><code>gh</code> (GitHub CLI)</td><td>Old PRs and history, new issues and PRs, CI checks</td><td>It quotes a decision from a PR six months back</td></tr><tr><td>Playwright MCP</td><td>Eyes on its own front end</td><td>It catches its own overlapping layout before you do</td></tr><tr><td>Sentry CLI</td><td>Production issues to triage and fix</td><td>A bug becomes a reviewed PR while you're at lunch</td></tr><tr><td><code>gcloud</code>, mostly read-only</td><td>Logs, config, machine specs, deploy status, telemetry</td><td>It answers "why did the deploy fail?" itself</td></tr><tr><td>Terraform</td><td>Your infrastructure as readable, versioned code</td><td>Infra questions stop reaching you</td></tr><tr><td>Supabase or database CLIs</td><td>Schema and platform state, directly</td><td>Schema questions disappear from your inbox</td></tr></tbody></table></div>
<p>Most of these are one command away. Here's how to give both agents a browser:</p>
<figure data-code-block="true" class="code-block dark not-prose my-8 overflow-hidden rounded-xl bg-zinc-900 [.dark_&amp;]:bg-zinc-950 [.dark_&amp;]:ring-1 [.dark_&amp;]:ring-zinc-700/60"><figcaption class="flex h-11 items-center gap-2 border-b border-zinc-800 bg-zinc-800/40 pl-4 pr-1.5 text-xs font-medium text-zinc-300 sm:pl-5"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5 shrink-0 text-zinc-500"><path d="m3.75 4.75 3.25 3.25-3.25 3.25M8.75 11.75h3.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="min-w-0 truncate">Terminal</span><button type="button" class="ml-auto shrink-0 inline-flex h-9 items-center gap-1.5 rounded-md px-3 text-xs font-medium transition-colors duration-200 hover:bg-zinc-800 hover:text-zinc-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-patrick-blue-300 text-zinc-400"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5"><path d="M5.75 5.25V3.75a1 1 0 0 1 1-1h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-1.5m-6.5-4.5h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-5.5a1 1 0 0 1-1-1v-5.5a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span aria-live="polite">Copy</span></button></figcaption><pre class="language-bash overflow-x-auto px-4 py-4 font-mono text-[0.8125rem] leading-[1.7] text-zinc-200 [font-variant-ligatures:none] [tab-size:2] sm:px-5 sm:py-5 sm:text-sm sm:leading-[1.75]"><code class="language-bash"><span class="token comment"># Claude Code (add --scope project to share via .mcp.json)</span>
claude mcp <span class="token function">add</span> playwright -- npx -y @playwright/mcp@latest

<span class="token comment"># Codex</span>
codex mcp <span class="token function">add</span> playwright -- npx -y @playwright/mcp@latest
</code></pre></figure>
<p>And once an agent has <code>gh</code>, it can answer questions like these on its own:</p>
<figure data-code-block="true" class="code-block dark not-prose my-8 overflow-hidden rounded-xl bg-zinc-900 [.dark_&amp;]:bg-zinc-950 [.dark_&amp;]:ring-1 [.dark_&amp;]:ring-zinc-700/60"><figcaption class="flex h-11 items-center gap-2 border-b border-zinc-800 bg-zinc-800/40 pl-4 pr-1.5 text-xs font-medium text-zinc-300 sm:pl-5"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5 shrink-0 text-zinc-500"><path d="m3.75 4.75 3.25 3.25-3.25 3.25M8.75 11.75h3.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="min-w-0 truncate">Terminal</span><button type="button" class="ml-auto shrink-0 inline-flex h-9 items-center gap-1.5 rounded-md px-3 text-xs font-medium transition-colors duration-200 hover:bg-zinc-800 hover:text-zinc-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-patrick-blue-300 text-zinc-400"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5"><path d="M5.75 5.25V3.75a1 1 0 0 1 1-1h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-1.5m-6.5-4.5h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-5.5a1 1 0 0 1-1-1v-5.5a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span aria-live="polite">Copy</span></button></figcaption><pre class="language-bash overflow-x-auto px-4 py-4 font-mono text-[0.8125rem] leading-[1.7] text-zinc-200 [font-variant-ligatures:none] [tab-size:2] sm:px-5 sm:py-5 sm:text-sm sm:leading-[1.75]"><code class="language-bash"><span class="token comment"># The PR and its discussion</span>
gh <span class="token function">pr</span> view <span class="token number">1000</span> --comments

<span class="token comment"># Exactly what changed</span>
gh <span class="token function">pr</span> <span class="token function">diff</span> <span class="token number">1000</span>

<span class="token comment"># How we solved this last time</span>
gh search prs <span class="token string">"rate limiter"</span> --repo acme/app --merged

<span class="token comment"># Why CI failed</span>
gh run view <span class="token number">123456789</span> --log-failed
</code></pre></figure>
<h3 class="scroll-mt-24">A worked example: sentry-fixes</h3>
<p>One custom command, <code>sentry-fixes</code>, runs a whole loop, because the agent has the Sentry CLI, <code>gh</code>, and CI access to do every step itself:</p>
<ol>
<li>Find new Sentry issues and triage them</li>
<li>Fix the ones worth fixing</li>
<li>Get a second-opinion review</li>
<li>Watch CI until the fix is merged and passing</li>
</ol>
<p>Every question an agent answers with a tool is a question that never interrupts you. That's what makes eight agents in parallel survivable. <a href="https://www.youtube.com/watch?v=6lfC9W5J-0Y&amp;t=893s" target="_blank" rel="noopener noreferrer">Watch from 14:53<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a></p>
<h3 class="scroll-mt-24">Infrastructure as context: gcloud and Terraform</h3>
<p>My two favorite tools to expose are <code>gcloud</code> and Terraform. <a href="https://www.youtube.com/watch?v=6lfC9W5J-0Y&amp;t=917s" target="_blank" rel="noopener noreferrer">Watch from 15:17<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a></p>
<p>I use <code>gcloud</code> in a mostly read-only context, for logs, infrastructure config, machine specs, failed deploys, and performance data. It's the fastest way to give an agent real production context, right when I'm rolling something out or triaging a live issue:</p>
<figure data-code-block="true" class="code-block dark not-prose my-8 overflow-hidden rounded-xl bg-zinc-900 [.dark_&amp;]:bg-zinc-950 [.dark_&amp;]:ring-1 [.dark_&amp;]:ring-zinc-700/60"><figcaption class="flex h-11 items-center gap-2 border-b border-zinc-800 bg-zinc-800/40 pl-4 pr-1.5 text-xs font-medium text-zinc-300 sm:pl-5"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5 shrink-0 text-zinc-500"><path d="m3.75 4.75 3.25 3.25-3.25 3.25M8.75 11.75h3.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="min-w-0 truncate">Terminal</span><button type="button" class="ml-auto shrink-0 inline-flex h-9 items-center gap-1.5 rounded-md px-3 text-xs font-medium transition-colors duration-200 hover:bg-zinc-800 hover:text-zinc-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-patrick-blue-300 text-zinc-400"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5"><path d="M5.75 5.25V3.75a1 1 0 0 1 1-1h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-1.5m-6.5-4.5h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-5.5a1 1 0 0 1-1-1v-5.5a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span aria-live="polite">Copy</span></button></figcaption><pre class="language-bash overflow-x-auto px-4 py-4 font-mono text-[0.8125rem] leading-[1.7] text-zinc-200 [font-variant-ligatures:none] [tab-size:2] sm:px-5 sm:py-5 sm:text-sm sm:leading-[1.75]"><code class="language-bash"><span class="token comment"># What broke in the last hour?</span>
gcloud logging <span class="token builtin class-name">read</span> <span class="token punctuation">\</span>
  <span class="token string">'resource.type="cloud_run_revision" AND severity&gt;=ERROR'</span> <span class="token punctuation">\</span>
  --freshness<span class="token operator">=</span>1h --limit<span class="token operator">=</span><span class="token number">50</span>

<span class="token comment"># How is this service configured right now?</span>
gcloud run services describe analytics-api --region<span class="token operator">=</span>us-central1
</code></pre></figure>
<p>Terraform does the same for your infrastructure as a whole: the current state, what changed, why, and when, in a form the agent can read. My habit is a drift check. The agent compares what's actually running against the config and surfaces anything that should be written back to Terraform:</p>
<figure data-code-block="true" class="code-block dark not-prose my-8 overflow-hidden rounded-xl bg-zinc-900 [.dark_&amp;]:bg-zinc-950 [.dark_&amp;]:ring-1 [.dark_&amp;]:ring-zinc-700/60"><figcaption class="flex h-11 items-center gap-2 border-b border-zinc-800 bg-zinc-800/40 pl-4 pr-1.5 text-xs font-medium text-zinc-300 sm:pl-5"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5 shrink-0 text-zinc-500"><path d="m3.75 4.75 3.25 3.25-3.25 3.25M8.75 11.75h3.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="min-w-0 truncate">Terminal</span><button type="button" class="ml-auto shrink-0 inline-flex h-9 items-center gap-1.5 rounded-md px-3 text-xs font-medium transition-colors duration-200 hover:bg-zinc-800 hover:text-zinc-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-patrick-blue-300 text-zinc-400"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5"><path d="M5.75 5.25V3.75a1 1 0 0 1 1-1h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-1.5m-6.5-4.5h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-5.5a1 1 0 0 1-1-1v-5.5a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span aria-live="polite">Copy</span></button></figcaption><pre class="language-bash overflow-x-auto px-4 py-4 font-mono text-[0.8125rem] leading-[1.7] text-zinc-200 [font-variant-ligatures:none] [tab-size:2] sm:px-5 sm:py-5 sm:text-sm sm:leading-[1.75]"><code class="language-bash"><span class="token comment"># Drift on resources Terraform already manages</span>
<span class="token comment"># (exit code 0 = in sync, 2 = drift, 1 = error)</span>
terraform plan -refresh-only -detailed-exitcode

<span class="token comment"># Services running that Terraform may not know about</span>
gcloud run services list --format<span class="token operator">=</span><span class="token string">"value(metadata.name)"</span>
terraform state list <span class="token operator">|</span> <span class="token function">grep</span> google_cloud_run
</code></pre></figure>
<h3 class="scroll-mt-24">Free rein to read, a human for changes</h3>
<p>This is the warning that matters most. Let agents read freely (logs, config, state), but make no changes to core infrastructure without human review. <a href="https://www.youtube.com/watch?v=6lfC9W5J-0Y&amp;t=1627s" target="_blank" rel="noopener noreferrer">Watch from 27:07<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a></p>
<p>In Claude Code, that's a few lines in <code>.claude/settings.json</code>. Deny rules always win over allow rules:</p>
<figure data-code-block="true" class="code-block dark not-prose my-8 overflow-hidden rounded-xl bg-zinc-900 [.dark_&amp;]:bg-zinc-950 [.dark_&amp;]:ring-1 [.dark_&amp;]:ring-zinc-700/60"><figcaption class="flex h-11 items-center gap-2 border-b border-zinc-800 bg-zinc-800/40 pl-4 pr-1.5 text-xs font-medium text-zinc-300 sm:pl-5"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5 shrink-0 text-zinc-500"><path d="M4.25 1.75h4.5l3.5 3.5v8a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-10.5a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"></path><path d="M8.75 1.75v3.5h3.5" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"></path></svg><span class="min-w-0 truncate">.claude/settings.json</span><button type="button" class="ml-auto shrink-0 inline-flex h-9 items-center gap-1.5 rounded-md px-3 text-xs font-medium transition-colors duration-200 hover:bg-zinc-800 hover:text-zinc-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-patrick-blue-300 text-zinc-400"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5"><path d="M5.75 5.25V3.75a1 1 0 0 1 1-1h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-1.5m-6.5-4.5h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-5.5a1 1 0 0 1-1-1v-5.5a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span aria-live="polite">Copy</span></button></figcaption><pre class="language-json overflow-x-auto px-4 py-4 font-mono text-[0.8125rem] leading-[1.7] text-zinc-200 [font-variant-ligatures:none] [tab-size:2] sm:px-5 sm:py-5 sm:text-sm sm:leading-[1.75]"><code class="language-json" data-title=".claude/settings.json"><span class="token punctuation">{</span>
  <span class="token property">"permissions"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
    <span class="token property">"allow"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
      <span class="token string">"Bash(gh pr view *)"</span><span class="token punctuation">,</span>
      <span class="token string">"Bash(gh pr checks *)"</span><span class="token punctuation">,</span>
      <span class="token string">"Bash(gh run view *)"</span><span class="token punctuation">,</span>
      <span class="token string">"Bash(gh search *)"</span><span class="token punctuation">,</span>
      <span class="token string">"Bash(gcloud logging read *)"</span><span class="token punctuation">,</span>
      <span class="token string">"Bash(gcloud run services describe *)"</span><span class="token punctuation">,</span>
      <span class="token string">"Bash(gcloud run services list *)"</span><span class="token punctuation">,</span>
      <span class="token string">"Bash(terraform plan *)"</span><span class="token punctuation">,</span>
      <span class="token string">"Bash(terraform state list *)"</span><span class="token punctuation">,</span>
      <span class="token string">"Bash(supabase inspect *)"</span>
    <span class="token punctuation">]</span><span class="token punctuation">,</span>
    <span class="token property">"deny"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
      <span class="token string">"Bash(terraform apply *)"</span><span class="token punctuation">,</span>
      <span class="token string">"Bash(terraform destroy *)"</span><span class="token punctuation">,</span>
      <span class="token string">"Bash(gcloud run deploy *)"</span><span class="token punctuation">,</span>
      <span class="token string">"Bash(gcloud iam *)"</span><span class="token punctuation">,</span>
      <span class="token string">"Bash(rm -rf *)"</span>
    <span class="token punctuation">]</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
</code></pre></figure>
<p>An allow list is a convenience, not a security boundary, and a deny list won't catch every variation of a command. The real guardrail is IAM. Run agents as a service account that can only read, so the boundary holds even if a command slips through, and never hand a headless agent your own console credentials:</p>
<figure data-code-block="true" class="code-block dark not-prose my-8 overflow-hidden rounded-xl bg-zinc-900 [.dark_&amp;]:bg-zinc-950 [.dark_&amp;]:ring-1 [.dark_&amp;]:ring-zinc-700/60"><figcaption class="flex h-11 items-center gap-2 border-b border-zinc-800 bg-zinc-800/40 pl-4 pr-1.5 text-xs font-medium text-zinc-300 sm:pl-5"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5 shrink-0 text-zinc-500"><path d="m3.75 4.75 3.25 3.25-3.25 3.25M8.75 11.75h3.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="min-w-0 truncate">Terminal</span><button type="button" class="ml-auto shrink-0 inline-flex h-9 items-center gap-1.5 rounded-md px-3 text-xs font-medium transition-colors duration-200 hover:bg-zinc-800 hover:text-zinc-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-patrick-blue-300 text-zinc-400"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5"><path d="M5.75 5.25V3.75a1 1 0 0 1 1-1h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-1.5m-6.5-4.5h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-5.5a1 1 0 0 1-1-1v-5.5a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span aria-live="polite">Copy</span></button></figcaption><pre class="language-bash overflow-x-auto px-4 py-4 font-mono text-[0.8125rem] leading-[1.7] text-zinc-200 [font-variant-ligatures:none] [tab-size:2] sm:px-5 sm:py-5 sm:text-sm sm:leading-[1.75]"><code class="language-bash"><span class="token assign-left variable">PROJECT</span><span class="token operator">=</span>your-project-id
<span class="token assign-left variable">SA</span><span class="token operator">=</span><span class="token string">"agent-readonly@<span class="token variable">$PROJECT</span>.iam.gserviceaccount.com"</span>

gcloud iam service-accounts create agent-readonly <span class="token punctuation">\</span>
  --project<span class="token operator">=</span><span class="token string">"<span class="token variable">$PROJECT</span>"</span> <span class="token punctuation">\</span>
  --display-name<span class="token operator">=</span><span class="token string">"Coding agents (read-only)"</span>

<span class="token keyword">for</span> <span class="token for-or-select variable">ROLE</span> <span class="token keyword">in</span> roles/viewer roles/logging.viewer<span class="token punctuation">;</span> <span class="token keyword">do</span>
  gcloud projects add-iam-policy-binding <span class="token string">"<span class="token variable">$PROJECT</span>"</span> <span class="token punctuation">\</span>
    --member<span class="token operator">=</span><span class="token string">"serviceAccount:<span class="token variable">$SA</span>"</span> --role<span class="token operator">=</span><span class="token string">"<span class="token variable">$ROLE</span>"</span>
<span class="token keyword">done</span>

<span class="token comment"># A gcloud profile for agents that impersonates the account.</span>
<span class="token comment"># You need the Service Account Token Creator role on it.</span>
gcloud config configurations create agent --no-activate
gcloud config <span class="token builtin class-name">set</span> account you@company.com --configuration<span class="token operator">=</span>agent
gcloud config <span class="token builtin class-name">set</span> project <span class="token string">"<span class="token variable">$PROJECT</span>"</span> --configuration<span class="token operator">=</span>agent
gcloud config <span class="token builtin class-name">set</span> auth/impersonate_service_account <span class="token string">"<span class="token variable">$SA</span>"</span> <span class="token punctuation">\</span>
  --configuration<span class="token operator">=</span>agent

<span class="token assign-left variable">CLOUDSDK_ACTIVE_CONFIG_NAME</span><span class="token operator">=</span>agent claude
</code></pre></figure>
<p>Set this up now, before the next jump in model capability forces a rushed rework.</p>
<h2 class="scroll-mt-24" id="pillar-3-workflows">Pillar 3: Workflows</h2>
<p>Context is what the model knows; workflows are how it works. A standard operating procedure packages the considerations, judgment calls, and taste your team applies, so the model goes through the same steps you would. That's the difference between a PR you trust and a PR you audit line by line. <a href="https://www.youtube.com/watch?v=6lfC9W5J-0Y&amp;t=448s" target="_blank" rel="noopener noreferrer">Watch from 7:28<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a></p>
<h3 class="scroll-mt-24">Start with gstack</h3>
<p><a href="https://github.com/garrytan/gstack" target="_blank" rel="noopener noreferrer">gstack<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a> packages Y Combinator's accumulated best practices, from Garry Tan and team's office hours to UX coaching and security audits, into skills you can invoke. Some are long, but they force the model through a stack of perspectives before it writes a line of code:</p>
<div class="table-scroll"><table><thead><tr><th>Command</th><th>What it does</th></tr></thead><tbody><tr><td><code>/office-hours</code></td><td>YC-style intake: your company, your product, and what you're trying to do. Run it first.</td></tr><tr><td><code>/plan-ceo-review</code></td><td>The product lens: do customers want this, and is it scoped to the right size?</td></tr><tr><td><code>/plan-eng-review</code></td><td>Architecture and the main engineering considerations. My most-used, by far.</td></tr><tr><td><code>/plan-design-review</code></td><td>UI edge cases, plus the polish that makes an interface feel finished</td></tr><tr><td><code>/plan-devex-review</code></td><td>Developer experience, which doubles as the agent's experience</td></tr><tr><td><code>/review</code></td><td>A pre-landing review of your PR</td></tr><tr><td><code>/codex</code></td><td>Brings in the Codex CLI for a second opinion, including an adversarial challenge</td></tr><tr><td><code>/ship</code></td><td>Runs tests, reviews the diff, then commits, pushes, and opens the PR</td></tr></tbody></table></div>
<p>The best part is that these skills interview you. They surface a batch of questions; you answer, let it run, then come back and answer more. The model does 80% of the thinking against industry best practice, and you add your expertise at the end. About half the time I take the recommended answer. I'm picky about the rest.</p>
<h3 class="scroll-mt-24">Then build your own: review-and-push</h3>
<p>The highest-leverage move is wrapping primitives like these in skills that encode your own process. My <code>review-and-push</code> skill takes a PR from "ready for review" to "green CI, ready for a human to merge" with one command, like <code>/review-and-push 1000</code>:</p>
<figure data-code-block="true" class="code-block dark not-prose my-8 overflow-hidden rounded-xl bg-zinc-900 [.dark_&amp;]:bg-zinc-950 [.dark_&amp;]:ring-1 [.dark_&amp;]:ring-zinc-700/60"><figcaption class="flex h-11 items-center gap-2 border-b border-zinc-800 bg-zinc-800/40 pl-4 pr-1.5 text-xs font-medium text-zinc-300 sm:pl-5"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5 shrink-0 text-zinc-500"><path d="M4.25 1.75h4.5l3.5 3.5v8a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-10.5a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"></path><path d="M8.75 1.75v3.5h3.5" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"></path></svg><span class="min-w-0 truncate">review-and-push phases</span><button type="button" class="ml-auto shrink-0 inline-flex h-9 items-center gap-1.5 rounded-md px-3 text-xs font-medium transition-colors duration-200 hover:bg-zinc-800 hover:text-zinc-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-patrick-blue-300 text-zinc-400"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5"><path d="M5.75 5.25V3.75a1 1 0 0 1 1-1h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-1.5m-6.5-4.5h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-5.5a1 1 0 0 1-1-1v-5.5a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span aria-live="polite">Copy</span></button></figcaption><pre class="language-text overflow-x-auto px-4 py-4 font-mono text-[0.8125rem] leading-[1.7] text-zinc-200 [font-variant-ligatures:none] [tab-size:2] sm:px-5 sm:py-5 sm:text-sm sm:leading-[1.75]"><code class="language-text" data-title="review-and-push phases">0. Preflight <span class="token leader">─────────</span> branch, working tree, PR, and auth checks
1. PR setup <span class="token leader">──────────</span> create one with /ship if none exists
2. /review <span class="token leader">───────────</span> gstack pre-landing review
3. Codex challenge <span class="token leader">───</span> adversarial: edge cases, races, security
4. Comment fetch <span class="token leader">─────</span> human reviewers, CodeRabbit, other bots
5. Triage manifest <span class="token leader">───</span> classify every finding in an audit file
6. Fix and commit <span class="token leader">────</span> one commit per logical group
7. Push and watch CI <span class="token leader">─</span> bounded fix attempts, 30-minute cap
8. Final report <span class="token leader">──────</span> what changed, what was skipped, CI state
</code></pre></figure>
<p>Why a separate Codex pass when <code>/review</code> already includes one? A differently framed adversarial prompt catches different things on bigger diffs. Using the diversity of training data and post-training across models is my favorite workflow of all: different models, different blind spots. <a href="https://www.youtube.com/watch?v=6lfC9W5J-0Y&amp;t=596s" target="_blank" rel="noopener noreferrer">Watch from 9:56<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a></p>
<h4>Triage rules, the part worth stealing</h4>
<p>Most of the value is in how findings get triaged. Each source starts at a different confidence level:</p>
<ul>
<li><strong>Human reviewers</strong> start high. Downgrade only after rereading the code and confirming the comment misreads it.</li>
<li><strong>gstack's <code>/review</code></strong> starts medium-high, and goes high when the Codex challenge independently agrees.</li>
<li><strong>The Codex challenge</strong> starts medium, and goes high with a concrete reproduction.</li>
<li><strong>CodeRabbit and other bots</strong> start low. Read the code and form your own opinion; never upgrade on a bot's say-so.</li>
</ul>
<p>Then every finding gets one of three decisions:</p>
<div class="table-scroll"><table><thead><tr><th>Decision</th><th>When to use it</th></tr></thead><tbody><tr><td>Act</td><td>High confidence, or medium confidence for correctness, security, tests, error handling, or data integrity</td></tr><tr><td>Skip with a reply</td><td>The finding is wrong or out of scope. Give a real reason, never just "won't fix."</td></tr><tr><td>Skip silently</td><td>Style and naming preferences where the code is correct</td></tr></tbody></table></div>
<p>Every decision, including every skip, goes into a triage manifest before any code changes. Each finding gets an ID, its source and location, a confidence, a decision, and a one-line rationale. Disagreeing with a reviewer is fine; an unexplained omission isn't. The manifest is what makes hands-off work safe, because delegation without a paper trail is just hoping:</p>
<figure data-code-block="true" class="code-block dark not-prose my-8 overflow-hidden rounded-xl bg-zinc-900 [.dark_&amp;]:bg-zinc-950 [.dark_&amp;]:ring-1 [.dark_&amp;]:ring-zinc-700/60"><figcaption class="flex h-11 items-center gap-2 border-b border-zinc-800 bg-zinc-800/40 pl-4 pr-1.5 text-xs font-medium text-zinc-300 sm:pl-5"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5 shrink-0 text-zinc-500"><path d="M4.25 1.75h4.5l3.5 3.5v8a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-10.5a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"></path><path d="M8.75 1.75v3.5h3.5" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"></path></svg><span class="min-w-0 truncate">Triage manifest entry</span><button type="button" class="ml-auto shrink-0 inline-flex h-9 items-center gap-1.5 rounded-md px-3 text-xs font-medium transition-colors duration-200 hover:bg-zinc-800 hover:text-zinc-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-patrick-blue-300 text-zinc-400"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5"><path d="M5.75 5.25V3.75a1 1 0 0 1 1-1h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-1.5m-6.5-4.5h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-5.5a1 1 0 0 1-1-1v-5.5a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span aria-live="polite">Copy</span></button></figcaption><pre class="language-markdown overflow-x-auto px-4 py-4 font-mono text-[0.8125rem] leading-[1.7] text-zinc-200 [font-variant-ligatures:none] [tab-size:2] sm:px-5 sm:py-5 sm:text-sm sm:leading-[1.75]"><code class="language-markdown" data-title="Triage manifest entry"><span class="token title important"><span class="token punctuation">###</span> F2 · CodeRabbit · src/api/limits.ts:42</span>
<span class="token list punctuation">-</span> Category: correctness
<span class="token list punctuation">-</span> Claim: the rate limit resets on every deploy
<span class="token list punctuation">-</span> Confidence: low (bot), not confirmed by the code
<span class="token list punctuation">-</span> Decision: skip with reply
<span class="token list punctuation">-</span> Rationale: limiter state lives in Redis and survives deploys
</code></pre></figure>
<p>A few rules never bend: never amend or force-push, so every fix stays bisectable; never bypass hooks; never push to main; and never reply to a comment without reading the code around it.</p>
<h4>Watch CI by run ID</h4>
<p>One detail that took me a while to get right: <code>gh pr checks --watch</code> can report a false green right after a push, before the real workflow runs have registered. Watch the runs for the exact commit instead:</p>
<figure data-code-block="true" class="code-block dark not-prose my-8 overflow-hidden rounded-xl bg-zinc-900 [.dark_&amp;]:bg-zinc-950 [.dark_&amp;]:ring-1 [.dark_&amp;]:ring-zinc-700/60"><figcaption class="flex h-11 items-center gap-2 border-b border-zinc-800 bg-zinc-800/40 pl-4 pr-1.5 text-xs font-medium text-zinc-300 sm:pl-5"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5 shrink-0 text-zinc-500"><path d="m3.75 4.75 3.25 3.25-3.25 3.25M8.75 11.75h3.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="min-w-0 truncate">Terminal</span><button type="button" class="ml-auto shrink-0 inline-flex h-9 items-center gap-1.5 rounded-md px-3 text-xs font-medium transition-colors duration-200 hover:bg-zinc-800 hover:text-zinc-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-patrick-blue-300 text-zinc-400"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5"><path d="M5.75 5.25V3.75a1 1 0 0 1 1-1h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-1.5m-6.5-4.5h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-5.5a1 1 0 0 1-1-1v-5.5a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span aria-live="polite">Copy</span></button></figcaption><pre class="language-bash overflow-x-auto px-4 py-4 font-mono text-[0.8125rem] leading-[1.7] text-zinc-200 [font-variant-ligatures:none] [tab-size:2] sm:px-5 sm:py-5 sm:text-sm sm:leading-[1.75]"><code class="language-bash"><span class="token assign-left variable">HEAD_SHA</span><span class="token operator">=</span><span class="token variable"><span class="token variable">$(</span><span class="token function">git</span> rev-parse HEAD<span class="token variable">)</span></span>
<span class="token assign-left variable">RUN_IDS</span><span class="token operator">=</span><span class="token variable"><span class="token variable">$(</span>gh run list --commit <span class="token string">"<span class="token variable">$HEAD_SHA</span>"</span> <span class="token punctuation">\</span>
  --json databaseId --jq <span class="token string">'.[].databaseId'</span><span class="token variable">)</span></span>
<span class="token keyword">for</span> <span class="token for-or-select variable">RUN_ID</span> <span class="token keyword">in</span> <span class="token variable">$RUN_IDS</span><span class="token punctuation">;</span> <span class="token keyword">do</span>
  gh run <span class="token function">watch</span> <span class="token string">"<span class="token variable">$RUN_ID</span>"</span> --exit-status --interval <span class="token number">30</span>
<span class="token keyword">done</span>
</code></pre></figure>
<p>Cap the retries, too. Code-level failures get two fix attempts, flaky tests get one rerun with no code changes, and environment problems or failures that also happen on the base branch stop the run and get reported. A 30-minute limit bounds everything.</p>
<h4>Package it as a skill</h4>
<p>In Claude Code, a skill is a folder with a <code>SKILL.md</code> file that you invoke by name. Here's a minimal skeleton for your own version, with the triage rules above saved as <code>triage.md</code> in the same folder. The <a href="https://github.com/OneRedOak/claude-code-workflows/blob/main/guides/orchestration-layer/templates/review-skill-example.md" target="_blank" rel="noopener noreferrer">full review-and-push principles<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a> explain every phase in depth:</p>
<figure data-code-block="true" class="code-block dark not-prose my-8 overflow-hidden rounded-xl bg-zinc-900 [.dark_&amp;]:bg-zinc-950 [.dark_&amp;]:ring-1 [.dark_&amp;]:ring-zinc-700/60"><figcaption class="flex h-11 items-center gap-2 border-b border-zinc-800 bg-zinc-800/40 pl-4 pr-1.5 text-xs font-medium text-zinc-300 sm:pl-5"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5 shrink-0 text-zinc-500"><path d="M4.25 1.75h4.5l3.5 3.5v8a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-10.5a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"></path><path d="M8.75 1.75v3.5h3.5" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"></path></svg><span class="min-w-0 truncate">.claude/skills/review-and-push/SKILL.md</span><button type="button" class="ml-auto shrink-0 inline-flex h-9 items-center gap-1.5 rounded-md px-3 text-xs font-medium transition-colors duration-200 hover:bg-zinc-800 hover:text-zinc-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-patrick-blue-300 text-zinc-400"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5"><path d="M5.75 5.25V3.75a1 1 0 0 1 1-1h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-1.5m-6.5-4.5h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-5.5a1 1 0 0 1-1-1v-5.5a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span aria-live="polite">Copy</span></button></figcaption><pre class="language-markdown overflow-x-auto px-4 py-4 font-mono text-[0.8125rem] leading-[1.7] text-zinc-200 [font-variant-ligatures:none] [tab-size:2] sm:px-5 sm:py-5 sm:text-sm sm:leading-[1.75]"><code class="language-markdown" data-title=".claude/skills/review-and-push/SKILL.md"><span class="token front-matter-block"><span class="token punctuation">---</span>
<span class="token front-matter yaml language-yaml"><span class="token key atrule">name</span><span class="token punctuation">:</span> review<span class="token punctuation">-</span>and<span class="token punctuation">-</span>push
<span class="token key atrule">description</span><span class="token punctuation">:</span> <span class="token punctuation">|</span><span class="token scalar string">
  Take a PR from review to green CI. Runs a review and an
  adversarial Codex challenge, triages every comment into a
  manifest, fixes in separate commits, pushes, and watches CI.</span>
<span class="token key atrule">disable-model-invocation</span><span class="token punctuation">:</span> <span class="token boolean important">true</span></span>
<span class="token punctuation">---</span></span>

Review and push PR $ARGUMENTS. With no number, use the
current branch's PR.

<span class="token list punctuation">1.</span> Preflight: confirm gh is authenticated and the PR exists.
   Never work on the default branch; stop on a fork's PR.
<span class="token list punctuation">2.</span> Run /review, then /codex as an adversarial challenge.
<span class="token list punctuation">3.</span> Fetch every review comment with gh. Drop resolved
   threads, bot boilerplate, and duplicates.
<span class="token list punctuation">4.</span> Before changing any code, write a triage manifest to
   .reviews/ using the rules in triage.md.
<span class="token list punctuation">5.</span> Apply fixes as one commit per logical group. Never
   amend, force-push, or skip hooks.
<span class="token list punctuation">6.</span> Push, then watch CI by run ID: at most two fix attempts
   and 30 minutes.
<span class="token list punctuation">7.</span> Finish with a short report: commits added, findings
   acted on and skipped, CI state, and one next step.
</code></pre></figure>
<h3 class="scroll-mt-24">Keep long runs honest with Beads</h3>
<p>Long-running agents need task discipline. A markdown plan gets skimmed as the context window fills, and agents start skipping chunks near the end. <a href="https://github.com/gastownhall/beads" target="_blank" rel="noopener noreferrer">Beads<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a>, Steve Yegge's open-source issue tracker for agents, keeps them working issue by issue with a real dependency graph, like Linear or Jira built for agents. Claude Code's built-in Tasks feature was modeled on it. <a href="https://www.youtube.com/watch?v=6lfC9W5J-0Y&amp;t=1417s" target="_blank" rel="noopener noreferrer">Watch from 23:37<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a></p>
<figure data-code-block="true" class="code-block dark not-prose my-8 overflow-hidden rounded-xl bg-zinc-900 [.dark_&amp;]:bg-zinc-950 [.dark_&amp;]:ring-1 [.dark_&amp;]:ring-zinc-700/60"><figcaption class="flex h-11 items-center gap-2 border-b border-zinc-800 bg-zinc-800/40 pl-4 pr-1.5 text-xs font-medium text-zinc-300 sm:pl-5"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5 shrink-0 text-zinc-500"><path d="m3.75 4.75 3.25 3.25-3.25 3.25M8.75 11.75h3.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="min-w-0 truncate">Terminal</span><button type="button" class="ml-auto shrink-0 inline-flex h-9 items-center gap-1.5 rounded-md px-3 text-xs font-medium transition-colors duration-200 hover:bg-zinc-800 hover:text-zinc-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-patrick-blue-300 text-zinc-400"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5"><path d="M5.75 5.25V3.75a1 1 0 0 1 1-1h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-1.5m-6.5-4.5h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-5.5a1 1 0 0 1-1-1v-5.5a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span aria-live="polite">Copy</span></button></figcaption><pre class="language-bash overflow-x-auto px-4 py-4 font-mono text-[0.8125rem] leading-[1.7] text-zinc-200 [font-variant-ligatures:none] [tab-size:2] sm:px-5 sm:py-5 sm:text-sm sm:leading-[1.75]"><code class="language-bash">bd init                     <span class="token comment"># set up .beads/ in your repo</span>
bd create <span class="token string">"Pub/Sub ingestion for live events"</span> -t task -p <span class="token number">1</span>
bd create <span class="token string">"BigQuery schema for sessions"</span> -t task -p <span class="token number">1</span>
bd dep <span class="token function">add</span> bd-a1b bd-c2d    <span class="token comment"># a1b waits on c2d (IDs vary)</span>
bd ready                    <span class="token comment"># open work with no blockers</span>
bd update bd-c2d --claim    <span class="token comment"># an agent claims it</span>
bd close bd-c2d             <span class="token comment"># done, so a1b is ready</span>
</code></pre></figure>
<p>When I come back to a long-running session, I open <a href="https://github.com/Dicklesworthstone/beads_viewer" target="_blank" rel="noopener noreferrer">bv<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a>, the Beads viewer, to see the task hierarchy at a glance. It's an easy way to check that the agents did what they say they did, instead of hallucinating half the checkmarks. If I sound a little bitter, it's because I've been burned.</p>
<h2 class="scroll-mt-24" id="pillar-4-verification">Pillar 4: Verification</h2>
<p>Context gets the work started. Verification shows the model what finished looks like and what still has to change to get there. That's what lets the loop run without you. <a href="https://www.youtube.com/watch?v=6lfC9W5J-0Y&amp;t=776s" target="_blank" rel="noopener noreferrer">Watch from 12:56<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a></p>
<h3 class="scroll-mt-24">Give it eyes</h3>
<p>Put the UI mock in the spec, then have the model screenshot its own work with Playwright and compare it with the mock: catching overlap, critiquing its own design, and iterating until they match, with your style guide as the referee. A prompt like this does most of the work:</p>
<figure data-code-block="true" class="code-block dark not-prose my-8 overflow-hidden rounded-xl bg-zinc-900 [.dark_&amp;]:bg-zinc-950 [.dark_&amp;]:ring-1 [.dark_&amp;]:ring-zinc-700/60"><figcaption class="flex h-11 items-center gap-2 border-b border-zinc-800 bg-zinc-800/40 pl-4 pr-1.5 text-xs font-medium text-zinc-300 sm:pl-5"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5 shrink-0 text-zinc-500"><path d="M4.25 1.75h4.5l3.5 3.5v8a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-10.5a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"></path><path d="M8.75 1.75v3.5h3.5" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"></path></svg><span class="min-w-0 truncate">Prompt</span><button type="button" class="ml-auto shrink-0 inline-flex h-9 items-center gap-1.5 rounded-md px-3 text-xs font-medium transition-colors duration-200 hover:bg-zinc-800 hover:text-zinc-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-patrick-blue-300 text-zinc-400"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5"><path d="M5.75 5.25V3.75a1 1 0 0 1 1-1h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-1.5m-6.5-4.5h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-5.5a1 1 0 0 1-1-1v-5.5a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span aria-live="polite">Copy</span></button></figcaption><pre class="language-text overflow-x-auto px-4 py-4 font-mono text-[0.8125rem] leading-[1.7] text-zinc-200 [font-variant-ligatures:none] [tab-size:2] sm:px-5 sm:py-5 sm:text-sm sm:leading-[1.75]"><code class="language-text" data-title="Prompt">Open http://localhost:3000/analytics with Playwright at
1440px and 375px wide. Screenshot both and compare them
with docs/specs/analytics-mock.png, using
docs/style-guide.md as the reference. List every
difference in layout, spacing, type, and color. Fix them,
then repeat until the screenshots match the mock.
</code></pre></figure>
<h3 class="scroll-mt-24">Make everything deterministic that can be</h3>
<p>Anything that runs in a CLI and audits code belongs in the loop. The agent runs these itself and reacts to the output:</p>
<ul>
<li><strong>Linters and formatters,</strong> like ESLint, so nobody argues about style</li>
<li><strong>Unit tests.</strong> Models are excellent at writing them, so there's no reason not to work close to test-driven, especially on the back end.</li>
<li><strong>Static analysis and type checks:</strong> cheap, instant, and unambiguous</li>
<li><strong>Dead-code audits,</strong> like <a href="https://knip.dev" target="_blank" rel="noopener noreferrer">Knip<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a> for TypeScript, which finds unused files, exports, and dependencies</li>
<li><strong>CI gates:</strong> the checks on every push, which agents can watch and react to</li>
</ul>
<p>I like wrapping the fast checks in one script and naming it in the quality bar in <code>CLAUDE.md</code>, so every session runs it before calling anything done:</p>
<figure data-code-block="true" class="code-block dark not-prose my-8 overflow-hidden rounded-xl bg-zinc-900 [.dark_&amp;]:bg-zinc-950 [.dark_&amp;]:ring-1 [.dark_&amp;]:ring-zinc-700/60"><figcaption class="flex h-11 items-center gap-2 border-b border-zinc-800 bg-zinc-800/40 pl-4 pr-1.5 text-xs font-medium text-zinc-300 sm:pl-5"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5 shrink-0 text-zinc-500"><path d="M4.25 1.75h4.5l3.5 3.5v8a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-10.5a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"></path><path d="M8.75 1.75v3.5h3.5" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"></path></svg><span class="min-w-0 truncate">package.json</span><button type="button" class="ml-auto shrink-0 inline-flex h-9 items-center gap-1.5 rounded-md px-3 text-xs font-medium transition-colors duration-200 hover:bg-zinc-800 hover:text-zinc-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-patrick-blue-300 text-zinc-400"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true" class="h-3.5 w-3.5"><path d="M5.75 5.25V3.75a1 1 0 0 1 1-1h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-1.5m-6.5-4.5h5.5a1 1 0 0 1 1 1v5.5a1 1 0 0 1-1 1h-5.5a1 1 0 0 1-1-1v-5.5a1 1 0 0 1 1-1Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span aria-live="polite">Copy</span></button></figcaption><pre class="language-json overflow-x-auto px-4 py-4 font-mono text-[0.8125rem] leading-[1.7] text-zinc-200 [font-variant-ligatures:none] [tab-size:2] sm:px-5 sm:py-5 sm:text-sm sm:leading-[1.75]"><code class="language-json" data-title="package.json"><span class="token punctuation">{</span>
  <span class="token property">"scripts"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
    <span class="token property">"verify:quick"</span><span class="token operator">:</span> <span class="token string">"tsc --noEmit &amp;&amp; eslint . &amp;&amp; knip"</span><span class="token punctuation">,</span>
    <span class="token property">"verify"</span><span class="token operator">:</span> <span class="token string">"npm run verify:quick &amp;&amp; vitest run"</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
</code></pre></figure>
<p>The lesson from dead code: if you don't call it out with a tool, I guarantee the model won't find and remove all of it on its own. What isn't checked deterministically doesn't reliably happen, so anything that can be deterministic should be.</p>
<h3 class="scroll-mt-24">Fewer questions, more agents</h3>
<p>That 100-to-5 number is the whole game. When I'm switching between eight or ten agents, my short-term memory goes out the window. The only fix is agents that come back already QA'd: set them going, then read the report. <a href="https://www.youtube.com/watch?v=6lfC9W5J-0Y&amp;t=1000s" target="_blank" rel="noopener noreferrer">Watch from 16:40<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a></p>
<p>The alternative is dangerous. Answer enough permission prompts and you start clicking yes without reading, right up until you approve an <code>rm -rf</code> you can't take back. Guardrails are what make speed safe.</p>
<h2 class="scroll-mt-24" id="case-study-an-analytics-platform-in-a-week">Case study: an analytics platform in a week</h2>
<p>Here's what this looks like end to end. At Snapbar, we built a production analytics platform on Pub/Sub, Cloud Run, and BigQuery to handle the spiky traffic of live events at NFL and FIFA scale, with a dashboard, PDF exports, and sharing on top. It took about a week from the first brief to production, and every pillar was in place before the work started. <a href="https://www.youtube.com/watch?v=6lfC9W5J-0Y&amp;t=1257s" target="_blank" rel="noopener noreferrer">Watch from 20:57<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a></p>
<ol>
<li><strong>Plan (context and workflows).</strong> The kickoff was nothing fancy: UI mocks and rough sketches, several meeting transcripts, and notes from our CEO, combined into one PRD-style brief, plus an HTML page from Claude Design to pin down the look and the features. Claude Code and gstack turned it into PRDs, checked against our second-brain wiki, with gstack interviewing me along the way.</li>
<li><strong>Implement (tools and task tracking).</strong> I handed the plan to Codex overnight. It ran on its own for six hours and finished most of the core work, with Beads keeping it on track.</li>
<li><strong>Review (workflows and verification).</strong> I brought the PRs back into the original Claude Code session for gstack's design and engineering reviews, and used Codex as an adversarial reviewer in a fresh session to work through the remaining architecture and feature issues.</li>
<li><strong>Deploy (tools and verification).</strong> The agents helped run the deployment with <code>gcloud</code> and Terraform, including the environment variables, with a human reviewing every change to core infrastructure.</li>
</ol>
<p>Work that used to take weeks now takes days.</p>
<h3 class="scroll-mt-24">Claude Design as a context machine</h3>
<p><a href="https://www.anthropic.com/news/claude-design-anthropic-labs" target="_blank" rel="noopener noreferrer">Claude Design<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a> has become one of my best sources of context for UI work. You can build a whole design system there (iconography, white space, typography), explore directions, and export real design files that anchor the agents' front-end work. I used the same process for this website's new direction: a fun, creative, entrepreneurial workspace instead of another cyberpunk AI theme.</p>
<h2 class="scroll-mt-24" id="scaling-up-agents-managing-agents">Scaling up: agents managing agents</h2>
<p>Once the layer is solid, the next unlock is going up a level of abstraction. Ask Claude Code to create a team of other Claude Code agents and manage them, say five or twenty PRs for one project. You talk to the manager about day-to-day questions, and it delegates the implementation, PR by PR. <a href="https://www.youtube.com/watch?v=6lfC9W5J-0Y&amp;t=1545s" target="_blank" rel="noopener noreferrer">Watch from 25:45<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a></p>
<p>It works because the sub-agents have enough context to go end to end, and the manager has enough context to manage them. Both come from the same investment in the spec and the orchestration layer. Skimp there, and the whole tree collapses back into you answering questions.</p>
<p>The newest models can do some of this on their own, spinning up specialists for different areas of the code, each invoking its own sub-skills. My review-and-push workflow runs its adversarial pass alongside the core review this way. How deeply agents can nest depends on your tools and runtime. <a href="https://www.youtube.com/watch?v=6lfC9W5J-0Y&amp;t=1096s" target="_blank" rel="noopener noreferrer">Watch from 18:16<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a></p>
<p>There's an emergent benefit, too. Once the layer is rich enough, agents start proposing ideas, because they know your company, your product, and your quality bar, and they have the tools to research. Point one at your issue tracker and it can pick up a bug, write a test, fix the regression in your existing style, run it through QA, and open a PR. The guardrails don't limit the model. They give it just enough structure to tell good ideas from bad ones, and to package work that actually gets merged.</p>
<h2 class="scroll-mt-24" id="three-patterns-that-didn-t-make-the-video">Three patterns that didn't make the video</h2>
<p>These came from my planning notes and were cut for time. Each one removes a whole category of interruption:</p>
<ol>
<li><strong>Classified auto-accept.</strong> Bouncing between permission prompts across six to ten agents is brutal, and blanket "accept everything" is how repos get deleted. The fix is a second model acting as a permissions classifier, approving routine requests and escalating the ones that need you. In Claude Code, this is <a href="https://code.claude.com/docs/en/permission-modes" target="_blank" rel="noopener noreferrer">auto mode<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a>.</li>
<li><strong>Heavy review for high-stakes changes.</strong> Claude Code's <a href="https://code.claude.com/docs/en/code-review" target="_blank" rel="noopener noreferrer"><code>/code-review ultra</code><svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a> runs a team of reviewer agents over a change in the cloud. It's more diligent than any review process I've used, human or automated, so I save it for big architectural changes and keep review-and-push as the everyday workhorse.</li>
<li><strong>Routines for self-healing software.</strong> <a href="https://code.claude.com/docs/en/routines" target="_blank" rel="noopener noreferrer">Routines<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a> run Claude Code on a schedule, on GitHub events, or when something calls their API. Mine: a Sentry alert fires, an agent investigates, and a PR appears, with no human in the loop until review. It's the sentry-fixes workflow, running itself.</li>
</ol>
<p>Stack these on the four pillars and you go from one agent running well to ten running in parallel. That's the software factory.</p>
<h2 class="scroll-mt-24" id="why-a-week-ahead-is-worth-more-than-a-week">Why a week ahead is worth more than a week</h2>
<p>Picture a graph with time on the x-axis and your startup's compounding output through AI on the y-axis. Right now, being a week or a month ahead is an exponentially growing advantage, in distribution and especially in your codegen infrastructure. A few more automations than the next team compounds fast. The good news: you only need to be a little further along the curve. <a href="https://www.youtube.com/watch?v=6lfC9W5J-0Y&amp;t=1692s" target="_blank" rel="noopener noreferrer">Watch from 28:12<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a></p>
<p>The single best thing I invest in, and the one thing I don't worry about becoming obsolete, is documenting our company's context and building the systems that pull it into one orchestration layer. However good the models get, they'll never know your workflows, tools, and quality bar unless you spell them out. So build expecting the models to get fantastic and the harnesses to get much better, and invest in the things that get amplified by that, not disrupted.</p>
<p>The six takeaways:</p>
<ol>
<li><strong>Orchestration layer first, model second.</strong> The layer is your ceiling; raise it before chasing releases.</li>
<li><strong>Test models with end-to-end tasks.</strong> Single prompts can't reveal long-horizon capability.</li>
<li><strong>Run agents in parallel, safely.</strong> Classified auto-accept and scoped permissions, never a blanket yes.</li>
<li><strong>Add a second opinion.</strong> Cross-model review between Claude Code and Codex, and heavy review when the stakes are high.</li>
<li><strong>Document workflows and skills, not just code.</strong> Package your judgment so agents, and teammates, follow the same process.</li>
<li><strong>Treat infrastructure as scoped, versioned context.</strong> Terraform as the source of truth, read-only cloud access, and IAM set up now.</li>
</ol>
<h2 class="scroll-mt-24" id="your-30-day-rollout">Your 30-day rollout</h2>
<p>Don't try to build all four pillars in a weekend. Build one per week, and end each week with proof that it works:</p>
<h3 class="scroll-mt-24">Week 1: Context</h3>
<p>Draft your CLAUDE.md from the skeleton above. Link your wiki, add your latest planning transcript, and point at adjacent repos. <strong>You'll know it's working when</strong> a fresh session makes a correct, convention-following change with zero clarifying questions.</p>
<h3 class="scroll-mt-24">Week 2: Tools</h3>
<p>Install <code>gh</code>, the Sentry CLI, and Playwright MCP. Create the read-only service account, get your infrastructure into Terraform, and add the allow and deny lists. <strong>You'll know it's working when</strong> you ask "why did staging break?" and the agent answers from the logs, without you opening a dashboard.</p>
<h3 class="scroll-mt-24">Week 3: Workflows</h3>
<p>Add gstack and run <code>/office-hours</code>. Adapt review-and-push to your repo, starting with the triage manifest and the hard rules. Use Beads or Claude Code's Tasks for anything that runs for hours. <strong>You'll know it's working when</strong> one real PR goes through review, an adversarial challenge, and green CI with a single command.</p>
<h3 class="scroll-mt-24">Week 4: Verification and scale</h3>
<p>Get linters, tests, type checks, and a dead-code audit into CI, and set up the mock-versus-screenshot loop. Then run two agents on separate PRs, growing toward six to ten only while the question count stays near zero. End with an ambitious overnight run. <strong>You'll know it's working when</strong> you come back in the morning to reviewed, CI-green work, and read a report instead of a backlog of questions.</p>
<p>The order matters. Tools without context gather noise. Workflows assume the agent can act. And parallelism multiplies whatever process you have, good or bad, so don't start at week four. Track one number all month: questions answered per completed task. Watch it fall from 100 toward 5.</p>
<h2 class="scroll-mt-24" id="resources">Resources</h2>
<ul>
<li><strong><a href="https://raw.githubusercontent.com/OneRedOak/claude-code-workflows/main/guides/orchestration-layer/orchestration-layer-playbook.pdf" target="_blank" rel="noopener noreferrer">The Orchestration Layer Playbook<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a>:</strong> the free 16-page PDF, no signup</li>
<li><strong><a href="https://github.com/OneRedOak/claude-code-workflows/tree/main/guides/orchestration-layer" target="_blank" rel="noopener noreferrer">Templates on GitHub<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a>:</strong> the <a href="https://github.com/OneRedOak/claude-code-workflows/blob/main/guides/orchestration-layer/templates/review-triage.md" target="_blank" rel="noopener noreferrer">review triage rules<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a> and the <a href="https://github.com/OneRedOak/claude-code-workflows/blob/main/guides/orchestration-layer/templates/review-skill-example.md" target="_blank" rel="noopener noreferrer">review-and-push principles<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a></li>
<li><strong>Workflows:</strong> <a href="https://github.com/garrytan/gstack" target="_blank" rel="noopener noreferrer">gstack<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a>, <a href="https://github.com/gastownhall/beads" target="_blank" rel="noopener noreferrer">Beads<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a> and <a href="https://github.com/Dicklesworthstone/beads_viewer" target="_blank" rel="noopener noreferrer">bv<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a>, and <a href="https://coderabbit.ai" target="_blank" rel="noopener noreferrer">CodeRabbit<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a></li>
<li><strong>Tools:</strong> the <a href="https://cli.github.com" target="_blank" rel="noopener noreferrer">GitHub CLI<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a>, <a href="https://github.com/microsoft/playwright-mcp" target="_blank" rel="noopener noreferrer">Playwright MCP<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a>, the <a href="https://docs.sentry.io/product/cli/" target="_blank" rel="noopener noreferrer">Sentry CLI<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a>, the <a href="https://cloud.google.com/cli" target="_blank" rel="noopener noreferrer">gcloud CLI<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a>, <a href="https://developer.hashicorp.com/terraform" target="_blank" rel="noopener noreferrer">Terraform<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a>, the <a href="https://supabase.com/docs/guides/cli" target="_blank" rel="noopener noreferrer">Supabase CLI<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a>, <a href="https://eslint.org" target="_blank" rel="noopener noreferrer">ESLint<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a>, and <a href="https://knip.dev" target="_blank" rel="noopener noreferrer">Knip<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a></li>
<li><strong>Claude Code docs:</strong> <a href="https://code.claude.com/docs/en/permissions" target="_blank" rel="noopener noreferrer">permissions<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a>, <a href="https://code.claude.com/docs/en/skills" target="_blank" rel="noopener noreferrer">skills<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a>, <a href="https://code.claude.com/docs/en/code-review" target="_blank" rel="noopener noreferrer">code review<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a>, and <a href="https://code.claude.com/docs/en/routines" target="_blank" rel="noopener noreferrer">routines<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a></li>
<li><strong>Worth a listen:</strong> <a href="https://www.youtube.com/watch?v=OXOypK7_90c" target="_blank" rel="noopener noreferrer">Greg Brockman on the vision for Codex<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a> on the OpenAI Podcast</li>
</ul>
<p>I'm sharing more of these workflows as we build, for Claude Code, Codex, and second brains. <a href="https://www.youtube.com/@PatrickOakleyEllis" target="_blank" rel="noopener noreferrer">Subscribe on YouTube<svg class="-mt-0.5 ml-1 inline-block h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a> or <a href="/#newsletter">join the newsletter</a> so you don't miss the next one.</p>]]></content:encoded>
            <author>hi@patrickellis.io (Patrick Ellis)</author>
        </item>
    </channel>
</rss>