Agentic Engineering for Internal Tools: Who Reviews Agent-Written Code, and What Has to Be True Before It Ships
At a lot of mid-size companies, the people building internal tools have changed. An operations analyst asks a coding agent for a refund-approval screen. A finance lead has one write a reconciliation script. A two-person engineering team gets twenty agent pull requests a week where it used to get five. The code shows up faster than anyone can read it, and the old review habit quietly turns into a click on "approve". This guide covers the part of agentic engineering that decides whether that goes well: who reviews agent-written changes, what evidence a change has to carry, which files agents may not touch alone, how much review capacity you need, and who owns the tool once it ships.
If you set these rules early, agents let a small team maintain far more internal software than it could before. If you skip them, you end up with tools nobody understands, approved by reviewers who stopped looking.
What agentic engineering means for an internal tool
Andrej Karpathy proposed the term in February 2026, a year after he coined "vibe coding". Observer's report summarizes his point: engineers mostly no longer write code directly; they direct and oversee agents that do, and the aim is to get more done with agents "without any compromise on the quality of the software". Glide's explainer quotes his fuller line that "you are orchestrating agents who do and acting as oversight", and lists internal business software such as dashboards, approval systems, and finance workflows as an obvious use.
Simon Willison gives the working definition most practitioners use: developing software with the help of coding agents, which are agents that can both write and run code. His point is that the human job did not disappear. It moved to choosing what to build, giving the agent the right tools and detail, and verifying the result until you are confident it solves the problem.
For an internal tool, that last step carries most of the risk. Deciding what to ask for before the agent starts matters too, but this guide is about the other end: the moment an agent says "done".
Why review breaks first
Code generation got cheap. Review did not. Three things show up in the research and in practitioner reports.
Volume outruns reviewers. The 2025 DORA report found that 90% of the nearly 5,000 technology professionals surveyed use AI at work, and it describes AI as an amplifier: without strong automated testing, mature version control, and fast feedback loops, a rise in change volume leads to instability. In the Hacker News thread "How to deal with shipping AI-written code you don't understand?", one engineer reports that thousands of changed lines a week from colleagues are impossible to review, so they "just approve PRs". That is one person's account, not a measurement, but plenty of people in the thread describe the same pressure.
Reviewers get used to it. A study of 400 repeat reviewers and 11,429 reviews of agent pull requests found that approval rose from 30.1% to 36.8% between each reviewer's early and late reviews, while inline comments per review fell 22% and the median wait before review rose 3.5 times. Human pull requests in the same repositories did not see the same rise. The authors can't rule out that the agents simply improved, but more approvals alongside less commenting looks more like habituation than earned trust. It is a preprint on open-source projects, so treat it as a warning sign rather than a law.
Green checks feel like review. GitHub's Agentic Engineering System lists "treating green checks as a complete substitute for review" and "reviewing agent output more lightly than comparable human work" as anti-patterns, and says rising review burden usually means agent work is poorly scoped or too large to evaluate efficiently.
Internal tools make this worse. They often sit outside the main engineering review process, the person who asked for the change is also the one approving it, and the tool may touch payroll data, customer records, or a payment API.
Set review tiers by what the tool can touch
Not every change needs the same review. A sales dashboard that reads from a warehouse is not the same as a script that issues refunds. Put every internal tool, and every change to it, into a tier based on what it can affect, and let the tier decide who reviews and who may ship.
| Tier | What the change touches | Who may approve | Who may ship |
|---|---|---|---|
| 1. Read-only | Reports, dashboards, and exports that read data the requester can already see | The tool's owner | The requester, after owner approval |
| 2. Internal writes | Screens or scripts that change internal records (tickets, inventory notes, task status) | The owner plus one engineer | An engineer or a named builder |
| 3. Business systems | Writes to ERP, CRM, billing, HR, or any system of record | An engineer who did not request the change, plus the business owner | An engineer |
| 4. Money, access, or customer data | Payments, refunds, permissions, authentication, personal data, or anything customers see | Two reviewers, one from engineering or security | Engineering only, with a rollback plan |
Two rules make the table work. First, the requester never counts as the only approver at tier 2 and above. GitHub applies the same idea to its own agent: your approval of a Copilot pull request does not count toward required approvals, so another reviewer has to sign off. If the person who prompted the agent also approves the result, nobody independent has looked at it.
Second, a change takes the tier of the most sensitive thing it touches, not the tier of the tool. A tier 1 dashboard that gains a "mark as paid" button is now a tier 3 or tier 4 change.
This is also where you decide who may ship at all. Letting an operations analyst build tier 1 and tier 2 tools with an agent is a reasonable trade. Letting them ship tier 4 changes because the agent made it easy is not.
Make every change carry its own evidence
A reviewer facing a 600-line agent diff has two bad options: read all of it or trust it. Give them a third by requiring every agent change to arrive with evidence. Willison lists the missing version of this as an anti-pattern: opening pull requests you have not reviewed yourself, oversized changes, and no evidence of testing. His fix is simple: keep changes small and include notes on how they were tested.
For internal tools, a change description should state:
- The tier, and why.
- What the change does, in two or three sentences written by the person who asked for it, not only the agent's summary.
- Tests run and their result. Willison's habit is to start every agent session with "First run the tests", because code that has never been run only works by luck.
- A manual check: what the requester clicked or ran in a test environment, with the result.
- Data and permissions touched: which tables, APIs, or credentials the tool now uses.
- How to roll it back.
Then size changes to what a reviewer can actually check. A useful rule is one sitting: if the owner can't verify the change in about half an hour, split it. Our regression testing guide covers how to build the test set that makes the "tests run" line mean something.
When the evidence is missing, the review stops there. That rule protects reviewers more than anything else in this guide, because it sends the cost of an unclear change back to the person and agent who produced it.
Protect the files that decide what "passing" means
Agents can make a red build go green by changing the check instead of the code. GitHub's guide to reviewing AI-generated code tells reviewers to watch for tests that are deleted or skipped instead of fixed, invented APIs, and packages that don't exist. Its agent documentation adds a second warning: workflows can be privileged and have access to secrets, so be especially alert to any change in the .github/workflows/ directory before letting them run.
Treat tests, CI workflows, and permission files as protected ground: agents delete or skip failing tests instead of fixing them and can edit the workflows that run with secrets, so any change touching those files needs a flag and a second reviewer, whatever its tier. In practice, mark a small set of paths as protected:
- Test files, test fixtures, and test configuration.
- CI and deployment workflows.
- Permission, role, and access-control files.
- Secrets handling, environment configuration, and dependency manifests.
Any change that touches a protected path gets a visible flag and a second reviewer, whatever its tier. In GitHub that usually means a code-owners rule for those paths plus branch protection. Other platforms have equivalents. Also give the agent itself narrow permissions: it should not hold production credentials while it writes code. Our guide to sandboxing AI agent tool execution covers how to limit what a running agent can reach.
A reviewer who sees a test file in the diff should ask one question first: did the agent change the test because the behavior was meant to change, or because the test was failing?
Plan review capacity before you add builders
For internal tools the bottleneck is review and ownership capacity, not code generation: size each agent change to what its named owner can verify in one sitting, require the change to carry its own evidence (tests run, a manual check, the risk tier), and do not let more people ship until review hours grow with them. The common mistake is to treat agentic engineering as a way to ship more without more review, so do the arithmetic instead. For each week, estimate:
- Agent changes expected, by tier.
- Minutes of review each tier needs (for example 10 for tier 1, 30 for tier 2, 60 for tier 3, and 90 split across two people for tier 4).
- Review hours you actually have from the people allowed to approve each tier.
If the expected load exceeds the hours, you have three honest options: narrow which tools agents may change, slow how many people can request changes, or fund more review time. Letting the queue absorb it is not one of them. The habituation study suggests what happens instead: changes wait longer, then get approved with less inspection.
Plan for reviewer habituation instead of trusting a rising approval rate: as agent pull requests pile up, the same reviewers approve more and comment less, so cap each reviewer's share of agent changes, rotate them, and audit long approval streaks against escaped defects. The study's authors suggest three controls that suit a mid-size company:
- Cap and rotate. Don't let one reviewer approve most agent changes for a tool. Rotate tier 2 and tier 3 reviews across at least two people.
- Audit streaks. When a reviewer approves a long run of agent changes with no comments, send a sample of them for a second look.
- Show the trend. Track each reviewer's approval rate and comment count on agent changes next to the defects that later turn up in those tools.
None of this means distrusting the people doing the review. It means accepting that anyone who approves forty similar changes a week will start skimming, and building the process around that.
Give every tool an owner, not just an author
An agent can write a tool in an afternoon. Someone still has to answer for it in six months when a supplier changes its API, the original requester has left, and the finance team relies on it every Monday. GitHub's framework puts this in terms of shared knowledge: agents can only act on what they can access, so weak documentation turns into fast, confident mistakes.
Before a tier 2 or higher tool ships, record:
- A named owner who approves changes and answers for the tool's behavior. Not "the ops team".
- A one-page description of what it does, which systems it touches, and which tier it sits in, kept in the repository where agents and people both read it.
- A maintenance path: who fixes it when it breaks, and whether engineering has agreed to support it.
- A retirement trigger: unused for 90 days, owner gone without a replacement, or the business process it served has changed.
Several commenters in the Hacker News thread describe the same habit for keeping agent-built code understandable: a person decides the structure and the boundaries, and the agent fills in the implementation. For internal tools the owner plays that part. They don't need to read every line, but they need to know what each part is for and what it is allowed to touch.
Failure modes and how to catch them
| Failure | Early signal | Fix |
|---|---|---|
| Rubber-stamp approvals | Rising approval rate with falling comment count | Rotate reviewers, audit streaks, cap shares |
| Self-approved changes | Requester and approver are the same person at tier 2 or above | Enforce a second approver in branch protection |
| Weakened tests | Test files or skip markers in an agent diff | Protected paths with a second reviewer |
| Workflow or secret changes | Edits under CI or deployment folders | Code-owners rule, manual approval before workflows run |
| Orphaned tools | No commits or owner response for months | Retirement trigger and owner register |
| Review backlog | Changes waiting days for a first review | Recalculate capacity, narrow scope |
| Tier drift | A read-only tool gains write actions | Re-tier on every change, not once per tool |
A first 30 days
- Week 1. List the internal tools agents already touch, including scripts and spreadsheets with code behind them. Assign each a tier and a named owner.
- Week 2. Write the change-evidence template and make it the default description for agent pull requests. Set up protected paths and second-reviewer rules for tests, CI, and permissions.
- Week 3. Estimate weekly agent change volume by tier and compare it with review hours. Decide which tools are open to non-engineering builders and which are engineering-only.
- Week 4. Start the reviewer rotation and the approval-streak audit. Record a baseline for escaped defects in internal tools, review wait time, and comments per review.
Our production readiness checklist is a useful companion for the tier 3 and tier 4 tools that will run unattended.
How to verify it is working
GitHub's framework gives the clearest test: as agent use expands, escaped defects should stay flat or fall, and shared knowledge should improve along with delivery speed. For internal tools, check four numbers each month:
- Escaped defects in tools changed by agents, compared with your baseline.
- Rework: agent changes reverted or patched within two weeks.
- Review depth: comments per review and the length of approval streaks per reviewer.
- Ownership coverage: the share of tier 2 and higher tools with a named, active owner.
If defects and rework stay flat while volume grows, you can open more tools to agents. If approvals rise while comments fall, or defects climb, cut scope before adding builders. The DORA finding applies here as much as anywhere: AI amplifies the review system you already have.
Next step
This week, list every internal tool an agent has changed in the last month, put each in a tier, and check whether anyone other than the requester approved its last change. That list shows where your gaps are. If you want help setting up the tiers, protected paths, and ownership register, or building internal tools that work this way from the start, our internal tools and AI agent development teams can do it with you.