Skip to content

Tool Tuesday: My AI Team Isn't Allowed to Touch My Site

Poker players building startups. Free, Monday and Friday.

Unsubscribe in one click.

My AI team opened 448 pull requests in its first 35 days.

Not one of them went live until a single seat said yes.

Today's tool is the most boring one in my stack: GitHub pull requests.

The rule

R2F is run by an AI team. Fifteen seats, each a scheduled Claude Code run on my Mac: an editor, an engineer, a CEO, a CFO, a QA tester and more. They crank out code, posts and reports all day.

None of them is allowed to push a change straight to the live site. Each one works on its own branch and opens a pull request: the change plus a note saying what it did and why. It sits there until someone says yes.

Only one seat can say yes. Our rulebook puts it in five words:

"Only the CEO merges, by PR."

The full rule adds two limits. The CEO seat reads the whole change before it merges. And it merges at most four code changes per session. Posts and reports don't count toward the four.

When it merges, the change lands on the main branch. Vercel spots that and deploys the site a few minutes later. For the seats, that merge is the only door.

The fence inside the fence

Some files are scarier than others.

The rulebook, anything near the keys, the scripts that wake up the seats. A bad edit there doesn't break a page. It breaks the team.

So those paths are protected. The rulebook needs a label only I can add. For the rest, the CEO seat can merge, but first it writes "protected merge #N" and why in its log. Then the CFO seat, which reports to me and not to the CEO, checks each one on its next run.

By November 24 that log was up to protected merge #21. That one fixed the script that posts to our X account. When the internet dropped, a post that never went out still looked like a success. Now it shows up as a failure.

What it catches

The merge step isn't a rubber stamp. Three real catches from the CEO seat's log:

  • A spotlight post had a line about its subject that no source backed up. Cut before it went live.
  • Our first search guide had an FAQ that said nothing goes out under my name. Wrong. This blog does. Fixed on the branch.
  • An engineer change would have blocked a database column that one of our daily scripts still read. The CEO seat yanked that column out of the script before merging, so a morning job didn't faceplant the next day.

None were disasters. Each would have been a small, dumb, public mistake.

The catch

One merger means one line.

Across 445 merged pull requests, the middle one sat about two hours before it went in. The CEO seat runs three times a day, so a fix that landed at 1 PM used to wait for the 6:30 PM run. Since November 16, a small script checks every 15 minutes. If a pull request is ready and has waited more than two hours, it wakes the CEO seat to merge.

The other snag is two seats grabbing the same file. Our QA findings file is the usual crime scene, and the CEO seat has untangled it by hand more than once. My favorite: two code changes, merged the same day, both created a variable named spot. Each worked alone. Together, the build broke. The CEO seat renamed one and shipped both.

And sometimes the right call is to wait. One pull request linked three older posts to a guide that wasn't live yet. Merged early, those links would have hit a 404. The CEO seat closed it, then reopened and merged it the morning the guide went live. That took 95 hours, our slowest merge ever, and it was on purpose. Leave that one out, and the slowest took about two days.

The holes I found writing this

I checked our GitHub settings for this post. Two surprises.

First, GitHub isn't what stops my seats from pushing to main. Our repo is private and on the free plan, and on a free private repo GitHub's branch rules (the switch that blocks direct pushes and forces a review) aren't included. When my team asked for ours, GitHub said: "Upgrade to GitHub Pro or make this repository public to enable this feature." The fence is the rulebook. Every seat reads it at the start of every run.

Second, the rule held. In 35 days, zero changes from a seat landed on main without a pull request.

But 248 did land straight on main under my own name, from work sessions I run myself. Only one of those came after November 13. So the door has a side entrance, and I'm the one using it. Lately, a lot less.

The ledger

Through the morning of November 24, Day 35:

  • Pull requests: 448 opened. 445 merged, 2 closed without merging, 1 waiting.
  • Changes straight to main, no pull request: 0 from seats, 248 from me.
  • Protected merges logged: 21.
  • Middle wait, open to merge: about 2 hours.
  • GitHub bill: $0. The free plan gives unlimited private repos and collaborators, plus 2,000 minutes a month of automated jobs. Paid plans add branch rules on private repos. GitHub's Team plan is $4 per user a month.
  • Affiliate: none. GitHub doesn't pay me anything.

Steal this

You don't need fifteen AI seats for this. One AI coding agent and one rule will do it.

Tell your agent it never pushes to main. It opens a pull request, and you merge. Turn on preview deploys (Vercel does it per pull request), so every change gets its own test link before it touches your real site.

Then write down your scary files: keys, billing, anything that sends email. Those get a slower door.

And if your repo is private, check whether your plan can actually lock main. Mine couldn't. Then count who skips the line. Mine was me.

A click per change beats shipping something at 2 AM that nobody read.

R2F is a community for poker players building startups. Who, or what, can push to your live site, and what checks it first? Tell me in the discussion thread. And if you're building something, join R2F and post it. Two minutes.

— Art

Written with the R2F AI team. How that works.

Upvotes push posts up the blog’s Most upvoted list.
Share this post
Get two emails a week

Two emails a week. Unsubscribe in one click.

Comments

Join free to comment. It takes a minute.
Building something like this?

Post it and get feedback from players who’ve been there.