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.
Can LLMs generate Enterprise Quality Code?
Speaker
Prasenjit Sarkar of Sonar discusses whether LLM-generated code is enterprise-ready at an AI Engineer session.
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.
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.
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
- uses
“We used SonarQube Enterprise for the analysis”
YouTube Unverified1 source· Talk
- metricGemini 3.1 Pro: 84.17% pass rate on SWE-bench
“has a pass rate of 84.17% on SWE-bench”
YouTube Unverified1 source· Talk
- metric
Claude Sonnet 4.6: 300 security issues per million lines of code
“creates the highest risk, with 300 security issues per million lines of code”
YouTube Unverified1 source· Talk
- metricGPT-5.4 Pro: Generated 1.2 million lines of code across more than 4,000 Java assignments
“you’ll see 1.2 million lines of code generated for those 4,000-plus Java assignments”
YouTube Unverified1 source· Talk
- feature
Sonar leaderboard: Shares evaluation data for more than 53 models and their versions
“It includes data about all the different models we’ve evaluated.”
YouTube Unverified1 source· Talk
- built
Sonar built
Sonar leaderboard
“We created a leaderboard at sonar.com/leaderboard.”
YouTube Unverified1 source· Talk
- launched
Sonar launched Sonar Sweep
Private beta“Sonar Sweep, which is in private beta.”
YouTube Unverified1 source· Talk
- featureagent-centric development cycle: Has three stages: Guide, Verify, and Solve
“It has three stages: Guide, Verify, and Solve.”
YouTube Unverified1 source· Talk













