Skip to main content

Dagshund

Dagshund renders databricks bundle plan -o json output as a colored terminal diff, a markdown summary, or a self-contained HTML report with an interactive resource graph and per-job task DAGs. It is read-only: it does not connect to Databricks and does not deploy. The CLI is pure Python with no runtime dependencies.

Requires the direct deployment engine for Declarative Automation Bundles (formerly Databricks Asset Bundles).

Dagshund resource graph

Try it live: here.

Where it fits

Dagshund sits between databricks bundle plan and databricks bundle deploy. Two places you would run it:

Locally, while working on a bundle. The terminal output gives you a quick glance at what a deploy would do, filterable by resource type, status, or changed field. The HTML report is for detailed inspection: browse the full resource graph, open a node to see its field-level diff, and switch to the Jobs tab to walk task dependencies.

In CI, for example on every PR against the target workspace. Pipe a plan into dagshund to post a markdown summary on the PR, upload the HTML report as a pipeline artifact for deeper inspection, and use -e exit codes to gate the pipeline: 0 for no changes, 2 for safe changes, 3 for dangerous actions or manual edits, 1 for errors.

Install

Requires Python 3.12+. Last validated against Databricks CLI 1.20.0 on the supported-resource live fixtures. Separate source-backed synthetic plans cover unavailable AI Gateway services; this does not establish general CLI compatibility or live service behavior. Dagshund reads databricks bundle plan -o json, whose JSON shape can change between CLI releases. The historical wheel-bump fixture remains CLI 1.6.0.

# Install (recommended for regular use)
uv tool install dagshund

# Or run one-off without installing
uvx dagshund plan.json

Local usage

By default, dagshund reads a plan file (or stdin) and prints a colored diff to the terminal:

dagshund plan.json
databricks bundle plan -o json | dagshund    # pipe straight from the Databricks CLI

Terminal output

Dagshund works anywhere, it just needs a plan JSON file. You don't need to run it from inside your bundle directory.

Filter to specific change types:

dagshund plan.json -c              # changed resources only (hides unchanged)
dagshund plan.json -a              # added only
dagshund plan.json -m              # modified only
dagshund plan.json -a -r           # added and removed

The filter flags (-a, -m, -r) compose freely. -c is shorthand for -a -m -r.

Use -f to filter by resource type, name, diff status, or changed field:

dagshund plan.json -f 'type:jobs'                # only jobs
dagshund plan.json -f 'status:added'             # only new resources
dagshund plan.json -f '"etl_pipeline"'           # exact name match
dagshund plan.json -f 'type:jobs pipeline'       # jobs matching "pipeline"
dagshund plan.json -f 'field:email_notifications' # resources whose diff touches that field
dagshund plan.json -c -f 'type:volumes'          # changed volumes only

All tokens in a filter expression AND together. -f composes with -c/-a/-m/-r: both must match. field: is a substring match against changed field names.

CI pipelines that rebuild bundle wheels can make routine dependency updates dominate a plan. --suppress-wheel-updates classifies wheel-only changes as effectively unchanged and shows wheel updates once in a plan-level summary. Mixed resources keep their non-wheel changes:

dagshund plan.json --suppress-wheel-updates
# Wheel updates: etl_lib 0.1.0 -> 0.2.0 (12 tasks)
#   ~ jobs/etl_pipeline  (update)
#       ~ tasks[task_key='report'].notebook_task.base_parameters.mode: "daily" -> "hourly"

The option covers supported classic and serverless job wheel carriers, plus pipeline libraries and environment dependencies. Use it with existing status filters to focus review. -c/--changes-only, -m, and -f status:modified use the effective classification, while the plan-level wheel summary remains visible even when those filters hide every wheel-only resource. A wheel-only plan reports No non-wheel changes; a truly unchanged plan reports No changes.

For a focused CI summary, run:

dagshund plan.json -c --suppress-wheel-updates

HTML keeps the original plan and offers a reversible wheel-suppression toggle for full inspection. Suppression affects review output, not deployment-change detection: --detailed-exitcode still reflects actual plan changes, including wheel updates.

