Self-correcting SQL agent loop tops BIRD Mini-Dev at 89.13, no new model needed

Temporary_Papaya1058 · reddit · 2026-11-29

The author's one simple idea: let the model run its generated SQL against a private copy of the database, inspect what comes back, and fix it—same loop on every leaderboard, no model change. Results: BIRD Mini-Dev 2026 at 89.13 (#1, next best 87.27); BIRD-CRITIC Flash 63.00, PostgreSQL 58.11, and Effi-SQL R-VES 91.58 all beat current #1s (self-scored, submitted); LiveSQLBench-Large 40.21 would rank #2. What didn't help: more reasoning effort (16 vs 17 of 40 tasks), extra prompt rules (zero gain), and schema trimming on small databases. Paper and code (SchemaGate) are linked.

Original post →

More from coding & agent

coding & agent channel →