Why Humans Can't Keep Up With AI-Written Code - Tariq Shaukat, Sonar

16:353 min readAI Engineer10/29/2026Computing/Software · Small Business/Startups · Management

Key Takeaway

Code abundance driven by AI agents creates a crisis of confidence that requires engineering agentic software factories around intent, guide rails, independent verification, and evidence.

Highlights

  • Asynchronous AI agents in the development lifecycle cause a 2,450% increase in lines of code and a 240% increase in commits.

  • Only 5% of surveyed developers currently run agentic software factories, but 34% expect to do so within a year.

  • Humans agree with AI 93% of the time when the AI is correct, but they also agree four out of five times when the AI is wrong.

  • Code translation accuracy by AI agents collapses from 91% down to significantly lower levels when codebase size increases from 10,000 to 50,000 lines of code.

  • LLM judges change their verdicts across identical replications between 7% and 17% of the time depending on the model.

  • Providing proper intent and guide rails in large complex codebases achieves a 36% reduction in token cost and a 92% reduction in issues in the commit.

Timeline

  1. Historical Parallels and the Rise of Agentic Coding

    Industrial manufacturing evolution provides lessons for software production, highlighting how shifts from volume-driven production to zero-rework quality principles transformed industries. Modern software development practices originally adopted these manufacturing tenets, such as agile and continuous integration. The introduction of autonomous AI agents disrupts this balance by making code creation abundant and cheap. Developers rapidly scale commit volumes, forcing enterprises to rethink software factory architecture.

    • Software engineering best practices draw from the Toyota Production System principles of quality over volume and fixing systems.
    • Asynchronous agents generate a 2,450% increase in lines of code and a 240% increase in commits.
    • Survey data indicates that 5% of developers currently run agentic software factories, with 34% planning to adopt them within a year.
  2. Core Limitations of AI in Software Development

    Scaling human oversight becomes impossible when code generation outpaces release capacity. Developers exhibit cognitive surrender, deferring to incorrect AI suggestions at high rates. Complex codebases impose heavy token costs as agents spend excessive resources navigating structures rather than writing logic. Furthermore, multi-step tasks suffer from compounding error rates, causing long-running agent workflows to degrade rapidly over successive steps.

    • Human-in-the-loop governance fails to scale because releases only increased by 30% despite massive code volume growth.
    • Cognitive surrender causes humans to accept incorrect AI outputs four out of five times when the AI is wrong.
    • Agent accuracy in code translation collapses when codebases scale from 10,000 to 50,000 lines.
    • Compound errors reduce multi-step task execution accuracy significantly over long running processes.
  3. Unreliability of LLMs and the Code Confidence Formula

    Large language models demonstrate volatility as judges, frequently changing verdicts when questioned or re-evaluated. Addressing this unreliability requires a structured formula for code confidence based on four multiplying components: clear intent, active guide rails, independent verification, and repeatable evidence. Implementing these components inside agentic loops optimizes token usage and drastically cuts defects before code reaches commit stages.

    • LLMs acting as judges alter their verdicts in 7% to 17% of identical replications.
    • The code confidence formula multiplies intent, guide rails, independent verification, and evidence together.
    • Sonar Vortex and Sonar Cube implementations reduce token costs by 36% and commit issues by 92%.

Description

Agents have made code cheap: one study saw lines of code up 2,450% but releases up only 30%. Sonar CEO Tariq Shaukat draws on the factory revolution that Toyota and Lexus started to explain how to build agentic software factories you can trust. He breaks down five hard problems: human review that doesn't scale (people agree with AI that's wrong 4 out of 5 times), agents struggling with large codebases, errors compounding over long tasks, unreliable LLM judges, and near-zero time to exploit. Then he lays out Sonar's code confidence formula: intent, guide rails, verification and evidence. Chapters: 0:00 Intro 0:26 The ball bearing that changed car factories 2:23 Software already borrowed these ideas 2:55 Agents break the factory 5:19 Problem 1: Human in the loop doesn't scale 6:45 Problem 2: Agents struggle with big codebases 8:04 Problem 3: Errors compound 9:06 Problem 4: LLM judges are unreliable 10:03 Problem 5: Time to exploit is near zero 10:25 The code confidence formula 12:36 Results from customers 15:49 Code is abundant, confidence is scarce Tariq Shaukat https://www.sonarsource.com Join us in SF for the second annual AIE CODE summit: https://aie.codes our last flagship summit of 2026. Applications live now!

Write about this video