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.

acme/analytics · pull requests
Get started for free
  1. Starts whenAn analyst mentions @usemerlin-ai on a pull request that changes dbt models
  2. Merlin worksClaude Code or Codex builds the changed models and their downstream models in dev, then compares them with production read-only
  3. 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-ai in a comment on a pull request that changes dbt models.

acme/analytics

Type/to searchI
CodeIssues8Pull requests12AgentsActionsProjectsSecurityInsightsSettings

Count trial conversions on the first paid invoice#352Code

Openineswants to merge 2 commits intomainfromines/trial-conversion-invoice

Conversation 5 Commits 2 Checks 3 Files changed 3+48−6

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.

  1. 01Read the model change
  2. 02Check out the branch
  3. 03Build it in dev
  4. 04Find the downstream models
  5. 05Count rows on both sides
  6. 06Write a diff query per model
  7. 07Collect example rows
  8. 08Comment the results

With Merlin

One mention gets the row counts and changed values on the pull request.

  1. @usemerlin-ai on the dbt pull requestAsked by the author
  2. Builds in dev and diffs against productionClaude Code with dbt, read-only in production
  3. 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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.

  6. 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.

  7. 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.

acme/analytics · pull requests

Once, when you paste it

  1. PromptYou paste the prompt to @Merlin
  2. GuidanceMerlin saves your rules as workspace guidance

Every time someone mentions Merlin on GitHub

  1. IntegrationThe GitHub app spots the mention
  2. RuntimeMerlin picks an available machine
  3. ContextThe run gathers context
  4. WorkClaude Code or Codex builds in dev and compares with production
  5. SteeringYour team steers the work in the thread
  6. ResultMerlin comments the data diff

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.