
I built an open-source Postgres SQL guardrail for AI-generated queries
I just open-sourced a fast static SQL linter built on the real Postgres parser (libpg-query).It catches 36 dangerous patterns before they hit your database:
RCE via COPY ... PROGRAM
SUPERUSER / privilege escalation
Exfiltration (dblink, lo_export)
Unbounded UPDATE/DELETE
And many more levels of gotchas.
Zero network, runs locally in your editor, CI, or AI agent loops
ESLint plugin + CLI + nice playground
Just hit v1.6.0 with the heavy security rules.
GitHub: https://github.com/MuddySheep/vibeguard-local
Playground (test your AI SQL): https://muddysheep.github.io/vibeguard-local/
Would love honest feedback from users running AI agents or coding against Postgres. Stars and issues welcomed!