<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[Chief Executive Orchestration]]></title><description><![CDATA[Working with AI as an engineer and founder: how I run an e-commerce business with AI as my partner. I write about what we build and how we work.]]></description><link>https://michaelkuan.com</link><image><url>https://substackcdn.com/image/fetch/$s_!eZWe!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa447f26c-faf1-462e-bce7-97d25b0d7808_1024x1024.png</url><title>Chief Executive Orchestration</title><link>https://michaelkuan.com</link></image><generator>Substack</generator><lastBuildDate>Sat, 28 Nov 2026 23:57:59 GMT</lastBuildDate><atom:link href="https://michaelkuan.com/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Michael Kuan]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[michaelkuan@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[michaelkuan@substack.com]]></itunes:email><itunes:name><![CDATA[Michael Kuan]]></itunes:name></itunes:owner><itunes:author><![CDATA[Michael Kuan]]></itunes:author><googleplay:owner><![CDATA[michaelkuan@substack.com]]></googleplay:owner><googleplay:email><![CDATA[michaelkuan@substack.com]]></googleplay:email><googleplay:author><![CDATA[Michael Kuan]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[My AI dreams on Sundays]]></title><description><![CDATA[Dreaming is how an AI tidies its own memory. Once a week, ours looks back over what happened and fixes its notes, because cutting what an AI reads isn't enough if what it reads is wrong.]]></description><link>https://michaelkuan.com/p/ai-dreaming-memory</link><guid isPermaLink="false">https://michaelkuan.com/p/ai-dreaming-memory</guid><dc:creator><![CDATA[Michael Kuan]]></dc:creator><pubDate>Thu, 26 Nov 2026 18:12:54 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!sVm-!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd920f488-1acb-4d57-bc17-372f34142c96_1376x768.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!sVm-!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd920f488-1acb-4d57-bc17-372f34142c96_1376x768.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!sVm-!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd920f488-1acb-4d57-bc17-372f34142c96_1376x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!sVm-!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd920f488-1acb-4d57-bc17-372f34142c96_1376x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!sVm-!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd920f488-1acb-4d57-bc17-372f34142c96_1376x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!sVm-!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd920f488-1acb-4d57-bc17-372f34142c96_1376x768.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!sVm-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd920f488-1acb-4d57-bc17-372f34142c96_1376x768.jpeg" width="1376" height="768" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d920f488-1acb-4d57-bc17-372f34142c96_1376x768.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1376,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:478559,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://michaelkuan.com/i/226680981?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd920f488-1acb-4d57-bc17-372f34142c96_1376x768.jpeg&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!sVm-!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd920f488-1acb-4d57-bc17-372f34142c96_1376x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!sVm-!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd920f488-1acb-4d57-bc17-372f34142c96_1376x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!sVm-!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd920f488-1acb-4d57-bc17-372f34142c96_1376x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!sVm-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd920f488-1acb-4d57-bc17-372f34142c96_1376x768.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>In my <a href="https://michaelkuan.com/p/cutting-what-ai-reads">last article</a>, Claude and I cut what every session in our project reads by almost half. It ended on an awkward discovery. On a Monday we cut the index of the project&#8217;s shared memory from 12.5 KB to 3.2 KB. By Sunday it was back at 8.9 KB.</p><p>Nobody had been careless. Good work leaves notes behind: a decision, a trap to avoid, a job still in flight. The trouble is that notes don&#8217;t only pile up. They also go out of date, and a session that reads them has no way to tell which ones.</p><h2>Memory is a prediction</h2><p>That same week I came across Anthropic&#8217;s new article <a href="https://www.anthropic.com/research/components-of-agent-memory">The components of agent memory</a>. It opens with Kierkegaard: &#8220;life can only be understood backward, but it must be lived forward.&#8221; An AI has to decide what to write down before it knows what will matter. The article describes the fix as reflecting on logs to fix mistakes or produce new notes, a process &#8220;often called dreaming&#8221;.</p><p>Two stories in it, both from Claude playing Pok&#233;mon Red, changed how I thought about our setup.</p><p>In the first, an older model saved everything: &#8220;Sonnet 3.7 wrote 413 memory files across 225 folders and earned one badge.&#8221; A newer model wrote nine files in two folders, plus one summary file, and earned four. It stored only what the screen couldn&#8217;t already show it.</p><p>In the second, Claude wrote down the wrong side of the mountain for a landmark, announced &#8220;Mt Moon is behind me&#8221; and marked it done, then kept dropping back onto the route it had come from. A dreaming pass checked the note against what had actually happened and fixed it. That run went back into the cave and reached the next city. The run that kept the wrong note never did.</p><p>One line stayed with me: &#8220;Memory is, occasionally, a prediction.&#8221; Every note bets that a future session will need it, and will trust it without checking. A stale note isn&#8217;t just clutter. It&#8217;s a confident wrong answer waiting for the right question.</p><p>The article had a second lesson that matched how I like to work with Claude: &#8220;it helps to tell Claude what memory is for, but not how to use it.&#8221; A fixed rule such as &#8220;record only failures&#8221; took away much of what memory gave the stronger models.</p><p>I realised our weekly clean-up job was already a kind of dreaming. But it measured success in kilobytes, and it couldn&#8217;t see the project&#8217;s memory at all. So I shared the article with Claude and asked: &#8220;Perhaps with tips from this article, we can dream better by not just optimizing token count, but organizing data/memory so that these are more useful and relevant for our future work?&#8221;</p><h2>Our own Mt. Moon</h2><p>Before changing anything, Claude did a dry run over our memory, checking each note against the code, the Linear issues and the history. It found our own Mt. Moon:</p><ul><li><p>One note still described the web server&#8217;s software and settings as they were before an upgrade three weeks earlier.</p></li><li><p>Two notes told future sessions that I paste routine instructions by hand, which had stopped the day before.</p></li><li><p>Two items on the &#8220;open&#8221; list had been finished for days.</p></li></ul><p>Each of those would have sent a future session down the wrong path, confidently.</p><p>We also found our own 413 files. Many notes were build diaries: which change shipped when, in what order. The code history and our Linear issues already record all of that. For us, &#8220;the screen&#8221; is the code, the tickets and the history, so a note now earns its place only if it holds what those don&#8217;t: my decisions and the reasons behind them, traps, how to check something, and where things live.</p><h2>How we dream now</h2><p>Our project has two layers of what Claude knows, and now both dream every Sunday.</p><p>The first is the handbook every session reads. Its weekly job used to trim it. Now it reads the week&#8217;s code history first, corrects what the handbook says about anything that changed, and adds the lasting facts that sessions forgot to write down. Then it tests itself: it answers five questions the next few weeks are likely to bring, starting where a new session would start, and fixes the map where it got lost. It proposes a change whenever it corrected something, even if nothing got smaller. Its own instructions grew from 6.1 KB to 8.6 KB, the one place we deliberately added to what Claude reads.</p><p>The second is the project&#8217;s memory, which only a thread inside the project can read. So a small thread wakes every Sunday after the handbook job and goes through every note. Our first plan was for the handbook job to wake it, until we learned that a scheduled job can&#8217;t wake a conversation. Now the thread sets its own alarm and reads the handbook job&#8217;s results itself.</p><h3>What it may do alone</h3><p>The memory thread backs up every note before it touches anything, and writes a log of each change with the reason. Facts about how the store works don&#8217;t stay in memory: they move into the handbook through a pull request that I review and merge, like any other change. Anything that needs a decision, such as an old backup table to drop or an offer I never answered, goes on a short &#8220;please check&#8221; list for me. It doesn&#8217;t decide for me.</p><h3>Two Sundays in</h3><p>On the first night, it backed up all 49 notes, corrected 9 stale ones (the out-of-date server note among them), took 6 finished items off the open list, moved 3 facts into the handbook, archived 6 build diaries, and rewrote every note&#8217;s description to say when to read it. The memory index went from 8.9 KB to 5.1 KB.</p><p>A week later, the index had crept back to 10.4 KB. A busy week leaves a lot behind: 18 items on the open list had been finished since. The second run took the index to 4.6 KB, merged 28 overlapping notes about our social media posting into 8, and moved my payment rules into the handbook, where every session that touches payments will see them. The project went from 60 notes to 40, each short enough to read in one go.</p><p>It also saved the week&#8217;s feedback from me. One piece came from writing my last article: date a source by when it was first published, not by when I happened to see it.</p><p>That creep is the lesson. Context comes back every week, because good work leaves notes behind. A one-off clean-up doesn&#8217;t hold. A habit does.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://michaelkuan.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Subscribe to get these articles in your inbox or the Substack app.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>One thing to copy</h2><p>Once a week, have your AI check its notes against what actually happened. Correct what&#8217;s wrong, delete what your files and tools already record, and keep what they don&#8217;t: your decisions and their reasons, traps, and how to check things. Then ask it a few questions you expect soon, and see whether its notes find the answers. Tell it what the notes are for, and leave the how to it.</p><p>This works in any tool that remembers: ChatGPT&#8217;s memory and project files, Claude Projects, Gemini&#8217;s saved info, or a notes file next to your code. Run the prompt below once a week, as a scheduled task if your tool has one, or paste it in by hand. A tool with chat history can look back on its own; otherwise paste in a short list of what happened that week. Claude Code, Codex and Cursor can read the week&#8217;s changes from the code history themselves. You get back a short list of changes to approve, and a test of how well the notes hold up.</p><pre><code><code>It's time for our weekly review of your notes. Look back over [this week's conversations / the list of what happened below] and compare it with what your memory and notes say.

