Data
Check what a dbt change does to the data
Mention Merlin on a dbt pull request to see its effect before it merges. It builds the changed models in dev and comments the row counts and changed values against production.
@Merlin from now on, when someone mentions you on a dbt pull request to check its data, build the changed models and their downstream models against the dev target. Compare each one with production using read-only queries and comment the row counts on both sides, the columns whose values changed and a few example rows. Never write to production, and don't push commits or approve the pull request.
- Starts whenAn analyst mentions
@usemerlin-aion a pull request that changes dbt models Merlin worksClaude Code or Codex builds the changed models and their downstream models in dev, then compares them with production read-only
- You getA comment with row counts on both sides and the columns whose values changed, with examples
Tools
- GitHub
- dbt
- Databricks
- Snowflake
Capabilities
- Integrations
- Your agent's MCP
How it works
From a dbt pull request to a data diff against production.
Mention
@usemerlin-aiin a comment on a pull request that changes dbt models.Claude Code or Codex builds the changed models and their downstream models against the dev target, then compares each one with production using read-only queries.
A comment gives the row counts on both sides and the columns whose values changed, with example rows. Nothing is written to production.
Mention @usemerlin-ai in a comment on a pull request that changes dbt models.
Claude Code or Codex builds the changed models and their downstream models against the dev target, then compares each one with production using read-only queries.
A comment gives the row counts on both sides and the columns whose values changed, with example rows. Nothing is written to production.
acme/analytics
Type/to searchICount trial conversions on the first paid invoice#352Code
Openineswants to merge 2 commits intomainfromines/trial-conversion-invoice
inescommented 1 hour agoAuthor
int_trials now marks a trial converted on its first paid invoice instead of the plan change.
Before and after
Reviewers see what a model change does before it merges.
Without Merlin
Someone builds the branch by hand, then writes comparison queries for every downstream model.
- 01Read the model change
- 02Check out the branch
- 03Build it in dev
- 04Find the downstream models
- 05Count rows on both sides
- 06Write a diff query per model
- 07Collect example rows
- 08Comment the results
With Merlin
One mention gets the row counts and changed values on the pull request.
@usemerlin-aion the dbt pull requestAsked by the authorBuilds in dev and diffs against productionClaude Code with dbt, read-only in production
- Data diff in a commentRow counts, changed columns and examples
Setup
Connect GitHub, give your agent dbt and the warehouse, then ask on any dbt pull request.
Set these up once and anyone can ask for a data diff on a dbt pull request.
- 01Connect a machineRuntimeInstall the Merlin desktop app or CLI on a computer running Claude Code or Codex. You can also use a machine a teammate shares with your workspace.
- 02Install the GitHub appIntegrationsPick the repositories Merlin can access. It sees mentions, reads the pull request and replies in the thread. Pushes use the machine owner's own Git access.
- 03Add dbt to your agentYour agent's MCPConnect the dbt MCP server to Claude Code or Codex on the machine that runs this. Its credentials stay on that machine.
- 04Add Databricks or Snowflake to your agentYour agent's MCPConnect the Databricks or Snowflake MCP server to Claude Code or Codex on the machine that runs this. Its credentials stay on that machine.
- 05Give dbt a dev targetRuntime
Set a dev target in the dbt profile on the machine that writes to its own schema, so the changed models build there and never in production.
- 06Read production with a read-only roleYour agent's MCP
Sign the Databricks or Snowflake MCP server in with a role that can read production but not write to it, so the comparison queries can't change a table.
- 07Paste the setup promptGuidanceAn owner or admin sends the prompt below to @Merlin once, and it becomes workspace guidance for every future run.
Prompt
Tell Merlin how to diff a dbt change, once.
@Merlin from now on, when someone mentions you on a dbt pull request to check its data, build the changed models and their downstream models against the dev target. Compare each one with production using read-only queries and comment the row counts on both sides, the columns whose values changed and a few example rows. Never write to production, and don't push commits or approve the pull request.
Once, when you paste it
- PromptYou paste the prompt to @Merlin
- GuidanceMerlin saves your rules as workspace guidance
Every time someone mentions Merlin on GitHub
- IntegrationThe GitHub app spots the mention
- RuntimeMerlin picks an available machine
- ContextThe run gathers context
- WorkClaude Code or Codex builds in dev and compares with production
- SteeringYour team steers the work in the thread
- ResultMerlin comments the data diff
Related use cases
More data tasks you can hand to Merlin.
- IntegrationsYour agent's MCP
Data
Add a new metric as a dbt model
Delegate a metric request in Linear to Merlin. It writes the dbt model with tests and docs, runs it in dev and links the pull request on the issue.
Metric request delegated to MerlinPull request linked on the issue - IntegrationsYour agent's MCP
Data
Fix a failed overnight dbt run
Mention Merlin under a failed dbt or Databricks job. It reproduces the failure against a dev schema and opens a fix pull request with the root cause.
@Merlinunder a failed job post in#dataA fix pull request with the root cause - IntegrationsSkills
Data
Check a feature's tracking before it merges
Mention Merlin on a pull request to check its analytics events against your tracking plan. You get a comment listing what's missing or misnamed.
@usemerlin-aiin a pull request commentMissing and misnamed events in a comment
Bring your coding agents into the tools your team already uses.
Let your whole team hand work to Claude Code and Codex today. Connect one machine and add Merlin to Slack, Linear or GitHub. 14-day free trial, no API keys, no card.