<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Michael van der Bend</title>
    <link>https://www.michaelvdbend.dev/</link>
    <description>Practical notes and experiments on GitHub Copilot, Microsoft Foundry, AI agents and agentic workflows, by Michael van der Bend.</description>
    <atom:link href="https://www.michaelvdbend.dev/rss.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Freehand: the agent harness that decides less.</title>
      <link>https://www.michaelvdbend.dev/posts/freehand-the-harness-that-decides-less</link>
      <guid isPermaLink="true">https://www.michaelvdbend.dev/posts/freehand-the-harness-that-decides-less</guid>
      <pubDate>Fri, 04 Dec 2026 00:00:00 GMT</pubDate>
      <description>A new Microsoft paper claims frontier agents get better and cheaper when the harness stops making decisions for them.</description>
      <content:encoded><![CDATA[<p>Most coding agents come with a lot of rules. Long system prompts, twenty-plus tools, reminders halfway through a session, and automatic compaction when the context window fills up. I've always assumed that's part of what makes them good.</p>
<p>This week Microsoft released <a href="https://github.com/microsoft/FreeHand" rel="noopener noreferrer">Freehand</a>, together with a paper called <a href="https://arxiv.org/abs/2612.02442" rel="noopener noreferrer">Freehand: The Bitter Lesson Comes to Agent Harnesses</a>. It makes the opposite claim: with frontier models, all those rules make agents worse and more expensive. That's a big claim, so I read the paper to see where it comes from.</p>
<p>It also rang a bell. In <a href="/posts/give-your-agent-a-notebook/">Give your agent a notebook</a> my favourite bit was that rules can backfire: when Anthropic told Opus 5 and Opus 4.7 to "record only failures", they lost a big part of what memory had given them. Freehand takes that same idea and applies it to the whole harness, not just to memory.</p>
<h2 id="chapters">Chapters</h2>
<ul>
<li><a href="#the-idea">The idea</a></li>
<li><a href="#how-freehand-works">How Freehand works</a></li>
<li><a href="#what-the-paper-found">What the paper found</a></li>
<li><a href="#what-im-happy-with-and-what-isnt-there-yet">What I'm happy with and what isn't there yet</a></li>
<li><a href="#what-this-means-for-your-setup">What this means for your setup</a></li>
<li><a href="#what-you-can-take-from-this">What you can take from this</a></li>
<li><a href="#references">References</a></li>
</ul>
<h2 id="the-idea">The idea</h2>
<p>The idea is pretty simple: give the model a shell, its own memory and a meter, and let it decide everything else.</p>
<p>A harness is the loop around the model. It sends context to the model, runs the actions the model asks for, and feeds back the results. Claude Code, Codex, Gemini CLI and Copilot CLI are all harnesses. The paper looked at eight of them and found they make three kinds of decisions for the model, before it has even seen the task:</p>
<ul>
<li><strong>Strategy.</strong> How to approach the task: workflows like "research, then plan, then act, then validate", rules like "read a file before you edit it", and reminders injected during the run.</li>
<li><strong>Execution.</strong> Which tools to use and how long a command may run: between 4 and 34 built-in tools, with fixed timeouts.</li>
<li><strong>Memory.</strong> What to remember: automatic summarisation when the context window is 80–90% full.</li>
</ul>
<p>The authors' point is that these presets were built for weaker models. For models that couldn't plan well or keep their context tidy, they were a crutch. For today's frontier models, they say, they've become a cage.</p>
<h2 id="how-freehand-works">How Freehand works</h2>
<p>Freehand removes all three and gives the model the levers instead:</p>
<ul>
<li><strong>A ~200-word prompt</strong> that only describes how the runtime works. No workflow, no coding rules. The paper quotes it: <em>"Nothing else is decided for you."</em></li>
<li><strong>One tool: <code>bash</code>.</strong> The model sets the timeout for every command itself, and writes its own scripts when it needs something more specific.</li>
<li><strong>Memory as a file.</strong> The conversation history is a <code>transcript.json</code> the model can edit. It can prune old logs, condense a finished subtask, or even insert a screenshot to look at it, without a separate vision tool.</li>
<li><strong>A meter.</strong> After every turn the model sees its context size, tokens, cost and elapsed time. It doesn't get told what to do with that information.</li>
</ul>
<p>For comparison, the static prefix (the instructions and tool definitions sent with every request) is about 0.35K tokens in Freehand. The paper measures 8.5K for Claude Code, 9.5K for Gemini CLI and 15.1K for Codex.</p>
<p><img src="/posts/freehand-the-harness-that-decides-less/prefix-chart.png" alt="Bar chart of the static prefix each harness sends with every request, in thousands of tokens: Codex CLI 15.1K, Gemini CLI 9.5K, Claude Code 8.5K, DeepSeek Harness 6.5K, OpenCode 5.2K, Pi 1.2K and Freehand 0.35K" loading="lazy" decoding="async" width="1600" height="2012"></p>
<h2 id="what-the-paper-found">What the paper found</h2>
<p>They ran five benchmarks (terminal tasks, scientific computing, research tasks, GUI tasks on Ubuntu and enterprise workflows) with GPT-6-astra and Claude Opus 5.5, plus Gemini 4 Carbon on one benchmark. That's 11 settings in total.</p>
<p>Freehand had the highest score <em>and</em> the lowest cost in all 11. Against the first-party harnesses (Codex, Claude Code, Gemini CLI) it scored 5.1 points higher on average, at 49% lower cost per task. It also beat OpenCode, Pi, DeepSeek Harness and mini-swe-agent.</p>
<p><img src="/posts/freehand-the-harness-that-decides-less/cost-chart.png" alt="Bar chart of mean cost per task over ten settings with GPT-6-astra and Claude Opus 5.5: Codex and Claude Code $6.70 at 58.4% score, DeepSeek Harness $12.76 at 57.4%, OpenCode $5.16 at 56.8%, Pi $4.49 at 59.3%, and Freehand $3.23 at 63.2%" loading="lazy" decoding="async" width="1600" height="1656"></p>
<p>The part I found most interesting is <em>why</em> it's cheaper. It's mostly about sending fewer tokens:</p>
<ol>
<li><strong>Smaller prefix on every turn.</strong> 0.35K instead of 5–15K, repeated on every request.</li>
<li><strong>Scripts instead of tool chains.</strong> With only bash, the model writes one script instead of doing read, search, edit, read over many turns. Input tokens dropped 44–91% compared with the first-party harnesses.</li>
<li><strong>No polling.</strong> In one case a fixed 30-second timeout turned a single long wait into 334 polling calls, at more than ten times the cost. Freehand just lets the model wait.</li>
<li><strong>Pruning on long tasks.</strong> On a multi-hour science task, self-managed memory cut total input from 24.5M to 8.9M tokens. On short tasks the model doesn't bother editing its memory at all, so there's no overhead.</li>
</ol>
<p><img src="/posts/freehand-the-harness-that-decides-less/input-tokens-chart.png" alt="Paired bar chart of cumulative input tokens in millions, first-party harness versus Freehand: OSWorld 2.1 GPT-6-astra 12.66 vs 1.11, OSWorld 2.1 Claude Opus 5.5 8.44 vs 2.15, Terminal-Bench 4 GPT-6-astra 3.32 vs 0.99, Terminal-Bench 4 Claude Opus 5.5 8.89 vs 4.59, Terminal-Bench 4 Gemini 4 Carbon 6.94 vs 3.89, Agents&#x27; Last Exam GPT-6-astra 2.70 vs 0.59, Agents&#x27; Last Exam Claude Opus 5.5 2.40 vs 0.94" loading="lazy" decoding="async" width="1600" height="2600"></p>
<p>The ablations are useful too. Swapping self-managed memory for normal auto-compaction kept accuracy the same but cost 7–19% more. Putting Codex's prompt and tools back into the Freehand loop <em>lowered</em> accuracy and raised cost by 68%. So most of the gain comes from dropping the prescribed workflow and tools, and the memory part mainly saves money on long runs.</p>
<h2 id="what-im-happy-with-and-what-isnt-there-yet">What I'm happy with and what isn't there yet</h2>
<p>One part I really like is that the paper doesn't oversell it. With lower-tier models (GPT-6 Sol, Claude Sonnet 5.5, DeepSeek V4.1 Flash) the first-party harnesses win again. That fits their own argument: the rules help models that need them. So this isn't "throw away your harness", it's "the right amount of harness depends on the model".</p>
<p>Some things to keep in mind:</p>
<ul>
<li><strong>No sandbox.</strong> Commands run as you, with your files and credentials, and nothing asks for approval. The README is clear about this: use a container or VM for anything you don't trust.</li>
<li><strong>No native Windows yet.</strong> The CLI and web UI run on macOS and Linux, or Linux under WSL2. The desktop app is macOS and Linux only for now. As a Windows user that's a bit annoying 😅</li>
<li><strong>It's alpha.</strong> v0.1.1 at the time of writing.</li>
<li><strong>The benchmarks are the authors' own.</strong> They did a controlled same-machine rerun and significance tests, but I'd like to see independent numbers.</li>
</ul>
<h2 id="what-this-means-for-your-setup">What this means for your setup</h2>
<p>This is the part I keep thinking about. The paper says the rules still help weaker models. But today's frontier model is next year's average model. So what happens to everything we've been building around our agents: instruction files, skills, custom agents?</p>
<p>I don't think it goes away. I do think it changes what it's for.</p>
<p><strong>Instruction files get a lot shorter.</strong> Generic advice like "read a file before you edit it", "make a plan first" or "write clean code" is exactly what Freehand dropped, and good models do it anyway. What stays is what the model can't find out by itself: why a decision was made, what's out of scope, the conventions nobody wrote down, the traps that look fine but break. Plus a few shortcuts that save turns, like "the build is <code>npm run build</code> and there are no tests". Even Freehand would spend turns rediscovering that every session, and with a meter on screen you can actually see what that costs. I expect the instruction file to look more like an onboarding note for a senior colleague than a rulebook.</p>
<p><strong>The unwritten stuff becomes the most important part, and that means more human input.</strong> If the model can find everything in the code by itself, the only thing left to add is what isn't in the code. Why we picked this database. Which customer always asks for that one exception. What we tried last year and why it failed. That knowledge lives in people's heads, and an agent can't dig it up with <code>bash</code>. So the work shifts from writing rules for the model to writing down what we know. And honestly, I don't think we're going to love that. Most developers would rather write code than documentation, and it's hard to put into words things you just "know". But that's where the value will be: not in telling the model how to work, but in giving it the context only we have.</p>
<p><strong>Skills fit this world better than big instruction files.</strong> A skill is a folder with instructions and scripts that the agent only loads when it needs it. The model sees a short description and decides itself whether to open it. That's already "let the model decide". I think skills will move away from step-by-step recipes ("first do this, then that") towards know-how and ready-made scripts: the domain knowledge and tools a model can't guess, not instructions on how to think.</p>
<p><strong>Rules you can't afford to break move out of prose.</strong> Freehand leaves the boundaries with the host: permissions, sandboxing and budgets. Everything else is the model's call. So anything that must always hold belongs in tests, CI checks, hooks and permissions, not in a sentence the model may or may not follow.</p>
<p><strong>Memory becomes the model's job.</strong> Same lesson as in my notebook article: explain what the memory is for and let the model decide what's worth keeping.</p>
<p>So my guess for the near future: less setup, but sharper. Fewer rules about <em>how</em> to work, more facts about <em>your</em> project, and hard guardrails where it really matters. And probably still a heavier setup for the smaller, cheaper models you use for simple tasks.</p>
<h2 id="what-you-can-take-from-this">What you can take from this</h2>
<p>Even if you never use Freehand, you can do this tomorrow:</p>
<ul>
<li><strong>Check what you send on every turn.</strong> Every rule, skill description and MCP tool definition is paid for on every request.</li>
<li><strong>Go through your instruction file with one question:</strong> "Would a good model do this anyway, or could it find this itself?" If yes, cut it.</li>
<li><strong>Move the must-haves into checks.</strong> If breaking a rule would really hurt, enforce it with a test, hook or permission.</li>
</ul>
<p>If you've tried Freehand, or you've seen the opposite with your own agents, I'd love to hear about it.</p>
<h2 id="references">References</h2>
<ul>
<li>Microsoft: <a href="https://github.com/microsoft/FreeHand" rel="noopener noreferrer">Freehand on GitHub</a></li>
<li>Zeng et al.: <a href="https://arxiv.org/abs/2612.02442" rel="noopener noreferrer">Freehand: The Bitter Lesson Comes to Agent Harnesses</a></li>
<li>Anthropic: <a href="https://www.anthropic.com/research/components-of-agent-memory" rel="noopener noreferrer">The components of agent memory</a></li>
<li>My earlier post: <a href="/posts/give-your-agent-a-notebook/">Give your agent a notebook</a></li>
</ul>]]></content:encoded>
    </item>
    <item>
      <title>Spec-driven workflows</title>
      <link>https://www.michaelvdbend.dev/posts/spec-driven-workflows</link>
      <guid isPermaLink="true">https://www.michaelvdbend.dev/posts/spec-driven-workflows</guid>
      <pubDate>Mon, 30 Nov 2026 00:00:00 GMT</pubDate>
      <description>Why lights-out engineering and spec-driven development need each other, what a good spec looks like, and the full flow with Spec Kit and OpenSpec.</description>
      <content:encoded><![CDATA[<p><strong>TL;DR</strong></p>
<ul>
<li>Agents got really fast at writing code. That moves the hard part: it's no longer typing the code, it's knowing exactly what you want.</li>
<li>In my opinion lights-out engineering and spec-driven development (SDD) can't live without each other. Without a spec, agents build the wrong thing very fast. Without lights out, you do all that careful thinking and then still babysit every task.</li>
<li>The research agrees. A review of 67 sources calls it the Productivity-Reliability Paradox: we write a lot more code, but we don't ship more. Their conclusion: specification discipline is the bottleneck, not the model.</li>
<li>A good spec answers the hard questions up front, is testable, and says honestly what's still unclear. I show four common ways specs go wrong.</li>
<li>I tried the full flow with <a href="https://github.com/github/spec-kit" rel="noopener noreferrer">Spec Kit</a> on a small webshop: 35 tasks, 26 merged pull requests, a little over four hours of agents working on their own. And a lighter alternative, <a href="https://github.com/Fission-AI/OpenSpec" rel="noopener noreferrer">OpenSpec</a>.</li>
</ul>
<p>Last week I wrote about <a href="/posts/lights-out-engineering/">lights-out engineering</a>: handing clear work to agents, closing your laptop and checking the results later.</p>
<p>These two topics are really one story to me. I'm genuinely fascinated by agentic teams: agents with their own memory, their own specialists, even their own scrum ceremonies. But with a lot of customers who want that kind of autonomous workflow, we keep hitting the same wall. The output of our fancy agents isn't what the customer actually wanted. What's the point of an agent team that ships a feature in under an hour if it's the wrong feature?</p>
<p>That's why I think lights out and SDD can't live without each other:</p>
<ul>
<li><strong>Lights out without a spec</strong> is garbage in, garbage out, at scale. Nobody is there to answer the agent's questions, so it guesses. And it guesses confidently.</li>
<li><strong>A spec without lights out</strong> is a lot of good thinking that you then spend babysitting 35 tasks one by one. You paid for the thinking up front, but you never collect the reward.</li>
</ul>
<p>The spec is what makes it safe to walk away. Lights out is what makes writing the spec worth it.</p>
<h2 id="the-bottleneck-moved">The bottleneck moved</h2>
<p>I already told the stories of the .NET team and the Copilot Cowork team in the <a href="/posts/lights-out-engineering/">lights-out post</a>, so I'll keep it short. Both teams let agents write most of the code. And both ended up at the same place.</p>
<p>Stephen Toub described his job on <a href="https://devblogs.microsoft.com/dotnet/ten-months-with-cca-in-dotnet-runtime/" rel="noopener noreferrer">dotnet/runtime</a> as: "identifying work, scoping problems, and giving direction." The tasks that merged best were the clearly defined ones, like cleanup and tests. New features and performance work, which need judgment, came last.</p>
<p>The <a href="https://commandline.microsoft.com/how-we-built-copilot-cowork-python-to-rust-migration/" rel="noopener noreferrer">Cowork team</a> put it even more directly: "The bottleneck was not knowing exactly what we wanted." And: "The faster agents became at implementation, the more important it became for us to be precise about intent, requirements, and what good looked like."</p>
<p>Identifying work, scoping problems, being precise about intent. If you think about it, that's basically what writing a spec is.</p>
<p>I saw the same thing at a hackathon with one of the customers I work with. They built an agentic software factory: AI interviews the product owner until the requirement is clear, that becomes a spec, a plan gets reviewed, and an agent team implements it. Their biggest learning: the spec was the most important moment to have a human in the loop. If the spec is wrong, everything after it is wrong too, no matter how fast the agents are.</p>
<h2 id="does-it-hold-up">Does it hold up?</h2>
<p>This sounds nice, but I wanted numbers. The best source I found is a <a href="https://arxiv.org/abs/2605.01160" rel="noopener noreferrer">recent paper by Sabry Farrag</a> from the University of East London. He reviewed 67 sources on AI-assisted development from 2022 to 2026, so it's basically a summary of what we know so far.</p>
<p>In controlled studies, developers are 20 to 56% faster with AI. That's the number you usually see on slides. But those are nice, well-scoped tasks. In real teams, across more than 10,000 developers, teams create 98% more pull requests, review time goes up 91% and delivery metrics stay flat. One randomised trial with experienced developers on mature codebases even found they were 19% slower.</p>
<p>He calls this the Productivity-Reliability Paradox, and his conclusion is pretty blunt: "Specification discipline, not model capability, is the binding constraint on AI-assisted software dependability." So waiting for a better model won't fix it.</p>
<p>The paper also describes a four-month pilot: the same teams, two months without specs and two months with Spec Kit.</p>
<ul>
<li><strong>Lead time per feature:</strong> from 8–12 working days down to 6–9.</li>
<li><strong>Late hotfixes per sprint:</strong> from 3–5 down to 1–2.</li>
<li><strong>Rollbacks per month:</strong> from 2–4 down to 0–1.</li>
<li><strong>Developer confidence:</strong> from 3.1 to 3.9 out of 5.</li>
</ul>
<p>Code that got rewritten within two weeks roughly halved. It isn't free though: writing the spec and plan cost 45 to 90 extra minutes per medium-sized feature. You pay a little up front and win it back in rework. The paper calls it an illustrative pilot with approximate metrics, so treat it as a direction, not proof.</p>
<h2 id="what-a-good-spec-looks-like">What a good spec looks like</h2>
<p>A spec is a short document that says what you want to build and why: who it's for, what it should do, and how you know it's done. It doesn't say how to build it. That's the plan.</p>
<p>It's the shared agreement between you and the agent. You make your decisions there before any code is written, so the agent doesn't have to guess. And it's what you check the result against in review.</p>
<p>Sounds simple, but it's easy to get wrong. Here are four examples for a workshop booking app, each with a bad and a good version.</p>
<h3 id="1-a-prompt-is-not-a-spec">1. A prompt is not a spec</h3>
<p>This is how most of us start:</p>
<pre class="shiki shiki-themes github-light github-dark" tabindex="0"><code class="language-markdown"><span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">Add workshop booking.</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">Users should be able to reserve</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">a seat. Make it work well.</span></span></code></pre>
<p>Sounds reasonable. But what happens when two people grab the last seat at the same moment? What if the payment fails? The prompt doesn't say, so the agent guesses. Here's a spec for the same feature:</p>
<pre class="shiki shiki-themes github-light github-dark" tabindex="0"><code class="language-markdown"><span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold"># Feature: Workshop booking</span></span>
<span class="line"></span>
<span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">## User story (P1)</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">As an attendee I reserve a seat, so my place is guaranteed.</span></span>
<span class="line"></span>
<span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">## Acceptance criteria</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Given 1 seat left, when 2 users book at the same time,</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">  then exactly 1 succeeds and the other sees "Full"</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> A failed payment releases the seat within 5 minutes</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Max 1 seat per user per workshop</span></span>
<span class="line"></span>
<span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">## Out of scope</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Waitlists, refunds</span></span>
<span class="line"></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">[NEEDS CLARIFICATION] Can admins overbook?</span></span></code></pre>
<p>It answers exactly those questions: the race for the last seat, the failed payment, the limits and what's out of scope. And where something isn't decided yet, it says so instead of guessing. If you leave the questions open, the agent answers them for you.</p>
<h3 id="2-adjectives-arent-acceptance-criteria">2. Adjectives aren't acceptance criteria</h3>
<p>Writing a spec doesn't automatically make it a good one. This one has a title and bullets, so it looks like a spec:</p>
<pre class="shiki shiki-themes github-light github-dark" tabindex="0"><code class="language-markdown"><span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold"># Feature: Cancel booking</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">Users can cancel their booking.</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Cancelling should be easy and fast</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Handle refunds properly</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Notify the right people</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Must be secure</span></span></code></pre>
<p>But read it: easy, fast, properly, secure. What is "properly"? Who are "the right people"? The agent will happily build something and call it done, and you can't prove it wrong. The good version turns every line into something you can check:</p>
<pre class="shiki shiki-themes github-light github-dark" tabindex="0"><code class="language-markdown"><span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold"># Feature: Cancel booking</span></span>
<span class="line"></span>
<span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">## User story (P1)</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">As an attendee I cancel my seat, so someone else can take it.</span></span>
<span class="line"></span>
<span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">## Acceptance criteria</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Given a booking, when I cancel more than 48h before start,</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">  then I get a full refund and the seat is free again</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Cancel within 48h: seat is freed, no refund</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> The organiser gets an email within 1 minute</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Only the person who booked can cancel, others get 403</span></span>
<span class="line"></span>
<span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">## Out of scope</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Partial refunds</span></span></code></pre>
<h3 id="3-a-spec-says-what-and-why-not-how">3. A spec says what and why, not how</h3>
<p>This is the opposite mistake, and as developers we make it a lot:</p>
<pre class="shiki shiki-themes github-light github-dark" tabindex="0"><code class="language-markdown"><span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold"># Feature: Waitlist</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Add a waitlist table with FK to workshop</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Use a Redis queue + cron job every 5 min</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Build a React WaitlistPanel component</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Send emails via SendGrid</span></span></code></pre>
<p>That's a task list. It's all about how, but nobody knows what problem we're solving or when we're done. The good version starts with why and then describes the behaviour:</p>
<pre class="shiki shiki-themes github-light github-dark" tabindex="0"><code class="language-markdown"><span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold"># Feature: Waitlist</span></span>
<span class="line"></span>
<span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">## Why</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">Popular workshops sell out in minutes, and people give up.</span></span>
<span class="line"></span>
<span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">## User story (P2)</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">As an attendee I join the waitlist for a full workshop,</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">so I get a seat when one frees up.</span></span>
<span class="line"></span>
<span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">## Acceptance criteria</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Given a full workshop, I can join the waitlist once</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> When a seat frees up, the first in line gets an offer</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">  and has 2 hours to accept</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> No answer in 2 hours: the offer goes to the next person</span></span></code></pre>
<p>The how comes later, in the plan.</p>
<h3 id="4-the-happy-path-is-the-easy-part">4. The happy path is the easy part</h3>
<p>This one is sneaky, because the bad spec actually looks good. It even uses Given-When-Then:</p>
<pre class="shiki shiki-themes github-light github-dark" tabindex="0"><code class="language-markdown"><span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold"># Feature: QR check-in</span></span>
<span class="line"></span>
<span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">## Acceptance criteria</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Given a valid ticket,</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">  when the host scans the QR code,</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">  then the attendee is checked in</span></span></code></pre>
<p>But it only covers the happy path. What if someone scans twice? Has a ticket for another workshop? What if there's no Wi-Fi in the room? The agent decides that for you, and you find out on the day of the event.</p>
<pre class="shiki shiki-themes github-light github-dark" tabindex="0"><code class="language-markdown"><span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold"># Feature: QR check-in</span></span>
<span class="line"></span>
<span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">## Acceptance criteria</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Given a valid ticket, when the host scans the QR code,</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">  then the attendee is checked in</span></span>
<span class="line"></span>
<span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">## Edge cases</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Scanned twice: show "Already checked in at 09:12"</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Ticket for another workshop: refuse, show the right room</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Cancelled booking: refuse, no check-in</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> No internet: store the scans, sync when back online</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> More than 30 min late: check in, but flag as late</span></span></code></pre>
<p>Agents are great at the happy path. The edge cases are where your spec earns its keep.</p>
<h3 id="your-turn-which-one-would-you-hand-to-an-agent">Your turn: which one would you hand to an agent?</h3>
<p>The last one has no right answer. Same feature, workshop reminders, written in two styles. A is long: about 450 lines, 3,400 words and 4,500 tokens. Shortened, it looks like this:</p>
<pre class="shiki shiki-themes github-light github-dark" tabindex="0"><code class="language-markdown"><span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold"># Feature Specification: Workshop reminders</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">Branch: 003-workshop-reminders · Status: Draft</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">Input: "Remind attendees before their workshop"</span></span>
<span class="line"></span>
<span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">### User Story 1 - Get reminded (Priority: P1)</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">As an attendee I want a reminder before my workshop,</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">so I don't forget to show up.</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">Why this priority: no-shows waste seats.</span></span>
<span class="line"></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">Acceptance Scenarios:</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">1.</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Given a confirmed booking, When it's 24h before start,</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">   Then the attendee gets an email</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">2.</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Given a cancelled booking, When it's 24h before start,</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">   Then no email is sent</span></span>
<span class="line"></span>
<span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">### Edge Cases</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Booked less than 24h before start? Send right away.</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Workshop rescheduled after the reminder was sent?</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">  Send a new reminder with the new time.</span></span>
<span class="line"></span>
<span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">### Functional Requirements</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> FR-004: System MUST send a reminder 24h before start</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> FR-006: System MUST NOT remind cancelled bookings</span></span>
<span class="line"></span>
<span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">### Measurable Outcomes</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> SC-001: no-shows drop by 30% within 2 months</span></span>
<span class="line"></span>
<span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">## Assumptions</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Email is the only channel for now (no SMS or push).</span></span></code></pre>
<p>B is about 150 lines, 1,100 words and 1,500 tokens:</p>
<pre class="shiki shiki-themes github-light github-dark" tabindex="0"><code class="language-markdown"><span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold"># notifications Specification</span></span>
<span class="line"></span>
<span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">## Purpose</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">Keep attendees informed about their workshops:</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">confirmations, reminders and changes.</span></span>
<span class="line"></span>
<span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">### Requirement: Workshop reminder</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">The system SHALL send a reminder email 24h before</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">the workshop starts.</span></span>
<span class="line"></span>
<span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">#### Scenario: Confirmed booking</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> WHEN a booking is confirmed and start is 24h away</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> THEN the attendee receives a reminder email</span></span>
<span class="line"></span>
<span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">#### Scenario: Cancelled booking</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> WHEN the booking was cancelled</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> THEN no reminder is sent</span></span>
<span class="line"></span>
<span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">### Requirement: Reschedule</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">The system SHALL send a new reminder when the</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">workshop moves after a reminder was sent.</span></span></code></pre>
<p>A is in the style of a Spec Kit feature spec: priorities, the reason behind each one, success criteria and assumptions. B is in the style of an OpenSpec capability spec: short, and only the behaviour. Both cover the same rules. A tells you more about why and how you'll measure success. B is cheaper to read, for you and for the agent. Which one is better depends on your team, how big the feature is and how much governance you need. I come back to that in the comparison at the end.</p>
<h2 id="the-full-flow">The full flow</h2>
<p>SDD isn't a tool, it's a way of working:</p>
<ol>
<li><strong>Envision.</strong> You often don't know exactly what you want yet. Explore with AI until the direction is clear. This is where vibe coding is allowed.</li>
<li><strong>Spec.</strong> What you want, the constraints and how you know it's done. AI helps you write it, but you own it. That can be the product owner, or a developer who uses the ticket from GitHub or Azure DevOps as input.</li>
<li><strong>Plan.</strong> The how: stack, architecture, which files change, how to test it.</li>
<li><strong>Tasks.</strong> Small steps in a fixed order, marked where they can run in parallel. Small tasks need less context, a retry is cheap and you can actually follow what's happening.</li>
<li><strong>Execute.</strong> Agents build, test and open pull requests.</li>
<li><strong>Review and ship.</strong></li>
</ol>
<p>This looks like a straight line, but most of us work in brownfield codebases with years of history. So the spec isn't a document you write once. It lives next to your code. When a review shows the agent got something wrong, you often have to fix the spec, not just the code. Otherwise it's just outdated documentation again, and we all know how that ends.</p>
<h2 id="trying-it-spec-kit-on-planet-pizza">Trying it: Spec Kit on Planet Pizza</h2>
<p><a href="https://github.com/github/spec-kit" rel="noopener noreferrer">GitHub Spec Kit</a> turns this flow into a few slash commands: <code>constitution</code>, <code>specify</code>, <code>clarify</code>, <code>plan</code>, <code>tasks</code> and <code>implement</code>. I used it on Planet Pizza, a small demo webshop, to add order tracking.</p>
<p><strong>Constitution.</strong> The house rules of your project. You write them once and every spec, plan and task has to follow them. My prompt started with: base the principles on what is already true in this repo. That's important in brownfield, because I don't want the agent to invent new rules. I want it to write down the ones we already follow. I got six principles with MUST and MUST NOT rules and a short reason for each, like "the server is the source of truth: prices are always recalculated on the server, because the browser is untrusted."</p>
<p><strong>Specify.</strong> Three user stories with acceptance scenarios that were really concrete. One said that an order placed with "Earthling@Example.com" must still be found when you type it in lowercase with an extra space. I never said that, but now it's written down and testable. The edge cases covered things like "#0042", letters in the order number, and the server being down.</p>
<p><strong>Clarify.</strong> It's optional, but in my opinion the most important step. Instead of guessing, the agent asks you questions, one at a time, with a recommendation. How long can the browser that placed the order see it without the email? 24 hours. How strict is the rate limit? 10 lookups per minute. Those were my calls, not the agent's.</p>
<p><strong>Plan.</strong> My prompt was literally "Write the plan." The best part is the Constitution Check: every principle, pass or fail, with evidence. Because the constitution says new dependencies need a reason, it wrote about 40 lines of rate limiting instead of pulling in a library. And it flagged that the existing <code>SELECT *</code> would leak the token hash to the browser.</p>
<p><strong>Tasks.</strong> 35 tasks in six phases, each naming the exact file to change, with 9 marked as parallel.</p>
<p>Small tip if you use Claude models in VS Code: in SDD you read a lot, so you often wait more than five minutes between prompts, and by default the prompt cache is gone by then. The experimental settings <code>github.copilot.chat.anthropic.promptCaching.extendedTtl</code> and <code>extendedTtlMessages</code> give you a one-hour cache. When I tested it, this only worked on the Claude 4 models, and not in the CLI yet.</p>
<h2 id="then-the-lights-go-out">Then the lights go out</h2>
<p>Up to here I steered every step. That's on purpose: the spec is where the human matters most. But if the thinking is done and the tasks are small and clear, do I still need to sit there for 35 tasks? I don't think so.</p>
<p>People own the spec. Agents own the execution.</p>
<p>A customized <code>/speckit.taskstoissues</code> turned <code>tasks.md</code> into one parent issue with 35 sub-issues and 53 "blocked by" links between them. Adding a label is the start signal. From there, workflows assign each unblocked task to Copilot with the right custom agent, a review gate asks Copilot code review to check the pull request, Copilot fixes the comments, and it merges. Merging unblocks the next tasks.</p>
<p>The result: 35 tasks, 26 pull requests merged, 8 rounds where the review gate found something and the agent fixed it, in a little over four hours. The setup is in the <a href="/posts/lights-out-engineering/">lights-out post</a> and the template is in <a href="https://github.com/mvanderbend-msoft/advanced-sdd-workflows" rel="noopener noreferrer">advanced-sdd-workflows</a>.</p>
<p>In my setup the gate merges without a human, so you can see the whole loop. In a real project you probably want a person on that last click, and that's fine.</p>
<h2 id="when-the-requirements-change">When the requirements change</h2>
<p>They will. I see three ways to handle it:</p>
<ul>
<li><strong>Flow-forward.</strong> What Spec Kit does by default. Every change gets a new feature folder (001, 002, 003) and you run the full flow again. Old specs stay as history.</li>
<li><strong>Living spec.</strong> <code>spec.md</code> is the one contract. Change it first, regenerate the plan and tasks, and nothing moves until all three agree.</li>
<li><strong>Flow-back.</strong> You discover something while building and capture it where it shows up, then work backwards to bring the spec in line. The most flexible, but it needs discipline.</li>
</ul>
<p>For monorepos: Spec Kit works per folder. Every folder with a <code>.specify</code> folder is its own project with its own constitution and numbering. There's no shared constitution, so company-wide rules you sync yourself.</p>
<h2 id="spec-kit-or-openspec">Spec Kit or OpenSpec?</h2>
<p><a href="https://github.com/Fission-AI/OpenSpec" rel="noopener noreferrer">OpenSpec</a> is a lighter alternative. <code>openspec/specs/</code> describes how your system behaves today, and every change in <code>openspec/changes/</code> only holds a delta: what's ADDED, MODIFIED or REMOVED. Two changes can edit the same spec without conflicts if they touch different requirements. Its <code>propose</code> step does specify, plan and tasks in one go. For the same feature I got 12 tasks instead of 35.</p>
<p>The biggest difference: OpenSpec answers "what does our system do?", Spec Kit answers "what did we build for feature 003?" Spec Kit is stronger on governance through the constitution, which matters in healthcare, finance or government. OpenSpec is lighter and probably cheaper for small changes, but neither project publishes official token benchmarks, so take that with a grain of salt.</p>
<p>With customers I see three routes: adopt one as is, adapt it with your own constitution, templates and commands (like my <code>taskstoissues</code>), or skip the framework and just use a spec template plus an instruction that says "no code without a spec". All three work.</p>
<h2 id="whats-not-there-yet">What's not there yet</h2>
<ul>
<li><strong>It costs time up front.</strong> 45 to 90 minutes per feature in the pilot. For a bug fix or small refactor where the what fits in one sentence, plan mode is enough.</li>
<li><strong>Specs rot.</strong> If nobody updates them when the code changes, you're back to outdated documentation.</li>
<li><strong>Spec Kit is heavy for small changes.</strong> 35 tasks is a lot of reading. OpenSpec or your own lighter template may fit better.</li>
<li><strong>The evidence is still thin.</strong> The pilot numbers are approximate and from a small set of teams. I'd love to see more.</li>
</ul>
<h2 id="want-to-try-it">Want to try it?</h2>
<ol>
<li><strong>Pick one feature this week</strong> and write the spec before any code. What, why, how you know it's done, and the edge cases.</li>
<li><strong>Run clarify,</strong> or just ask the agent: "what's still unclear in this spec?" Answer those questions yourself.</li>
<li><strong>Only then let go.</strong> Split the plan into small tasks and hand them to agents. That's where lights out starts to pay off.</li>
</ol>
<p>The template and references are in <a href="https://github.com/mvanderbend-msoft/advanced-sdd-workflows" rel="noopener noreferrer">advanced-sdd-workflows</a>. I'm really curious how you handle specs in your team, especially in brownfield codebases. If you try it or think I'm wrong, let me know.</p>
<h2 id="references">References</h2>
<ul>
<li>Sabry E. Farrag: <a href="https://arxiv.org/abs/2605.01160" rel="noopener noreferrer">The Productivity-Reliability Paradox: Specification-Driven Governance for AI-Augmented Software Development</a></li>
<li>Stephen Toub: <a href="https://devblogs.microsoft.com/dotnet/ten-months-with-cca-in-dotnet-runtime/" rel="noopener noreferrer">Ten Months with Copilot Coding Agent in dotnet/runtime</a></li>
<li>Bas Brekelmans: <a href="https://commandline.microsoft.com/how-we-built-copilot-cowork-python-to-rust-migration/" rel="noopener noreferrer">Nine engineers, 1,211 pull requests in a day: Lessons from building Copilot Cowork</a></li>
<li><a href="https://github.com/github/spec-kit" rel="noopener noreferrer">GitHub Spec Kit</a> and <a href="https://github.com/Fission-AI/OpenSpec" rel="noopener noreferrer">OpenSpec</a></li>
<li>My earlier post: <a href="/posts/lights-out-engineering/">Lights-out engineering</a></li>
<li>Template and references: <a href="https://github.com/mvanderbend-msoft/advanced-sdd-workflows" rel="noopener noreferrer">advanced-sdd-workflows</a></li>
</ul>]]></content:encoded>
    </item>
    <item>
      <title>Lights-out engineering</title>
      <link>https://www.michaelvdbend.dev/posts/lights-out-engineering</link>
      <guid isPermaLink="true">https://www.michaelvdbend.dev/posts/lights-out-engineering</guid>
      <pubDate>Wed, 25 Nov 2026 00:00:00 GMT</pubDate>
      <description>Can agents keep working on your codebase after you close your laptop? What two Microsoft teams learned, what a full agent team looks like, and how to start small with what GitHub already gives you.</description>
      <content:encoded><![CDATA[<p><img src="/posts/lights-out-engineering/lights-out-engineering.png" alt="Title slide of the talk Lights-Out Engineering: How autonomous agent teams in GitHub Copilot ship code while you sleep, by Michael van der Bend, with four robots labelled lead, dev, tester and scribe at a desk, saying &#x22;Standup. Blockers?&#x22; and &#x22;Waiting on human review.&#x22;" loading="lazy" decoding="async" width="1600" height="900"></p>
<p><strong>TL;DR</strong></p>
<ul>
<li>Lights-out engineering means you hand clear work to agents, close your laptop, and check the results later. Not chatting back and forth until it's done.</li>
<li>It's already happening. The .NET team and the Copilot Cowork team both let agents write most of the code. Both came to the same conclusion: agents implement, people define the work and judge the result.</li>
<li>It doesn't work by itself. In dotnet/runtime, the merge rate went from 42% to 72% in ten months, mostly because of better tasks and better instructions.</li>
<li>You need three things in place: autonomy, context and memory.</li>
<li>You don't need a big framework to start. The Copilot cloud agent, custom agents and agentic workflows already get you most of the way. I put a starter template in <a href="https://github.com/mvanderbend-msoft/lights-out-engineering" rel="noopener noreferrer">lights-out-engineering</a>.</li>
</ul>
<p>More and more of the companies I work with ask me the same question: can AI agents keep working on our codebase after we close our laptops? I gave a talk about it today, and this is the written version.</p>
<p>Inside Microsoft this is already happening a lot. Teams assign work to agents, close their laptops and check the results later. That's quite different from how most of us use agents today: you and the agent go back and forth until the result is finally there.</p>
<p>The technology is ready for it, but it doesn't happen by itself. It changes how a team plans its work, shares knowledge, checks quality, and where people stay in control. So this post is about what you need in place before you let agents run on their own, and how to start small.</p>
<h2 id="two-teams-same-conclusion">Two teams, same conclusion</h2>
<h3 id="dotnetruntime-from-42-to-72">dotnet/runtime: from 42% to 72%</h3>
<p>Let me start with a story from Stephen Toub, a Distinguished Engineer on .NET. He works on <a href="https://devblogs.microsoft.com/dotnet/ten-months-with-cca-in-dotnet-runtime/" rel="noopener noreferrer">dotnet/runtime</a>, one of the most demanding codebases out there: the garbage collector, the compiler, the core libraries.</p>
<p>One Saturday he was at a kids' birthday party. Apparently the party wasn't that great 😅, so in about an hour, from his phone, he assigned more than twenty backlog issues to the Copilot cloud agent. By the evening he had reviewed 22 pull requests. Another time, on a cross-country flight without a laptop, he opened nine pull requests and seven got merged: bug fixes, tests, performance work and a 112-file cleanup.</p>
<p>His description of it stuck with me: "My job was different. I wasn't writing code. I was identifying work, scoping problems, and giving direction. The agent did the implementation."</p>
<p>His team used the cloud agent in that repo for ten months and wrote down what they learned. The most useful part for me is which tasks worked:</p>
<p><img src="/posts/lights-out-engineering/merge-rate-by-task.png" alt="Bar chart of merge rate by task type in dotnet/runtime: cleanup 84.7%, writing tests 75.6%, refactoring 69.7%, bug fixes 69.4%, new features 64.5% and performance 54.5%" loading="lazy" decoding="async" width="1600" height="900"></p>
<p>Cleanup and tests do best because they're routine and clearly defined. The agent has little room to interpret them its own way. Bug fixes worked best with steps to reproduce, the expected result and the actual result. A vague bug report gets you a vague fix. New features and performance work, which need judgment and deep knowledge of the code, came last.</p>
<p>And the numbers weren't great from the start. In the first month only 42% of the agent's pull requests got merged. The agent couldn't even build the code, and there was no instructions file. Ten months later it's holding at about 72%. The models got better, but Stephen calls it a story of learning: which tasks to assign, how to write instructions, how to iterate.</p>
<h3 id="copilot-cowork-1211-pull-requests-in-a-day">Copilot Cowork: 1,211 pull requests in a day</h3>
<p>The second story is about a brand-new product. The team behind Copilot Cowork <a href="https://commandline.microsoft.com/how-we-built-copilot-cowork-python-to-rust-migration/" rel="noopener noreferrer">wrote about building it from an empty repo</a>. First commit on January 13, worldwide general availability on June 16. In January they merged 257 pull requests. On October 21, nine engineers merged 1,211 pull requests into main in a single day.</p>
<p>Their summary: "Agents wrote most of the code, but engineers remained responsible for defining the work and judging the results." And what slowed them down wasn't the agent: "The bottleneck was not knowing exactly what we wanted."</p>
<p>The sneaky part is what happens when you're vague: "A vague request got us code that looked reasonable, survived a quick read, and then did the wrong thing." So better agents don't make the human part smaller. They make it more important.</p>
<p>A mature codebase and a brand-new product, and both draw the line in the same place.</p>
<p>And it's not just Microsoft. According to <a href="https://github.blog/news-insights/octoverse/octoverse-commits-pushes-reach-new-highs-in-2026-as-developers-build-with-agents/" rel="noopener noreferrer">Octoverse 2026</a>, more than 40% of pull requests in September started with an agent's first draft, up from 17% in March. The fastest-growing mode is the Copilot cloud agent, the one where you assign a task and walk away: up 230% year over year, against 85% for agent chat.</p>
<h2 id="what-a-full-agent-team-looks-like">What a full agent team looks like</h2>
<p>Teams that go fully agentic often stop using one assistant for everything and start working with a team of agents. That fixes a few cracks in the "one chat, one agent" model:</p>
<ul>
<li><strong>Context disappears.</strong> Every new chat starts from zero.</li>
<li><strong>One agent does everything.</strong> Frontend, backend, database and security rules all compete for attention, so you get generic answers.</li>
<li><strong>No team memory.</strong> Six months later, nobody knows why it was built this way. Not even the AI.</li>
<li><strong>You're still the bottleneck.</strong> You stopped writing code, but now you're prompting, checking and retrying. The agent is faster; the system isn't.</li>
</ul>
<p><a href="https://github.com/github/squad" rel="noopener noreferrer">Squad</a> is one of the frameworks that tries to fix this. Run <code>squad init</code> and your repo gets a <code>.squad/</code> folder with plain Markdown: who's on the team, who handles what, a shared <code>decisions.md</code>, and a charter and history file per agent. This is what that looked like in the demo:</p>
<figure class="replay" data-replay="{&#x22;title&#x22;:&#x22;~/planet-pizza-squad&#x22;,&#x22;steps&#x22;:[{&#x22;cmd&#x22;:&#x22;squad --version&#x22;},{&#x22;out&#x22;:[&#x22;2.0.0&#x22;],&#x22;pause&#x22;:300},{&#x22;cmd&#x22;:&#x22;squad init&#x22;},{&#x22;out&#x22;:[&#x22;Let&#x27;s build your team.&#x22;],&#x22;pause&#x22;:400},{&#x22;out&#x22;:[[&#x22;ok&#x22;,&#x22;✓&#x22;],&#x22; .squad\\casting\\registry.json&#x22;],&#x22;pause&#x22;:70},{&#x22;out&#x22;:[[&#x22;ok&#x22;,&#x22;✓&#x22;],&#x22; .squad\\agents\\scribe\\charter.md&#x22;],&#x22;pause&#x22;:70},{&#x22;out&#x22;:[[&#x22;ok&#x22;,&#x22;✓&#x22;],&#x22; .squad\\agents\\ralph\\charter.md&#x22;],&#x22;pause&#x22;:70},{&#x22;out&#x22;:[[&#x22;ok&#x22;,&#x22;✓&#x22;],&#x22; .squad\\agents\\rai\\charter.md&#x22;],&#x22;pause&#x22;:70},{&#x22;out&#x22;:[[&#x22;ok&#x22;,&#x22;✓&#x22;],&#x22; .squad\\agents\\fact-checker\\charter.md&#x22;],&#x22;pause&#x22;:70},{&#x22;out&#x22;:[[&#x22;ok&#x22;,&#x22;✓&#x22;],&#x22; .squad\\decisions.md&#x22;],&#x22;pause&#x22;:70},{&#x22;out&#x22;:[[&#x22;ok&#x22;,&#x22;✓&#x22;],&#x22; .squad\\team.md&#x22;],&#x22;pause&#x22;:70},{&#x22;out&#x22;:[[&#x22;ok&#x22;,&#x22;✓&#x22;],&#x22; .squad\\routing.md&#x22;],&#x22;pause&#x22;:70},{&#x22;out&#x22;:[[&#x22;ok&#x22;,&#x22;✓&#x22;],&#x22; .github\\agents\\squad.agent.md&#x22;],&#x22;pause&#x22;:70},{&#x22;out&#x22;:[[&#x22;ok&#x22;,&#x22;✓&#x22;],&#x22; .github\\workflows\\squad-triage.yml&#x22;],&#x22;pause&#x22;:70},{&#x22;out&#x22;:[&#x22;Squad initialized. Run &#x22;,[&#x22;key&#x22;,&#x22;copilot --agent squad&#x22;],&#x22; and tell it what you’re building.&#x22;],&#x22;pause&#x22;:200},{&#x22;cmd&#x22;:&#x22;copilot --agent squad --yolo -p \&#x22;I’m building Planet Pizza, a pizza ordering web app with a React frontend and a Node backend. Set up the team.\&#x22;&#x22;},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;● skill(coordinator-init-mode)&#x22;]],&#x22;pause&#x22;:700},{&#x22;out&#x22;:[[&#x22;bold&#x22;,&#x22;Squad v2.0.0&#x22;],&#x22; — I’ll set up an Office-themed team for Planet Pizza’s React frontend and Node backend.&#x22;],&#x22;pause&#x22;:600},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;$ Shell&#x22;],&#x22; Inspect team state and identify requester&#x22;],&#x22;pause&#x22;:300},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;MD&#x22;],&#x22; Read .squad\\routing.md&#x22;],&#x22;pause&#x22;:200},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;MD&#x22;],&#x22; Read .squad\\templates\\casting-reference.md&#x22;],&#x22;pause&#x22;:200},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;● List directory&#x22;],&#x22; .squad\\casting&#x22;],&#x22;pause&#x22;:300},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;$ Shell&#x22;],&#x22; Check setup skills, ceremonies, and available Squad CLI&#x22;],&#x22;pause&#x22;:700},{&#x22;out&#x22;:[&#x22;Jim will configure the team: &#x22;,[&#x22;key&#x22;,&#x22;Jim&#x22;],&#x22; for lead and architecture, &#x22;,[&#x22;key&#x22;,&#x22;Pam&#x22;],&#x22; for frontend, &#x22;,[&#x22;key&#x22;,&#x22;Dwight&#x22;],&#x22; for backend, and &#x22;,[&#x22;key&#x22;,&#x22;Oscar&#x22;],&#x22; for testing, plus Scribe, Ralph, Rai, and Fact Checker.&#x22;],&#x22;pause&#x22;:600},{&#x22;wait&#x22;:[&#x22;🏗️ Jim: Configure Planet Pizza team&#x22;],&#x22;from&#x22;:0,&#x22;to&#x22;:265,&#x22;shown&#x22;:265},{&#x22;out&#x22;:[&#x22;  &#x22;,[&#x22;dim&#x22;,&#x22;└ Setup complete and validated: 8 members, 4 cast specialists, 5 routes&#x22;]],&#x22;pause&#x22;:700},{&#x22;out&#x22;:[[&#x22;bold&#x22;,&#x22;Team set up&#x22;],&#x22; with persistent charters and routing:&#x22;],&#x22;pause&#x22;:300},{&#x22;out&#x22;:[&#x22;  &#x22;,[&#x22;key&#x22;,&#x22;Jim&#x22;],&#x22;      Lead and architecture&#x22;],&#x22;pause&#x22;:160},{&#x22;out&#x22;:[&#x22;  &#x22;,[&#x22;key&#x22;,&#x22;Pam&#x22;],&#x22;      React frontend&#x22;],&#x22;pause&#x22;:160},{&#x22;out&#x22;:[&#x22;  &#x22;,[&#x22;key&#x22;,&#x22;Dwight&#x22;],&#x22;   Node backend&#x22;],&#x22;pause&#x22;:160},{&#x22;out&#x22;:[&#x22;  &#x22;,[&#x22;key&#x22;,&#x22;Oscar&#x22;],&#x22;    Testing and quality&#x22;],&#x22;pause&#x22;:400},{&#x22;out&#x22;:[&#x22;Scribe, Ralph, Rai, and Fact Checker are configured as support agents.&#x22;],&#x22;pause&#x22;:500},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;AI Credits 59.26 (5m 54s)&#x22;]],&#x22;pause&#x22;:300}],&#x22;caption&#x22;:&#x22;A replay of the live demo. Press Replay, then type or press Enter to run each command. Long waits are sped up.&#x22;}"><div class="replay-terminal"><div class="replay-bar"><span class="replay-dots" aria-hidden="true"></span><span class="replay-title">~/planet-pizza-squad</span></div><div class="replay-body" tabindex="0" role="region" aria-label="Terminal transcript: ~/planet-pizza-squad"><div><span class="replay-dim">$</span> squad --version</div><div>2.0.0</div><div><span class="replay-dim">$</span> squad init</div><div>Let's build your team.</div><div><span class="replay-ok">✓</span> .squad\casting\registry.json</div><div><span class="replay-ok">✓</span> .squad\agents\scribe\charter.md</div><div><span class="replay-ok">✓</span> .squad\agents\ralph\charter.md</div><div><span class="replay-ok">✓</span> .squad\agents\rai\charter.md</div><div><span class="replay-ok">✓</span> .squad\agents\fact-checker\charter.md</div><div><span class="replay-ok">✓</span> .squad\decisions.md</div><div><span class="replay-ok">✓</span> .squad\team.md</div><div><span class="replay-ok">✓</span> .squad\routing.md</div><div><span class="replay-ok">✓</span> .github\agents\squad.agent.md</div><div><span class="replay-ok">✓</span> .github\workflows\squad-triage.yml</div><div>Squad initialized. Run <span class="replay-key">copilot --agent squad</span> and tell it what you’re building.</div><div><span class="replay-dim">$</span> copilot --agent squad --yolo -p "I’m building Planet Pizza, a pizza ordering web app with a React frontend and a Node backend. Set up the team."</div><div><span class="replay-dim">● skill(coordinator-init-mode)</span></div><div><span class="replay-bold">Squad v2.0.0</span> — I’ll set up an Office-themed team for Planet Pizza’s React frontend and Node backend.</div><div><span class="replay-dim">$ Shell</span> Inspect team state and identify requester</div><div><span class="replay-dim">MD</span> Read .squad\routing.md</div><div><span class="replay-dim">MD</span> Read .squad\templates\casting-reference.md</div><div><span class="replay-dim">● List directory</span> .squad\casting</div><div><span class="replay-dim">$ Shell</span> Check setup skills, ceremonies, and available Squad CLI</div><div>Jim will configure the team: <span class="replay-key">Jim</span> for lead and architecture, <span class="replay-key">Pam</span> for frontend, <span class="replay-key">Dwight</span> for backend, and <span class="replay-key">Oscar</span> for testing, plus Scribe, Ralph, Rai, and Fact Checker.</div><div>● 🏗️ Jim: Configure Planet Pizza team <span class="replay-dim">4m 25s</span> <span class="replay-ok">✓</span></div><div>  <span class="replay-dim">└ Setup complete and validated: 8 members, 4 cast specialists, 5 routes</span></div><div><span class="replay-bold">Team set up</span> with persistent charters and routing:</div><div>  <span class="replay-key">Jim</span>      Lead and architecture</div><div>  <span class="replay-key">Pam</span>      React frontend</div><div>  <span class="replay-key">Dwight</span>   Node backend</div><div>  <span class="replay-key">Oscar</span>    Testing and quality</div><div>Scribe, Ralph, Rai, and Fact Checker are configured as support agents.</div><div><span class="replay-dim">AI Credits 59.26 (5m 54s)</span></div></div></div><figcaption>A replay of the live demo. Press Replay, then type or press Enter to run each command. Long waits are sped up.</figcaption></figure>
<p>A coordinator routes your request to the right specialists, who run in parallel in their own context. Scribe merges decisions into <code>decisions.md</code> after each session. And Ralph, the work monitor, watches your issue backlog and keeps the team busy while you're asleep. In the second demo I gave the team a PRD as a GitHub issue and asked them to break it down. The issue list on top shows what happened in GitHub while the team worked:</p>
<figure class="replay" data-replay="{&#x22;title&#x22;:&#x22;~/planet-pizza-squad&#x22;,&#x22;steps&#x22;:[{&#x22;cmd&#x22;:&#x22;copilot --agent squad --yolo -p \&#x22;Here’s the PRD: issue #13. Break it down for the team.\&#x22;&#x22;,&#x22;at&#x22;:0},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;● skill(coordinator-response-mode)&#x22;]],&#x22;pause&#x22;:400,&#x22;at&#x22;:18},{&#x22;out&#x22;:[[&#x22;bold&#x22;,&#x22;Squad v2.0.0&#x22;],&#x22; — I’ll have Jim break #13 into scoped, assigned work items with acceptance criteria.&#x22;],&#x22;pause&#x22;:500,&#x22;at&#x22;:20},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;MD&#x22;],&#x22; Read .squad\\templates\\prd-intake.md&#x22;],&#x22;pause&#x22;:150,&#x22;at&#x22;:22},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;MD&#x22;],&#x22; Read .squad\\routing.md&#x22;],&#x22;pause&#x22;:150,&#x22;at&#x22;:31},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;MD&#x22;],&#x22; Read .squad\\team.md&#x22;],&#x22;pause&#x22;:150,&#x22;at&#x22;:31},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;$ Shell&#x22;],&#x22; Check existing work, governance, and installed skills&#x22;],&#x22;pause&#x22;:300,&#x22;at&#x22;:32},{&#x22;wait&#x22;:[&#x22;🏗️ Jim: Decompose tracking PRD&#x22;],&#x22;from&#x22;:66,&#x22;to&#x22;:250,&#x22;shown&#x22;:184},{&#x22;out&#x22;:[&#x22;Created five work items for #13:&#x22;],&#x22;pause&#x22;:300,&#x22;at&#x22;:270},{&#x22;out&#x22;:[&#x22;  &#x22;,[&#x22;key&#x22;,&#x22;#14&#x22;],&#x22; Lifecycle and status API      &#x22;,[&#x22;ok&#x22;,&#x22;Dwight&#x22;],&#x22;  —&#x22;],&#x22;pause&#x22;:120,&#x22;at&#x22;:270},{&#x22;out&#x22;:[&#x22;  &#x22;,[&#x22;key&#x22;,&#x22;#15&#x22;],&#x22; Tracking page, polling        &#x22;,[&#x22;ok&#x22;,&#x22;Pam&#x22;],&#x22;     #14&#x22;],&#x22;pause&#x22;:120,&#x22;at&#x22;:270},{&#x22;out&#x22;:[&#x22;  &#x22;,[&#x22;key&#x22;,&#x22;#16&#x22;],&#x22; Lookup form, tracking links   &#x22;,[&#x22;ok&#x22;,&#x22;Pam&#x22;],&#x22;     #15&#x22;],&#x22;pause&#x22;:120,&#x22;at&#x22;:270},{&#x22;out&#x22;:[&#x22;  &#x22;,[&#x22;key&#x22;,&#x22;#17&#x22;],&#x22; Lifecycle and API tests       &#x22;,[&#x22;ok&#x22;,&#x22;Oscar&#x22;],&#x22;   #14&#x22;],&#x22;pause&#x22;:120,&#x22;at&#x22;:270},{&#x22;out&#x22;:[&#x22;  &#x22;,[&#x22;key&#x22;,&#x22;#18&#x22;],&#x22; Tracking page tests           &#x22;,[&#x22;ok&#x22;,&#x22;Oscar&#x22;],&#x22;   #15, #16&#x22;],&#x22;pause&#x22;:300,&#x22;at&#x22;:271},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;AI Credits 40.78 (4m 29s)&#x22;]],&#x22;pause&#x22;:400,&#x22;at&#x22;:271},{&#x22;cmd&#x22;:&#x22;copilot --agent squad --yolo --resume=fea34fba -p \&#x22;Looks good. Ralph, go.\&#x22;&#x22;,&#x22;at&#x22;:300},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;MD&#x22;],&#x22; Read .squad\\templates\\ralph-reference.md&#x22;],&#x22;pause&#x22;:150,&#x22;at&#x22;:317},{&#x22;out&#x22;:[&#x22;Ralph is active. I’ll move #14–#18 through implementation and CI-gated auto-merge in dependency order, then close #13.&#x22;],&#x22;pause&#x22;:500,&#x22;at&#x22;:321},{&#x22;wait&#x22;:[&#x22;🔧 Dwight: Implement lifecycle API&#x22;],&#x22;from&#x22;:351,&#x22;to&#x22;:573,&#x22;shown&#x22;:222},{&#x22;out&#x22;:[&#x22;  &#x22;,[&#x22;dim&#x22;,&#x22;└ PR #19 merged through CI-gated auto-merge. #14 closed.&#x22;]],&#x22;pause&#x22;:400,&#x22;at&#x22;:573},{&#x22;wait&#x22;:[&#x22;🔄 Ralph: Scan tracking backlog&#x22;],&#x22;from&#x22;:607,&#x22;to&#x22;:632,&#x22;shown&#x22;:25},{&#x22;out&#x22;:[&#x22;  &#x22;,[&#x22;dim&#x22;,&#x22;└ Ready: #17 (Oscar). Blocked: #16, #18&#x22;]],&#x22;pause&#x22;:400,&#x22;at&#x22;:632},{&#x22;wait&#x22;:[&#x22;⚛️ Pam: Build tracking page&#x22;],&#x22;from&#x22;:632,&#x22;to&#x22;:848,&#x22;shown&#x22;:242},{&#x22;out&#x22;:[&#x22;  &#x22;,[&#x22;dim&#x22;,&#x22;└ PR #20 merged. #15 closed. 22 frontend tests pass.&#x22;]],&#x22;pause&#x22;:400,&#x22;at&#x22;:848},{&#x22;wait&#x22;:[&#x22;🧪 Oscar: Test lifecycle persistence&#x22;],&#x22;from&#x22;:866,&#x22;to&#x22;:1135,&#x22;shown&#x22;:269},{&#x22;out&#x22;:[&#x22;  &#x22;,[&#x22;dim&#x22;,&#x22;└ PR #21 auto-merged. #17 closed. 41 tests pass.&#x22;]],&#x22;pause&#x22;:400,&#x22;at&#x22;:1135},{&#x22;wait&#x22;:[&#x22;⚛️ Pam: Add tracking entry links&#x22;],&#x22;from&#x22;:1151,&#x22;to&#x22;:1492,&#x22;shown&#x22;:341},{&#x22;out&#x22;:[&#x22;  &#x22;,[&#x22;dim&#x22;,&#x22;└ PR #22 auto-squash merged. #16 closed.&#x22;]],&#x22;pause&#x22;:400,&#x22;at&#x22;:1492},{&#x22;wait&#x22;:[&#x22;🧪 Oscar: Test tracking UI&#x22;],&#x22;from&#x22;:1513,&#x22;to&#x22;:2480,&#x22;shown&#x22;:967},{&#x22;out&#x22;:[&#x22;  &#x22;,[&#x22;dim&#x22;,&#x22;└ PR #23 merged. #18 closed. 52 tests pass.&#x22;]],&#x22;pause&#x22;:400,&#x22;at&#x22;:2480},{&#x22;wait&#x22;:[&#x22;🔄 Ralph: Verify board clear&#x22;],&#x22;from&#x22;:2511,&#x22;to&#x22;:2541,&#x22;shown&#x22;:26},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;$ Shell&#x22;],&#x22; Close completed PRD&#x22;],&#x22;pause&#x22;:300,&#x22;at&#x22;:2545},{&#x22;out&#x22;:[[&#x22;bold&#x22;,&#x22;Order tracking is complete.&#x22;],&#x22; #14–#18 merged through CI-gated auto-merge, main CI is green, and #13 is closed.&#x22;],&#x22;pause&#x22;:500,&#x22;at&#x22;:2572},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;Changes    +1856 -66&#x22;]],&#x22;pause&#x22;:150,&#x22;at&#x22;:2573},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;AI Credits 224.15 (42m 51s)&#x22;]],&#x22;pause&#x22;:300,&#x22;at&#x22;:2573}],&#x22;caption&#x22;:&#x22;A replay of the live demo. Press Replay, then type or press Enter to run each command. Long waits are sped up.&#x22;,&#x22;window&#x22;:{&#x22;title&#x22;:&#x22;github.com/mvanderbend-msoft/planet-pizza-squad/issues&#x22;,&#x22;alt&#x22;:&#x22;The planet-pizza-squad issues on GitHub, captured every 8 seconds while the team worked through the backlog&#x22;,&#x22;frames&#x22;:[{&#x22;at&#x22;:-52,&#x22;src&#x22;:&#x22;/posts/lights-out-engineering/replay/one-prd-many-prs-01.jpg&#x22;},{&#x22;at&#x22;:140,&#x22;src&#x22;:&#x22;/posts/lights-out-engineering/replay/one-prd-many-prs-02.jpg&#x22;},{&#x22;at&#x22;:188,&#x22;src&#x22;:&#x22;/posts/lights-out-engineering/replay/one-prd-many-prs-03.jpg&#x22;},{&#x22;at&#x22;:204,&#x22;src&#x22;:&#x22;/posts/lights-out-engineering/replay/one-prd-many-prs-04.jpg&#x22;},{&#x22;at&#x22;:220,&#x22;src&#x22;:&#x22;/posts/lights-out-engineering/replay/one-prd-many-prs-05.jpg&#x22;},{&#x22;at&#x22;:508,&#x22;src&#x22;:&#x22;/posts/lights-out-engineering/replay/one-prd-many-prs-06.jpg&#x22;},{&#x22;at&#x22;:556,&#x22;src&#x22;:&#x22;/posts/lights-out-engineering/replay/one-prd-many-prs-07.jpg&#x22;},{&#x22;at&#x22;:812,&#x22;src&#x22;:&#x22;/posts/lights-out-engineering/replay/one-prd-many-prs-08.jpg&#x22;},{&#x22;at&#x22;:828,&#x22;src&#x22;:&#x22;/posts/lights-out-engineering/replay/one-prd-many-prs-09.jpg&#x22;},{&#x22;at&#x22;:844,&#x22;src&#x22;:&#x22;/posts/lights-out-engineering/replay/one-prd-many-prs-10.jpg&#x22;},{&#x22;at&#x22;:1084,&#x22;src&#x22;:&#x22;/posts/lights-out-engineering/replay/one-prd-many-prs-11.jpg&#x22;},{&#x22;at&#x22;:1116,&#x22;src&#x22;:&#x22;/posts/lights-out-engineering/replay/one-prd-many-prs-12.jpg&#x22;},{&#x22;at&#x22;:1436,&#x22;src&#x22;:&#x22;/posts/lights-out-engineering/replay/one-prd-many-prs-13.jpg&#x22;},{&#x22;at&#x22;:1468,&#x22;src&#x22;:&#x22;/posts/lights-out-engineering/replay/one-prd-many-prs-14.jpg&#x22;},{&#x22;at&#x22;:2428,&#x22;src&#x22;:&#x22;/posts/lights-out-engineering/replay/one-prd-many-prs-15.jpg&#x22;},{&#x22;at&#x22;:2460,&#x22;src&#x22;:&#x22;/posts/lights-out-engineering/replay/one-prd-many-prs-16.jpg&#x22;},{&#x22;at&#x22;:2524,&#x22;src&#x22;:&#x22;/posts/lights-out-engineering/replay/one-prd-many-prs-17.jpg&#x22;},{&#x22;at&#x22;:2540,&#x22;src&#x22;:&#x22;/posts/lights-out-engineering/replay/one-prd-many-prs-18.jpg&#x22;}]}}"><div class="replay-window"><div class="replay-bar"><span class="replay-dots" aria-hidden="true"></span><span class="replay-title">github.com/mvanderbend-msoft/planet-pizza-squad/issues</span></div><img src="/posts/lights-out-engineering/replay/one-prd-many-prs-18.jpg" alt="The planet-pizza-squad issues on GitHub, captured every 8 seconds while the team worked through the backlog" loading="lazy" decoding="async" width="985" height="701"></div><div class="replay-terminal"><div class="replay-bar"><span class="replay-dots" aria-hidden="true"></span><span class="replay-title">~/planet-pizza-squad</span></div><div class="replay-body" tabindex="0" role="region" aria-label="Terminal transcript: ~/planet-pizza-squad"><div><span class="replay-dim">$</span> copilot --agent squad --yolo -p "Here’s the PRD: issue #13. Break it down for the team."</div><div><span class="replay-dim">● skill(coordinator-response-mode)</span></div><div><span class="replay-bold">Squad v2.0.0</span> — I’ll have Jim break #13 into scoped, assigned work items with acceptance criteria.</div><div><span class="replay-dim">MD</span> Read .squad\templates\prd-intake.md</div><div><span class="replay-dim">MD</span> Read .squad\routing.md</div><div><span class="replay-dim">MD</span> Read .squad\team.md</div><div><span class="replay-dim">$ Shell</span> Check existing work, governance, and installed skills</div><div>● 🏗️ Jim: Decompose tracking PRD <span class="replay-dim">3m 04s</span> <span class="replay-ok">✓</span></div><div>Created five work items for #13:</div><div>  <span class="replay-key">#14</span> Lifecycle and status API      <span class="replay-ok">Dwight</span>  —</div><div>  <span class="replay-key">#15</span> Tracking page, polling        <span class="replay-ok">Pam</span>     #14</div><div>  <span class="replay-key">#16</span> Lookup form, tracking links   <span class="replay-ok">Pam</span>     #15</div><div>  <span class="replay-key">#17</span> Lifecycle and API tests       <span class="replay-ok">Oscar</span>   #14</div><div>  <span class="replay-key">#18</span> Tracking page tests           <span class="replay-ok">Oscar</span>   #15, #16</div><div><span class="replay-dim">AI Credits 40.78 (4m 29s)</span></div><div><span class="replay-dim">$</span> copilot --agent squad --yolo --resume=fea34fba -p "Looks good. Ralph, go."</div><div><span class="replay-dim">MD</span> Read .squad\templates\ralph-reference.md</div><div>Ralph is active. I’ll move #14–#18 through implementation and CI-gated auto-merge in dependency order, then close #13.</div><div>● 🔧 Dwight: Implement lifecycle API <span class="replay-dim">3m 42s</span> <span class="replay-ok">✓</span></div><div>  <span class="replay-dim">└ PR #19 merged through CI-gated auto-merge. #14 closed.</span></div><div>● 🔄 Ralph: Scan tracking backlog <span class="replay-dim">0m 25s</span> <span class="replay-ok">✓</span></div><div>  <span class="replay-dim">└ Ready: #17 (Oscar). Blocked: #16, #18</span></div><div>● ⚛️ Pam: Build tracking page <span class="replay-dim">4m 02s</span> <span class="replay-ok">✓</span></div><div>  <span class="replay-dim">└ PR #20 merged. #15 closed. 22 frontend tests pass.</span></div><div>● 🧪 Oscar: Test lifecycle persistence <span class="replay-dim">4m 29s</span> <span class="replay-ok">✓</span></div><div>  <span class="replay-dim">└ PR #21 auto-merged. #17 closed. 41 tests pass.</span></div><div>● ⚛️ Pam: Add tracking entry links <span class="replay-dim">5m 41s</span> <span class="replay-ok">✓</span></div><div>  <span class="replay-dim">└ PR #22 auto-squash merged. #16 closed.</span></div><div>● 🧪 Oscar: Test tracking UI <span class="replay-dim">16m 07s</span> <span class="replay-ok">✓</span></div><div>  <span class="replay-dim">└ PR #23 merged. #18 closed. 52 tests pass.</span></div><div>● 🔄 Ralph: Verify board clear <span class="replay-dim">0m 26s</span> <span class="replay-ok">✓</span></div><div><span class="replay-dim">$ Shell</span> Close completed PRD</div><div><span class="replay-bold">Order tracking is complete.</span> #14–#18 merged through CI-gated auto-merge, main CI is green, and #13 is closed.</div><div><span class="replay-dim">Changes    +1856 -66</span></div><div><span class="replay-dim">AI Credits 224.15 (42m 51s)</span></div></div></div><figcaption>A replay of the live demo. Press Replay, then type or press Enter to run each command. Long waits are sped up.</figcaption></figure>
<p>Squad even runs a <a href="https://github.github.com/squad/docs/features/ceremonies/" rel="noopener noreferrer">retro</a> after a broken build or a rejected review, and turns the actions into GitHub issues. Nothing had failed here, so I asked for one:</p>
<figure class="replay" data-replay="{&#x22;title&#x22;:&#x22;~/planet-pizza-squad&#x22;,&#x22;steps&#x22;:[{&#x22;cmd&#x22;:&#x22;copilot --agent squad --yolo --resume=fea34fba -p \&#x22;Run a retro on the order tracking work.\&#x22;&#x22;},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;MD&#x22;],&#x22; Read .squad\\templates\\ceremony-reference.md&#x22;],&#x22;pause&#x22;:300},{&#x22;out&#x22;:[&#x22;Jim will lead a focused retro on the order-tracking delivery, using the merged PRs and CI evidence to identify concrete improvements.&#x22;],&#x22;pause&#x22;:600},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;$ Shell&#x22;],&#x22; Gather retro scope and existing follow-up issues&#x22;],&#x22;pause&#x22;:300},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;$ Shell&#x22;],&#x22; Check ceremony skills and registered repository workflows&#x22;],&#x22;pause&#x22;:400},{&#x22;out&#x22;:[&#x22;● 🏗️ &#x22;,[&#x22;bold&#x22;,&#x22;Jim&#x22;],&#x22;: Lead tracking retrospective &#x22;,[&#x22;dim&#x22;,&#x22;(sub-agent)&#x22;]],&#x22;pause&#x22;:400},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;  │&#x22;],&#x22; &#x22;,[&#x22;dim&#x22;,&#x22;skill&#x22;],&#x22; agent-collaboration&#x22;],&#x22;pause&#x22;:250},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;  │&#x22;],&#x22; &#x22;,[&#x22;dim&#x22;,&#x22;Read&#x22;],&#x22; .squad\\agents\\jim\\charter.md&#x22;],&#x22;pause&#x22;:200},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;  │&#x22;],&#x22; &#x22;,[&#x22;dim&#x22;,&#x22;Read&#x22;],&#x22; .squad\\decisions.md  &#x22;,[&#x22;dim&#x22;,&#x22;No decisions recorded yet.&#x22;]],&#x22;pause&#x22;:300},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;  │&#x22;],&#x22; &#x22;,[&#x22;dim&#x22;,&#x22;$ Shell&#x22;],&#x22; Inspect PRD evidence and retro dedup&#x22;],&#x22;pause&#x22;:300},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;  │&#x22;],&#x22; &#x22;,[&#x22;dim&#x22;,&#x22;Read&#x22;],&#x22; .squad\\ceremonies.md  &#x22;,[&#x22;dim&#x22;,&#x22;Retro participants:&#x22;],&#x22; all-involved&#x22;],&#x22;pause&#x22;:300},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;  │&#x22;],&#x22; &#x22;,[&#x22;key&#x22;,&#x22;Open question is about tests: UI harness only landed in #23 (Oscar).&#x22;]],&#x22;pause&#x22;:500},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;  │&#x22;],&#x22; &#x22;,[&#x22;key&#x22;,&#x22;Ask Oscar. Pam and Dwight: use their PR write-ups, no extra agents.&#x22;]],&#x22;pause&#x22;:700},{&#x22;wait&#x22;:[&#x22;🧪 &#x22;,[&#x22;bold&#x22;,&#x22;Oscar&#x22;],&#x22;: \&#x22;What did we learn about the tests? Evidence, not opinions.\&#x22;&#x22;],&#x22;from&#x22;:0,&#x22;to&#x22;:25,&#x22;shown&#x22;:25,&#x22;prefix&#x22;:[[&#x22;dim&#x22;,&#x22;  │&#x22;],&#x22; &#x22;]},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;  │&#x22;],&#x22;   &#x22;,[&#x22;dim&#x22;,&#x22;skill&#x22;],&#x22; test-discipline  &#x22;,[&#x22;dim&#x22;,&#x22;Read&#x22;],&#x22; tracking-pages.test.cjs&#x22;],&#x22;pause&#x22;:250},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;  │&#x22;],&#x22;   &#x22;,[&#x22;dim&#x22;,&#x22;└&#x22;],&#x22; Keep controller + mounted + browser test layers. &#x22;,[&#x22;ok&#x22;,&#x22;High confidence.&#x22;]],&#x22;pause&#x22;:600},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;  │&#x22;],&#x22; &#x22;,[&#x22;dim&#x22;,&#x22;Read&#x22;],&#x22; ci.yml, order-status.ts, orderTrackingStore.ts&#x22;],&#x22;pause&#x22;:300},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;  │&#x22;],&#x22; &#x22;,[&#x22;dim&#x22;,&#x22;$ Shell&#x22;],&#x22; Confirm issue sequencing and retro-action dedup&#x22;],&#x22;pause&#x22;:300},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;  │&#x22;],&#x22; &#x22;,[&#x22;dim&#x22;,&#x22;$ Shell&#x22;],&#x22; Create two accountable retro follow-ups  &#x22;,[&#x22;key&#x22;,&#x22;#24 #25&#x22;]],&#x22;pause&#x22;:400},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;  │&#x22;],&#x22; &#x22;,[&#x22;dim&#x22;,&#x22;$ Shell&#x22;],&#x22; Publish and verify retrospective  &#x22;,[&#x22;key&#x22;,&#x22;→ #13&#x22;]],&#x22;pause&#x22;:400},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;  └&#x22;],&#x22; &#x22;,[&#x22;ok&#x22;,&#x22;✓&#x22;],&#x22; &#x22;,[&#x22;dim&#x22;,&#x22;2m 16s&#x22;]],&#x22;pause&#x22;:400},{&#x22;out&#x22;:[],&#x22;pause&#x22;:100},{&#x22;out&#x22;:[[&#x22;key&#x22;,&#x22;📋 Retrospective completed&#x22;],&#x22; — facilitated by Jim, with Oscar’s contribution.&#x22;],&#x22;pause&#x22;:600},{&#x22;out&#x22;:[[&#x22;bold&#x22;,&#x22;Went well&#x22;],&#x22;  5 PRs, each CI-gated and auto-merged. 52 tests pass.&#x22;],&#x22;pause&#x22;:400},{&#x22;out&#x22;:[[&#x22;bold&#x22;,&#x22;Friction&#x22;],&#x22;   Plan said #15 and #17 could run in parallel; delivery ran serially.&#x22;],&#x22;pause&#x22;:400},{&#x22;out&#x22;:[&#x22;           Mounted UI test harness only arrived in the last PR (#23).&#x22;],&#x22;pause&#x22;:400},{&#x22;out&#x22;:[[&#x22;bold&#x22;,&#x22;Actions&#x22;],&#x22;    &#x22;,[&#x22;key&#x22;,&#x22;#24&#x22;],&#x22; Declare planned and actual execution mode       &#x22;,[&#x22;ok&#x22;,&#x22;Jim&#x22;]],&#x22;pause&#x22;:200},{&#x22;out&#x22;:[&#x22;           &#x22;,[&#x22;key&#x22;,&#x22;#25&#x22;],&#x22; Check test readiness before next async UI work  &#x22;,[&#x22;ok&#x22;,&#x22;Oscar&#x22;]],&#x22;pause&#x22;:500},{&#x22;out&#x22;:[],&#x22;pause&#x22;:100},{&#x22;out&#x22;:[[&#x22;dim&#x22;,&#x22;● memory.write&#x22;],&#x22; Stored memory in .squad\\memory\\local &#x22;,[&#x22;dim&#x22;,&#x22;(coordinator)&#x22;]],&#x22;pause&#x22;:400}],&#x22;caption&#x22;:&#x22;A replay of the live demo. Press Replay, then type or press Enter to run each command. Long waits are sped up.&#x22;}"><div class="replay-terminal"><div class="replay-bar"><span class="replay-dots" aria-hidden="true"></span><span class="replay-title">~/planet-pizza-squad</span></div><div class="replay-body" tabindex="0" role="region" aria-label="Terminal transcript: ~/planet-pizza-squad"><div><span class="replay-dim">$</span> copilot --agent squad --yolo --resume=fea34fba -p "Run a retro on the order tracking work."</div><div><span class="replay-dim">MD</span> Read .squad\templates\ceremony-reference.md</div><div>Jim will lead a focused retro on the order-tracking delivery, using the merged PRs and CI evidence to identify concrete improvements.</div><div><span class="replay-dim">$ Shell</span> Gather retro scope and existing follow-up issues</div><div><span class="replay-dim">$ Shell</span> Check ceremony skills and registered repository workflows</div><div>● 🏗️ <span class="replay-bold">Jim</span>: Lead tracking retrospective <span class="replay-dim">(sub-agent)</span></div><div><span class="replay-dim">  │</span> <span class="replay-dim">skill</span> agent-collaboration</div><div><span class="replay-dim">  │</span> <span class="replay-dim">Read</span> .squad\agents\jim\charter.md</div><div><span class="replay-dim">  │</span> <span class="replay-dim">Read</span> .squad\decisions.md  <span class="replay-dim">No decisions recorded yet.</span></div><div><span class="replay-dim">  │</span> <span class="replay-dim">$ Shell</span> Inspect PRD evidence and retro dedup</div><div><span class="replay-dim">  │</span> <span class="replay-dim">Read</span> .squad\ceremonies.md  <span class="replay-dim">Retro participants:</span> all-involved</div><div><span class="replay-dim">  │</span> <span class="replay-key">Open question is about tests: UI harness only landed in #23 (Oscar).</span></div><div><span class="replay-dim">  │</span> <span class="replay-key">Ask Oscar. Pam and Dwight: use their PR write-ups, no extra agents.</span></div><div><span class="replay-dim">  │</span> ● 🧪 <span class="replay-bold">Oscar</span>: "What did we learn about the tests? Evidence, not opinions." <span class="replay-dim">0m 25s</span> <span class="replay-ok">✓</span></div><div><span class="replay-dim">  │</span>   <span class="replay-dim">skill</span> test-discipline  <span class="replay-dim">Read</span> tracking-pages.test.cjs</div><div><span class="replay-dim">  │</span>   <span class="replay-dim">└</span> Keep controller + mounted + browser test layers. <span class="replay-ok">High confidence.</span></div><div><span class="replay-dim">  │</span> <span class="replay-dim">Read</span> ci.yml, order-status.ts, orderTrackingStore.ts</div><div><span class="replay-dim">  │</span> <span class="replay-dim">$ Shell</span> Confirm issue sequencing and retro-action dedup</div><div><span class="replay-dim">  │</span> <span class="replay-dim">$ Shell</span> Create two accountable retro follow-ups  <span class="replay-key">#24 #25</span></div><div><span class="replay-dim">  │</span> <span class="replay-dim">$ Shell</span> Publish and verify retrospective  <span class="replay-key">→ #13</span></div><div><span class="replay-dim">  └</span> <span class="replay-ok">✓</span> <span class="replay-dim">2m 16s</span></div><div></div><div><span class="replay-key">📋 Retrospective completed</span> — facilitated by Jim, with Oscar’s contribution.</div><div><span class="replay-bold">Went well</span>  5 PRs, each CI-gated and auto-merged. 52 tests pass.</div><div><span class="replay-bold">Friction</span>   Plan said #15 and #17 could run in parallel; delivery ran serially.</div><div>           Mounted UI test harness only arrived in the last PR (#23).</div><div><span class="replay-bold">Actions</span>    <span class="replay-key">#24</span> Declare planned and actual execution mode       <span class="replay-ok">Jim</span></div><div>           <span class="replay-key">#25</span> Check test readiness before next async UI work  <span class="replay-ok">Oscar</span></div><div></div><div><span class="replay-dim">● memory.write</span> Stored memory in .squad\memory\local <span class="replay-dim">(coordinator)</span></div></div></div><figcaption>A replay of the live demo. Press Replay, then type or press Enter to run each command. Long waits are sped up.</figcaption></figure>
<p>It's powerful. But it can also overwhelm you: it takes effort to fit into your codebase and asks people to change how they work. So in the talk I took it apart.</p>
<h2 id="take-it-apart-three-things-you-need">Take it apart: three things you need</h2>
<p>It comes down to three things:</p>
<ol>
<li><strong>Autonomy.</strong> The work starts, runs and gets checked without you sitting next to it.</li>
<li><strong>Context.</strong> The agent knows what to do before it starts.</li>
<li><strong>Memory.</strong> The team gets smarter with every run.</li>
</ol>
<h3 id="autonomy-in-the-execution-layer">Autonomy: in the execution layer</h3>
<p>Software development isn't only implementation. There's requirements, specs, reviews and deployments too. Both stories above say the same thing about where autonomy belongs: in the execution.</p>
<p><img src="/posts/lights-out-engineering/spec-to-execution.png" alt="A five-step flow titled &#x22;People own the spec. Agents own the execution.&#x22;: Specify with you and an agent, Clarify and plan where you decide, Tasks that the agent drafts and you check, Execute marked lights out, and Review where you merge" loading="lazy" decoding="async" width="1600" height="900"></p>
<p>You steer the spec and the plan. The agent drafts the tasks and you check them. Then the lights go out for the execution. And at the end, AI review comes first, then people, and you merge.</p>
<p>GitHub already gives you most of the execution layer:</p>
<ul>
<li><strong><a href="https://docs.github.com/en/copilot/concepts/agents/cloud-agent" rel="noopener noreferrer">Copilot cloud agent</a>.</strong> Assign an issue or start a task from the Agents tab, pick a custom agent and a model, and it works in a GitHub-hosted sandbox, in GitHub Actions, or on a machine of your own. An enterprise policy controls where it's available, so you can start with a few repos.</li>
<li><strong><a href="https://github.github.com/gh-aw/" rel="noopener noreferrer">Agentic workflows</a>.</strong> GitHub Actions workflows where an agent does the work, written in plain Markdown. The difference with the cloud agent is what starts them: an event or a schedule instead of a person.</li>
<li><strong>Built-in checks.</strong> By default the cloud agent <a href="https://docs.github.com/copilot/concepts/agents/coding-agent/risks-and-mitigations" rel="noopener noreferrer">checks its own work</a> before handing it over: CodeQL, new dependencies against the GitHub Advisory Database, secret scanning and a Copilot code review. If something turns up, it tries to fix it first.</li>
</ul>
<h3 id="context-write-down-what-it-would-ask-you">Context: write down what it would ask you</h3>
<p>A cloud agent has nobody to ask. So you write down what it would otherwise ask you:</p>
<ul>
<li><strong>Instruction files</strong> like <code>copilot-instructions.md</code> or <code>AGENTS.md</code>. For delegation, the most useful parts are practical: how to build and test, what to check before opening a pull request, which folders to leave alone, and what to do when it isn't sure.</li>
<li><strong><a href="https://docs.github.com/en/copilot/how-tos/use-copilot-agents/cloud-agent/create-custom-agents" rel="noopener noreferrer">Custom agents</a></strong> in <code>.github/agents</code>. Specialists with their own instructions and tools. My frontend engineer may only change the frontend folder and adds a Playwright test for every new page. Like Squad's team, without the framework.</li>
<li><strong>Clear issues.</strong> The issue is the only conversation the agent gets: a goal, acceptance criteria, the files that matter and what's out of scope.</li>
</ul>
<p>To get to issues like that, I use spec-driven development with <a href="https://github.com/github/spec-kit" rel="noopener noreferrer">Spec Kit</a> (<a href="https://github.com/Fission-AI/OpenSpec" rel="noopener noreferrer">OpenSpec</a> works too). You write the spec, clear up open questions and make a plan locally, with you steering. Then <code>/speckit.taskstoissues</code> turns <code>tasks.md</code> into GitHub issues. I customized it a bit: one parent issue for the feature, each task as a sub-issue, and dependencies linked as "blocked by".</p>
<p>From there, agentic workflows take over in my demo:</p>
<ol>
<li>When a task gets its label, a workflow finds the tasks that aren't blocked, picks the right specialist for each one and assigns it to Copilot with that custom agent. It leaves a comment saying why.</li>
<li>Every task gets its own specialist, its own session and its own small pull request. Much easier to review than one big one.</li>
<li>When Copilot finishes, a workflow requests Copilot code review, lets Copilot fix the comments and merges. Merging closes the task, so the next unblocked tasks get picked up.</li>
<li>When the last task closes, a final workflow starts the app, takes a screenshot, checks each scenario from the spec and closes the feature.</li>
</ol>
<p>The part I'm happiest with is how the assign workflow splits plumbing from judgment. Fixed code works out which tasks are ready and does the actual assignment. The agent only decides who should do the work:</p>
<pre class="shiki shiki-themes github-light github-dark" tabindex="0"><code class="language-md"><span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">For </span><span style="color:#24292E;--shiki-light-font-weight:bold;--shiki-dark:#E1E4E8;--shiki-dark-font-weight:bold">**each**</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> ready issue:</span></span>
<span class="line"></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">1.</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Read the issue title and body. The body points to </span><span style="color:#005CC5;--shiki-dark:#79B8FF">`specs/&#x3C;feature>/`</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> — read the</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">   matching task in </span><span style="color:#005CC5;--shiki-dark:#79B8FF">`tasks.md`</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> and the </span><span style="color:#005CC5;--shiki-dark:#79B8FF">`plan.md`</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> if you need more context.</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">2.</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Pick the </span><span style="color:#24292E;--shiki-light-font-weight:bold;--shiki-dark:#E1E4E8;--shiki-dark-font-weight:bold">**one**</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> specialist from </span><span style="color:#005CC5;--shiki-dark:#79B8FF">`.github/agents/`</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> that should do the work.</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">   -</span><span style="color:#005CC5;--shiki-dark:#79B8FF"> `frontend-engineer`</span><span style="color:#24292E;--shiki-dark:#E1E4E8">: UI, pages, components, API client code in </span><span style="color:#005CC5;--shiki-dark:#79B8FF">`frontend/`</span><span style="color:#24292E;--shiki-dark:#E1E4E8">.</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">   -</span><span style="color:#005CC5;--shiki-dark:#79B8FF"> `backend-engineer`</span><span style="color:#24292E;--shiki-dark:#E1E4E8">: API routes, validation, database and business logic in </span><span style="color:#005CC5;--shiki-dark:#79B8FF">`backend/`</span><span style="color:#24292E;--shiki-dark:#E1E4E8">.</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">   -</span><span style="color:#005CC5;--shiki-dark:#79B8FF"> `design-assets`</span><span style="color:#24292E;--shiki-dark:#E1E4E8">: styling, theme, layout polish, SVG images.</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">   -</span><span style="color:#005CC5;--shiki-dark:#79B8FF"> `tester`</span><span style="color:#24292E;--shiki-dark:#E1E4E8">: adding or fixing automated tests, build/verification-only tasks.</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">3.</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Add the label </span><span style="color:#005CC5;--shiki-dark:#79B8FF">`agent:&#x3C;specialist>`</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> to that issue.</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">4.</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Call </span><span style="color:#005CC5;--shiki-dark:#79B8FF">`assign_specialist`</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> with the </span><span style="color:#005CC5;--shiki-dark:#79B8FF">`issue_number`</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> and the specialist name.</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">5.</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Add one short comment (1–2 sentences) to that issue: which specialist you picked and why.</span></span></code></pre>
<h3 id="memory-give-your-agent-a-notebook">Memory: give your agent a notebook</h3>
<p>The last piece is memory, so the next agent knows what the last one learned, and why. I wrote a whole post on this: <a href="/posts/give-your-agent-a-notebook/">Give your agent a notebook</a>. It covers Anthropic's benchmark, GitHub's citation-based memory, <a href="https://docs.github.com/en/copilot/concepts/prompting-and-context/copilot-memory" rel="noopener noreferrer">Copilot Memory</a> and <a href="https://docs.github.com/en/copilot/concepts/prompting-and-context/copilot-dreaming" rel="noopener noreferrer">Copilot Dreaming</a>.</p>
<p>The short version for lights-out work: start with a folder of Markdown notes, only write down what the agent can't look up in the repo, make every note checkable, and let an agentic workflow tidy it up every week. My <a href="https://github.com/mvanderbend-msoft/agent-notebook" rel="noopener noreferrer">agent-notebook</a> kit sets that up for you.</p>
<h2 id="one-night-on-the-lights-out-shift">One night on the lights-out shift</h2>
<p>Put together, it looks like this:</p>
<p><img src="/posts/lights-out-engineering/lights-out-shift.png" alt="A timeline titled &#x22;One night on the lights-out shift&#x22;: 16:00 spec and plan with you steering, 17:30 tasks to issues where you decide what goes in, 22:00 agents pick up the work as a workflow assigns each ready issue to the right custom agent, 03:00 CodeQL, secret scanning and code review on every pull request, 05:00 agents save what they learned and a workflow tidies the notebook, 08:30 you review over coffee and merge or send back" loading="lazy" decoding="async" width="1600" height="900"></p>
<p>Human-led at the start, autonomous in the middle, human-approved at the end. Lights out doesn't mean nobody is in charge.</p>
<h2 id="whats-not-there-yet">What's not there yet</h2>
<ul>
<li><strong>My review gate merges without a human.</strong> That's the point of the demo, so you can see the whole loop. In a real project, that's where a person steps in. Keep branch protection on and decide which changes still need a person.</li>
<li><strong>Not every task fits.</strong> New features and performance work had the lowest merge rates in dotnet/runtime. For work that needs judgment, an agent on your own machine, where you can steer it, may be a better fit.</li>
<li><strong>It takes setup.</strong> Custom agents, a token that can assign Copilot, compiled workflows. That's a lot less than a full framework, but it's not nothing.</li>
<li><strong>Garbage in, garbage out.</strong> It all depends on the spec. If you don't know exactly what you want, the agents will happily build the wrong thing very fast.</li>
</ul>
<h2 id="want-to-try-it">Want to try it?</h2>
<p>Three things I'd take home:</p>
<ol>
<li><strong>Your job moves to both ends.</strong> You decide what to build, make the tasks clear and check the result.</li>
<li><strong>The setup makes it work, not the model alone.</strong> Clear tasks, instructions, memory and checks are the parts you control.</li>
<li><strong>Start small, this week.</strong> Take one spec, split it into a few small issues and assign them to the cloud agent. Add more only when you see it helps.</li>
</ol>
<p>The template from my demo, with the custom agents, the customized Spec Kit command and the workflows, is in <a href="https://github.com/mvanderbend-msoft/lights-out-engineering" rel="noopener noreferrer">lights-out-engineering</a>. If you try it, break it, or find a part that's annoying, I'd really like to hear about it.</p>
<h2 id="references">References</h2>
<ul>
<li>Stephen Toub: <a href="https://devblogs.microsoft.com/dotnet/ten-months-with-cca-in-dotnet-runtime/" rel="noopener noreferrer">Ten Months with Copilot Coding Agent in dotnet/runtime</a></li>
<li>Bas Brekelmans: <a href="https://commandline.microsoft.com/how-we-built-copilot-cowork-python-to-rust-migration/" rel="noopener noreferrer">Nine engineers, 1,211 pull requests in a day: Lessons from building Copilot Cowork</a></li>
<li>GitHub Blog: <a href="https://github.blog/news-insights/octoverse/octoverse-commits-pushes-reach-new-highs-in-2026-as-developers-build-with-agents/" rel="noopener noreferrer">Octoverse: Commits, pushes reach new highs in 2026 as developers build with agents</a></li>
<li>Squad: <a href="https://github.com/github/squad" rel="noopener noreferrer">GitHub repository</a>, <a href="https://github.github.com/squad/" rel="noopener noreferrer">documentation</a> and <a href="https://github.github.com/squad/docs/features/ceremonies/" rel="noopener noreferrer">ceremonies</a></li>
<li><a href="https://github.com/github/spec-kit" rel="noopener noreferrer">GitHub Spec Kit</a> and <a href="https://github.com/Fission-AI/OpenSpec" rel="noopener noreferrer">OpenSpec</a></li>
<li>GitHub Docs: <a href="https://docs.github.com/en/copilot/concepts/agents/cloud-agent" rel="noopener noreferrer">Copilot cloud agent</a></li>
<li>GitHub Docs: <a href="https://docs.github.com/en/copilot/how-tos/use-copilot-agents/cloud-agent/create-custom-agents" rel="noopener noreferrer">Creating custom agents</a></li>
<li>GitHub Docs: <a href="https://docs.github.com/copilot/concepts/agents/coding-agent/risks-and-mitigations" rel="noopener noreferrer">Risks and mitigations for Copilot cloud agent</a></li>
<li><a href="https://github.github.com/gh-aw/" rel="noopener noreferrer">GitHub Agentic Workflows</a></li>
<li>My earlier post: <a href="/posts/give-your-agent-a-notebook/">Give your agent a notebook</a></li>
<li>My kits: <a href="https://github.com/mvanderbend-msoft/lights-out-engineering" rel="noopener noreferrer">lights-out-engineering</a> and <a href="https://github.com/mvanderbend-msoft/agent-notebook" rel="noopener noreferrer">agent-notebook</a></li>
</ul>]]></content:encoded>
    </item>
    <item>
      <title>Give your agent a notebook</title>
      <link>https://www.michaelvdbend.dev/posts/give-your-agent-a-notebook</link>
      <guid isPermaLink="true">https://www.michaelvdbend.dev/posts/give-your-agent-a-notebook</guid>
      <pubDate>Fri, 13 Nov 2026 00:00:00 GMT</pubDate>
      <description>What agentic memory is, what the numbers say so far, and how I gave my coding agent a small notebook it can check and keep tidy.</description>
      <content:encoded><![CDATA[<p><strong>TL;DR</strong></p>
<ul>
<li>Agentic memory is a notebook your coding agent keeps for itself: it writes down what it learns while working and reads it back in the next session.</li>
<li>The early numbers look promising. In Anthropic's benchmark, a memory folder roughly doubled the score of some models, but an older model barely improved. In GitHub's A/B tests, Copilot Memory raised the share of merged coding agent pull requests from 83% to 90%.</li>
<li>You don't have to build it: Squad, Copilot Memory and Copilot Dreaming already do this. But a small notebook of your own is a good way to learn what works.</li>
<li>My rules for starting small: one folder of Markdown, explain why instead of how, only save what the agent can't look up, make every note checkable, and let an agent tidy it up every week.</li>
<li>I tried it on a small webshop. The agent read only the notes it needed, saved a decision the code couldn't explain, and the weekly clean-up caught 6 of 7 problems I planted.</li>
</ul>
<p>I've been demoing <a href="https://github.com/bradygaster/squad" rel="noopener noreferrer">Squad</a>, a framework for AI agent teams, quite a lot lately. One part kept catching my attention: the memory. Every agent keeps its own history file, and there's a shared <code>decisions.md</code> that the whole team reads before starting. Close the chat, open a new one, and the team picks up roughly where it left off.</p>
<p>That made me look at how I usually work with coding agents. A new chat often means starting from zero. The agent might walk into the same trap as yesterday, or ask about a decision you already explained. Instruction files help, but they don't capture what the agent learns along the way.</p>
<p>So I wanted to understand agentic memory a bit better: what it is, what the evidence says so far, and how you could try it without building a big system. To be clear, this is about memory for the agents that help you build software: in your editor, your pull requests and your CI. Not about adding memory to the AI features in your own product. That's a different topic.</p>
<h2 id="chapters">Chapters</h2>
<ul>
<li><a href="#so-what-is-it">So what is it?</a></li>
<li><a href="#does-it-actually-help">Does it actually help?</a></li>
<li><a href="#you-dont-have-to-build-it-yourself">You don't have to build it yourself</a></li>
<li><a href="#how-id-start-small">How I'd start: small</a></li>
<li><a href="#so-i-tried-it">So I tried it</a>
<ul>
<li><a href="#what-the-notebook-looks-like">What the notebook looks like</a></li>
<li><a href="#test-1-does-the-agent-use-the-notebook">Test 1: does the agent use the notebook?</a></li>
<li><a href="#test-2-does-it-write-good-notes">Test 2: does it write good notes?</a></li>
<li><a href="#test-3-does-the-clean-up-work">Test 3: does the clean-up work?</a></li>
</ul>
</li>
<li><a href="#what-i-like-about-this">What I like about this</a></li>
<li><a href="#whats-not-there-yet">What's not there yet</a></li>
<li><a href="#want-to-try-it">Want to try it?</a></li>
<li><a href="#references">References</a></li>
</ul>
<h2 id="so-what-is-it">So what is it?</h2>
<p>The idea is pretty simple: give your coding agent a notebook. While it works, it writes down stuff that's worth keeping, like facts, rules or mistakes to avoid. Next time it starts, it reads the notebook first (ideally only the bits that matter) instead of starting from zero.</p>
<p>GitHub puts it like this in <a href="https://github.blog/ai-and-ml/github-copilot/building-an-agentic-memory-system-for-github-copilot/" rel="noopener noreferrer">their post on Copilot's memory</a>: "Cross-agent memory allows agents to remember and learn from experiences across your development workflow, without relying on explicit user instructions." So it's really about agents that work on their own. They should be able to self-instruct. Not self-destruct.</p>
<p>I like to think of every note as a little bet. A rule says "I think this will come up again." A checked fact says "trust me, you don't need to check this again." And from what I've read so far, newer models seem to be getting better at making those bets.</p>
<h2 id="does-it-actually-help">Does it actually help?</h2>
<p>I wanted numbers, not vibes. Two places had them.</p>
<h3 id="anthropic-memory-only-helps-if-the-model-knows-how-to-use-it">Anthropic: memory only helps if the model knows how to use it</h3>
<p>Anthropic wrote about this in <a href="https://www.anthropic.com/research/components-of-agent-memory" rel="noopener noreferrer">The components of agent memory</a>, using a benchmark called <a href="https://arxiv.org/abs/2606.05661" rel="noopener noreferrer">CL-Bench</a> (Continual Learning Bench). The setup is neat. It's not a coding task, but it tests the same skill a coding agent needs: learning from one session and using it in the next. The agent gets thirty questions, and for each one it has to look things up in a database to find the answer. Afterwards it's told the right answer and can leave itself a note in a memory folder.</p>
<p>The catch: every question starts in a brand new session. The agent forgets everything except that folder. So the only way to do better next time is to write down what it learned. Same model, same questions, with or without the folder.</p>
<p>Scores run from 0 to 1:</p>
<ul>
<li>Sonnet 5 doubles, from 0.31 to 0.61.</li>
<li>Opus 4.7 goes from 0.38 to 0.70, and Opus 5 from 0.56 to 0.83.</li>
<li>Opus 5.5 and Sonnet 5.5 go from about 0.65 to about 0.84.</li>
<li>Sonnet 4.6, with the exact same setup, barely moves: 0.33 to 0.36.</li>
</ul>
<p><img src="/posts/give-your-agent-a-notebook/cl-bench-chart.png" alt="Bar chart of CL-Bench database task scores without and with memory: Opus 5.5 from 0.655 to 0.838, Sonnet 5.5 from 0.644 to 0.833, Opus 5 from 0.564 to 0.828, Opus 4.7 from 0.383 to 0.700, Sonnet 5 from 0.306 to 0.610, and Sonnet 4.6 from 0.330 to 0.364" loading="lazy" decoding="async" width="1624" height="1068"></p>
<p>So just having memory isn't enough. Sonnet 4.6 mostly wrote down guesses it never tested, and often didn't even read its own notes. Once it was told to read its memory first and test its ideas, its score nearly doubled. Sonnet 5 just does that by itself: it reads its memory nine out of ten times, where the older model did it less than half the time.</p>
<p>My favourite bit: rules can backfire. When Anthropic told Opus 5 and Opus 4.7 to "record only failures", they lost a big part of what memory had given them. So with good models, you explain what the memory is for and let them figure out what's worth saving.</p>
<h3 id="github-notes-that-point-to-the-code">GitHub: notes that point to the code</h3>
<p>GitHub's take is very practical. Every memory comes with citations, links to the exact lines of code that back it up. Before the agent uses a memory, it's prompted to check those lines. If the code disagrees, it's encouraged to write a corrected version.</p>
<p>In their A/B tests, pull requests from the Copilot coding agent got merged 90% of the time with memory, against 83% without. Code review comments got positive feedback 77% of the time instead of 75%. Not huge jumps, but real ones, and GitHub says both are highly statistically significant.</p>
<p><img src="/posts/give-your-agent-a-notebook/copilot-memory-chart.png" alt="Bar chart of GitHub&#x27;s results without and with Copilot Memory: coding agent pull requests merged went from 83% to 90%, and positive feedback on code review comments went from 75% to 77%" loading="lazy" decoding="async" width="1624" height="564"></p>
<h2 id="you-dont-have-to-build-it-yourself">You don't have to build it yourself</h2>
<p>Lots of agent frameworks already have memory built in. Squad is the one I started with (<a href="https://github.github.com/squad/docs/concepts/memory-and-knowledge/" rel="noopener noreferrer">here's how its memory works</a>): decisions and history live as files in your repo, so a new chat picks up where the last one stopped.</p>
<p>GitHub now also gives you two things out of the box.</p>
<p><strong><a href="https://docs.github.com/en/copilot/concepts/prompting-and-context/copilot-memory" rel="noopener noreferrer">Copilot Memory</a></strong> is the feature from that GitHub article. While Copilot works, it saves two kinds of things:</p>
<ul>
<li><strong>Facts about a repo</strong>, about how a codebase works. These only apply in that repo and are shared with your collaborators there. Each fact cites the code that backs it up.</li>
<li><strong>Your own preferences</strong>, like how you want answers presented or which actions need your approval. These follow you from repo to repo.</li>
</ul>
<p>What I like is that it works across the board: the CLI, the cloud agent, code review and more. So something the cloud agent learns while fixing a bug can help code review on the next pull request, and the other way around. It's available on all paid plans, and it's off by default, so you choose where to turn it on. You can also add memories yourself: just ask Copilot to remember something, in the CLI, the cloud agent, the Copilot app or VS Code, or even in a pull request comment. You can also bulk-import prepared memories with the CLI (<a href="https://docs.github.com/en/copilot/how-tos/use-copilot-agents/copilot-memory/create-memories" rel="noopener noreferrer">here's how</a>). It's not a guarantee though: the model still decides whether to store it. And you can't type or edit a memory directly in the settings on GitHub.com.</p>
<p><img src="/posts/give-your-agent-a-notebook/copilot-memory-settings.png" alt="The Copilot memory settings page of a repository, with the memory toggle switched on and one stored memory listed below it" loading="lazy" decoding="async" width="800" height="357"></p>
<p>In the repo settings you can see what it has stored and delete what you don't want. Memories also expire after a while (90 days by default) unless Copilot confirms they're still valid, so old stuff doesn't stick around forever. One nuance from the docs I think is important: checking a memory against the code is a judgment call by the model, not a guarantee. So rules that must always apply still belong in your instruction files.</p>
<p><strong><a href="https://docs.github.com/copilot/concepts/prompting-and-context/copilot-dreaming" rel="noopener noreferrer">About GitHub Copilot Dreaming</a></strong> is new and in public preview. It runs in the background, looks back at your Copilot sessions and pull request reviews, adds useful stuff, fixes outdated guidance and removes duplicates. It updates memories by itself, but changes to your instruction files and skills come in as a pull request, so you stay in charge. The preview needs access to GPT-6.1 Sol and isn't available on Copilot Pro.</p>
<h2 id="how-id-start-small">How I'd start: small</h2>
<p>Before you switch everything on, I'd build a tiny memory system yourself and see if it actually helps in your repo. Here's what I'd keep in mind.</p>
<ol>
<li><strong>Start with a notebook.</strong> One folder, a few Markdown files. No database, no extra tooling. You can always grow it later if it turns out to be worth it.</li>
<li><strong>Tell it why, not how.</strong> Explain what the memory is for and let the model decide what to save. One exception: with an older model, do tell it to read its notes first.</li>
<li><strong>Only write down what it can't look up.</strong> This goes for all your instructions, not just memory. Researchers at ETH Zurich <a href="https://arxiv.org/abs/2602.11988" rel="noopener noreferrer">tested AGENTS.md files</a>: they made agents over 20% more expensive on average, without clearly solving more tasks. Files the agents wrote themselves did slightly worse and human-written ones slightly better, but neither difference was statistically significant. Your agent can already read your code. Copying it into notes just eats context and goes stale. Write down the why instead: decisions, unwritten rules, known traps, stuff that didn't work. My quick test: "Could the agent find this in the repo?" If yes, skip it.</li>
<li><strong>Make every note checkable.</strong> Say where it came from (a file and line, a link, a test) and whether it's confirmed or still a guess. Code changes. And sometimes a note is just wrong from day one.</li>
<li><strong>Let an agent clean up every week.</strong> Basically your own mini Dreaming. With <a href="https://docs.github.com/en/copilot/concepts/agent-capabilities/agent-powered-workflows-and-operations/about-github-agentic-workflows" rel="noopener noreferrer">GitHub Agentic Workflows</a> you write the workflow in plain Markdown and it runs as a GitHub Action. Something like: "Check every memory against the code. Fix or remove what's wrong, merge duplicates, and open a pull request."</li>
</ol>
<h2 id="so-i-tried-it">So I tried it</h2>
<p>I built exactly that into Planet Pizza, a small alien-themed webshop I use for demos. Pizzas, some merch, a lot of UFO jokes. It has a React frontend and an Express backend with SQLite, so it's small but realistic enough to have a few traps.</p>
<h3 id="what-the-notebook-looks-like">What the notebook looks like</h3>
<p>The whole memory system is a handful of files:</p>
<pre class="shiki shiki-themes github-light github-dark" tabindex="0"><code class="language-text"><span class="line"><span>.github/</span></span>
<span class="line"><span>  copilot-instructions.md   ← one short section: "read memory/README.md first"</span></span>
<span class="line"><span>  workflows/</span></span>
<span class="line"><span>    memory-check.yml        ← runs the checker on every pull request</span></span>
<span class="line"><span>    memory-tidy.md          ← the weekly clean-up, as an agentic workflow</span></span>
<span class="line"><span>memory/</span></span>
<span class="line"><span>  README.md                 ← what the notebook is for, and how to read and write notes</span></span>
<span class="line"><span>  decisions.md              ← choices that were made, and why</span></span>
<span class="line"><span>  conventions.md            ← unwritten rules for how things are done here</span></span>
<span class="line"><span>  traps.md                  ← things that look fine but break</span></span>
<span class="line"><span>  attempts.md               ← things that were tried and didn't work</span></span>
<span class="line"><span>scripts/</span></span>
<span class="line"><span>  check-memory.mjs          ← checks that every cited file and line still exists</span></span></code></pre>
<p>The instructions file only points the agent to the notebook:</p>
<blockquote>
<p>Read <code>memory/README.md</code> and the notes relevant to your task before you start. Treat a note as a lead, not a fact: check its evidence against the current code before you rely on it, and fix or remove it if the code disagrees.</p>
</blockquote>
<p>All the real behaviour lives in <code>memory/README.md</code>. It's about a page long, written for the agent rather than for humans, and it's the heart of the whole thing. Here it is in full:</p>
<p><img src="/posts/give-your-agent-a-notebook/memory-readme.png" alt="The memory README rendered on GitHub, with four sections: what the notebook is for and what is worth saving, how to read notes by scanning headings and to cite the notes used, how to write notes with a table of note files and the note format, and how the checker and weekly clean-up keep it tidy" loading="lazy" decoding="async" width="1724" height="3682"></p>
<p>That's it. No code, no framework. If I want the agent to behave differently, I edit a sentence in this file.</p>
<p>Every note follows the same format. Here's one of the traps:</p>
<pre class="shiki shiki-themes github-light github-dark" tabindex="0"><code class="language-md"><span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">## Product queries must filter out </span><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">`category = 'option'`</span></span>
<span class="line"></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-light-font-weight:bold;--shiki-dark:#E1E4E8;--shiki-dark-font-weight:bold"> **Status:**</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> confirmed</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-light-font-weight:bold;--shiki-dark:#E1E4E8;--shiki-dark-font-weight:bold"> **Evidence:**</span><span style="color:#005CC5;--shiki-dark:#79B8FF"> `backend/src/routes/products.ts:19`</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> → </span><span style="color:#005CC5;--shiki-dark:#79B8FF">`WHERE category IN ('pizza', 'merch')`</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-light-font-weight:bold;--shiki-dark:#E1E4E8;--shiki-dark-font-weight:bold"> **Evidence:**</span><span style="color:#005CC5;--shiki-dark:#79B8FF"> `backend/src/routes/orders.ts:77`</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> → </span><span style="color:#005CC5;--shiki-dark:#79B8FF">`AND category IN ('pizza', 'merch')`</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-light-font-weight:bold;--shiki-dark:#E1E4E8;--shiki-dark-font-weight:bold"> **Checked:**</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> 2026-11-11, read both routes</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-light-font-weight:bold;--shiki-dark:#E1E4E8;--shiki-dark-font-weight:bold"> **Why it matters:**</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> The products table also holds 20+ custom-pizza options (see</span></span>
<span class="line"><span style="color:#005CC5;--shiki-dark:#79B8FF">  `decisions.md`</span><span style="color:#24292E;--shiki-dark:#E1E4E8">). Any new query on </span><span style="color:#005CC5;--shiki-dark:#79B8FF">`products`</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> without this filter puts "Mozzarella"</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">  and "Small" on the catalog page and lets them be ordered as menu items.</span></span></code></pre>
<p>The heading is the claim. The status says whether it's confirmed or still a guess. The evidence points to an exact file and line, plus the text that should be on that line, so the checker can tell when the code has moved or changed. And "why it matters" is the part you can't get from the code. Same idea as GitHub's citations, just in plain Markdown.</p>
<p>To give it something to work with, I seeded the notebook with 14 notes. Eight were good. Six were wrong or stale on purpose, so I could test the clean-up later.</p>
<h3 id="test-1-does-the-agent-use-the-notebook">Test 1: does the agent use the notebook?</h3>
<p>I asked for a "Today's Specials" section on the home page with three random products from a new endpoint. That's exactly where the trap above bites: a lazy <code>SELECT * FROM products</code> would put Mozzarella on the specials list.</p>
<p>The first time, the agent got the filter right but its final answer didn't mention the notebook at all. And the same filter was already a few lines up in the same file. So did it learn from its notebook, or just copy its neighbour? From the chat alone, I couldn't tell. So I added this to the README:</p>
<blockquote>
<p>In your final reply, name every note you relied on (by its heading) and say how it changed what you did. If no note applied, say so. This shows whether the notebook is actually being used.</p>
</blockquote>
<p>Then I ran the same task again. The session log shows how it went about it:</p>
<p><img src="/posts/give-your-agent-a-notebook/specials-session-log.png" alt="A session log excerpt in which the agent reads memory/README.md, searches all note headings in the memory folder, then opens only the three relevant notes about the api client, custom-pizza options and filtering out the option category, before saying it will exclude pizza-building options and editing products.ts" loading="lazy" decoding="async" width="1692" height="1082"></p>
<p>It read the README, scanned all the headings, and then opened just three notes out of fourteen. Right after reading them it said: "The products table also contains pizza-building options, so I'll exclude those." And this time the final answer named the notes it used:</p>
<p><img src="/posts/give-your-agent-a-notebook/specials-session.png" alt="A Copilot chat in which the agent adds a Today&#x27;s Specials section and ends with a &#x22;Memory notes applied&#x22; list naming the notes about the api client, custom-pizza options in the products table, and filtering out the option category" loading="lazy" decoding="async" width="1520" height="800"></p>
<p>And the code keeps the cheese off the menu:</p>
<pre class="shiki shiki-themes github-light github-dark" tabindex="0"><code class="language-diff"><span class="line"><span style="color:#22863A;--shiki-dark:#85E89D">+productsRouter.get('/specials', (_req, res) => {</span></span>
<span class="line"><span style="color:#22863A;--shiki-dark:#85E89D">+  const rows = db</span></span>
<span class="line"><span style="color:#22863A;--shiki-dark:#85E89D">+    .prepare("SELECT * FROM products WHERE category IN ('pizza', 'merch') ORDER BY RANDOM() LIMIT 3")</span></span>
<span class="line"><span style="color:#22863A;--shiki-dark:#85E89D">+    .all();</span></span>
<span class="line"><span style="color:#22863A;--shiki-dark:#85E89D">+  res.json(rows);</span></span>
<span class="line"><span style="color:#22863A;--shiki-dark:#85E89D">+});</span></span></code></pre>
<p>Funny detail: when I went back to the log of the first run, it had opened the exact same three notes. It just didn't tell me. So the notebook was being used both times; the README line only made it visible. To be fair, it also read <code>products.ts</code>, where the filter already existed, so the note and the code pointed the same way. That's how it should be, really. The note is there for the day the code doesn't make it obvious.</p>
<h3 id="test-2-does-it-write-good-notes">Test 2: does it write good notes?</h3>
<p>Next I asked: "Raise the free-delivery threshold to $40. Marketing picked $40 because our average order is about $32 and they want to nudge earthlings into adding one more item. Don't change it again without checking with them."</p>
<p>That reason only lived in my head and in my prompt. It's nowhere in the code. That's exactly the kind of thing that gets lost.</p>
<p><img src="/posts/give-your-agent-a-notebook/free-delivery-session.png" alt="A Copilot chat in which the agent raises free delivery to $40, records Marketing&#x27;s rationale in decisions.md, says no existing notes applied, and then lists two gotchas without saving them because the rationale is already recorded" loading="lazy" decoding="async" width="1520" height="1160"></p>
<p>The code change itself is small. The threshold sits in the cart and the checkout, and the banner text is in the layout:</p>
<pre class="shiki shiki-themes github-light github-dark" tabindex="0"><code class="language-diff"><span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8"> // frontend/src/pages/CartPage.tsx (CheckoutPage.tsx has the same change)</span></span>
<span class="line"><span style="color:#B31D28;--shiki-dark:#FDAEB7">-const FREE_SHIPPING_THRESHOLD = 3500;</span></span>
<span class="line"><span style="color:#22863A;--shiki-dark:#85E89D">+const FREE_SHIPPING_THRESHOLD = 4000;</span></span>
<span class="line"></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8"> // frontend/src/components/Layout.tsx</span></span>
<span class="line"><span style="color:#B31D28;--shiki-dark:#FDAEB7">-🛸 Free unmarked-craft delivery on transmissions over $35</span></span>
<span class="line"><span style="color:#22863A;--shiki-dark:#85E89D">+🛸 Free unmarked-craft delivery on transmissions of $40 or more</span></span></code></pre>
<p>And in the same change, it added this note to <code>memory/decisions.md</code>:</p>
<pre class="shiki shiki-themes github-light github-dark" tabindex="0"><code class="language-md"><span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold">## Free delivery is a Marketing-owned incentive to add one more item</span></span>
<span class="line"></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-light-font-weight:bold;--shiki-dark:#E1E4E8;--shiki-dark-font-weight:bold"> **Status:**</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> confirmed</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-light-font-weight:bold;--shiki-dark:#E1E4E8;--shiki-dark-font-weight:bold"> **Evidence:**</span><span style="color:#005CC5;--shiki-dark:#79B8FF"> `frontend/src/pages/CartPage.tsx:6`</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> → </span><span style="color:#005CC5;--shiki-dark:#79B8FF">`const FREE_SHIPPING_THRESHOLD = 4000;`</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-light-font-weight:bold;--shiki-dark:#E1E4E8;--shiki-dark-font-weight:bold"> **Evidence:**</span><span style="color:#005CC5;--shiki-dark:#79B8FF"> `frontend/src/pages/CheckoutPage.tsx:7`</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> → </span><span style="color:#005CC5;--shiki-dark:#79B8FF">`const FREE_SHIPPING_THRESHOLD = 4000;`</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-light-font-weight:bold;--shiki-dark:#E1E4E8;--shiki-dark-font-weight:bold"> **Checked:**</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> 2026-11-12, user explicitly selected $40 and required checking with Marketing before future changes</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">-</span><span style="color:#24292E;--shiki-light-font-weight:bold;--shiki-dark:#E1E4E8;--shiki-dark-font-weight:bold"> **Why it matters:**</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Marketing chose $40 because the average order is about $32</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">  and the gap should nudge earthlings into adding one more item. Check with</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">  Marketing before changing this threshold again; do not tune it independently.</span></span></code></pre>
<p>That's a good note. It doesn't repeat the number for the sake of it; it saves the reason and the rule ("check with Marketing first"), and points to where the number lives. It also ran the checker before finishing: no errors, just a few warnings about older notes that weren't part of this task.</p>
<p>Then I asked a follow-up: "Is there anything from this change a future agent would trip over?" It named two gotchas: the threshold is copied in two files, and exactly $40 already counts. But it chose not to write those down. That's the README doing its job:</p>
<blockquote>
<p>Quick test before you write: <em>"Could the next agent find this in the repo in under a minute?"</em> If yes, skip it.</p>
</blockquote>
<p>A quick search finds both files, so no note. That's a choice, not a law of nature. If your team does want traps like that saved, you change that one line, and the next session behaves differently.</p>
<h3 id="test-3-does-the-clean-up-work">Test 3: does the clean-up work?</h3>
<p>Notes go wrong over time, so a weekly agentic workflow goes through the notebook. Here's the core of it:</p>
<pre class="shiki shiki-themes github-light github-dark" tabindex="0"><code class="language-md"><span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">---</span></span>
<span class="line"><span style="color:#005CC5;--shiki-dark:#79B8FF">on</span><span style="color:#24292E;--shiki-dark:#E1E4E8">:</span></span>
<span class="line"><span style="color:#22863A;--shiki-dark:#85E89D">  schedule</span><span style="color:#24292E;--shiki-dark:#E1E4E8">: </span><span style="color:#032F62;--shiki-dark:#9ECBFF">weekly on monday</span></span>
<span class="line"><span style="color:#22863A;--shiki-dark:#85E89D">  workflow_dispatch</span><span style="color:#24292E;--shiki-dark:#E1E4E8">:</span></span>
<span class="line"><span style="color:#22863A;--shiki-dark:#85E89D">engine</span><span style="color:#24292E;--shiki-dark:#E1E4E8">: </span><span style="color:#032F62;--shiki-dark:#9ECBFF">copilot</span></span>
<span class="line"><span style="color:#22863A;--shiki-dark:#85E89D">safe-outputs</span><span style="color:#24292E;--shiki-dark:#E1E4E8">:</span></span>
<span class="line"><span style="color:#22863A;--shiki-dark:#85E89D">  create-pull-request</span><span style="color:#24292E;--shiki-dark:#E1E4E8">:</span></span>
<span class="line"><span style="color:#22863A;--shiki-dark:#85E89D">    title-prefix</span><span style="color:#24292E;--shiki-dark:#E1E4E8">: </span><span style="color:#032F62;--shiki-dark:#9ECBFF">"[memory] "</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">---</span></span>
<span class="line"></span>
<span class="line"><span style="color:#005CC5;--shiki-light-font-weight:bold;--shiki-dark:#79B8FF;--shiki-dark-font-weight:bold"># Tidy the memory notebook</span></span>
<span class="line"></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">1.</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Run </span><span style="color:#005CC5;--shiki-dark:#79B8FF">`node scripts/check-memory.mjs`</span><span style="color:#24292E;--shiki-dark:#E1E4E8">. Then run it with </span><span style="color:#005CC5;--shiki-dark:#79B8FF">`--fix`</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> to update</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">   line numbers that only moved.</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">2.</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> For every note, read the cited code and decide whether the claim is still true.</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">   Don't stop at the checker: the anchor can still be there while the claim</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">   around it has changed.</span></span>
<span class="line"><span style="color:#E36209;--shiki-dark:#FFAB70">3.</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> Merge notes that say the same thing. Delete notes that only repeat what the</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">   code, </span><span style="color:#005CC5;--shiki-dark:#79B8FF">`README.md`</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> or </span><span style="color:#005CC5;--shiki-dark:#79B8FF">`.github/copilot-instructions.md`</span><span style="color:#24292E;--shiki-dark:#E1E4E8"> already make obvious.</span></span>
<span class="line"><span style="color:#24292E;--shiki-dark:#E1E4E8">...</span></span></code></pre>
<p>The workflow only gets read access to the repo. Any change comes out as a pull request for a human to review. I kicked off the first run by hand. GitHub Actions wasn't allowed to create pull requests in that repo yet, so it pushed a branch and I opened the pull request myself:</p>
<p><img src="/posts/give-your-agent-a-notebook/memory-tidy-pr.png" alt="A pull request titled &#x22;Weekly memory tidy&#x22; with a caution about protected files, a list of changed notes, four removed notes including a false claim that orders start as pending, and a fix to the README and Copilot instructions about the build-your-own flow" loading="lazy" decoding="async" width="1520" height="1250"></p>
<p>My favourite catch is this one. The note looks perfectly valid: the cited line still exists. But the line says the opposite of the claim:</p>
<pre class="shiki shiki-themes github-light github-dark" tabindex="0"><code class="language-diff"><span class="line"><span style="color:#B31D28;--shiki-dark:#FDAEB7">-## Orders start as `pending` and move to `paid` after payment</span></span>
<span class="line"><span style="color:#B31D28;--shiki-dark:#FDAEB7">-</span></span>
<span class="line"><span style="color:#B31D28;--shiki-dark:#FDAEB7">-- **Status:** confirmed</span></span>
<span class="line"><span style="color:#B31D28;--shiki-dark:#FDAEB7">-- **Evidence:** `backend/src/db/index.ts:35` → `status TEXT NOT NULL DEFAULT 'paid'`</span></span>
<span class="line"><span style="color:#B31D28;--shiki-dark:#FDAEB7">-- **Checked:** 2026-08-14, read the orders schema</span></span>
<span class="line"><span style="color:#B31D28;--shiki-dark:#FDAEB7">-- **Why it matters:** Order history and the confirmation page should show a "pending"</span></span>
<span class="line"><span style="color:#B31D28;--shiki-dark:#FDAEB7">-  badge until payment is confirmed. Never insert an order as `paid` directly; let the</span></span>
<span class="line"><span style="color:#B31D28;--shiki-dark:#FDAEB7">-  payment step flip the status.</span></span></code></pre>
<p>A script would have said "line still there, all good". The agent actually read it.</p>
<p>It also fixed my main instructions file, which still said pizzas couldn't be customized while the shop already had a build-your-own flow:</p>
<pre class="shiki shiki-themes github-light github-dark" tabindex="0"><code class="language-diff"><span class="line"><span style="color:#B31D28;--shiki-dark:#FDAEB7">-- **Pizzas are fixed menu items.** No size/topping customization.</span></span>
<span class="line"><span style="color:#22863A;--shiki-dark:#85E89D">+- **Pizzas are fixed menu items**, plus a Build-Your-Own flow (size, crust, sauce,</span></span>
<span class="line"><span style="color:#22863A;--shiki-dark:#85E89D">+  toppings) backed by `category = 'option'` rows in `products`. Beyond that, no</span></span>
<span class="line"><span style="color:#22863A;--shiki-dark:#85E89D">+  further customization.</span></span></code></pre>
<p>Because that file steers every agent in the repo, the pull request flags it as a protected file that needs a careful human look before merging.</p>
<p>So how did it do against the problems I'd planted?</p>
<p>Caught:</p>
<ul>
<li>a note whose line number had moved (fixed)</li>
<li>the false "orders start as <code>pending</code>" note (removed)</li>
<li>a note about an endpoint that only existed on an old branch (removed)</li>
<li>a guess that toppings could be charged twice (disproved: the code removes duplicates)</li>
<li>two notes that said the same thing (merged)</li>
<li>the outdated line in the instructions and README (fixed)</li>
</ul>
<p>Missed:</p>
<ul>
<li>a note that just repeated advice from the instructions file. The workflow says to delete those, but it kept it.</li>
</ul>
<p>Six out of seven. And as a bonus it confirmed one guess I hadn't planted: that stock for build-your-own options is checked per line, not per order. That run cost about 35 AI credits.</p>
<h2 id="what-i-like-about-this">What I like about this</h2>
<p><strong>It's all just text in your repo.</strong> Notes are reviewed in pull requests, versioned with the code, and you can see who changed what and why. If a note is wrong, you revert it like any other change. Nothing lives outside your repo.</p>
<p><strong>You control the behaviour with plain words.</strong> Want the agent to cite its notes? One line. Want it to save gotchas too? Change one line. No config, no code. I changed the agent's behaviour twice in this experiment, and both times it was a sentence in a README.</p>
<p><strong>It stays small.</strong> Because the agent scans headings first and only opens what's relevant, it read three notes out of fourteen. And the "could you look it up?" rule keeps the notebook from turning into a copy of the code.</p>
<p><strong>Notes are checkable, so they don't silently rot.</strong> The checker runs on every push and pull request, and the weekly clean-up actually reads the code behind each claim. A wrong note is worse than no note, because the next agent trusts it.</p>
<p><strong>It captures the why.</strong> The free-delivery decision is the best example. The code says 4000. Only the note says why, and who to ask before changing it.</p>
<p><strong>It's not tied to one tool.</strong> It's just Markdown, so any agent that can read files can use it. And it doesn't compete with Copilot Memory: Copilot Memory learns automatically across all Copilot surfaces, while a notebook like this is explicit and reviewed by your team. You can use both.</p>
<h2 id="whats-not-there-yet">What's not there yet</h2>
<p>It's not all solved, though.</p>
<p><strong>I'm partly taking the agent's word for it.</strong> The session log shows which notes it opened, and the final answer says which ones it used. But in my test, the code pointed the same way as the note, so I can't prove the note changed the outcome.</p>
<p><strong>This is a tiny experiment.</strong> Two tasks, one small repo, and notes I planted myself. That's a long way from the benchmarks and A/B tests earlier in this post. It shows the mechanics work, not that it pays off on a big codebase over months.</p>
<p><strong>The clean-up isn't perfect.</strong> It missed one of seven problems. That's why it opens a pull request instead of changing things directly, and why someone still has to read that pull request.</p>
<p><strong>It costs something.</strong> Every clean-up run uses AI credits, and every session spends a bit of context reading the notebook. Worth it if the notes save the agent from a trap, wasted if they don't.</p>
<p><strong>And someone has to care.</strong> Just like instruction files, a notebook works best when the team agrees on what goes in it. The README helps, but it's still a habit you have to build.</p>
<h2 id="want-to-try-it">Want to try it?</h2>
<p>I pulled the memory part out into its own repo: <a href="https://github.com/mvanderbend-msoft/agent-notebook" rel="noopener noreferrer">agent-notebook</a>. Run <code>npx github:mvanderbend-msoft/agent-notebook</code> in your repo and you get the notebook, the checker and the weekly clean-up in one go. Then give your agent one real task and see if it read the notebook, wrote something worth keeping, and skipped what it could look up.</p>
<p>If you try it, or memory made things worse for you, I'd really like to hear about it. 🛸</p>
<h2 id="references">References</h2>
<ul>
<li>Squad: <a href="https://github.com/bradygaster/squad" rel="noopener noreferrer">GitHub repository</a> and <a href="https://github.github.com/squad/docs/concepts/memory-and-knowledge/" rel="noopener noreferrer">Memory and Knowledge</a></li>
<li>Anthropic: <a href="https://www.anthropic.com/research/components-of-agent-memory" rel="noopener noreferrer">The components of agent memory</a></li>
<li>Asawa, Glaze et al.: <a href="https://arxiv.org/abs/2606.05661" rel="noopener noreferrer">Continual Learning Bench: Evaluating Frontier AI Systems in Real-World Stateful Environments</a></li>
<li>GitHub Blog: <a href="https://github.blog/ai-and-ml/github-copilot/building-an-agentic-memory-system-for-github-copilot/" rel="noopener noreferrer">Building an agentic memory system for GitHub Copilot</a></li>
<li>GitHub Docs: <a href="https://docs.github.com/en/copilot/concepts/prompting-and-context/copilot-memory" rel="noopener noreferrer">About GitHub Copilot Memory</a></li>
<li>GitHub Docs: <a href="https://docs.github.com/en/copilot/how-tos/use-copilot-agents/copilot-memory/create-memories" rel="noopener noreferrer">Manually creating memories for GitHub Copilot</a></li>
<li>GitHub Docs: <a href="https://docs.github.com/copilot/concepts/prompting-and-context/copilot-dreaming" rel="noopener noreferrer">About GitHub Copilot Dreaming</a></li>
<li>Gloaguen, Mündler-Sasahara et al.: <a href="https://arxiv.org/abs/2602.11988" rel="noopener noreferrer">Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?</a></li>
<li>GitHub Docs: <a href="https://docs.github.com/en/copilot/concepts/agent-capabilities/agent-powered-workflows-and-operations/about-github-agentic-workflows" rel="noopener noreferrer">GitHub Agentic Workflows</a></li>
<li>My memory kit: <a href="https://github.com/mvanderbend-msoft/agent-notebook" rel="noopener noreferrer">agent-notebook</a></li>
</ul>]]></content:encoded>
    </item>
  </channel>
</rss>