The notes are there so a future conversation starts with what it needs and can trust it.

1. Correct: notes that are now wrong or out of date, with what is true now and how you know.
2. Add: lasting facts from this week a future conversation would need, such as decisions and their reasons, traps, or how to check something. Skip anything my files or tools already record.
3. Remove: notes that are finished, repeated, or only a diary of what happened when.
4. Test: write five questions I'm likely to ask in the next few weeks, and answer each using only your notes. Say where they fell short.

One line per change, with the reason. Don't change anything until I approve each one. Leave out passwords, keys and personal details.</code></code></pre><p>Your AI will remember less, and what it remembers will be true.</p><div><hr></div><p><em>Michael Kuan runs <a href="https://www.istyles.com/?utm_source=michaelkuan.com&amp;utm_medium=referral&amp;utm_campaign=ai-dreaming-memory">iStyles.com</a>, which makes Skins for phones, laptops, consoles and drones in over a thousand designs.</em></p>]]></content:encoded></item><item><title><![CDATA[I cut what my AI reads, and it kept working]]></title><description><![CDATA[Capable AI needs fewer instructions, not more. We cut what ours reads every time by almost half, moved procedures into skills and scripts, and gave its scheduled jobs a notebook of their own.]]></description><link>https://michaelkuan.com/p/cutting-what-ai-reads</link><guid isPermaLink="false">https://michaelkuan.com/p/cutting-what-ai-reads</guid><dc:creator><![CDATA[Michael Kuan]]></dc:creator><pubDate>Wed, 25 Nov 2026 15:55:19 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!-zH2!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F766466c7-bf75-48d4-9715-c3de88090993_1376x768.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!-zH2!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F766466c7-bf75-48d4-9715-c3de88090993_1376x768.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!-zH2!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F766466c7-bf75-48d4-9715-c3de88090993_1376x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!-zH2!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F766466c7-bf75-48d4-9715-c3de88090993_1376x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!-zH2!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F766466c7-bf75-48d4-9715-c3de88090993_1376x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!-zH2!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F766466c7-bf75-48d4-9715-c3de88090993_1376x768.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!-zH2!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F766466c7-bf75-48d4-9715-c3de88090993_1376x768.jpeg" width="1376" height="768" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/766466c7-bf75-48d4-9715-c3de88090993_1376x768.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1376,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:487064,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://michaelkuan.com/i/226523719?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F766466c7-bf75-48d4-9715-c3de88090993_1376x768.jpeg&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!-zH2!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F766466c7-bf75-48d4-9715-c3de88090993_1376x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!-zH2!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F766466c7-bf75-48d4-9715-c3de88090993_1376x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!-zH2!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F766466c7-bf75-48d4-9715-c3de88090993_1376x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!-zH2!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F766466c7-bf75-48d4-9715-c3de88090993_1376x768.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Earlier this month, Anthropic shared an article on social media that stopped me mid-scroll. It first ran in July on its developer blog, as <a href="https://claude.dev/blog/the-new-rules-of-context-engineering-for-claude-5-generation-models/">The new rules of context engineering for Claude 5 generation models</a>, and one line jumped out: &#8220;We removed over 80% of Claude Code&#8217;s system prompt for models like Claude Opus 5 and Claude Fable 5 with no measurable loss on our coding evaluations.&#8221;</p><p>Instructions written to guard earlier models against the worst case were now holding better ones back. In the article&#8217;s words: &#8220;we were overconstraining Claude Code, both through our system prompt and in our CLAUDE.md files and skills.&#8221;</p><p>I pasted it into a new thread in our Claude Project and asked Claude one thing: &#8220;See if we can improve our internal project structure here based on these recommendations.&#8221;</p><h2>Context creeps back</h2><p>In my <a href="https://michaelkuan.com/p/optimizing-ai-cost">last article</a> I mentioned that in October we cut the handbook every session reads by about half. Every new Claude session in our project starts by reading a short set of files about how the store works, plus an index of the project&#8217;s shared memory. In October that went from about 45 KB plus an 11 KB memory index down to about 21 KB plus 4 KB.</p><p>Three weeks later, it had quietly grown back. Every session was loading 21.5 KB of handbook and a 12.5 KB memory index. The same Linear workflow was written out three times: in the project instructions, in memory and in the handbook. Nobody added anything careless. Each line was a good idea on the day it was written.</p><p>The scheduled jobs were worse. Our routines (the bug fixer, the nightly summary, the firewall check and others) carried about 150 KB of instructions between them. The firewall routine&#8217;s alone was 65 KB, because its instructions had become its diary: every rule change, every address to watch and every lesson learned was appended to the prompt, and the routine kept rewriting its own instructions.</p><h2>Six shifts, one evening</h2><p>The article lists six shifts. Claude and I went through them one by one and asked where each applied to us.</p><ul><li><p><strong>Let the model use judgement.</strong> Our main handbook now tells Claude to read the surrounding code and follow its conventions. It keeps only what the code can&#8217;t show: the traps, the history, the reasons.</p></li><li><p><strong>Load instructions only when needed.</strong> Procedures that matter for one kind of task, like fixing a reported bug or testing the site in a browser, became skills that Claude opens only when that task comes up. Styling and caching details moved into topic files that are read on demand.</p></li><li><p><strong>Say it once.</strong> The Linear workflow now lives in one place, the code repository. My project instructions went from several paragraphs to a single sentence pointing there.</p></li><li><p><strong>Let memory remember.</strong> The memory index went from 12.5 KB to 3.2 KB, and four memory notes were deleted. Memory now keeps only what the code can&#8217;t: how I like to work, and what is still in flight.</p></li><li><p><strong>Design interfaces, not examples.</strong> The routines used to rebuild the same database queries and API calls from paragraphs of prose every night. Those became small, tested scripts that take a parameter (&#8221;the day&#8221;, &#8220;the month&#8221;) and return a short summary. What stays in the instructions is the judgement: what counts as a highlight, and which change needs me.</p></li><li><p><strong>Show, don&#8217;t describe.</strong> Instead of a page explaining what a report should look like, each routine now copies the format of its own latest real report.</p></li></ul><p>The skills alone hold about 21 KB of instructions, more than the whole handbook every session now reads, yet a session opens them only when its task needs them. The scripts cut the steps too. The nightly summary now loads the day&#8217;s Stripe and PayPal totals in one call each, and Google Analytics and Search Console together in a single script, instead of piecing them together call by call.</p><p>Then I pushed it one step further. Claude suggested the firewall routine could store a one-line pointer to its instructions in the repository instead of a full copy. My first thought was: my gosh, if I can just write &#8220;read and follow ...&#8221; in a routine, I should do that for every routine. Until then, each change to a routine&#8217;s instructions meant copying and pasting the new version in by hand, because a thread in our Claude Project can&#8217;t edit a routine directly. The pointer was a fantastic workaround. Every routine now holds two lines that point at its instructions in the repository, so a reviewed change is live from the next run, with nothing to copy and paste.</p><p>Five threads worked on this in parallel. I asked for one job per pull request (&#8221;Don&#8217;t lump the update for the other routines to the same PR&#8221;), so it went in as eight small changes, all merged within about 15 hours of reading the article.</p><h3>A notebook instead of a diary</h3><p>The firewall routine needed more than trimming. Each run now starts as a fresh session, so I asked the obvious question: &#8220;If it&#8217;s a fresh session thread each time, how does the routine remember what it did before and improve on itself? Where is this memory stored?&#8221;</p><p>The answer was to separate the rules from the memory. My standing rules stay in its instructions, and change only when I decide. Everything the routine learns goes into a notebook of its own, kept in the repository on a separate branch that never reaches the live site. It reads about 22 KB of notes at the start of each run, writes back what it learned at the end, and asks me when it thinks a rule should change.</p><p>That one distinction, rules I own and notes it owns, is the idea from this whole exercise I&#8217;d keep if I could keep only one.</p><h2>Less to read, not less control</h2><p>Cutting instructions sounds risky, so here is what did not change.</p><p>The handbook and every routine&#8217;s instructions still change only through pull requests that I read and merge. The pointer change makes that stricter, not looser: what runs is exactly what I merged, with no hand-copied version in between that could drift.</p><p>The firewall&#8217;s rules and thresholds stayed exactly as they were; only the way they are written changed. While we reworked it, the firewall stayed read-only, and the scripts that change rules only ran as dry runs. The new script that applies a rule change does a dry run first, refuses anything outside my rules, reads the result back, and keeps a rollback ready.</p><p>And the routine&#8217;s notebook sits on a branch that is never merged, so nothing it writes can reach the store.</p><h2>What the cut changed</h2><p>What every session reads went from 21.5 KB to 12.2 KB. The routines&#8217; instructions went from about 150 KB to about 51 KB in total, and the firewall&#8217;s from 68.6 KB to 13.7 KB.</p><p>The work didn&#8217;t suffer. The new scripts behind the nightly summary rebuilt the previous day&#8217;s report line for line before they went live. The first fresh firewall run took about 11 minutes, its numbers matched the day before, and a block it had added earlier held.</p><p>Two bumps taught me as much as the wins:</p><ul><li><p><strong>The interface lesson, twice.</strong> On its first fresh run, the firewall routine had to retype a block of numbers from one script into another. It shortened them, and the second script crashed after saving. The fix wasn&#8217;t a stricter instruction. The first script now hands back one line to copy exactly, and the second refuses bad input before it writes anything.</p></li><li><p><strong>A smaller prompt isn&#8217;t a lighter run.</strong> The nightly summary&#8217;s instructions shrank by two thirds, yet its first night read about a third more than before. The weight wasn&#8217;t in what we wrote. It was in what the run fetched: long lists from GitHub that stayed in its context until the end. Reading the same history from the local copy of the code cut each one to under a third. Watch what a run reads, not only what you write.</p></li></ul><h2>The catch</h2><p>Six days after we cut the memory index to 3.2 KB, it was back at 8.9 KB. Nobody had been careless: good work leaves notes behind. But notes don&#8217;t only pile up. They go out of date, and a session that reads them can&#8217;t tell which ones.</p><p>Around the same time, I came across an article from Anthropic on how an AI can &#8220;dream&#8221;: look back over what happened and fix its own notes. Ours now does, every Sunday. That&#8217;s my <a href="https://michaelkuan.com/p/ai-dreaming-memory">next article</a>.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://michaelkuan.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Subscribe to get these articles in your inbox or the Substack app.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>One thing to copy</h2><p>Read what your AI loads every time, line by line, and ask of each one: is this a rule I decide, or a note the AI keeps? Rules stay short and change only when you say so. Notes get dated, checked and thrown away when they&#8217;re done. Anything only one kind of task needs goes into a file the AI opens when that task comes up, and fixed steps become a template or a small script.</p><p>It works the same with ChatGPT&#8217;s custom instructions and project files, Claude Projects, Gemini Gems, Cursor rules, or a CLAUDE.md or AGENTS.md file in a code folder. And if a scheduled job keeps adding to its own instructions, give it a notebook instead.</p><p>This prompt sorts what your AI reads. Paste it into a chat inside your Claude or ChatGPT project, or into Claude Code, Codex or Cursor in your code folder. For a Gemini Gem, paste it into a regular Gemini chat with a copy of the Gem&#8217;s instructions. You get back each line sorted, with anything stale flagged, and a proposed new layout.</p><pre><code><code>I want what you read at the start of every conversation to be shorter and more accurate. Go through my instructions and saved memory line by line, including any rules file such as CLAUDE.md, AGENTS.md or Cursor rules.

