# Your agents can read your code. Now they can query your data, too.


URL: https://getunblocked.com/blog/your-agents-can-read-your-code-now-they-can-query-your-data-too/
Published: 2026-11-26T17:50:00.000Z
Author: Brandon Waselnuk
Categories: Product, Context Engine

Unblocked now connects to Amazon Aurora PostgreSQL, so answers about your application’s data follow the rules written in your code.

---
Ask an AI tool “Which customers are active?” and it will write the SQL in seconds. It will also have to make a lot of guesses. Does signing up count as active? What about running a code review? Your database can’t tell it. Your code can, because that’s where your application decides what “active” means.

That’s the gap we’re closing. Starting today, Unblocked supports Amazon Aurora PostgreSQL as a data source, alongside Snowflake and Databricks. Unblocked connects your database schema to the source code that uses it. So when you ask about your data, the answer uses your Company’s definition of active instead of a guess.

## What you get

- **Answers about your data, next to everything else**. Customer success, support and engineering teams can ask questions about your application’s data alongside its code, issues, docs and conversations.
- **The same context for your agents**. Request it through MCP or API.
- **Nothing changes in your database**. Unblocked runs read-only queries, only against the tables and views you grant it.

## Why your data needs your code

Your database records the data. Your code defines what it means.

The state of your system lives in three places: your code, your configuration and your database. If you’ve already connected your code and configuration to Unblocked, the database is the missing piece. For questions like “Which customers are active?”, the source code is often the source of truth.

## How it works

1. **Connect a database and choose what to share**.
2. **Unblocked indexes the schema and how your code uses it**, down to which tables and columns your source code touches.
3. **Ask a question**. The context engine uses those connections to find the right data, apply your application’s rules, and run a read-only SQL query.

## What it looks like at Unblocked

We’ve been using this on our own data. It’s like having a data scientist always available, who also happens to know everything about the business logic and source code.

Here are two real examples from our team.

### Support goes from ticket patterns to a proposed fix

Adam is on our customer support team. He used to spot problems with our Datadog connector the slow way: reading tickets like “Why didn’t Unblocked answer this query correctly about our APM stack?”, noticing a spike in questions about the connector, and flagging what he found to engineering.

Now he runs a skill [on a routine](https://getunblocked.com/blog/routines/) that looks at each customer’s tool calls from the last 24 hours. Every call is already stored with its tool name, arguments, status code, error message, duration and failure cause. The skill rolls those up by account and shows him where to focus, for example: “136 Datadog metric calls returned 502s at one account today.”

Once he finds the root cause, he asks Unblocked to fix it. Adam used to hand engineering a hunch. Now he finds the cause and proposes the fix himself in a pull request.

### A drop in review comments, traced to a model change in under an hour

Richie noticed that the average number of comments per code review had dropped. With Unblocked connected to the database, he graphed the average number of comments per day.

The database was key. Every review comment was already stored with its category, severity and certainty, so Unblocked could turn a vague hunch into numbers. He found that some customers were seeing fewer comments per review, and where the drop was biggest.

Then he asked Unblocked to connect those findings with deployments and configuration changes. It traced the drop to a newer version of the model used for code review. Richie asked Unblocked to switch code review back to the previous model.

The investigation and the fix took less than an hour.

## Your database, your permissions

You choose what Unblocked can see by setting permissions in your database. Unblocked runs read-only queries against the tables and views you grant it access to, and nothing else.

Each database connects its own way:

- **Amazon Aurora PostgreSQL** connects through AWS PrivateLink. [Setup guide](https://docs.getunblocked.com/data-sources/amazon-aurora-postgresql)
- **Snowflake** uses AWS workload identity federation for new connections. [Setup guide](https://docs.getunblocked.com/data-sources/snowflake)
- **Databricks** uses OAuth with a dedicated service principal. [Setup guide](https://docs.getunblocked.com/data-sources/databricks)

## Get started

**Already using Unblocked?** In the [web app dashboard](https://getunblocked.com/dashboard/) open **Settings** → **Data Sources**, pick your database and follow its setup guide. Then ask the question your team keeps guessing at: which customers are active?

**New to Unblocked?** [Start a free 21-day trial](https://getunblocked.com/dashboard/get-started) and connect your code, then your database.