AI coding agents wrote most of the code behind our new website and blog. What kept that safe was not the agents themselves. It was the process around them: every change started as a written task, shipped as a reviewable package, passed automatic checks, and answered to a person who made the calls.
This is the third post in a series about moving the Synaptic Labs website and blog off HubSpot to a site we run ourselves. Part 1 covered how we decided where the site would go, and Part 2 covered taking inventory before building anything. This part is about how the building actually happened, including the work we had to redo.
The agents were capable, and they also got things wrong. The process is what caught it.
Quick glossary for this series
- AI coding agent: an AI tool that can read a codebase, write and edit code, run commands and tests, and report back, working through a task instead of answering one question at a time.
- Repository (repo): the folder that holds all of a project's code, along with the full history of every change.
- Commit: a saved snapshot of a set of changes, with a short message saying what changed.
- Branch: a separate line of work inside the repository, so a change can be built without touching the live version.
- Pull request (PR): a proposal to merge (add) a branch into the main version. It shows every changed line and gives people a place to review it before anything goes in.
- CI (continuous integration): automatic checks that run on every pull request, such as tests and a full build. Our rule is that a change with a failing check does not merge.
- Worktree: a second working copy of the same repository in its own folder, so two pieces of work can happen side by side without touching each other's files.
- CMS (content management system): the tool where we write and edit pages and posts. Ours is Payload.
What the AI coding agents actually did
Two tools did the coding. Codex, from OpenAI, built the foundation on September 9 and 10: the site framework, the CMS, and the first ports of our existing pages, prompt library and readiness assessment. Claude Code, from Anthropic, did most of the work from September 23 through the cutover on September 27.
That covered almost everything on the site now. Contact and booking forms that send leads to our CRM, cookieless analytics, the redesigned pages, the blog, the search engine setup, and the analytics screens inside our CMS all came through agents. Across the project, the task records name 44 different agent handles, 28 for Claude and 16 for Codex, and the repository has more than 70 merged pull requests.
We did not write that code line by line. Our job was deciding what to build, writing down the rules, approving designs and copy, and reviewing what came back. That is AI assisted coding as we practiced it: the agent does the typing and testing, and a person owns the decisions.
Every change starts as a task
Nothing in the repository changes without a task. A task is a small text file with a title, a description, acceptance criteria (the specific things that must be true for it to count as done), the files it is allowed to touch, and a work log. Agents create and update tasks only through one script, scripts/task.mjs, which moves each task through the same steps: new, claimed, logged, and done.
Every agent works under its own handle, such as @claude/page-blog or @codex/orchestrator. When an agent claims a task, its name goes on it, and every log entry records who wrote it. If one agent tries to take over or cancel a task another agent has claimed, it has to give a reason, and that reason is written into the log.
The project status page, a file called STATUS.md, is never edited by hand. A script rebuilds it from the task records and component status files. If anyone, human or agent, edits it directly, an automatic check fails because the generated version no longer matches.
It sounds like paperwork, but it made everything else possible. When we came back to a piece of work days later, the task told us who did what and what was still open.
Every change ships as a pull request
Agents never change the main version of the site directly. Each piece of work happens on its own branch and arrives as a pull request on GitHub. The pull request template asks for what changed and why, a Task: line naming the task, a Completes: line if it finishes that task, and a short checklist covering tests, status updates and whether any secrets or private drafts slipped in.
Commits follow rules too. Every commit message uses the Conventional Commits format, checked by commitlint, with the area named up front. A real example from this project reads feat(website): code-built About page from the redesign mockup. The allowed areas are a short fixed list, so the history stays readable.
Before any commit is saved, Lefthook runs a set of hooks, which are small scripts that run automatically at that moment. They format the code, validate the task records, and confirm that every changed file is covered by an active task whose record is part of the same change. An agent cannot quietly edit a file outside the scope it was given.
AI code review: automatic checks, then a person
Every pull request runs three sets of automatic checks through GitHub Actions. The first installs the project, checks the code for type errors, runs the tests, and builds the site from scratch. The second validates every task record, confirms the pull request names a real task, and traces each changed file back to a task. The third rebuilds the status page and fails if it does not match what was committed.
Our rule is simple: a pull request with a failing check does not merge. The website also has to build without database credentials, which keeps the public site from quietly depending on secrets.
Passing checks is not the same as being right, so a person still decides. A person on our team is listed as the code owner for the whole repository, including the process files that define these rules. The project rules say merging the pull request is the review, and that deploying and publishing need their own separate review. The things that matter most to our business, like designs, copy and prices, came to us for approval.
The best pull requests from the agents read like a handoff note. When an agent moved our readiness assessment into the redesigned page, its pull request listed 174 passing tests, a full run through every step at desktop and phone widths in light and dark mode, and a screenshot comparison against the approved mockup. It also had a section called "Owner questions / gaps" that admitted a few progress labels were its own wording because the mockup only showed one of them. That is exactly what we want an agent to tell us.

