Published August 20th, 2025
At LaunchDarkly, we’re constantly pushing the boundaries of what it means to move fast without breaking things. We ship frequently, serve quadrillions of events per day, and operate with zero tolerance for downtime. To keep pace, we need systems that help us ship confidently—even when change is happening at a rapid, “vibe coding” pace.
But what happens when that rapid change reaches your database?
From an SRE’s perspective, the database is sacred. It’s the source of truth—and one of the riskiest areas to touch without deep context. Even if your code is reviewed in a pull request:
With AgentControl, we finally have a way to automate this kind of insight — reviewing database changes before they become production issues.
To follow along, you’ll need:
AgentControl configs allow you to customize, test, and roll out new large language models (LLMs) within your generative AI applications.
Our system uses LaunchDarkly’s internal AgentControl to analyze your schema and query changes directly from a CI build. It checks for:
This isn’t just a linter. It’s an AI-powered reviewer trained on your environment.
If you want to skip right to reading the code, a complete example can be found here.
The AI needs a complete snapshot of your system to make a meaningful review:
To evaluate database changes, we need to observe real SQL queries your application runs during CI.
We do this by inserting a lightweight PostgreSQL proxy between your app and the database. It logs and deduplicates queries, then exposes them via an API for analysis.
Here’s the setup in Docker Compose / GitHub Action Service Container:
Every query is deduplicated and exposed via:
GET http://localhost:8080/queries
Connecting to the database via 5433 will now pass the queries through the proxy.
To give the AI full context, we also need a snapshot of the database schema—including table definitions, columns, indexes, and relationships.
This can be triggered early in the CI pipeline to run in parallel with your other steps:
⏱️ Note: For large schemas, this can take a minute or two. Triggering it early(but after the migrations) avoids blocking downstream jobs.
After your tests or migrations run through the proxy, it now holds:
With this data captured, you can run a GitHub Action that:
schema-diff.jsonqueries-diff.jsonHere’s what that looks like in CI:
After you have the four key files, you pass them into the config system.
Save input to a file:
Run the DB analysis tool:
Under the hood, here’s what the code looks like:
And to get the AI’s recommendation:
Once the model has your queries and schema, you can make it smarter by adding business context:
This context transforms the AI from a generic reviewer into a tailored risk advisor for your system.

with AgentControl, you can:
You’re no longer at the mercy of “who reviewed the PR.” Every change gets a consistent, context-aware review.
Database changes don’t have to be scary anymore.
By plugging into AgentControl, you can automate reviews, enforce data modeling best practices, and de-risk your deploys—without slowing anyone down. To get started, sign up for a free trial today or email us at aiproduct@launchdarkly.com if you have questions.
So yeah, go ahead. Vibe out. Ship confidently. And let the AI handle the hard stuff.