AI Technologies

AI Agents Now Start 40% of Code Changes on GitHub. Who’s Checking Yours?

AI Agents Now Start 40% of Code Changes on GitHub. Who’s Checking Yours?
Alvin Abhinav
December 4, 2026 5 min read

AI agents start over 40% of code changes on GitHub, and in an app you built yourself, the AI that wrote the code is usually the only thing that has checked it. You can change that without learning to code, by knowing which six parts of your app carry the most risk and setting clear rules for every change.

Whether you work in Claude Code, Cursor, Lovable, or Replit, you’ve already done the most challenging part by turning what your customers need into your AI-built app. But we are not done here, because a change can look fine on screen and still let one customer read another customer’s data. This is exactly what we have covered in this blog, including pain points like, how much code AI writes now, the six high-risk parts of your app, the four signs a change shouldn’t go live yet, and seven rules you can hand to anyone who works on it.

How much code is AI writing now?

AI writes more code than most people would guess. GitHub’s Octoverse 2026 report shows that AI agents started more than 40% of pull requests on GitHub in September 2026, up from 17% in March. A pull request is a proposed change to an app’s code that waits for someone to approve it, and agents started about 110 million of them in that single month.

Agent-started changes also touch several files at once more often than others do: 87% of them, against 79% of changes with no agent involved.

That puts you in good company, because building with Claude, Cursor, Lovable or Replit is now how a large share of software gets made, at startups and at large companies alike.

If engineering teams struggle to check AI-written code, what does that mean for my app?

It means checking the code is now the slow, hard part of building software, and you’re doing it without a team. Companies with full engineering departments find that AI makes writing code much faster while reading it stays as slow as it ever was.

LinearB’s 2026 benchmarks cover 8.1 million pull requests from about 4,800 teams, and they show the size of the problem:

  • Changes made with AI help run about 2.6 times larger than changes made without it, at 408 lines against 157 at the 75th percentile.
  • AI pull requests wait 4.6 times longer before anyone starts reviewing them.
  • Only 32.7% of AI pull requests make it into the app within 30 days, against 84.4% of changes that people write without AI.

Big changes that weren’t typed by anyone, but sit in a queue, and when someone finally picks one up, the temptation is to skim it.

GitHub’s own numbers look kinder: by September, 90% of agent-involved pull requests merge within two weeks, against about 86% of the others. The two studies measure different groups in different ways, with all of GitHub on one side and about 4,800 working teams on the other, so they don’t cancel each other out. A change that merges quickly also tells you nothing about whether anyone read it carefully.

Either way, the teams behind those numbers have reviewers. When you build on your own, the review step quietly drops out, and that comes from how these tools work rather than from any mistake you made. Our list of 7 blind spots in AI-written code that need human review shows what those missing reviews tend to let through.

Which parts of my app need an engineer to look at the code?

Six parts of your app need an engineer: sign-in, who can see whose data, payments, anything that deletes data, changes to your database’s structure, and your secret keys and hosting settings. A mistake in any of them usually stays invisible on screen and often can’t be undone, while problems in layout and wording can wait because you’ll spot them yourself.

Where to spend expert review time in an AI-built app

Part of your appWhat a missed mistake looks likeWho should check itSign-in, sessions, password resetA stranger signs in as one of your usersAn engineer, line by lineWho can see whose data (permissions and row-level security, the database rules that decide which signed-in user can read which rows)One customer reads another customer’s recordsAn engineer, line by linePayments and subscriptions (Stripe, for example)Your app charges a customer twice, or hands out paid features for freeAn engineer, line by lineAnything that deletes dataRecords disappear and can’t come backAn engineer, line by lineChanges to your database’s structure (migrations)A change empties or locks a table your app depends onAn engineer, line by lineSecret keys, environment settings, hostingA private key shows up in the browser, or the live app points at a test databaseAn engineer, line by lineBusiness rules (pricing, discounts, limits, who qualifies)The code runs but applies a rule differently than you meantYou, testing with realtime/ real-life examplesPage layout, wording, stylingSomething looks off, and you can see it right awayYou, by looking at it

The business-rules row is yours to check, because you know those rules better than anyone. Pick five cases, including one unusual one, and make sure the app gives the answer you would give.

