SQL Optimizer Agent
Make slow queries fast. Paste a query and its EXPLAIN (ANALYZE, BUFFERS) output and get a concrete plan.
What it does
- Reads the query plan and finds the real bottleneck (seq scans, bad join order, spills)
- Recommends indexes with the exact
CREATE INDEXstatements - Rewrites the query (CTEs, window functions, lateral joins) where it helps
- Estimates before/after cost
Dialects
Postgres · MySQL · SQLite
Install
bash
npx nuclexa install sql-optimizer-agent --target claude-code