Week 2: I didn't prompt it. I briefed it.
I built the engine that sends this email in one night with Claude Code. The prompt was 14 KB, and that was the point.

Last week I promised the story of the engine that sends this email. Here it is. I'm travelling, so it's shorter.
I left Beehiiv because I wanted to publish one page and it kept handing me a dashboard. So one Saturday night I sat down with Claude Code and built my own.
By 2:20 AM it was done. Six phases, 238 tests passing, and a real email in my inbox, sent from my own domain.
It didn't cost anything extra because I'm on a subscription. It did burn through my whole weekly usage, though. I had to use the free reset.
The code isn't the interesting part. What I handed Claude before it wrote any is.
The brief was the work
I didn't type "build me a newsletter tool." Earlier that day I'd written a 14 KB file with Claude in chat: what the engine does, what it doesn't do, every decision already made (Vercel, Neon, Resend, Cloudflare R2), the data model, the safety rules, and six phases with a full stop after each one.
Then I opened Claude Code in an empty folder and sent one line: read BUILD_PROMPT.md and follow it.
Most of my messages after that were some version of "go."
The next morning I read an email from Simple AI about context engineering: what the model can see when it works matters more than how cleverly you word the prompt. That's exactly what the night felt like.
Tests first, and nobody touches the tests
One line in the brief did more than the rest combined: write each phase's tests first, confirm they fail, then build until they pass. Never weaken or delete a test without asking me.
That rule caught bugs I'd never have spotted at 1 AM:
- Code blocks made the email wider than a phone screen
- The unsubscribe link crashed if one email setting was missing
- Someone who unsubscribed could still get an old issue if they signed up again later
That last one quietly costs you trust. A test found it before any reader did.
I was the gate
Claude Code ran on auto mode, but it stopped after every phase and reported back. I read the report, answered its questions, and said go.
When it asked whether one click on an email link should unsubscribe you, I picked the stricter version with a confirm button. Some work email scanners click every link they see.
AI does the work. A human ships it.
What broke on the way to sending
Building it took one night. Getting it live took longer.
- Deploying meant moving every key into Vercel by hand, then pointing the domain through Cloudflare and wiring up Resend. Nothing hard, just a lot of small steps where one typo stops everything.
- I leaked an API key in a screenshot (you heard about that last week). The fix was moving the key out of the URL and into a request header, which I should have done from the start.
- Issue 1 ended up with two drafts, one from a web chat and one from a parallel Claude Code session. I merged them, cut the exact dates and the jargon, and sent that.
What I learned
- Write the brief before you open the tool. An hour of deciding things in chat saved me from deciding them at 1 AM.
- The brief only covers the build. Every problem in the section above happened after the code was done. Next time the brief gets a deploy checklist too.
- Put the decisions in, not just the goal. Stack, data model, what's out of scope. Every decision you leave open is one the model makes for you. You can still ask it how it would do something first and compare notes. Just make the call yourself.
- Phases with full stops. Small, checkable chunks meant I always knew where it stood.
- Protect the tests. If the model can edit the tests, it can make anything "pass."
Claude news, my take
Dynamic workflows ("flows") for Claude Managed Agents. Anthropic showed this at AI Engineer New York (Latent Space wrote it up). Until now you set up a lead agent and a fixed roster of helpers yourself. With flows, Claude plans the work, writes its own orchestration, launches the agents and collects the results. The presenters said it costs much more than a single agent but catches more detail. You can set a session budget, but the model doesn't know it while it runs.
Does it matter for builders? Yes, and it makes this week's lesson bigger. If Claude is going to organise its own team, the brief you hand the lead agent is the whole job.
Will I use it? Not yet. My builds are small enough for one agent and a good brief. I'm watching it for bigger jobs.
Also worth knowing: Ben's Bites flagged a test where giving coding agents a link to the docs took task completion from 41% to 84%. Same lesson, with numbers.
What I'm building
The engine behind this newsletter. It's sent one issue so far. Once it's run a month without me babysitting it, I'm making the code public so you can run your own.
Worth stealing
Keshav's two-file trick (from Ben's Bites). He keeps a chat index and a folder map that any agent can read, and instead of resuming an old session he starts a fresh one and points it at the chat he was working on. I solved the same problem a heavier way in Issue 1. His version is simpler, and I'm trying it this week.
Next week: the brief itself, cut down to a template you can steal.
Jove