The host says an agent task is done when it has a reviewable diff and tool evidence. Self-critique is not an independent check, so teams should look for disconfirming evidence from compilers, tests, and analysis. Sandboxing limits what an agent can do, but does not prove its output is correct; human reviewers still own intent and release decisions.
SonarQube + OpenAI: Agentic Development
Speaker
Killian Carlsen-Phelan, developer content engineer at Sonar, demonstrates how to connect SonarQube with OpenAI Codex to guide, verify, and fix agent-generated code at an AI Engineer event introduced by a Codex deployment engineer.
Killian frames the challenge as making agent-generated code safe and verified. He cites Sonar research reporting that 42% of committed code is AI-generated or AI-assisted, while 96% of developers do not fully trust it and fewer than half say they fully verify it before merging. He outlines an agent-centric cycle: generate code, guide the agent with project context, verify for security and quality issues, then solve detected problems.
Killian walks through a small Python project with three planted security vulnerabilities and one code smell. SonarQube Cloud flags a plaintext OpenAI API key and traces a SQL injection from `sys.argv` to a database query using taint analysis. He then configures the SonarQube Codex plugin, including a secrets detection hook, issue-listing tools, and analysis features; the live setup is slowed by connectivity problems.
Killian demonstrates a hook blocking a request involving a fake secret, while noting that the protection depends on tool use and may be bypassed if the hook is not invoked. Codex retrieves project issues through SonarQube, fixes a SQL injection with a parameterized query, and triggers server-side analysis after edits to check for newly introduced issues. For a new delete-task function, context augmentation supplies project guidance and analysis checks the generated code.
Takeaways
- Define completion with a reviewable change and evidence from tools such as tests, compilers, and code analysis.
- Treat sandboxing as a limit on agent actions, not proof that its output is safe.
- Provide project rules and architecture before code generation to ground agent changes.
- Run verification close to the edit loop so issues can be fixed before CI or review.
- Use secret-scanning hooks as one layer of protection, and account for cases where they are not invoked.
Mentioned in this talk
Search inside this talk
What was claimed 7
- works atKillian Carlsen-Phelan works at
Sonar
Developer Content Engineer“I'm a developer content engineer at Sonar.”
YouTube Verified2 sources· Talk, Web· archived
- metric
Sonar: Surveyed over 1,000 developers; 42% of committed code was AI-generated or AI-assisted and 96% of developers did not fully trust it
“surveyed over a thousand developers. We found that 42% of committed code is either AI-generated or AI-assisted, but 96% of developers don’t fully trust it.”
YouTube Unverified1 source· Talk
- feature
Sonar: Agent-centric development cycle with generate, guide, verify, and solve stages
“Sonar owns guide, verify, and solve.”
YouTube Unverified1 source· Talk
- feature
SonarQube: Detects security and code quality issues, including secrets and SQL injection through data flow analysis“SonarQube immediately detects these”
YouTube Unverified1 source· Talk
- featureAgentic Analysis: Runs server-side analysis after an agent edits code and checks whether new vulnerabilities were introduced
“a hook that fires instantly after any edit the agent makes”
YouTube Unverified1 source· Talk
- featureContext Augmentation: Feeds project guidelines, architecture, and relevant context to the agent
“feeds it guidelines, relevant architecture, and other information”
YouTube Unverified1 source· Talk
- featuresecrets detection hook: Blocks secret exposure during supported prompt and tool interactions
“this was blocked. No secrets were leaked into the L1 context.”
YouTube Unverified1 source· Talk











