Most of the code I merge now was written by an agent. It compiles, the tests it wrote pass, and the diff looks reasonable. A person approves it between two meetings.
I wrote about this from the QA side in We write more code than ever. Who checks it?: the risky moment is no longer the release, it is the merge. Shift-left testing has to happen there, and two questions matter at that moment. They usually get answered after it, from memory:
- What did this change actually touch?
- What should we test before it ships?
Since 0.5.4, Enola ships skills for coding agents, and two of them answer these questions at the pull request: enola-review and enola-test-plan. I ran both on a real change.
Why a diff and a test suite miss change impact
Shift-left testing means finding problems earlier, when they are cheaper to fix. With agents writing code, earlier means before the merge, and ideally before the pull request is opened.
The diff alone does not get you there. It shows the lines that changed, not what depends on them. Tests run the code they name and say nothing about the code they don't. And when the system is a backend plus a web app plus two mobile apps, no single diff shows that a backend change lands on a phone.
Enola builds a map of your code: what calls what, which endpoints each client uses, which tests reach which functions. The skills turn that map into a review and a test plan. You ask your coding agent in plain words, or call the skill by name:
/enola-review Review this branch against main.
/enola-test-plan What should be tested for this change? Give me a plan I can hand over to QA.
Example: change impact of a 28-line pull request across four repositories
FairwayHub was my previous company: a golf platform with real users on the web, Android and iOS, which shut down in August 2026. Its code was never open source, so no model has seen it, and nothing below comes from a model remembering a famous project. The system is a Go backend, a Next.js web app, and an Android and an iOS app, each in its own repository.
The example is FairwayHub's pull request #216, merged in June 2026.
The change is small. It adds a last_login_at column to the users table and writes it after every successful login:
if capture.statusCode == http.StatusOK && loginReq.Username != "" {
if err := h.userService.UpdateLastLogin(r.Context(), loginReq.Username); err != nil {
logger.Error.Printf("Failed to update last_login_at for user %s: %v", loginReq.Username, err)
}
}It also adds a migration, a repository method, a service method and a field on the user model: seven files, 28 added lines, nothing removed.
AI code review with enola-review: what the pull request changed
I ran /enola-review in a fresh Claude Code session on the branch. Enola compared the code where the branch left main with the code on the branch: new dependencies, how far each changed function reaches, and which of them bug fixes have touched before. The agent read that, opened the code it pointed to, and wrote the review in about a minute. Trimmed:
Verdict. There is one blocker: the auth test package probably doesn't compile anymore. The structural check is clean: no new or resolved findings.
Where to look
login_wrapper_test.go:28: the build probably breaks. The test declaresvar _ user.Service = (*mockUserService)(nil). The branch addedUpdateLastLoginto that interface, but I found noUpdateLastLoginmethod onmockUserService.LoginHandlerWrapper.Login,login_wrapper.go:112: last login is recorded before 2FA is passed. For users with 2FA, that 200 means the password was correct and a code is pending. Solast_login_atchanges even if the user never enters the code.AppUser.LastLoginAt: the new field is never filled in. NoSELECTreadslast_login_at.migrations.createTables: this is the function bug fixes have touched most in this repo's history. The change itself is safe.What changed structurally. 5 new symbols, 10 new edges, all on the expected path: the auth handler calls the user service, which calls the user repository, which writes to the
userstable. No layer crossed in the wrong direction.What enola could not see. go-auth's
Loginis outside the graph, so enola can't model what its 200 response means.
The first point is a real bug. The interface gained a method, the test double did not, and the auth tests no longer compile. Enola doesn't follow test doubles, so this find is the agent's. I checked by hand: the mock never got that method, and the auth tests stayed broken until the product shut down.
The second point is a product question nobody asked in the original pull request. The third is why the next pull request, #217, had to add the read.
The diff shows none of this. Every one of its seven files looks fine on its own.
Generate a QA test plan from a pull request with enola-test-plan
Next, /enola-test-plan on the same branch, asking for a plan I could hand to QA. It came back in about 80 seconds, in five parts.
Run these tests, nearest first. The test file that calls the changed handler directly comes first, then the repository tests that reach it one step further away. It's a short list built from what reaches the change, not the whole suite.
Exercise these entry points. One route reaches the change, POST /api/auth/login. The skill turned it into twelve cases. These are the ones QA cares about:
| Case | Expected |
|---|---|
| Valid login, no 2FA | last_login_at set to about now |
| Wrong password | Unchanged |
| Unverified user (403) | Unchanged |
| User with 2FA, password step only | Currently set before the code is checked. Product decides. |
| Login with an email in the username field | The update matches username = <email>, so nothing updates and no error is logged |
| Database write fails | Login still succeeds; the error is logged |
Changed code no test reaches. UserRepository.UpdateLastLogin, UserService.UpdateLastLogin and the new block in Login, each with a one-line suggestion for the test that would cover it. A usual QA handover doesn't have this list, because nobody has worked it out.
Higher risk. createTables holds every migration, and in the year before this change it was touched by 16 bug-fix commits, more than any other function in the repository. The plan says to run the migration on a copy of production data, twice.
Not covered by this plan. It ends with what it couldn't see:
It also can't see which client screens call
/api/auth/login. Test the web and mobile login screens by hand.
With one repository loaded, it can't. That's the next step.
Cross-repository impact: the same question across web, Android and iOS
The login endpoint isn't called by the backend. It's called by the web app and both mobile apps, which live in three other repositories. So I asked again and named them:
/enola-test-plan What should be tested for this change? Our web app and the Android and iOS apps are in ../golf-ui, ../my-golf-journal-android and ../my-golf-journal-ios, include them. Give me a plan I can hand over to QA.
The only difference is one sentence naming the folders. Enola mapped all four repositories together, and the plan now opened with who is affected:
Entry point: only
POST /api/auth/login. enola found three callers:
- web:
/loginpage throughAuthApiClient.login, plus the 2FA modal- Android:
AuthApiService.login- iOS:
AuthAPIService.login
The test cases grew to match: the error messages on Android for a wrong password, a rate limit and an outdated app build, and iOS login with a username that has leading spaces (web and Android don't trim it; iOS does). It also noticed something the single-repository plan couldn't: mobile users who stay signed in only refresh their session, never log in again, so their last_login_at will go stale.
The backend developer who wrote 28 lines in a Go handler now has the web pages and phone screens to check, before the merge, without opening the web or mobile code. QA gets a plan for all three platforms instead of discovering the mobile side in the release candidate.
Test coverage gaps: what the test plan could not see
The cross-repository plan lists three clients that call the login endpoint. QA should ask whether there could be a fourth that the plan missed.
Enola answers that by reporting how many client calls it could match to a backend route. For this system:
- Android and iOS: all 16 API calls in each app matched a backend route. If either app called the login endpoint from a second place, the plan would list it. The mobile side of the plan is complete.
- Web: 1,326 of 1,474 API calls matched. The other 148 didn't, so a web page calling the login endpoint could, in principle, be among them. Some of those calls are ones Enola can't follow. Others are real bugs: the web app still called routes the backend had removed long before.
So the plan says that some web callers may be missing from its list, and asks QA to check the web login flows by hand instead of trusting the list alone.
The same goes for code Enola can't read. The login route is wrapped around an external authentication library, so both skills said they couldn't see past it and that the 2FA behaviour needed a runtime check. "No test reaches this function" means no test reaches it by name. A test that drives the code through a browser or a router doesn't show up, so the skill tells QA to check such code before calling it untested.
Shift-left testing when agents write the code
Every result above came from two parts working together, and each does a different job.
Enola supplies the facts. It reads the code without a model, so the same code always gives the same answer. It knows which endpoints and client apps reach a function, which tests call it, which functions bug fixes have changed, what a branch added or removed compared with main, and which calls it couldn't match.
The agent does the thinking. It decides which questions this change raises and asks Enola. It opens the code Enola points to, judges what matters, and writes a review or a plan a person can act on.
The skill connects the two. It tells the agent which Enola questions to ask, in which order, and what it may not claim from the answers.
In the #216 example, the facts came from Enola: the three clients calling the login endpoint, the 16 fix commits on createTables, the ten new dependencies all running in the expected direction, and the 148 web calls it couldn't match. The judgment came from the agent: the broken test double and the 2FA question. The agent's wording changes from run to run, but the facts underneath it don't.
Neither part needs a person to start it, so both can run before a reviewer ever sees the change:
- Before the pull request. An agent that finishes a change can run the review and the test plan itself, and fix what they find before anyone sees the branch.
- During the session. With
enola install --hooks(the setup is at the end of this post), Enola records the structure of the code when an agent session starts and compares it when the agent finishes. If the agent added a dependency cycle or crossed a layer the wrong way, Enola tells the agent before it reports the work as done. Install and upgrade describes what runs when.
And the people around the change get their answers earlier:
- Developers see what their change reaches while they still have the code open.
- QA gets a plan built from the change itself, and spends its time deciding which risks matter instead of working out what a pull request touched.
- Reviewers get at most five places to look, each with a reason, instead of a diff to read top to bottom.
What an AI code review and test plan cost per pull request
Each run was a fresh Claude Code session with Claude Opus, started with one of the prompts above:
| Skill | Repositories | Time | Cost |
|---|---|---|---|
enola-review |
backend | 68 s | $0.58 |
enola-test-plan |
backend | 80 s | $0.66 |
enola-test-plan |
backend, web, Android, iOS | 118 s | $0.83 |
The cost is the agent's model usage. Enola runs locally, adds no API cost, and your code doesn't leave your machine.
Try it on your own pull request
The skills ship with Enola 0.5.4 and later.
New to Enola. Install the binary, then run two commands in your repository:
curl -fsSL https://raw.githubusercontent.com/enola-labs/enola/main/install.sh | sh
enola install --hooks
claude mcp add-json enola '{"command":"enola","alwaysLoad":true}'enola install adds the skills for Claude Code, Codex, Cursor, GitHub Copilot, opencode and Pi. It shows every file it will change and asks first. --hooks adds the session check described above; leave it out if you only want the skills. The second line connects Enola to Claude Code. Other agents are one line each in Connect your coding agent.
Already using Enola. Upgrade the binary, then run install again in each repository you set up, because only install writes the skills:
enola upgrade enola install
Hooks from an earlier install are kept. Restart your agent session so it uses the new version. enola doctor lists any files an older version wrote. Upgrading in detail.
Then open a branch and ask your agent to review it or plan its tests. There are no rules to write and nothing to configure first.
FAQ
Does Enola run my tests?
No. The test plan says which tests to run and which code no test reaches. Running them stays with your test runner, your CI or your agent.
Does it replace code review?
No. enola-review reports what a change did to the structure of the system and where a reviewer should look. Read the diff for correctness as well.
How is this different from a linter or static analysis?
A linter checks the current code against its rules, file by file. Enola compares the code before and after a change and reports only the difference, including things that span files and repositories, such as which web and mobile screens call the endpoint you changed.
Does it work across multiple repositories?
Yes. Name the other repositories in your request, or point Enola at a folder that contains them. Client calls are matched to backend routes across repositories, and the coverage report says how many couldn't be.
Which agents does it work with?
Claude Code, Codex, Cursor, GitHub Copilot, opencode and Pi. The skills are standard Agent Skills directories, and the Skills documentation shows how to call them in each agent.
Can I use it in CI?
The review's verdict comes from enola check --base origin/main, which you can run in CI without an agent. The skills add the reading and the plan on top.
Further reading
- Install and upgrade Enola
- Enola skills: review, test plan, intent and memory
- Enola on GitHub
- How to Enforce Architecture Rules for AI Coding Agents
- Cross-Repository Code Analysis: A Repository Is Not an Architecture
- Claude Code benchmark: Enola on code the model had never seen
- We write more code than ever. Who checks it?
- The QA engineer on my laptop works nights