Agent-Driven Development: What Building This Blog with Claude Code Looked Like

••6 min read
productivitydevopswebdevwriting

Most of the code behind this blog was written by Claude Code agents, working from a written plan and one Linear ticket per change, while I reviewed and merged. Between Sunday evening and Monday afternoon this week, that setup landed seven pull requests: a framework downgrade, two pipeline migrations, a URL change, schema validation, a dark-only theme, and a print stylesheet.

The short answer on how it went: fast and mostly right on mechanical work that had a test to check it, and wrong in ways that looked plausible everywhere else. The mistakes were an API from the previous major version of a library, a test that couldn't pass, a miscounted test suite, and statistics in planning documents that nobody had sourced. Tests and my own review caught most of them. Nothing automatic caught the numbers.

The setup

Claude Code runs the session. I use four role agents (senior-software-engineer, code-reviewer, product-manager, ux-designer) defined in my user-level Claude Code configuration, so they aren't in this repo. What is in the repo is .claude/CLAUDE.md, 1,147 lines as of today, which tells the main session the project's rules and when to hand work to which agent:

#### code-reviewer
 
**Use proactively for**:
- Planning test coverage for new features
- Writing Playwright tests
- Reviewing bundle size impact
- Identifying unnecessary client components
- Ensuring accessibility compliance
- Performance audits
- Verifying progressive enhancement

Linear holds one ticket per change. Branch names come from Linear's git integration (magnus/m3l-26-downgrade-to-nextjs-15-react-19), so every pull request maps back to its ticket and acceptance criteria. Linear's MCP server lets the session read the ticket it's working on.

Serena is an MCP server that gives the agent language-server tools instead of text search: find_symbol, find_referencing_symbols, replace_symbol_body. Its project state lives in .serena/, which is gitignored. I haven't compared runs with and without it, and this codebase is small enough that text search usually finds the right thing too, so this project is a weak test of what it adds.

The plan came first. On Sunday evening plans/revised_plan_2025-11-09.md and a tech stack decision document went into the repo before any code changed, and every ticket after that points back to a section of the plan.

What landed in 22 hours

The first planning commit went in at 18:04 on Sunday, November 9. The seventh pull request merged at 16:27 on Monday:

TicketChangeMerged (PST)
M3L-26Next.js 16.0.1 down to 15.5.6, React 19.2.0, async paramsSun 19:23
M3L-27next-mdx-remote replaced with @mdx-js/mdxSun 20:43
M3L-28highlight.js replaced with Shiki via rehype-pretty-codeMon 11:01
M3L-30/blog/[year]/[slug] routes moved to /blog/[slug]Mon 11:45
M3L-31Zod 4 frontmatter validationMon 14:17
M3L-32Dark mode toggle removed; dark-only UIMon 15:06
M3L-33Print stylesheetMon 16:27

That's 51 commits outside the merges. The site before this was a single scaffold commit from October 21. Today added the test refactor and the first versions of the posts on this site.

Where the agents did well

Mechanical changes with a test behind them. The URL migration moved the route directory, removed the year parameter from the page interface, fixed the links in the post cards, deleted the old route, and updated the E2E tests for the new structure. Nine commits, merged 44 minutes after the previous pull request. The tests defined "done", and the agents could check against them.

A first pass at visual work. The print stylesheet went in as five commits: @page setup and colour inversion, hiding navigation and other screen-only elements, printing link URLs after the link text with page break rules, a print header, and wiring it into the layout. Then came five fix commits: black page margins, Tailwind dark utilities that needed !important to override, tag bubbles, code block colours, and page breaks that were too strict. Every one of those fixes is something you only see in a print preview, and no test was looking at one.

Where they were wrong

An API from the previous major version. The project had Zod 4.1 installed. The schema's error formatter read error.errors, which Zod 4 doesn't have, so error.issues replaced it in a follow-up commit. The code looked right to anyone who learned Zod 3, and the model's training data has far more Zod 3 than Zod 4.

A test that couldn't pass. One date test expected 2024-02-30 to be rejected. The schema checks dates by constructing a JavaScript Date, which rolls February 30th over to March 1st, so the test failed. The agent's fix commit removed the test and concluded that "all test failures were due to poor testing patterns, not implementation bugs". In this case the test was right, and the schema still accepts that date.

Too many tests, then a wrong count. The agents wrote 76 schema tests into the Playwright suite, where seven browser projects turned them into 532 runs. The documentation then reported 706. I wrote up what replaced them.

Numbers with no source. The tech stack document justifies React 19 with "38% faster initial loads", "32% fewer re-renders", and "25-40% smaller bundles", with no citation, and those figures were copied into CLAUDE.md. The same document gives "Next.js 16 requires full async API migration" as a reason to downgrade to 15, and then M3L-26 did that migration anyway. The first draft of this post, generated from a product spec, had Lighthouse scores and before-and-after timings that nobody had run.

What I'm keeping

  • One ticket per change, with acceptance criteria. The ticket is the agent's definition of done and my checklist for review.
  • A check for every change. Agents were reliable where a test or a build could fail and unreliable where only a human would notice. When there is no test, the check is me.
  • Treat agent-written numbers as unsourced. Statistics in plans, docs and drafts get traced to a measurement or a citation before anything depends on them.
  • Put library versions in front of the agent. The Zod mistake is what happens when the model's default is a version behind the lockfile.

So what?

Kind of workHow the agents didWhat caught the problems
Migrations with testsFast, mostly rightThe tests
Visual work (print CSS)Close on the first pass, needed five fixesPrint previews
Library API usageUsed a Zod 3 property against Zod 4A failing run
Writing testsOver-produced; one impossible test deleted instead of fixedRunning them, then counting them
Numbers in docs and postsInvented or unsourcedNothing automatic; reading them

Next are the three client islands: a reading progress bar, sidenote popovers, and copy buttons, built the same way.