WhoBuilt

Can LLMs generate Enterprise Quality Code?

May 31, 2026· 15 min· 7.6K views·Watch on YouTube

Speaker

Prasenjit Sarkar of Sonar discusses whether LLM-generated code is enterprise-ready at an AI Engineer session.

High pass rates leave quality questions open

Sarkar describes a shift from coding in IDEs to asking agents to generate code from English instructions. He cites a March 2026 Pragmatic Engineer survey in which 55% of developers regularly used AI agents. He says common benchmarks measure functional correctness, but often miss security, maintainability, architecture, and technical debt.

A broader evaluation shows tradeoffs

Sonar evaluated more than 4,444 Java assignments using SonarQube Enterprise and published the data. Gemini 3.1 Pro High passed 84.17% of tests but generated 307,000 lines of code, with 614 bugs and 210 security issues per million lines. Sarkar also reports 300 security issues per million lines for Claude Sonnet 4.6 and 1.2 million lines generated by GPT-5.4 Pro High.

Training data and model limits shape code quality

Sarkar points to mixed-quality training data, including insecure examples and subtle logic errors, as sources of problems. He also says model outputs can vary between runs, and models may lack context about a company’s codebase and architecture. Sonar’s leaderboard tracks more than 53 models and versions across correctness, code volume, complexity, bugs, and security issues.

Guide, verify, and solve with the ACDC framework

Sarkar presents Sonar’s agent-centric development cycle as Guide, Verify, and Solve. Guide includes context augmentation and Sonar Sweep, which he says is in private beta; Verify includes SonarQube Agentic Analysis, which checks generated code before commit and returns findings to the agent. In Solve, the Remediation Agent can address issues from a pull request or tech debt, then reanalyze and compile the fix before offering it for review.

Takeaways

  • Treat benchmark pass rates as a measure of test correctness, not a full measure of enterprise readiness.
  • Compare models on code volume, complexity, bugs, and security as well as functional accuracy.
  • Give agents codebase context, then check their output before committing.
  • Route fixes through analysis and compilation, and review proposed changes before merging.

Mentioned in this talk

Search inside this talk

What was claimed 13

Show all 13 facts

Related talks