Worktrees let agents work in parallel
Two agents editing files in the same folder will trip over each other. The answer was git worktrees. Each agent gets its own worktree, its own branch, and its own pull request, so one agent building the About page never sees half finished changes from another agent building the blog.
At the time of writing, our copy of the repository has more than 30 worktrees, with names like page-about, page-blog, page-grant and page-home. On September 26 alone, 31 pull requests merged, covering the redesigned home, service, audience, offers, prompt library and blog pages, among others.
The task system was built for this too: every change to a task record takes a lock, so two agents cannot claim the same task at once. Parallel work only helps if the pieces still fit together. When two pieces of work overlapped, the agent pulled the newer main version into its branch and ran the full checks again before its pull request merged.
Agree the checks before the agent starts
Our most expensive lesson was about vague instructions. We rendered a set of Professor Synapse poses for the redesigned pages, and our early briefs were loose descriptions. The results kept missing, and we were the ones catching every miss.
After several rounds of that, we set a new rule. Before an agent starts visual or subjective work, we agree on a written spec with measurable pass checks. The agent has to print those checks with its results, and the coordinating agent checks the work against the spec and sends failures back before we ever see them.
You can see the difference in the task records. A later set of poses had acceptance criteria like framing within 2 percent of the standard pose, brand colors only, an 8 pixel margin around the canvas, eyes open, and the pose readable at 180 pixels wide. Instead of "does this look right?", each round became a list the agent could check itself against.

Written rules the agents read first
Agents start each session with no memory of the last one, so the rules have to live in the repository. We keep them in two files, CLAUDE.md for Claude Code and AGENTS.md for Codex and other tools, and both say the same things. Claude Code loads its file automatically at the start of every session, as its memory documentation describes.
Some of the most important rules are about honesty rather than code:
- Never invent prices, offers or grant facts. Take them from the approved mockup or our business notes, and flag any gap.
- Preserve the existing pages, copy, assets and behavior unless a change was agreed. Flag missing source material instead of inventing a substitute.
- Every claim on the readiness page needs reviewed evidence.
- Analytics must never receive form contents, prompt text, health information, credentials or drafts.
Those rules showed up in the work. Agents flagged gaps instead of filling them, and our grant page uses only facts from the official grant guidelines plus limits we confirmed.
AI assisted software development still needs a person
Some work was redone after review. The first Professor Synapse art was rendered with the wrong renderer, and we sent it back because it was not the correct Professor, so the whole set was rendered again from the 3D model. One set of audience poses went through seven logged rounds before we picked the final version. Early on, we rejected generic styling on the prompt library and assessment, and the agents restored the original presentation.
The agents need the review loop. Automatic checks catch broken builds and missing task links, but not whether a page says the right thing or a pose looks right. That took human eyes, and later the agreed checklists.
And the judgment calls stayed with us. Which pages to redesign, what the copy says, which prices appear, when to switch the domain: none of those were agent decisions. The agents made the building faster to direct, not the decisions easier to skip.
What we would tell someone starting out with AI coding agents
Here is the short version of what worked for us:
- Make every change a written task with acceptance criteria before any code gets written.
- Require every change to arrive as a pull request that names its task.
- Let automatic checks block anything that fails tests, the build or your own rules.
- Give each agent its own worktree and branch when you run more than one.
- Agree on measurable checks for subjective work, and loop the agent until it passes.
- Write your rules down in the repository, especially the ones about what the agent must never make up.
- Keep the decisions for yourself, and review before anything merges.
Next in this series: redesigning the site while we migrated it, from an approved mockup to Professor Synapse art rendered from a 3D model.
If you want help setting up a process like this for your own team, book a 25 minute call with us. We will help you work out where AI coding agents fit and what guardrails they need.
Frequently Asked Questions
What is an AI coding agent?
An AI coding agent is an AI tool that can read a codebase, write and change code, run tests and other commands, and report what it did. Unlike a chat assistant that answers one question at a time, an agent works through a whole task. We used Claude Code and Codex for our website rebuild.
How do you prevent AI coding agent mistakes?
You cannot prevent every mistake, but you can catch them before they reach the live site. Put every change through a pull request, run automatic tests and a full build on each one, and have a person review before merging. For subjective work, agree on measurable checks up front so the agent can test its own output.
How do you prevent architecture drift in AI coding agents?
Write the project's rules and structure into files the agent reads at the start of every session, such as CLAUDE.md or AGENTS.md. Limit each task to the files it is allowed to touch, and add automatic checks that fail when a change breaks those rules. Reviewing each pull request against its task keeps small departures from piling up.
What is agentic coding?
Agentic coding means handing an AI a task and letting it plan, edit files, run commands and check its own work in a loop, rather than asking for one snippet at a time. It works best inside a process with tasks, reviews and automatic checks.
Does agentic AI require coding knowledge?
You do not need to write code yourself, but someone needs to understand enough to set the rules and review the results. On our project the agents wrote the code, and we decided what to build, approved designs and copy, and reviewed the results. A clear process matters more than typing speed.
Can AI do code review?
Partly. Automatic checks and AI agents can catch failing tests, broken builds and rule violations, and an agent can check another agent's work against a written spec. Whether a page says the right thing, uses real prices and matches the approved design still needed a person on our project.