
Code has never been cheaper to produce. Trusting it has never been harder.
Ask a modern coding agent for a new feature and you’ll get something that looks finished in minutes. Ask whether that feature is correct, secure, and consistent with a codebase of a million lines, and the confidence evaporates. That gap between generating code and believing it was a recurring theme at the AI Dev conference in New York, hosted by Andrew Ng’s DeepLearning.ai. Few speakers framed it as sharply as Tariq Shaukat, CEO of Sonar and a former president of Google Cloud.
Shaukat’s core argument, as reported by TechCrunch’s Russell Brandom, is that code is now abundant while confidence is scarce. For any team investing in AI software factories, that one idea changes where time, money, and talent should go. Below, we unpack his thinking, translate it into practical steps, and look at what the human role becomes when agents write nearly all of the code.
What you’ll learn in this post:
- Why verifying a whole codebase is far harder than verifying a snippet
- Why running more agents doesn’t automatically produce better answers
- The difference between dark, dim, and light factories
- What humans actually do when agents write the code
- A step-by-step plan you can adopt this quarter
What Are AI Software Factories, and Why Is Everyone Talking About Them?
A software factory organizes AI-driven development like a production line. Requirements go in, agents write, test, and refine code, and working software comes out the other end. The model remains hugely popular among AI-focused developers. Tools built around the idea keep arriving, including the out-of-the-box system from Warp that TechCrunch covered earlier this year.
The appeal is easy to see. If agents can draft, review, and revise code around the clock, the constraint on shipping software shifts from typing speed to something else entirely. As the conference conversations made clear, that “something else” is the hard part. Getting a factory to run well takes careful tinkering with the core models. It takes just as much tinkering with the harnesses and context that surround them.
The Three Layers That Decide Whether a Factory Works
- The model: the underlying AI that reads and writes code.
- The harness: the scaffolding around the model, meaning the instructions, tools, checks, and workflows that direct what it does and how its output is judged.
- The context: what the agent knows about your product, your codebase, your standards, and your definition of success.
Models improve on someone else’s roadmap. Harnesses and context are the layers your team actually controls, so that’s where most of your leverage lives.
Why Polished Demos Mislead
Shaukat noted that most demonstrations of AI coding happen in pristine environments. The moment the work gets more complicated, problems emerge. A model can verify a small piece of code, but verifying an entire codebase of a million lines is a much harder task. It still demands a great deal of judgment.
A demo that builds a to-do app in ninety seconds tells you almost nothing about how an agent will behave inside a decade-old system with undocumented conventions, tangled dependencies, and business rules that live only in a senior engineer’s head. If you’re evaluating tools or planning a rollout, test them on your messiest real code, not a clean sandbox.
The Real Bottleneck: Confidence, Not Code
For decades, the scarce resource in software was the ability to produce working code. Agents have flipped that equation. Producing code is now fast and cheap, and knowing whether it’s right is the expensive part.
This is why Shaukat’s framing resonates. Abundant code without matching confidence isn’t an asset. It’s a growing pile of unreviewed liabilities. Every additional agent-written pull request is one more place a security hole, a subtle logic error, or a quiet violation of your architecture might be hiding.
Here is how the bottleneck moves (our illustration, not data from the interview):
| Stage | Before coding agents | With coding agents |
|---|---|---|
| Writing code | Slow and expensive | Fast and cheap |
| Reviewing code | Manageable volume | Volume can overwhelm reviewers |
| Verifying whole-system behavior | Hard | Harder, with more code and less author context |
| The scarce resource | Engineering hours | Confidence |
The takeaway: if your investment in generation has outrun your investment in AI code verification, you’ve built a faster way to create risk.
The Variance Problem: Same Agent, Three Different Answers
The most memorable moment in the interview was a story about inconsistency. Shaukat described looking at one codebase where Claude Code flagged 40 issues. He ran it again and it found 11. A third run found 18. So which result is right?
| Run | Issues reported |
|---|---|
| 1 | 40 |
| 2 | 11 |
| 3 | 18 |
He also cited research showing that AI judges often change their minds when another model contradicts them. They sometimes do so even when simply asked the same question twice. The lesson isn’t that these tools are useless. A single pass from a single agent is a sample, not a verdict.
Why Throwing More Agents at the Problem Backfires
The instinct is to add a referee. Have a second agent review the first agent’s findings and decide what’s real. Shaukat is skeptical, and his reasoning is straightforward. The second agent has the same variance as the first, so you may be compounding the problem rather than solving it. More agents also mean more tokens and more time, and in Sonar’s experience the extra spend doesn’t always fix anything.
For anyone budgeting for AI software factories, this is a crucial cost point. A strategy of “run more agents until they agree” grows your bill faster than your confidence, with no guarantee the agents converge on the truth.
What Works Instead: Encode Expertise Into the Harness
Shaukat’s alternative is to narrow the task and teach the agent how to check itself. Tell the model you’re hunting for a specific type of security issue. Show it what a good result looks like and what it doesn’t. Build that knowledge into the harness itself. At that point, he explained, the job comes down to finding the expertise and encoding it.
Here’s a practical verification brief you can adapt (our template, inspired by his approach):
- Target: the single class of issue or requirement being checked
- Positive examples: real instances from your codebase that count as findings
- Negative examples: common false positives the agent should not report
- Evidence required: the file, line, and reasoning needed to justify each finding
- Severity rubric: how to rank what it finds
- Output format: a consistent structure so results can be compared across runs
Treat these briefs like code. Version them, review them, and improve them every time a bad result slips through. The expertise you encode today compounds across every future run.
Dark, Dim, and Light Factories: Match Oversight to Risk
So can you fully automate software development? Shaukat’s answer: it depends on your appetite for risk. For most Global 2,000 companies, the core software genuinely matters. Yet some parts of what those companies build probably don’t matter much, and not every component deserves the same scrutiny.
He described a spectrum:
- Dark factory: fully automated, with no routine human checks. It suits parts of the business where the stakes are low.
- Light factory: every change gets human review, which is the only option where regulations explicitly require a person to review the code.
- Dim factory: Sonar’s preferred middle path. You don’t check every single piece, but you keep oversight and follow a “trust but verify” approach. Shaukat expects most software inside large companies to land here.
| Dark | Dim | Light | |
|---|---|---|---|
| Human involvement | Minimal | Targeted oversight | Full review |
| Best for | Low-stakes or high-confidence automation | Most enterprise software | Regulated or mission-critical code |
| Verification style | Automated checks | Sampling, audits, review of overall work | Line-by-line or change-by-change review |
| Main risk | Silent failures | Gaps between samples | Slow throughput |
In a dim factory, the human may not check every line, but they look at all the work done and confirm it was done the right way. That’s a meaningful distinction. It treats oversight as a process rather than a bottleneck.
How to Choose a Setting for Each System
Ask these questions about each component:
- What happens if this code fails in production?
- Do regulations or contracts require human sign-off?
- How strong is our automated test and verification coverage?
- How much historical evidence do we have that the agents do this job well?
The mistake is picking one setting for everything. Mature AI software factories run all three at once, assigning each component the level of oversight its risk justifies.
Trust but Verify: A Lesson From a Washing Machine
Pushed on whether heavy verification signals low confidence, Shaukat offered a homely analogy. He knows his washing machine cleans his clothes, and he doesn’t inspect every load. If his clothes started coming out dirty, that would be a problem. But he has evidence from experience that the machine does a good job.
Confidence, in other words, isn’t blind faith. It’s accumulated evidence. And evidence suggests a clear operating model for your team:
- Start with tighter checks on any new agent, task type, or codebase area.
- Collect evidence on how often its output holds up.
- Loosen oversight gradually where the evidence is strong.
- Tighten it again immediately if the “clothes” start coming out dirty.
Build a Confidence Ledger
Make that evidence visible. Track a few simple signals per system:
- How often reviewers reject or rework agent-written changes
- How many defects escape into production after passing checks
- How much the agent’s findings vary between identical runs
- How often an audit of “unreviewed” work turns up problems
When these numbers look healthy, you have a defensible case for dimming the factory further. When they degrade, you have an early warning before customers notice.
What Humans Do When Agents Write the Code
Here’s the question that matters most for developers. If agents write the code, what’s left for people?
Shaukat’s answer is nuanced. He expects the human to write almost none of the actual code. But that doesn’t mean telling the system what to build and walking away. At least for the foreseeable future, he sees a huge role for people in making sure the coding agent has the right information and context, and that the right verification steps and reviews are in place. Most of that work can be augmented by AI. He doesn’t expect a world where the human fully steps away, particularly with mission-critical applications.
In practice, the human role breaks down into four jobs.
1. Decide What to Build and What “Done” Means
The first step is figuring out what you want. What should it look like, and what must it do? What counts as “good,” and what counts as “done”? Vague goals produce vague software, and agents will happily ship the vague version.
Action: Before any agent starts work, write acceptance criteria a skeptical stranger could check.
2. Specify Architecture and Codebase Fit
Human developers can usually be trusted to build in a way that’s compatible with the existing codebase. Agents don’t know to be compatible, and they’ll find the shortest path to an answer. That shortest path may ignore your conventions, duplicate existing utilities, or cut across architectural boundaries you’ve spent years protecting.
Action: Write your architectural rules down where agents can read them, such as module boundaries, preferred libraries, naming conventions, and patterns to avoid. Then verify adherence automatically.
3. Supply the Right Information and Context
An agent can only reason about what it can see. Missing context is one of the most common reasons agent output looks plausible yet is wrong for your situation.
Action: Maintain living documentation of domain rules, past incident lessons, and the “why” behind unusual decisions. Treat context as a product with an owner.
4. Plan the Verification and Review Process
Shaukat stresses planning your verification up front, not bolting it on afterward. That includes functional behavior, architecture, and adherence to your codebase. Deciding who or what reviews each category of change, and how, is design work that belongs to humans.
Action: For every project, write a one-page verification plan alongside the spec.
A Seven-Step Plan for Trustworthy AI Software Factories
Here’s how to turn these ideas into a rollout you can start now. The sequence is our synthesis of Shaukat’s themes, not a prescription from the interview.
- Classify your systems. Label each component dark, dim, or light based on risk and regulation.
- Write the definition of done first. Make acceptance criteria and verification steps part of every task before any code is generated.
- Make architecture machine-readable. Document conventions and boundaries so agents and automated checks can use them.
- Create verification briefs. Build focused checks for your highest-risk issue types, with good and bad examples.
- Measure variance. Run important checks several times and compare results. If findings swing wildly, tighten the brief rather than adding more agents.
- Set evidence-based escalation rules. Define the signals that move a component from dark to dim, or dim to light, and the reverse.
- Audit the unreviewed. Regularly sample work that skipped human review and feed what you find back into the harness.
Common Mistakes to Avoid
- Trusting demos over your own code. Pristine examples don’t predict performance on a sprawling legacy codebase.
- Treating one run as the truth. Given the variance Shaukat described, a single pass is only a sample.
- Adding agents instead of expertise. Extra reviewers multiply cost, and they can multiply noise too.
- Applying one oversight level everywhere. Over-reviewing low-stakes code wastes time, and under-reviewing critical code invites disaster.
- Skipping the architecture conversation. Agents optimize for the shortest path, not for your long-term maintainability.
- Never revisiting the evidence. Trust should be earned continuously, and it can be revoked.
What This Means for Your Career as a Developer
If you worry that agents make developers obsolete, Shaukat’s perspective offers a more grounded reading. The typing is going away, but the judgment is not. As AI software factories mature, the most valuable engineers will be the ones who can:
- Translate fuzzy business goals into precise, checkable specifications
- Encode domain and security expertise into harnesses and verification briefs
- Design review processes that scale without losing rigor
- Read evidence, such as variance, defect rates, and audit results, and decide how much to trust
- Understand architecture deeply enough to tell when an agent took a shortcut it shouldn’t have
These skills reward experience. Senior engineers, who have seen how systems fail, are arguably better positioned than ever, provided they’re willing to express their hard-won knowledge in forms agents can use.
Frequently Asked Questions
Can AI software factories run without any human oversight?
Parts of them can. Shaukat describes “dark factory” scenarios for low-stakes components. For core software, and anywhere regulations require human review, people remain essential, and he doesn’t expect humans to step away entirely from mission-critical applications.
Why not just use a second agent to check the first?
A second agent carries the same variance as the first, so you may compound the problem instead of solving it. It also costs more tokens and time. Encoding specific expertise and clear success criteria into the harness tends to work better than stacking reviewers.
Does a dim factory slow development down?
Not necessarily. A dim factory skips routine line-by-line review and relies on targeted oversight, evidence, and audits. Its aim is to concentrate scrutiny where it matters most, so teams keep speed without giving up confidence.
Will developers still write code?
Shaukat expects people to write almost none of the actual code. Their work shifts toward specification, context, architecture, and verification.
Conclusion: Confidence Is the New Competitive Advantage
The headline from Shaukat’s talk is easy to remember: code is abundant, confidence is scarce. The promise of AI software factories is real. Agents can draft and revise software at a pace no human team can match. But speed without trust is a liability, and the teams that win won’t be the ones generating the most code. They’ll be the ones who can prove their code is good.
That means investing in the unglamorous layers: clear definitions of done, documented architecture, encoded expertise, measured variance, and oversight matched to risk. Build your AI software factories with humans in the loop, not as a concession to outdated thinking but as the design feature that makes the whole system trustworthy.