Playing it safe with AI is the riskiest thing you can do
Writing code by hand is over. Enthusiasts will keep doing it as a hobby. But writing code by hand for a living is no more.
That doesn’t make engineering less important. The work shifts into the architecture, constraints and feedback loops that let agents ship changes reliably.
Most companies are playing it safe by buying AI tools while leaving their human-centric codebases and processes unchanged. It’s the riskiest thing they can do.
Imagine a tiny startup in your industry that built its codebase and processes around agents from day one. They will out-ship you and your customers will notice.
the human bottleneck
Processes were designed around how fast humans could write code. An agent can now implement a change in minutes but wait days for a reviewer.
The startup built its codebase and review process together. Its system use the codebase structure and enforced module boundaries to identify which checks and approvals a change requires.
Routine, low-risk changes that meet those rules reach customers without human code review. They must pass the required checks and provide evidence of the expected behaviour. Humans define the rules and review exceptions or changes with high or uncertain risk.
Track delivery time and change failure rate alongside the share of changes that reach customers without human code review.
a codebase built for agents
The startup sliced its codebase vertically, by feature, from day one. Everything about invoices, for example, lives in the invoice module. Every invoice feature lives in its own folder inside that module, from the UI down to the database tables. Each module has a small public API and everything else is internal. That boundary is the fence. Reach over it into another module’s internals and the build fails.
Strict module boundaries aren’t new. What’s changed is the cost of leaving them optional. When agents produce most of the changes, those boundaries need to be enforced by the system. Not remembered by the one that is writing the code.
The fence makes the affected parts of the system easier to identify, so an agent can run a focused set of builds and tests. That set still needs to include consumers affected by a public API change.
The fence isn’t absolute. An agent can still cross it but only explicitly. Adding an exception the build recognizes flags the change for a human. Risky changes should be loud, not hidden below layers and layers of complexity and spaghetti code that only your two most senior engineers understand.
make the rules enforceable
AGENTS.md can explain a rule. A required build check can enforce it. An agent can ignore an instruction, but the system can refuse to merge a change that breaks the rule.
The best prompt is a compiler error
Give those checks descriptive error messages that tell the agent what failed and how to correct it. The same mechanism both blocks the violation and gives the agent useful feedback to act on.
one way to do everything
A codebase accumulates competing conventions as teams, requirements and tools change. New approaches arrive, but the old ones rarely disappear completely. One person handles errors in one way, another person a second way. Then there’s the outdated documentation no one wants to maintain which describes a third way. And when you tried the AI-native thing and added code examples for the agents, those examples ended up with a fourth.
Without a clear convention, each agent has to infer which example to follow. Different agents can reach different conclusions.
The startup has exactly one way to handle errors and every other way fails the build. Agents don’t need room to express themselves. They need one way to do it.
the code is the documentation
The startup bans comments. That’s a deliberate trade-off. It puts pressure on the code and its checks to explain the behaviour, rather than maintaining a second description beside it.
Business rules belong in tests. Types should rule out invalid states where possible. Commit messages record why a change was made.
a way to check their work
Every engineer has a story about “it works on my machine”. Passing tests tells us that the scenarios those tests cover behaved as expected. It doesn’t tell us that we covered everything that matters.
Give your agents tools to exercise the running app like a customer would. That can expose problems the existing checks miss and produce useful evidence of the change in action.
It’s another layer of verification, not a guarantee that every scenario works. It’s also evidence the startup can use when deciding whether a change is ready to ship.
Bonus points if you wrap it in a deterministic CLI, so the agents don’t waste tokens figuring out how to steer the app for the tenth time in the same session.
A frontier model is an expensive way to make up for a codebase built for humans
a process built for agents
Most engineers I talk to say their processes haven’t changed with AI. Producing more PRs doesn’t help if those changes just add to an ever-growing review queue.
only review what’s risky
The startup’s codebase lets it change how code reviews work. Every change comes with relevant evidence. For a UI change that might include a recording of the agent completing a customer journey in the application.
This is what the strict folder structure and enforced boundaries buy you: straightforward merge decisions. The system can identify which areas changed, whether a boundary was crossed and which checks or approvals are required. Those decisions follow explicit rules instead of being worked out again for every PR. Changes to the rules or their enforcement still require human review.
Routine, low-risk changes can merge automatically when they stay inside the permitted boundaries, pass the required checks and produce the required evidence. Staying inside a module is one condition, not a guarantee of safety.
Crossing the fence triggers human review. So do high-impact changes to things like billing, permissions or data integrity, even if they stay inside one module.
Humans inspect the relevant code, assumptions and evidence rather than treating every changed line as equally important.
Review the evidence and exceptions to the rules, not every line by default
Let automated checks handle naming and formatting. Human attention belongs on business rules, system behaviour and risks the checks don’t cover. Sometimes that requires reading code. It doesn’t require reading every line of every change.
ship behind a flag
The startup uses feature flags wherever a change’s effects can be safely isolated. If release monitoring detects a regression, the agent can disable the affected feature without waiting for another deployment.
Flags don’t reverse data changes or external side effects. Those need separate recovery plans.
an agent on call
Instead of waking an engineer for every routine incident, the startup uses an agent for first response. It monitors the app and takes corrective actions within defined limits. High-impact incidents and uncertain diagnoses go straight to a human.
Any code fix goes through the same release gates as other changes. In the morning, the engineers get a briefing on what happened, what the agent did and what still needs attention.
the good news
You don’t need to start over. The agents that struggle with your codebase can also help improve it. Give them a clear target and checks that tell them when they’ve reached it.
Start with one area of the codebase. Define its module boundary and make new violations fail the build. Put existing violations on a shrinking allow-list, then let agents move the code behind the fence in small changes.
Apply the same approach to inconsistent patterns. Choose one error-handling convention, reject new violations and let agents work down the existing ones, one PR at a time. Then move on to the next rule.
The goal isn’t to trust agents blindly. It’s to build a system where trust is backed by enforceable constraints and observable results.
You don’t need to finish the whole codebase before changing the process. Once that first area has enforceable boundaries and reliable checks, define a narrow class of low-risk changes that can merge automatically.
Watch release time, failures and how often humans need to intervene. Expand the policy as the results justify it.
Customers and years of domain expertise, that’s your strength. Don’t throw that away by playing it safe with AI. It’s the riskiest thing you can do. And your customers will notice.
p.s.
The interesting work right now is in the architecture, constraints and feedback loops that make autonomous software development reliable. It’s also in rethinking how companies organise their teams and how human-centric processes need to change. Always happy to compare notes with others working on this. Feel free to reach out.