Sort each line into one group:
- Rule: a decision of mine that most tasks need. I own these.
- Note: a fact you learned along the way. Add when it was true, if you know.
- Move: only one kind of task needs it. Suggest a topic file to open when that task comes up.
- Template: fixed steps that a template, an example or a small script would do better.
- Delete: finished, repeated, or already said by the tool, my files or my code.
- Check: it may be out of date, or it contradicts another line. Say why.

Then propose a new layout: rules first, under [300] words, then notes, then a one-line index of topic files and when to open each.

If a line's purpose is unclear, ask me. Don't change, move or delete anything until I say yes.</code></code></pre><p>Your AI will read less, and you&#8217;ll know why it reads every line.</p><div><hr></div><p><em>Michael Kuan runs <a href="https://www.istyles.com/?utm_source=michaelkuan.com&amp;utm_medium=referral&amp;utm_campaign=cutting-what-ai-reads">iStyles.com</a>, which makes Skins for phones, laptops, consoles and drones in over a thousand designs.</em></p>]]></content:encoded></item><item><title><![CDATA[Optimizing AI cost: give each thread what it needs, and nothing more]]></title><description><![CDATA[Every AI plan has limits. Breaking work into pieces, each with a complete brief, stretches them further and gets you better answers.]]></description><link>https://michaelkuan.com/p/optimizing-ai-cost</link><guid isPermaLink="false">https://michaelkuan.com/p/optimizing-ai-cost</guid><dc:creator><![CDATA[Michael Kuan]]></dc:creator><pubDate>Thu, 19 Nov 2026 18:15:13 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!iIsq!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9e40b683-b8a7-4fb8-9df3-4c907fc16d67_1376x768.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!iIsq!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9e40b683-b8a7-4fb8-9df3-4c907fc16d67_1376x768.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!iIsq!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9e40b683-b8a7-4fb8-9df3-4c907fc16d67_1376x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!iIsq!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9e40b683-b8a7-4fb8-9df3-4c907fc16d67_1376x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!iIsq!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9e40b683-b8a7-4fb8-9df3-4c907fc16d67_1376x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!iIsq!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9e40b683-b8a7-4fb8-9df3-4c907fc16d67_1376x768.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!iIsq!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9e40b683-b8a7-4fb8-9df3-4c907fc16d67_1376x768.jpeg" width="1376" height="768" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9e40b683-b8a7-4fb8-9df3-4c907fc16d67_1376x768.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1376,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:87220,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://michaelkuan.com/i/225683498?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9e40b683-b8a7-4fb8-9df3-4c907fc16d67_1376x768.jpeg&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!iIsq!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9e40b683-b8a7-4fb8-9df3-4c907fc16d67_1376x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!iIsq!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9e40b683-b8a7-4fb8-9df3-4c907fc16d67_1376x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!iIsq!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9e40b683-b8a7-4fb8-9df3-4c907fc16d67_1376x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!iIsq!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9e40b683-b8a7-4fb8-9df3-4c907fc16d67_1376x768.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>On a Friday afternoon earlier this month, I ran out of usage on my Claude Pro plan. The reset was due the next night and I was in the middle of some nice work with Claude Opus 5.5, so I bought US$100 of usage credit to tide me over. I expected it to last the month, even if I worked twice as hard as usual.</p><p>Two hours later, I was horrified to see that two-thirds of it was gone. I hadn&#8217;t realised that usage credit is charged at the rates developers pay for the API, so the same work drains it far faster than it drains the usage a plan includes. The next day I moved up to Claude&#8217;s Max 5x plan.</p><p>It left me wondering how long the generous usage in today&#8217;s plans, priced well below those API rates, will last. Are we being given a taste of what this technology can do, and growing to depend on it, until the day we must pay whatever it really costs?</p><p>Either way, the answer is the same: learn to use it well now, and get the most out of every bit of usage. Then, if prices do rise, what we get from it will still be worth paying for.</p><h3>More context, worse answers</h3><p>That afternoon wasn&#8217;t a case of carelessness. I already worked hard at keeping down what Claude reads. Still, it showed me how quickly usage adds up when every new message carries everything that came before it.</p><p>The part that surprised me most is this: giving an AI more context than it needs doesn&#8217;t only burn your limits. It gives you, quite literally, a worse outcome. Old decisions, abandoned ideas and half-finished side quests all stay in the conversation, and the model has to weigh each of them against your newest request.</p><p>The classic mistake is to keep writing in one long thread after the job has clearly changed. It feels efficient, because everything is already there. It&#8217;s the opposite. Every AI plan has limits, whether you use Claude, ChatGPT or Gemini, so this applies to all of us.</p><h3>Break it down, hand it off in pieces</h3><p>What I like to do is to break a task down first, and hand it off in pieces, so that each thread has everything it needs to do its work, but no more.</p><p>Every piece of work starts as an issue in Linear, our project management tool. The issue is the brief: the goal, the facts that matter, where to look, and what not to read. A new thread reads the issue, not the history behind it. When a thread drifts into a different job, I ask Claude to write that job up as a new issue, with only the context it needs, and a fresh session picks it up from there. And when one thread, such as a security audit, turns up several things worth fixing, Claude creates a separate issue for each, holding everything that fix needs, so each one gets its own fresh session.</p><p>A few examples from the past month:</p><ul><li><p><strong>The planning thread that grew too big.</strong> The thread where Claude and I planned this blog ran for three days and grew so large that I closed it. Now each article gets its own thread, which reads only its issue, a style guide and a list of facts I&#8217;ve approved. This article started that way: its issue held my story, the examples, the numbers I&#8217;d cleared and what must stay private.</p></li><li><p><strong>Briefs written before a thread closes.</strong> When a thread finishes building something worth writing about, it writes the article brief into Linear before it closes, ending with a line like &#8220;Do not read the whole build thread; this issue summarises it.&#8221; The writing thread starts lean.</p></li><li><p><strong>The right model for each piece.</strong> When we gave every one of our 1,254 designs a short story, a strong model (Claude Opus 5.5) wrote and refined the brief, and a lighter one (Claude Sonnet 5.5) wrote the stories, one small request at a time. Neither needed the other&#8217;s whole conversation.</p></li></ul><h3>The nightly job that read 10 million tokens</h3><p>Our scheduled routines taught me this lesson the hard way. When I first set them up in October, each one fired into an existing project thread. It seemed sensible, since the routine could see what it had done before. But every run carried the whole conversation with it, and the conversation grew every night.</p><p>The nightly summary, which writes up everything that changed in the store that day, read between 5 and 11 million tokens a night, often just to report that not much had changed. The bug-fixing routine&#8217;s thread grew to about 262,000 tokens of context, and each quiet run got heavier as its history grew.</p><p>In mid-October we changed both. Each run now starts as a fresh session, with self-contained instructions that live in our code repository. Every routine&#8217;s instructions carry the same line: &#8220;Keep the whole check self-contained, this is a fresh session with no memory of prior runs.&#8221; When a routine needs to remember something, it reads a file, not an old chat. And a check that doesn&#8217;t need our code at all runs as a small standalone task in Claude Cowork, with none of the repository loaded.</p><p>The nightly summary now uses about a million tokens a night. A quiet bug-fix run, when there is nothing to fix, takes 47 seconds.</p><h3>What keeps it lean</h3><p>A lean setup drifts back to a heavy one unless something holds it in place. Three habits do that for us:</p><ol><li><p><strong>No issue, no thread.</strong> Every job is a Linear issue with a clear finish line before any thread starts on it. If I can&#8217;t write the finish line, the job isn&#8217;t ready.</p></li><li><p><strong>Routine instructions change only by review.</strong> They live in the code repository, and Claude proposes every change as a pull request that I read before it is merged. Each routine reads the latest version when it starts, so nothing creeps in unseen.</p></li><li><p><strong>The handbook is reviewed too.</strong> Every session reads a short set of files about how the store works before it does anything. Those change through pull requests as well, because whatever goes in there, every future session pays for. Our shared project memory keeps only what the code can&#8217;t: how I like to work, and what is still in flight.</p></li></ol><p>That handbook is a story of its own. In October we cut what every session reads by about half, and we&#8217;ve trimmed it again since. That&#8217;s my <a href="https://michaelkuan.com/p/cutting-what-ai-reads">next article</a>.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://michaelkuan.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Subscribe to get these articles in your inbox or the Substack app.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h3>What it changed</h3><p>The routines now run every day on a small fraction of what they used to read. Threads are shorter, and they finish. When I come back to a piece of work a week later, the issue tells both me and Claude exactly where it stands, without anyone rereading a long conversation.</p><p>The biggest change is in the answers. A thread that holds one job and the facts for it stays on that job. It doesn&#8217;t drag in a decision from three topics ago or a constraint we dropped yesterday. Since the start of October we&#8217;ve merged more than 250 changes to the store this way, piece by piece, each one reviewed.</p><h3>One thing to copy</h3><p>Before you type the next message in a long thread, ask yourself: is this still the same job? If it isn&#8217;t, have your AI write the new job up (the goal, the facts it needs, where to look, what not to read) and start a fresh thread from that. In a Claude or ChatGPT project, that&#8217;s a new chat in the same project. In Claude Code, Codex or Cursor, it&#8217;s a new session.</p><p>Here are two prompts to start with. The first goes at the end of any long conversation, in any AI tool. You get back a short handoff note to paste into a new chat.</p><pre><code><code>This conversation has grown long, and I want to continue in a fresh chat. Write a handoff note I can paste into a new conversation. Keep it under 200 words and include only what the next piece of work needs:

