How I Build With AI Agents

Claude writes the code. I own every line that merges.

Claude writes nearly all of my code, and I own every line that merges: I set the design, the risk tier, and how much of the diff I read. On DevObsessed's internal operations platform, 98 of my 102 pull requests merged from Oct 21 to Nov 16, 2026 carry a Claude co-author trailer, and main had 0 reverts over the same stretch.

The interesting part isn't that an agent can write the code...it's the pipeline that makes it safe to merge. This page is that pipeline, the numbers it produces, and the places it broke.

The Pipeline: Eight Steps, Five of Them Mine

The platform is DevObsessed's internal ops app (timesheets, PTO, projects, expenses), a rebuild that takes over from two older apps. Every change takes the same eight steps, and whoever owns a change reviews and merges it.

01
PlanMine

Architecture goes in an ADR in the repo. One of them sets how review works when agents write the code, so the rules exist before the volume does.

02
Ticket specMine

Repo, starting paths, the original app's file as the parity bar, guardrails and a checkable Done-when, so an agent can build it cold. Every lane prompt ends the same way: never merge, never mark a PR ready, never push to main.

03
Agent laneAgent

One git worktree per ticket, cut from main. November runs used 5 to 11 lanes in parallel.

04
Pre-PR reviewAgent

A pre-push hook runs lint, typecheck and tests. A review skill runs code review (and security review on risky paths) in a fresh-context subagent, and a hook blocks opening the PR until a review stamp matches HEAD.

05
Author readMine

The agent opens a draft. I read How it was tested, Not verified and How to undo before I mark it ready. A check fails any PR whose How to undo is missing or empty.

06
Automated reviewAgent