Deploy-triggered runs (the experimental resources.job_runs blocks, Databricks CLI 1.7.0+) fold onto the job they target instead of listing as separate resources. Each run renders as a per-job line with its lifecycle:

dagshund plan.json
#   = jobs/schema_migration
#       ~ run apply_migrations (re-runs on deploy)
#           ~ job_parameters['migration_version']: "v1" -> "v2"
#   = jobs/smoke_check
#       - run one_off_audit (bundle run entry will be removed)

Deleting a job_runs entry removes it from bundle state; bundle run entry will be removed does not claim that Databricks deletes the remote run history. The CLI 1.20 adapter does not issue a backend run-record delete. This rendering does not establish general compatibility for trigger fingerprints, trigger-removal semantics, or preserved run history. Removing only lifecycle.triggers.on_bundle_deploy removes the deploy trigger, starts no run, and shows no play badge. With --detailed-exitcode, a plan whose only changes are deploy-triggered runs exits 2.

Export the HTML report with -o for detailed inspection in a browser:

dagshund plan.json -o report.html           # write HTML, keep terminal output
dagshund plan.json -o report.html -b        # also open in the default browser
dagshund plan.json -q -o report.html        # HTML only, suppress terminal output

Or emit a markdown summary to stdout with --format md:

dagshund plan.json --format md

Interactive Visualization

The HTML report shows your resources as an interactive graph with diff highlighting. Resources are organized into visual groups:

  • Workspace, jobs, alerts, experiments, pipelines, and other bundle resources. Repeated resource types are grouped into categories such as Jobs or Pipelines. When any category or Lakebase hierarchy exists, remaining singletons and unmatched inferred references share an Other Resources group.
  • Unity Catalog, catalogs, schemas, volumes, and registered models in their hierarchy
  • Lakebase, projects, branches, databases, endpoints, roles, and synced tables in their hierarchy under Workspace

Click any node to open a detail panel with per-field structural diffs, old values in red, new values in green, unchanged fields for context.

Structural diff detail panel

Jobs with task dependencies get their own DAG view. Switch between the Resources and Jobs tabs to navigate between them.

Job task DAG

Phantom Nodes

When a resource in your bundle references something that isn't in the bundle itself, dagshund infers the missing piece and adds it to the graph as a phantom node (shown with a dashed border). Two kinds: hierarchy phantoms (for example a parent catalog above a schema) always display to preserve the hierarchy's structure. Inferred leaf phantoms (for example a warehouse referenced by an alert) are off by default; toggle them with the Inferred leaf nodes button in the toolbar. A leaf joins an existing matching type category, but phantom nodes never create categories themselves.

Phantom nodes

Lateral Dependencies

Many resources reference each other across hierarchies, an alert might target a SQL warehouse, or a serving endpoint might bind to a registered model. These relationships are off by default to keep the graph clean; toggle them with the Lateral dependencies button in the toolbar to see how your resources connect across group boundaries.

Lateral dependencies

Wheel Updates

When a plan contains wheel version bumps, the Hide wheel updates toggle appears in the HTML report. It applies the effective classification across the Jobs and Resources views: wheel-only changes become unchanged, mixed resources retain their other changes, and a plan-level summary reports the wheel updates. The toggle is reversible, so you can inspect the full original differences at any time.

Deploy-Triggered Runs

Jobs targeted by resources.job_runs entries (experimental, Databricks CLI 1.7.0+) get a play badge: green when a run fires on this deploy, grey when a completed run already succeeded, and a distinct activity badge while a run is still in progress. The detail panel lists each run with its semantic outcome, a link to the existing run page, and the parameter diff that forces a re-run. A recreate with an armed on_bundle_deploy trigger says it runs on every deploy. Removing only lifecycle.triggers.on_bundle_deploy says the deploy trigger was removed and shows no badge. Deleting a job_runs entry reports bundle run entry will be removed; this describes bundle state, not remote run-history deletion. Deploy-triggered runs never count toward tab counts or diff filters, and the target job itself stays unchanged.

The search bar dims non-matching nodes so matches stand out.

  • Type a name to filter: warehouse, analytics
  • Wrap in quotes for exact match: "analytics" finds only that node, not analytics_pipeline
  • Prefix with type: to filter by badge: type:wheel highlights all wheel tasks
  • Prefix with status: to filter by diff status: status:added, status:modified, status:removed. Modified includes bundle-state cleanup.
  • Press Escape to clear