For the data row, our 30-minute test for whether users can read each other’s data walks you through a check you can run without reading any code.

What should stop a change from going live?

Four signs should stop a change from going live:

  • No one can explain what the change does: Before you accept a change, ask your AI tool to describe it in plain English, and hold off if the description doesn’t match what you asked for.
  • It touches a high-risk part and which no one has read: Sign-in, data access, payments, deletes, database structure and secret keys need an engineer’s eyes before they reach your users.
  • The AI edited a test so it would pass: Tests are small programs that check your app does what it should, and AI tools sometimes get a failing test to pass by changing the test instead of fixing the code. When your AI tool says it “updated the test”, ask it why.
  • The change is too big to check in one sitting. If one change touches dozens of files, ask the AI to split it into smaller steps you can check one at a time.

What your Claude Code review can’t see covers seven more checks you can run yourself before launch.

How do I keep AI tools away from my live users’ data?

Give your AI tool its own copy of the app to work on, with a test database and test keys, and keep the live ones your users depend on out of its reach. That way, a bad change can only damage the copy.

  • Work on a separate test copy. Developers call this a staging or development environment, and it looks like your app but holds test data, so nothing the AI does there touches a real customer.
  • Keep live keys out of the AI’s reach. Your live database password and payment keys shouldn’t sit in files your AI tool can read or edit.
  • Ask for the plan before the change. In Claude Code, plan mode shows what the agent intends to do before it touches anything, so use it whenever the job involves data, payments or hosting.
  • Keep your AI tools and their plugins up to date. Plugins can run code on your computer, and the companies behind these tools ship security fixes regularly.

What rules should I give anyone who works on my app?

You can paste these seven rules straight into an email to any developer, freelancer or agency you work with. They don’t ask you to read code, because they ask the people who read it to show their work, whether a person or an AI wrote the first draft.

Rules for changes to [your app’s name]

  1. Whoever submits a change owns it, whether a person or an AI wrote the first draft, and can explain it to me in plain words.
  2. We split any change over 400 lines into smaller ones unless we agree otherwise.
  3. An engineer reads every change to sign-in, permissions, payments, deletes, database structure, secret keys or hosting line by line before it goes live.
  4. When a change edits tests and app code together, someone reviews both.
  5. Every change passes the automated checks before it goes live: tests, a scan for leaked keys, a check on new software packages, and a scan for common security mistakes. Nothing goes live while a check is failing.
  6. AI tools work on test data only. Only a named person gets access to live data, for a specific task, and we remove that access afterwards.
  7. We keep AI tools and their plugins on current versions.

Hand this part to your developer:

If your code lives on GitHub, two settings turn rule 3 from a promise into a requirement. A CODEOWNERS file names who must approve changes to each folder, and a branch protection rule with “Require review from Code Owners” turned on stops those changes from going live without that approval. Adjust the folder names to match your app:

# .github/CODEOWNERS
# Changes to these folders need approval from an engineer
/supabase/migrations/   @your-org/senior-reviewers
/src/auth/              @your-org/senior-reviewers
/src/payments/          @your-org/senior-reviewers
/infra/                 @your-org/senior-reviewers

When should I consider getting it reviewed by an engineer?

Bring in a second pair of eyes before your first users arrive, you have a fixed launch date that’s quite near, or whenever your AI tool keeps saying it has solved a problem, but it still keeps coming back. So, if you are stuck in any of these situations, book time with a technical expert and bring the code you’re not sure about.

Frequently asked questions

Should I stop using AI to build my app?
No, since the speed is great and worth using. What changes is where human attention goes: less on parts you can check by looking, and more on sign-in, data access, payments, and deletes, where a mistake is expensive or permanent.
Can an AI code review tool check my code instead of a person?
An AI review tool makes a useful first pass and catches common mistakes quickly, but it doesn’t know your business rules or your customers. For sign-in, data access, payments and anything that deletes data, have a person who reads code look as well.
Do I need to learn to read code?
No, you need to know which parts of your app carry the most risk, ask your AI tool to explain each change in plain words, and have an engineer read the high-risk parts before they go live.
What’s one thing I can do this week?
Ask your AI tool to list every file that handles sign-in, permissions, payments and deleting data, and save that list. Those are the files an engineer should read before launch, and the ones to watch whenever the AI changes them.