- The goal of the next piece of work, and how we'll know it's done (if we never agreed that, propose it and mark it as your suggestion)
- Decisions we've made that still apply, one line each
- Open questions
- Files, links or documents the next chat should read, and anything it should not read

Leave out abandoned ideas, earlier drafts and side topics. If you're not sure what the next piece of work is, ask me first instead of guessing. Leave out passwords, keys and personal details.</code></code></pre><p>The second shows you what your AI reads every time it starts. Paste it into a chat inside your Claude or ChatGPT project, or into Claude Code, Codex or Cursor in your code folder. For a Gemini Gem, paste it into a regular Gemini chat together with a copy of the Gem&#8217;s instructions. You get back a list of what loads, how big each part is, and a proposal for a leaner setup. Change the number in square brackets if you like.</p><pre><code><code>Before we start any work, help me see what you read at the start of every new conversation here.

1. List everything that loads each time: project or custom instructions, attached files, saved memories, and rules files such as CLAUDE.md, AGENTS.md or Cursor rules. Give each a rough size in words, and tell me if something may load that you can't see.
2. For each item, tell me whether most of my tasks need it, some do, or almost none. Point out anything repeated, outdated or contradictory.
3. Propose a lean core that every conversation reads, under [500] words, plus a list of topic files to open only when a task needs them.