The diff filter buttons (Added, Modified, Removed) compose with search, when both are active, only nodes matching both criteria stay highlighted. Modified includes bundle-state cleanup, which removes an entry from bundle state without deleting the backend resource. When exactly one node matches, the viewport auto-centers on it.

Manual Edit Detection

When someone edits a job directly in the Databricks UI (break glass), the bundle doesn't know about it. On the next deploy, those manual changes will be silently overwritten. Dagshund detects this by comparing the plan's expected state against the actual server state, and warns you when they diverge.

In the terminal:

Manual edit detection in terminal

In the HTML report:

Manual edit detection in browser

The warning surfaces in both views whenever the plan's old and remote states differ.

CI usage

Run dagshund in a CI pipeline to surface plan changes on every PR. One command produces all three CI outputs: markdown for the PR comment, HTML for a pipeline artifact, and an exit code for gating.

databricks bundle plan -t "$TARGET" -o json | \
  dagshund --format md -o report.html -e > summary.md
status=$?

Then in your pipeline step:

  • Post summary.md as a PR comment with gh pr comment, glab mr note, or your provider's API.
  • Upload report.html as a pipeline artifact for deeper inspection.
  • Branch on $status to gate the deploy step.

PR comment rendering

Exit codes from -e:

Code Meaning
0 Plan parsed, no changes detected
1 Error (bad input, missing file, etc.)
2 Plan parsed, changes detected
3 Plan parsed, changes detected AND dangerous actions or manual edits present

Dangerous actions are deletes or recreates of stateful resources, including catalogs, schemas, volumes, registered models, experiments, and stateful Lakebase resources. Pipeline deletes or recreates are also dangerous unless cascade_on_destroy is explicitly false. Manual edits are detected whenever the plan's old and remote states differ.

Without -e, dagshund always exits 0 on success.

Agent Skill

Dagshund ships an Agent Skill at skills/dagshund/SKILL.md. Once installed, your agent can answer questions like "what's changing in my deploy?" by running dagshund automatically.

Install through dagshund itself:

uvx dagshund --install-skill .agents/skills   # Codex / Gemini CLI
uvx dagshund --install-skill .cursor/skills   # Cursor
uvx dagshund --install-skill .claude/skills   # Claude Code

Or install from an open skill indexer such as skills.sh:

npx skills add chinchyisbored/dagshund

Re-running --install-skill overwrites any existing SKILL.md at the target path without prompting.

Contributing

Dagshund is a solo project and I'm not accepting pull requests at this time. If you run into a bug or have a feature request, please open an issue, I'm happy to hear what you need.

License

MIT

Metadata

Release files for dagshund 0.17.0

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

Source distribution (sdist)

Source distribution for dagshund 0.17.0
File Size Uploaded Provenance Actions
dagshund-0.17.0.tar.gz 2.5 MB Without provenance Details for dagshund-0.17.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dagshund 0.17.0
File Interpreter ABI Platform Actions
dagshund-0.17.0-py3-none-any.whl Python 3 none any Details for dagshund-0.17.0-py3-none-any.whl

Total release size: 3.3 MB

Release files / dagshund-0.17.0.tar.gz

Download URL dagshund-0.17.0.tar.gz
Size 2.5 MB
Tags Source
SHA-256 checksum
How to use checksums
76bd301f75bdeb86f22fd858004185fcbc99d1a34f754b49f592973de618e4f9
BLAKE2b-256 checksum
How to use checksums
f69322124c490d6702c81aaffea7e7b3e01da5435c70d4274712f6b0840d6fd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / dagshund-0.17.0-py3-none-any.whl

Download URL dagshund-0.17.0-py3-none-any.whl
Size 802.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0638d058dda48a412671d9b2b3f5f86f5c16c666a5cbf7bc72a3ecb206dd8558
BLAKE2b-256 checksum
How to use checksums
5f951dc836db914c27adf517b96ef9dbbe2fbdd8ce66ccd387603477d673b681
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for dagshund 0.17.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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