CodeRabbit reviews on ready, and once more after a single fix round. Every finding is fixed or answered with a reason (wrong:, intentional:, doesn't matter: or ticketed:), and a blocker in the second round comes back to me instead of starting a third.

07
Read by risk tierMine

High risk (money, authorization, migrations, CI, the review rules themselves) gets every line and ships alone. Medium risk gets the critical path. A low-risk PR under 1,000 lines with no Critical or Major finding merges on CI and automated review.

08
MergeMine

Squash to main, trunk-based, with a preview database per PR.

What I Do That the Agents Don't

Risk sets the read, not line count

Every PR carries a risk label, and the label decides how deep I read. When the agent writes the code and I own it, what makes that honest is reading every line of the high-risk changes, plus machine checks on them.

Architecture lands before it's perfect

Merging an ADR makes it the thing to argue with. Leaving it Proposed makes it the thing to ignore. The review ADR merged as Proposed with my position and a Debated section, because a document sent for review is not a document anyone has agreed to.

A stale ticket gets parked, not redesigned mid-run

One lane found its spec had gone stale against main and proposed a new design. I sent the ticket back to the backlog and the lane wrote no code. A redesign is a grooming decision, not an implementation one.

A port proves parity with what it replaces

The original app is the parity bar for every ported feature. The pay rules port carries the old app's own test scenarios, plus a fixture that checks the new pay against the old app's output for the same period.

Every bug class a person catches becomes a machine check

Import boundaries are lint rules with fixtures that must fail. A bug pattern found in review became a rule line the agents load, and the repo keeps a list of pitfalls that have broken it before.

PRs stand on main by themselves

Small, reviewable PRs, and a seam cut rather than a stack on unmerged work. A stack is fine only when the alternative is one PR too big to review.

The Numbers

MeasureNumber
My PRs merged, Oct 21 to Nov 16, 2026102
Carrying a Claude co-author trailer98 of 102
Reverts on main0
Merged without a green CI run (through Nov 11)0 of 93
PR size (through Nov 11)median 160 changed lines, p90 807
Ready to merged (through Nov 11)median 2.0 hours, p90 22.3 hours
Automated review findings (through Nov 11)98 (0 Critical, 43 Major, 55 Minor): 82 fixed or answered with a reason
PRs that repaired an earlier PR (through Nov 11)2
Tests on main0 on Oct 12, now 83 unit test files and 33 end-to-end specs
Biggest single run (Nov 6)8 lanes built 15 tickets in about 2 hours; the review gate refused 8 of 19 stamps; 12 PRs merged

All from git and a read-only pass over the GitHub API. The trailer count is a floor (the 4 without one came out of the same agent lanes and lost it in the squash).

What Broke and What I Changed

The pipeline's limits showed up in landing and review, not in building. One of these was my own wrong call, and it's here on purpose.

What brokeWhat I changed
Preview builds failed on every branch at once. I held that it was our own merges. It was a platform incident, and it cost about two hours of diagnosis with no code change. Wrote it down as a call I got wrong: when a failure is uniform across unrelated branches, read the provider's status page before bisecting our own merges.
8 lanes shared one local Postgres, so parallel end-to-end runs failed on each other's rows, and every merge staled every other branch's review stamp. Building took 2 hours. Landing took until the next working day. Proved the collision, then ran lanes on a throwaway database each. A database per worktree is the permanent fix.
The automated reviewer rate-limited: 54 review attempts in 7 days on one account. Review on ready only, never on drafts, two reviews per PR at most, one push per fix round.
17 PRs open behind one reviewer, and nothing signaled it. A one-reviewer queue reads healthy until a date lands on it. Risk tiers with a low-risk lane, drafts until the test and undo notes are read, and an open-PR count in my morning brief.
Parallel lanes file follow-up tickets about as fast as they close them (13 filed against 12 closed in one run). Still open. More lanes only lengthen the queue at the end of the run, so landing gets fixed before lanes get added.

What I Build Around Claude Code

Review gates

House rules ship once, from a plugin

Pre-PR review and security review as shared Claude Code plugins, with the hook that blocks a PR until its review stamp matches HEAD. Review rules live in .claude/rules, where the agent writing the code and the reviewer both load them.

Guardrails

Hooks that sit in front of the model

One hook scores how destructive a shell command is before Claude runs it. Another masks declared secrets before they reach the model, and I held it back until its false positives were closed (17 of 26 ordinary code shapes were being masked while 99 tests passed).

Skills

Encode a standard, then test it

Skills from agent-ready ticket to reviewed PR, plus an evaluation toolchain to hold them to. A skill is a behaviour spec, so it gets regression-tested like one, and re-checked when a new model ships.

Retrieval

Read the map before reasoning

My working notes are an agent system too. A build script generates an index every agent reads before it answers, and a read-only MCP server applies the notes' sensitivity rules in code.

Judgement

My overrides are a file the agents read

When I overrule an agent, the decision records what it recommended, what I chose, and a one-line principle. 58 so far, collected into one file every agent reads before it recommends anything. The calls I got wrong are in there too.

Certified

Claude Certified Architect, Foundations

Passed September 2026. The exam covers agentic architecture and orchestration, tool design and MCP, Claude Code configuration, prompt engineering and structured output, and context management.

Where It Started: Copilot at Inspire

At Inspire Medical Systems (a regulated medical device company) I was the first on my team to use GitHub Copilot in daily work. I was asked to show the engineering org how I was using it, and wrote the instruction files the whole 8-person team used. PHI had to stay out of everything, the network was locked down, and API budgets could run out mid-week. Adopting AI under limits like that is a policy problem as much as a capability problem.

That's where my five-phase workflow came from: Frame, Explore, Structure, Implement, Harden. At DevObsessed it became a Claude Code skill, and then I retired the skill, because the phases had turned into artifacts. Frame is the ticket's Done-when. Explore is a research brief. Structure is the ADR. Implement is the agent lane. Harden is the pre-PR review, the automated review and the tiered read.

Where I Draw the Line

The agents write the code and run the checks. The design, the risk call and the merge are mine. The failure mode I watch for isn't an obvious error...it's confident, well-formed output that's wrong, so anything that matters gets checked against a source before it ships.

Talk About Your Team

If your team is adopting Claude, or AI generally, inside real constraints (sensitive data, locked-down tooling, a budget someone has to defend), I'm glad to talk it through.

Email me · LinkedIn · Back to home