If you're unsure what my typical tasks are, ask me a few questions first. Don't change, move or delete anything until I say yes.</code></code></pre><p>Your limits will stretch further. More importantly, your answers will get better.</p><div><hr></div><p><em>Michael Kuan runs <a href="https://www.istyles.com/?utm_source=michaelkuan.com&amp;utm_medium=referral&amp;utm_campaign=optimizing-ai-cost">iStyles.com</a>, which makes Skins for phones, laptops, consoles and drones in over a thousand designs.</em></p>]]></content:encoded></item><item><title><![CDATA[From chat window to orchestra]]></title><description><![CDATA[How my way of building software changed five times in ten months, and how AI went from a chat window to my partner.]]></description><link>https://michaelkuan.com/p/from-chat-window-to-orchestra</link><guid isPermaLink="false">https://michaelkuan.com/p/from-chat-window-to-orchestra</guid><dc:creator><![CDATA[Michael Kuan]]></dc:creator><pubDate>Thu, 12 Nov 2026 18:33:19 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!zV07!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a73eb3b-4759-497b-99a7-90559f861e52_1376x768.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!zV07!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a73eb3b-4759-497b-99a7-90559f861e52_1376x768.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!zV07!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a73eb3b-4759-497b-99a7-90559f861e52_1376x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!zV07!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a73eb3b-4759-497b-99a7-90559f861e52_1376x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!zV07!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a73eb3b-4759-497b-99a7-90559f861e52_1376x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!zV07!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a73eb3b-4759-497b-99a7-90559f861e52_1376x768.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!zV07!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a73eb3b-4759-497b-99a7-90559f861e52_1376x768.jpeg" width="1376" height="768" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9a73eb3b-4759-497b-99a7-90559f861e52_1376x768.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1376,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:579091,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://michaelkuan.com/i/224645291?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a73eb3b-4759-497b-99a7-90559f861e52_1376x768.jpeg&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!zV07!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a73eb3b-4759-497b-99a7-90559f861e52_1376x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!zV07!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a73eb3b-4759-497b-99a7-90559f861e52_1376x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!zV07!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a73eb3b-4759-497b-99a7-90559f861e52_1376x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!zV07!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a73eb3b-4759-497b-99a7-90559f861e52_1376x768.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>&#8220;It&#8217;s 2026 and you&#8217;re only now using AI?&#8221; It&#8217;s a fair question, so let me answer it first.</p><p>I&#8217;m not new to AI. My master&#8217;s project in 2002 was a small economy of software agents that bid for the right to act. For years after that there was little AI a small business could use, so I built my own versions of the maths into iStyles. Our recommendation engine weighs popularity signals to decide which designs lead our pages, and our shipping calculator learned from the real cost of every order. At their core, both work like a single artificial neuron: weigh the inputs, then adjust from the results.</p><p>Then the field moved fast. Google&#8217;s Transformer arrived in 2017 and BERT a year later, and ChatGPT took AI mainstream at the end of 2022. From 2023 I used it like everyone else, as a chatbot, and out of curiosity explored what sits behind it: large language model apps, vector databases, prompt engineering, AI agents. The answers got better every year.</p><p>But a chatbot could explain an error. It couldn&#8217;t move a server or fix a bug in a twenty-year-old e-commerce store. In 2026 that changed, and so did how much I could get done in a day. I came to it with a solid foundation: twenty years of building software, a business to run and an early grounding in AI. I judge AI by what it gets done, and I&#8217;m still learning every week. This is how it went from a chat window to my partner, one step at a time.</p><h3>Why I held out</h3><p>For twenty years I worked in an editor: BBEdit, then Sublime Text, then VS Code. I could see every file, every change, every line, and I held on to that sense of control. So when people told me to try an AI agent that works from the command line, my answer was polite and firm: not for me. A terminal with no editor felt like losing sight of my own code.</p><p>It took me most of this year to see that I had the wrong idea of control. Each step felt like the biggest leap I would see. Each time, the next one was bigger, and it came sooner.</p><h3>January: the chat window</h3><p>At the start of 2026, iStyles still ran on servers we had rented for twelve years. I decided to move everything to Google Cloud: containers, automated deployments, tighter security, a new firewall setup. For a traditional engineering team, that is a project of several months.</p><p>I did it with Gemini, in the most basic way possible: questions in a chat window, answers copied into my editor, errors pasted back. From planning in January to going live at the end of February took about a month. Soon after, a botnet sent around 7,000 active users every half hour at the new setup. Our old servers would have collapsed before 500. The new one didn&#8217;t slow down.</p><p>I was amazed. Looking back, it was the slowest way I will ever use AI again.</p><h3>March: AI moves into the editor</h3><p>In March, with the migration done, I started coding in Google Antigravity, an editor built around an AI agent. The AI no longer waited for me to paste things in. It read my files, made changes where I was working and called a few tools. I stopped being the clipboard between the AI and my code, and that alone was transformational.</p><h3>May: agents that reach beyond the code</h3><p>In May I moved to Cursor. The agent could search the whole codebase, run commands and check its own work. More than that, it reached outside the code: through connectors it called services such as Stripe, our payment provider, so it worked from real data instead of guessing from the code. That was so much more useful.</p><p>I tried several models there, and xAI&#8217;s Grok models worked well, but I preferred the reasoning of Claude models, and I went over my plan on extra usage so often that I began to wonder whether I&#8217;d be better off using Claude Code directly. Opus was great. Fable 5 was revolutionary: so smart, and able to do so much on its own. So Claude became my choice after months of working with the others every day, and each of them taught me something.</p><h3>September: Claude Code, still in my comfort zone</h3><p>In September I finally tried Claude Code, the kind of command-line agent I had held out against. But I opened it as an extension inside VS Code, because that looked like the way I already worked. It could do much more, yet I was still in the same chair, watching one agent at a time, line by line.</p><p>That is the trap. The familiar setup feels safe, and it quietly holds back the change.</p><h3>October: a partner, and an orchestra</h3><p>The real shift came in October, when I moved the work into a Claude Project with its own cloud environment, including a copy of the store where every change can be tried before it reaches a customer. Several Claude sessions now work on the same codebase at once, each in its own thread with its own job, with a shared memory of the project behind them. Cursor&#8217;s cloud agents run side by side too; for me the difference was the orchestration around them. Claude also connects to almost every service we use, so it can read the logs, check the transactions and see the big picture before it drills down to fix or improve something.</p><p>This is where AI stopped feeling like a tool and started feeling like a partner. Every piece of work starts as an issue in Linear, our project management tool: what we want, why, and how we&#8217;ll know it&#8217;s done. What I bring is twenty years inside this business: our customers, our history and a sense of how things should work. What Claude brings is knowledge wider than any one person could hold, and the patience to go through every log and every line of code. We trade ideas and challenge each other&#8217;s thinking, and we usually end up somewhere better than either of us would have reached alone.</p><p>The model underneath has moved on too: Opus 5.5 works better than the Fable 5 that amazed me in May, without needing stacks of money lit with rocket fuel to power it. That cloud move from January took about a month. With today&#8217;s setup, I think it would take about a week.</p><h3>November: the next jump</h3><p>Even as I wrote this, the next jump arrived. On 9 November Anthropic released Claude Fable 5.2, which it describes as a step above Opus 5.5 in almost everything it measured. I gave it a complex task: our social posting setup, built in layers over two years across two large automations, a rulebook in Google Sheets that reworked every post to suit each platform&#8217;s rules, and a database, all wired to a long list of other services. I asked it to study the whole system, then design and tune the AI that would take over the writing: posts shaped around what each channel&#8217;s audience responds to, paired with the hashtags that perform there. One AI, engineered by another.</p><p>It read every part before proposing anything and found problems nobody had asked about. Then it tested instead of assuming. It ran three of our real campaigns through its new design on a copy of the setup. When I suspected that two separate AI steps would beat one, it tested my hunch too: both versions, judged blind, each round run twice with the order swapped so neither got an edge from going first. Then it reported back like a good engineer: a page with today&#8217;s post next to the new one for every channel, the scores, and a verdict.</p><p>About an hour after I asked, one caption had become thirteen posts, each specially crafted for the people on its channel, and it was live. That story gets its own article in a few weeks. It&#8217;s the clearest sign yet that each jump comes sooner than the last.</p><h3>What I learned</h3><ol><li><p><strong>Setup, context and the right model all matter.</strong> Each new model raised the ceiling, and Fable 5.2 has just raised it again. But every model did its best work when the setup around it was right, it had the context it needed, and I had picked the right one for the job. The biggest jumps came when all three moved together.</p></li><li><p><strong>Trust comes from structure, not from watching.</strong> What lets me trust the work now isn&#8217;t seeing every line. It&#8217;s a plan for each job, written rules every session reads, a safe copy of the store to try things on, and a review before anything goes live. I didn&#8217;t give up control; I moved it to where it matters.</p></li><li><p><strong>Comfort is the bottleneck.</strong> Every step I delayed, I delayed because the old way felt safer. Each time, the new way was better within days.</p></li><li><p><strong>AI multiplies what you bring.</strong> If you started by vibe coding, you already know how much AI can build from a good description. The next step is what makes it last: plan the work, break it into small pieces, write down how your project works and lay the foundations first. AI is a great partner for that part too.</p></li><li><p><strong>The impossible is now on the plan.</strong> AI removes the limits of how we used to work. It multiplies what we can do by more than I know how to measure, and projects I once filed under &#8220;impossible&#8221; are now simply next on the list.</p></li></ol><h3>One thing to copy</h3><p>If I could go back to January, I&#8217;d start with structure: tell my AI partner what the project is, what it may do on its own and what waits for me. You can do that today, with any AI tool.</p><p>Paste this into a new chat in a Claude Project or ChatGPT Project, or into a plain Gemini chat. It asks six short questions, then drafts the instructions your AI reads at the start of every conversation. Paste the draft into the project&#8217;s instructions, or into the instructions of a new Gem in Gemini. In Claude Code, Codex or Cursor, run it in your project folder and it can save the result as CLAUDE.md or AGENTS.md once you say yes.</p><pre><code><code>I'd like you to be my AI partner on [my project or business]. Before we start any real work, help me write the instructions you'll read at the start of every conversation.

