Skip to main content
Datawright

Know what breaks before you merge.

datawright is a local command that reads your data repo's code and tells you, and your AI agent,
the lineage, join paths and column meanings. No warehouse access, no model tokens, one file.

CI License: MIT Python 3.10+ Agent Skills

Quick start · What you get · Benchmarks · FAQ · Reference · Roadmap

dw review on a branch that renames a status value: changed table, downstream marts, readers datawright impact, join and card output on the shop example

Why

Agents and reviewers guess. Datawright answers from your repo, with no warehouse access and no model tokens, in seconds.

Without it With it
"Which tables does this change break?" Nobody knows until a dashboard does. A comment on every merge request: changed tables, the DAG tasks that run them, downstream tables and dashboards.
The agent joins two tables on whatever column names match. datawright join a b writes the join your code already uses, with casts.
What does status = 2 mean? Ask someone who left. The card says 2 = approved, learned from your own CASE expressions.
A rerun silently doubles yesterday's rows. datawright lint flags appends with nothing clearing the slice first.

What you get

  • Impact on every merge request. datawright review lists changed tables, the Airflow task that runs each, what's downstream (tables, Looker, Superset and Metabase dashboards), broken data contracts, and unsafe patterns.
  • Lineage down to the column. Which columns feed which. Every table card names the file and line that writes and reads it, and links that were worked out rather than read plainly are marked (inferred).
  • Join paths and meanings. How tables join as your code joins them, what codes like status = 2 mean, which key columns nothing uses any more.
  • Any agent can use it. A command line, plus an MCP server (datawright serve) for clients with no shell.
  • 11 agent skills on top (set up, build, change, debug, test, review, optimize, on-call, tickets) that teach your agent to use it like a senior data engineer.

Reads: SQL · dbt · Airflow · Dagster · Spark · Flink · Kafka · Java (MyBatis) · Looker · Superset · Metabase · data contracts (ODCS). Anything else: a small connector. Agents: Claude Code · Codex · Cursor · Gemini CLI · anything that reads Agent Skills.

Quick start

You need uv and git.

1. Try the tool. One minute, no agent needed. From your data repo's root:

uvx datawright-cli init
.data-context/dw card <a table you know>
.data-context/dw impact <that table>

Want dw on your PATH everywhere? uv tool install datawright-cli. On a feature branch, .data-context/dw review --base main prints the merge-request report. .data-context/dw coverage lists what it doesn't read in your repo yet.

2. Give your agent the skills. Claude Code:

/plugin marketplace add clementlemon02/datawright
/plugin install data-eng@datawright

Codex, Cursor, Gemini CLI and others (swap -a):

npx skills add clementlemon02/datawright -a codex

Then tell your agent "set up this repo" and ask: "What breaks if I change orders_daily?", "How do sessions and regions join?", "Review my changes before I open a PR."

No data repo handy? Try examples/shop, a small warehouse with planted bugs.

How well does it work?

Test Result
Table lineage vs dbt's own manifest, three public dbt projects 100% precision, 99.5–100% recall
Questions agents answered correctly on a hard synthetic warehouse (Sonnet) 12 of 12 with Datawright, 7 of 12 without
Same test, Haiku 7–8 of 12 with it, 3 of 12 without
Index build, 220-file production Airflow repo under 2 seconds

Six public repos run in CI at pinned commits, so any change in what it finds is reviewed. The agent benchmark is small and home-made: methods and limits.

How is it different?

Data catalogs (DataHub, OpenMetadata) dbt-centric review (Datafold, Recce, SQLMesh) Datawright
Where it looks Metadata ingested from your tools Your dbt project and warehouse Your repo's code, read directly
Beyond dbt (Airflow, Spark, Java, Kafka) Through ingestion connectors No Yes
Comparing the actual data before and after No Yes, row and value diffs Aggregates only
Impact comment on every merge request Not their job Yes Yes
Built for an agent to query Some, via MCP Some Yes: cards, join, MCP server
Setup A service to run A warehouse connection, often a paid plan One file, no service, no credentials

They coexist: Datawright imports from them and can export to dbt, DataHub and OpenMetadata. If you only run dbt, you may already have most of the lineage; the merge-request report and join paths are what's new.

FAQ

Does it touch my warehouse or send data anywhere? No. datawright reads code, makes no network calls and never writes. Optional read-only queries need a read-only user you set up.

Which warehouse and SQL dialects? Anything sqlglot parses, auto-detected, including Snowflake, BigQuery, Trino, StarRocks, Doris, Spark and DuckDB.

What if it doesn't understand part of my repo? datawright coverage lists what it skips. A connector, usually a few dozen lines, teaches it, and setup can write one for you.

How do I know it's right? Every answer points at the file and line it came from, datawright coverage lists what it can't read and how many links are inferred, and lineage is scored against dbt's own manifest in CI. It's a heuristic parser, so check surprising results and report wrong lineage.

Is it production-ready? It's a first release, tested by its author on public repos and one production platform. Ten minutes and five answers from you would help the most.

More

Skills and every command · Architecture · Roadmap · Landscape · Contributing

MIT license

Metadata

Release files for datawright-cli 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datawright-cli 0.1.2
File Size Uploaded Provenance Actions
datawright_cli-0.1.2.tar.gz 133.3 kB With provenance Details for datawright_cli-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datawright-cli 0.1.2
File Interpreter ABI Platform Actions
datawright_cli-0.1.2-py3-none-any.whl Python 3 none any Details for datawright_cli-0.1.2-py3-none-any.whl

Total release size: 238.8 kB

Release files / datawright_cli-0.1.2.tar.gz

Download URL datawright_cli-0.1.2.tar.gz
Size 133.3 kB
Tags Source
SHA-256 checksum
How to use checksums
16530541aab8ef24db9b94dcc2c83359f085ca22541a1d0002f71b6f18d0cdbf
BLAKE2b-256 checksum
How to use checksums
a25cb93eb2bad0402f01996929cb971d844036c778d5157ed6de682d701d0564
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / datawright_cli-0.1.2-py3-none-any.whl

Download URL datawright_cli-0.1.2-py3-none-any.whl
Size 105.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b780eb84422ea242de50151a70b1e6bff2f7697d74084e03b9db7f2b8d9b36e6
BLAKE2b-256 checksum
How to use checksums
fc21bb05f9a957d9c123fbd808e98eb8adf2a00173d3f4b5e643559f9f73278f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Security for datawright-cli 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for datawright_cli-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page