Vibecoding
LLM Committees Can Improve Code Safety by Rejecting Flawed Queries
Researchers test how multiple language models working as a jury can filter out unsafe AI-generated code before it reaches developers.
As developers increasingly rely on AI tools like GitHub Copilot and Cursor to generate code from natural language descriptions, a new challenge has emerged: distinguishing safe, correct outputs from flawed ones without involving a human reviewer for every suggestion.
Researchers have investigated whether assembling multiple large language models into a "jury" can effectively screen AI-generated SQL queries, accepting code only when all panel members agree it works correctly.
The Testing Approach#
The team benchmarked 15 open-source language models on 82 MySQL text-to-SQL conversion tasks using an execution-based validation method to establish a reliable performance baseline. They identified the six strongest performers and built unanimous committees ranging from one to six models. Each committee reviewed the original prompt, the database schema, and the proposed SQL statement, approving it only when every member reached consensus.
Key Findings#
The results revealed meaningful patterns in model reliability and committee performance:
- Single judges perform unevenly: relying on one model alone produces inconsistent results across different queries
- Small unanimous committees show promise: combining two to three top-performing models can significantly reduce false acceptances—incorrectly approving broken code—while still allowing many valid queries through
- Committee composition matters: the specific mix of models included in the jury substantially affects its accuracy
This unanimous-vote approach aligns with safety-conscious deployment strategies where incorrectly accepting flawed code carries greater risk than erroneously rejecting working code.
Why It Matters#
As AI-assisted coding becomes mainstream, having a reliable automated gating mechanism could reduce the time developers spend validating AI suggestions while maintaining a high confidence threshold for production deployments. The research provides practical guidance for teams building internal code review workflows around language model outputs.