Interview me first. Ask one short question at a time, and wait for each answer:
1. What is the project, and who is it for?
2. Which tools and services do I use for it?
3. What do I want help with first?
4. What may you do on your own, and what must wait for my OK?
5. What must you never do or touch?
6. How do I like to work (tone, level of detail, when you should ask)?

Then draft the instructions in plain words, under 400 words:
- a short description of the project
- our working rules, including what needs my OK
- one conversation per job, each with a clear goal and finish line
- three small first jobs we could finish this week

Show me the draft and wait. Don't save, send or change anything until I say yes. If my answers clash, ask me which one wins. If I paste passwords, keys or anyone's personal details, pause and remind me to remove them.</code></code></pre><p>Start with one of the three first jobs it suggests. When a job is done, start the next one in a fresh conversation.</p><h3>What&#8217;s next</h3><p>I run all of this on a Claude subscription, so like most of you I watch session and weekly limits, sometimes a little too closely. Next time I&#8217;ll share how I optimize AI cost on a plan like that: break the work into pieces and give each thread what it needs, and nothing more. It stretches your limits further and, perhaps surprisingly, gets you better answers, whichever AI you use.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://michaelkuan.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Subscribe to get these articles in your inbox or the Substack app.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p>I&#8217;m learning too, and I&#8217;d like to hear where you are on this path. Reply to this email and it comes straight to me, or leave a comment below. Subscribe to get the next article in your inbox or the Substack app.</p><div><hr></div><p><em>Michael Kuan runs <a href="https://www.istyles.com/?utm_source=michaelkuan.com&amp;utm_medium=referral&amp;utm_campaign=founder-02">iStyles.com</a>, which makes Skins for phones, laptops, gaming consoles, tablets and drones in over a thousand designs.</em></p>]]></content:encoded></item><item><title><![CDATA[What a Chief Executive Orchestrator actually does]]></title><description><![CDATA[How I work with AI as a partner to run an e-commerce store, and why the planning matters as much as the prompts.]]></description><link>https://michaelkuan.com/p/what-a-chief-executive-orchestrator</link><guid isPermaLink="false">https://michaelkuan.com/p/what-a-chief-executive-orchestrator</guid><dc:creator><![CDATA[Michael Kuan]]></dc:creator><pubDate>Fri, 06 Nov 2026 11:28:15 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/e37479f7-182c-484b-9edb-1aee97c4a307_1376x768.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!7z1k!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F46c2b991-6278-4b93-a56c-8d1a23d19939_1376x768.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!7z1k!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F46c2b991-6278-4b93-a56c-8d1a23d19939_1376x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!7z1k!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F46c2b991-6278-4b93-a56c-8d1a23d19939_1376x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!7z1k!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F46c2b991-6278-4b93-a56c-8d1a23d19939_1376x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!7z1k!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F46c2b991-6278-4b93-a56c-8d1a23d19939_1376x768.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!7z1k!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F46c2b991-6278-4b93-a56c-8d1a23d19939_1376x768.jpeg" width="1376" height="768" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/46c2b991-6278-4b93-a56c-8d1a23d19939_1376x768.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1376,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:68395,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://michaelkuan.com/i/223747732?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F46c2b991-6278-4b93-a56c-8d1a23d19939_1376x768.jpeg&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!7z1k!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F46c2b991-6278-4b93-a56c-8d1a23d19939_1376x768.jpeg 424w, https://substackcdn.com/image/fetch/$s_!7z1k!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F46c2b991-6278-4b93-a56c-8d1a23d19939_1376x768.jpeg 848w, https://substackcdn.com/image/fetch/$s_!7z1k!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F46c2b991-6278-4b93-a56c-8d1a23d19939_1376x768.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!7z1k!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F46c2b991-6278-4b93-a56c-8d1a23d19939_1376x768.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button class="pencraft pc-reset pencraft icon-container restack-image buttonBase-tqxFUX" tabindex="0" type="button"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button class="pencraft pc-reset pencraft icon-container view-image buttonBase-tqxFUX" tabindex="0" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>By eight o&#8217;clock each morning, Claude has already read our website firewall&#8217;s overnight traffic. It has split real shoppers from bots, written up what it found, and tightened a rule where the evidence was clear. In another session it has gone through the night&#8217;s error reports, fixed the real bugs and left each fix ready for review. When I open my laptop, I don&#8217;t start with &#8220;what broke?&#8221; I start by reading what it found, asking about anything that looks odd, and deciding with it what comes next.</p><p>I&#8217;m Michael Kuan, and I run <a href="https://www.istyles.com/?utm_source=michaelkuan.com&amp;utm_medium=referral&amp;utm_campaign=founder-01">iStyles.com</a>. We sell Skins for phones, laptops, gaming consoles, tablets and drones: about 86,000 products across 1,254 designs, on an e-commerce platform I have been customising since I started iStyles in 2004. For over twenty years I have built nearly every technical part of the store myself, from search and recommendations to checkout, while also running everything else a small business needs.</p><p>I trained as a computer engineer at Nanyang Technological University in Singapore, then took a master&#8217;s in advanced computing at King&#8217;s College London in 2002. My project there was a machine learning system called Hayek, based on research by Eric Baum and Igor Durdanovic: a small economy of software agents that bid for the right to act. It was my first taste of AI and, looking back, my first team of agents. After my studies I worked as a software engineer on emerging mobile technologies, including a mobile operating system, and then on software for the telecoms industry. Later, some of my work on iStyles stayed close to the ideas behind AI. I built a recommendation engine that weighs popularity signals to decide which designs and products lead our home and category pages. Before we had live USPS rates, I also wrote a shipping calculator that learned from the real shipping cost of each order.</p><p>At the start of this year I would have called myself a CEO who also does the IT. Like most people, I had used AI as a chatbot since 2023. It gave me fast answers and was great at distilling information and surfacing what was important, but in January it still wasn&#8217;t doing real work for me: it was a chat window I pasted code into and exchanged ideas with at length. Even that way, it helped me modernise old code and move our whole infrastructure to Google Cloud. As revolutionary as that felt then, it looks primitive next to what AI can do today. Several Claude sessions now work on the same codebase at the same time, take on projects I once thought impossible, and run much of the business day to day. AI has changed how I work more than anything else in twenty years of building software, and I&#8217;m loving it.</p><p>Getting here took three more tools: Google Antigravity in March, Cursor in May, and Claude Code from September, first inside my editor and, since October, in the cloud, where Claude connects to almost every service we use. Each step reached further than the last, and came sooner.</p><p>My more honest title today is Chief Executive Orchestrator. Not because I hand out orders and AI carries them out. Orchestration, for me, is the planning and structure that let us work well together: solid foundations, a clear plan for each piece of work, and good judgement about what is worth building at all.</p><h3>A partner, not a worker</h3><p>It&#8217;s tempting to see AI as a very fast worker: I hold the keys, it does the work. That isn&#8217;t how it feels day to day. I bring twenty years of context about the business, our customers, and perspective about how things should work. Claude brings a breadth of knowledge no single person has, and the patience to read every log line. We bounce ideas off each other. It questions my plans, I question its answers, and the result is usually better than either of us would reach alone.</p><p>That partnership works because there is structure around it. Anyone can make almost anything with AI today, so &#8220;can we build it?&#8221; is rarely the question. The better questions are &#8220;should we?&#8221;, &#8220;what exactly do we want?&#8221; and &#8220;how do we get there piece by piece, without breaking what already works?&#8221; That&#8217;s engineering, and it starts well before the first prompt.</p><h3>How the setup works</h3><p>Plenty of people use Claude Code, so the tool is not the secret. What matters is the setup around it, and most of that is ordinary project discipline that works with any AI tool. Mine has five parts:</p><ol><li><p><strong>A plan for every piece of work.</strong> Each job starts as an issue in Linear, our project management tool: what we want, why, and how we&#8217;ll know it&#8217;s done. Claude reads the issue, adds what it finds and keeps it current as the work moves. Big ideas become a series of small issues, each one useful on its own.</p></li><li><p><strong>One project is the shared memory.</strong> I run Claude Code in the cloud inside a Claude Project. It keeps what we&#8217;ve learned, starts each job with the right context and tracks what is still in flight. When I ask about checkout, it knows what we changed in checkout last week.</p></li><li><p><strong>One thread per job.</strong> &#8220;Tune the firewall&#8221;, &#8220;Replace our search provider&#8221;, &#8220;Show products as you type in search&#8221;. Each has its own conversation, its own checklist and a clear end.</p></li><li><p><strong>The foundations come first.</strong> Our code repository holds plain-text files that explain how the store works, what each system does and what must never happen. A copy of the store with the full catalog runs in the cloud, so every change can be tried long before it reaches a customer. Each new session reads the files first, the way a new colleague reads the handbook.</p></li><li><p><strong>Routines take the daily chores.</strong> Scheduled sessions run on their own: the firewall check every morning and evening, bug fixing after the overnight error round-up, a search tuner every Sunday that looks at what shoppers typed and couldn&#8217;t find, and a nightly summary of everything that changed, written to our shared calendar and to Linear.</p></li></ol><h3>Trust, built step by step</h3><p>Good partnerships run on clear agreements. Ours are short, and they are written down where every session reads them:</p><ul><li><p><strong>Every change is reviewed.</strong> Claude proposes each change as a pull request, a set of changes I read, question and merge. It&#8217;s the same discipline any good engineering team uses, and it leaves a clear record of what changed and why.</p></li><li><p><strong>Outside systems are read-only by default.</strong> Claude can look at payments, the firewall and our automation tools, but changes them only once we&#8217;ve agreed a plan. The firewall routine is the one exception, and it earned it.</p></li><li><p><strong>Autonomy is earned, in writing.</strong> At first the firewall routine could change very little on its own. After weeks of good calls, we wrote down what it may now do alone: block scraper traffic that no real browser would send, put a quick check in front of bot fleets that only a handful of real people share, and retire its own rules once they are no longer needed. The next day it reviews its own changes and softens any that caught a real shopper. It asks me when a decision could affect real people, and every block still sends a notification to my phone.</p></li><li><p><strong>Customer data stays out.</strong> Claude never sees a real customer&#8217;s details. The copy of the store it builds and tests on has the full catalog but no customers, orders or logins, and on my own computer, personal details are hidden before Claude sees them. Reports use totals, never names.</p></li></ul><p>None of this slows us down. It&#8217;s what lets me hand over a little more each month, and sleep while the work carries on.</p><h3>If you&#8217;ve been vibe coding, this is for you</h3><p>Describing what you want and seeing what comes back is a wonderful way to start, and it&#8217;s how most of us first found out what these tools can do. What I want to share is the next step: the planning, structure and foundations that turn a promising prototype into something you can run a business on, and keep improving without it falling apart.</p><p>I&#8217;m learning every week, and I&#8217;ll share that too. What I bring is a solid foundation: a technical background and more than twenty years of building software and a business. I judge AI by what it helps us get done.</p><h3>What we&#8217;ve built together</h3><p>Since the start of October we have merged more than 200 changes to the store, almost all drafted by Claude and every one reviewed. A few of the projects that we&#8217;ve worked on:</p><ul><li><p><strong>An intelligent firewall.</strong> Every morning and evening, Claude reads the firewall&#8217;s traffic, tells real shoppers from bot fleets and explains what it sees. It puts defences in place on its own within the limits we agreed, checks its own work the next day, softens anything that caught a real person and retires rules once they are no longer needed. Each week it gets a little sharper.</p></li><li><p><strong>Bugs that fix themselves.</strong> After the overnight error round-up, a routine sorts real bugs from noise, fixes the real ones and leaves each fix waiting for my review. Most mornings the only thing left for me is to read and merge.</p></li><li><p><strong>Our own search.</strong> We replaced a paid search service with a self-hosted search engine that shows products as you type, and a weekly routine tunes it from what shoppers couldn&#8217;t find. It took about half a day of my own time.</p></li><li><p><strong>Faster pages.</strong> Many more of our pages now load almost instantly from caches around the world.</p></li><li><p><strong>Designs that describe themselves.</strong> AI now writes the colours, captions and categories for our 1,254 designs, which we used to tag by hand, and a short story for each one: one AI writes the brief, another writes the stories.</p></li><li><p><strong>Search that understands.</strong> Shoppers can now search by what they mean, not just the words they type, and every design page shows &#8220;More designs like this&#8221;, matched by how the designs look. We built it in an afternoon.</p></li><li><p><strong>&#8220;Customers say&#8221;.</strong> AI sums up our reviews on each product page, and plain code checks every quote word for word against a real review, so the AI can&#8217;t make one up.</p></li><li><p><strong>One question, every answer.</strong> A daily log of every change to the store, our promotions and our traffic answers &#8220;what changed?&#8221; in a single question.</p></li></ul><p>It hasn&#8217;t all been smooth, and the mistakes taught us the most. One early nightly routine carried its whole conversation history into every run, reading between 5 and 11 million tokens a night just to report that nothing had changed. I run all of this on a Claude Max plan, so like most of you I watch my session and weekly limits rather than an API bill, and that&#8217;s exactly the kind of waste that quietly eats them. The fix was simple once we saw it: start each run fresh, with everything it needs written into its instructions. Another time, a social media automation posted the same thing twice after a network hiccup. Both lessons became written rules.</p><h3>How you could use this</h3><p>You don&#8217;t need an e-commerce business, or Claude, for any of this. Four habits carry over to almost any project and any AI tool:</p><ol><li><p><strong>Plan before you prompt.</strong> Write down what you want, why, and how you&#8217;ll know it&#8217;s done, in a project tool or even a simple document. Break big ideas into small pieces that each work on their own.</p></li><li><p><strong>Give each job its own conversation</strong>, with a clear goal and a clear finish line. Long, mixed conversations make AI slower and more confused, and burn through your limits.</p></li><li><p><strong>Write your context down once</strong>, in files every session reads first: how your project works, what your AI may do alone, what needs your OK, and what it must never touch. In Claude Code that&#8217;s a CLAUDE.md file; Codex and Cursor read AGENTS.md; a ChatGPT project has its own instructions.</p></li><li><p><strong>Treat AI as a partner, and let trust grow.</strong> Ask for its opinion, challenge its answers, and hand over a decision only when you&#8217;ve seen it made well many times.</p></li></ol><h3>Next in this series</h3><p>Next comes my AI journey, from chat window to orchestra. That one article covers what each of those tools changed, why I held out against the one that stuck, the botnet that sent 7,000 visitors every half hour without slowing the new setup down, and why the cloud move that took about a month earlier this year would take about a week today. Then two articles on getting the most from an AI plan: how giving each thread what it needs, and nothing more, keeps you clear of its limits (that nightly routine and its millions of tokens included), and how we taught AI to remember our business, then cut what it reads every time it starts. After that, each project gets its own article, starting with the bugs that fix themselves overnight, the day a newer AI model looked at our whole social posting setup and turned one caption into thirteen posts, the firewall that tunes itself every morning and asks before it blocks a person, moving our site search in-house in just half a day of work, and the daily log that answers &#8220;what changed?&#8221; in a single question.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:null,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Subscribe to get these articles in your inbox or the Substack app.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p>I&#8217;m learning too, and I&#8217;d love to hear how you work with AI. Reply to this email and it comes straight to me, or leave a comment below.</p><div><hr></div><p><em>Michael Kuan runs <a href="https://www.istyles.com/?utm_source=michaelkuan.com&amp;utm_medium=referral&amp;utm_campaign=founder-01">iStyles.com</a>, which makes Skins for phones, laptops, gaming consoles, tablets and drones in over a thousand designs.</em></p>]]></content:encoded></item></channel></rss>