Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
00778e0
feat: dbt_cost_estimate reports what a model's earlier runs cost
hkaltai Nov 25, 2026
5b36ed7
fix: a configured cost rate wins over the account rate sheet and list…
hkaltai Nov 25, 2026
fcdb636
fix: dbt_cost_estimate history pricing, run grouping and pre-run range
hkaltai Nov 25, 2026
9cc3ba3
fix: dbt_cost_estimate pre-run bounds, table count, UTC rate day, Dat…
hkaltai Nov 25, 2026
ad7b340
fix: dbt_cost_estimate lower-bound dry runs, Databricks types and UTC…
hkaltai Nov 25, 2026
67cf591
fix: dbt_cost_estimate run boundaries at the edge of the period read,…
hkaltai Nov 25, 2026
18bd0e6
fix: price Snowflake credits at the rate actually billed, overage inc…
hkaltai Nov 25, 2026
0d9bca6
fix: dbt_cost_estimate review follow-ups (Snowflake rates, BigQuery b…
hkaltai Nov 25, 2026
f2ba814
fix: dbt_cost_estimate BigQuery runs carry the script's user and join…
hkaltai Nov 25, 2026
74743e2
fix: dbt_cost_estimate review matrix fixes (BigQuery pairing, bounds,…
hkaltai Nov 25, 2026
981c128
fix: dbt_cost_estimate reads every query as of one instant; BigQuery …
hkaltai Nov 25, 2026
4b64c3b
fix: dbt_cost_estimate boundary read includes a statement exactly at …
hkaltai Nov 25, 2026
448151f
fix: dbt_cost_estimate boundary queries take explicit instants derive…
hkaltai Nov 25, 2026
19c69bd
fix: dbt_cost_estimate review follow-ups (config-rate billing, mixed …
hkaltai Nov 25, 2026
8a55c18
fix: dbt_cost_estimate never prices part of an hour, day or job and c…
hkaltai Nov 25, 2026
7886f96
test: dbt_cost_estimate's Databricks hour test puts the unpriced DBUs…
hkaltai Nov 25, 2026
d94df46
fix: dbt_cost_estimate compares warehouse category columns case-insen…
hkaltai Nov 25, 2026
291cda7
chore: re-run checks on the branch head
hkaltai Nov 25, 2026
64a7a82
Merge remote-tracking branch 'origin/main' into fix/fix-warehouse-cos…
hkaltai Nov 26, 2026
8de8f17
refactor: dbt_cost_estimate estimates BigQuery only
hkaltai Nov 26, 2026
c96f76f
fix: dbt_cost_estimate says the price floor holds only for an uncache…
hkaltai Nov 26, 2026
26c01e8
fix: dbt_cost_estimate shows no on-demand rate on capacity pricing wi…
hkaltai Nov 26, 2026
b5b2aa6
fix: dbt_cost_estimate never treats the manifest's dependency count a…
hkaltai Nov 26, 2026
06295b4
fix: dbt_cost_estimate prices the pre-run SELECT as an estimate, not …
hkaltai Nov 26, 2026
bda1783
fix: dbt_cost_estimate's on-demand note states how jobs are priced, w…
hkaltai Nov 26, 2026
f333721
fix: dbt_cost_estimate reads cost history only when asked, and groups…
hkaltai Nov 27, 2026
5363ea4
fix: dbt_cost_estimate counts billed read-only hooks, matches boundar…
hkaltai Nov 27, 2026
8e4af31
fix: dbt_cost_estimate docs state history is opt-in everywhere; tests…
hkaltai Nov 27, 2026
047cca2
fix: dbt_cost_estimate boundary read includes running jobs and treats…
hkaltai Nov 27, 2026
5ec2cea
fix: dbt_cost_estimate boundary read finds a job still going that was…
hkaltai Nov 27, 2026
7ae0d56
fix: dbt_cost_estimate always applies jobs still running, even when t…
hkaltai Nov 27, 2026
a0e8803
fix: dbt_cost_estimate live read also takes a job with no end time, w…
hkaltai Nov 27, 2026
5c066d1
fix: dbt_cost_estimate reads the boundary once, with a two-day lookba…
hkaltai Nov 27, 2026
692b4cc
fix: dbt_cost_estimate prices no run when the boundary read fails
hkaltai Nov 27, 2026
03311e5
fix: dbt_cost_estimate full boundary read keeps its evidence and dist…
hkaltai Nov 27, 2026
39d7627
fix: dbt_cost_estimate boundary span covers the longest job plus the …
hkaltai Nov 27, 2026
a02e5e5
fix: dbt_cost_estimate waits ten minutes after a temp CTAS and covers…
hkaltai Nov 27, 2026
1259399
fix: dbt_cost_estimate holds a run open ten minutes after any unpaire…
hkaltai Nov 27, 2026
c2a3c40
fix: dbt_cost_estimate config accepts any rate and the tool names an …
hkaltai Nov 27, 2026
b568b65
fix: config rates accept null, so an infinity saved as null still loads
hkaltai Nov 27, 2026
99c5590
fix: dbt_cost_estimate groups runs by dbt's invocation id label, user…
hkaltai Nov 27, 2026
7cf74ab
fix: dbt_cost_estimate splits runs by target, says whose jobs and wha…
hkaltai Nov 27, 2026
5d2d5e5
fix: dbt_cost_estimate prices BigQuery ML as unknown, finds an invoca…
hkaltai Nov 27, 2026
6f87e50
fix: dbt_cost_estimate finds every job of an invocation within JOBS r…
hkaltai Nov 27, 2026
b8d017f
fix: dbt_cost_estimate reads the invocations' own jobs apart, and eac…
hkaltai Nov 27, 2026
69ba039
fix: dbt_cost_estimate's longest job span uses the largest configurab…
hkaltai Nov 27, 2026
8722d89
fix: dbt_cost_estimate lets a labelled run be judged by its own invoc…
hkaltai Nov 27, 2026
6362d52
fix: dbt_cost_estimate treats a BigQuery ML job as a build, and every…
hkaltai Nov 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

**Breaking: `dbt_cost_estimate` is BigQuery only, so Snowflake and Databricks are no longer gated by `maxScanBytes`.** The tool used to give a scan figure on Snowflake and Databricks from the warehouse planner's EXPLAIN (bytes assigned there count partitions before runtime pruning and usually overstate what runs). It now answers `supported: false` on every warehouse but BigQuery and compiles nothing, so the Claude plugin's scan check (`maxScanBytes`, 10 GiB by default) no longer holds a `dbt run`, `build` or `show` on those two warehouses; the command runs with a line saying why. On BigQuery the scan figure is unchanged, and `history: true` now also reads what a model's earlier runs cost (billed `INFORMATION_SCHEMA.JOBS` queries; see the dbt tools page).

## [0.12.12] - 2026-11-20

**dbt Power User features now work from the command line, and an owner can send a workspace request back for changes.** Nine new tools estimate what a dbt model or query would scan before it runs (BigQuery dry run, Snowflake and Databricks from the planner's EXPLAIN), read the last dbt run, check a model's docs coverage, report DataPilot project health, time a model's CTEs, draw its SQL graph, map raw SQL tables to `ref()` and `source()`, read the defer setting, and reply to comments on shared dbt docs. Call them with `altimate-code tool run` or from another coding agent through `mcp serve`. The new `altimate-code integrations` command connects GitHub, Jira and Linear with your own credentials. On workspaces with review on, a request can be sent back with a comment, then changed and sent again. The TUI says what changed in the workspace's skills and knowledge since your last session. Also in this release: stricter SQL checks in the tool CLI and MCP server, the agent keeps your changes instead of reverting them, `altimate review` reviews only the PR's own changes, and Snowflake key-pair login reads every private-key format.
Expand Down
1 change: 1 addition & 0 deletions docs/docs/configure/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Configuration is loaded from multiple sources, with later sources overriding ear
| `plugin` | `string[]` | Plugin specifiers |
| `instructions` | `string[]` | Glob patterns for instruction files |
| `telemetry` | `object` | Telemetry settings (see [Telemetry](../reference/telemetry.md)) |
| `cost` | `object` | Rates `dbt_cost_estimate` prices BigQuery usage at: `bigqueryUsdPerTib`, `bigquerySlotHourUsd` (see [dbt tools](../data-engineering/tools/dbt-tools.md#dbt_cost_estimate)) |
| `compaction` | `object` | Context compaction settings (see [Context Management](context-management.md)) |
| `experimental` | `object` | Experimental feature flags |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ The helpers read `manifest.json` and `run_results.json` from the `target-path` t
The rest of the plugin's panes and commands call Altimate Code's tools through `altimate tool run`, and make no model-provider call of their own. The dbt Power User ones need altimate-code 0.12.12 or later, the release with the [dbt Power User tools](../tools/dbt-tools.md#dbt-power-user-tools); with an older one most say so where their answer would be, while `/runs` records nothing and `/defer` adds no flags. Cost, health, the SQL graph and CTE timing start the project's dbt adapter, so the plugin runs them with `altimate tool run --allow-write` itself, without asking. The commands are listed by the bare names the plugin registers.

- **Lineage pane** (`/lineage <model>[.column]`). The dbt model Claude reads or edits, with every model upstream and downstream, its exposures (dashboards and other consumers), each output column's sources and, for a picked column, the downstream models and dashboards that read it, from `dbt_lineage` and `impact_analysis` on `target/manifest.json`. When a task changed a model, a band above the prompt sums up each changed column's downstream reach, and **Open report** or `/lineage-report` builds an offline HTML report of it. Claude Code opens the pane on its own only in a terminal at least 144 columns wide; `/lineage` opens it at any width.
- **Scan cost check** (`/scan-cost <model>`, `/allow-scan`). Before a `dbt run`, `build` or `show` that Claude runs names one model or an inline query, `dbt_cost_estimate` says what it would scan: a BigQuery dry run, or the planner's `EXPLAIN` on Snowflake and Databricks. Over the plugin's `maxScanBytes` setting (10 GiB by default; 0 never holds) the command is refused with the estimate until you run `/allow-scan`, which lets that same command through once. A query with no estimate runs, with a line saying why, and other warehouses are never held. On Databricks the `EXPLAIN` can start a stopped SQL warehouse, which is billed while it runs.
- **Scan cost check** (`/scan-cost <model>`, `/allow-scan`). Before a `dbt run`, `build` or `show` that Claude runs names one model or an inline query, `dbt_cost_estimate` says what it would scan from a BigQuery dry run. The scan check uses the dry run only and sends no `INFORMATION_SCHEMA` query. A model's earlier run cost is read only when `dbt_cost_estimate` is asked with `history: true`, and each such call runs up to eight billed `INFORMATION_SCHEMA.JOBS` queries (three normally: capacity, history and boundary; one more for the earlier jobs of labelled invocations, which reads back to the 180 days JOBS keeps and can scan far more query text than the history; one more when a script matched, for its children; up to eight if your role cannot list every user's jobs, since the capacity, history and children reads each run again on `JOBS_BY_USER`, which scans only your own jobs, so service-account and other users' runs are left out and the answer says so first; the project-wide read needs `bigquery.jobs.create` and `bigquery.jobs.listAll`, the fallback `bigquery.jobs.create` and `bigquery.jobs.list`): a capacity check (7 days of jobs), the history (30 days, scanning the query text of every query job in the project, so the bytes grow with the project's activity, not the model, and its 500-row cap does not cap the bytes), the boundary (one more query, which also finds the model's jobs that are queued, running, or have no end time) and, when a script matched, the script's children. Each is billed on demand (at least 10 MiB) or uses reservation slots, and `INFORMATION_SCHEMA` is never cached. It works on BigQuery only. Over the plugin's `maxScanBytes` setting (10 GiB by default; 0 never holds) the command is refused with the estimate until you run `/allow-scan`, which lets that same command through once. A query with no estimate runs, with a line saying why, and other warehouses, Snowflake and Databricks included, are never held.
- **Project health** (`/health`). At session start `dbt_health` (DataPilot) records the project's existing insights; after a turn in which Claude changed model files, the check runs again and the new issues on those models show in a band. With `healthBlocksPush` on, `git push` is refused while the check of your latest changes is not in or finds new issues. `healthConfigPath` names a DataPilot config file by a path inside the dbt project. A check can take minutes, and it needs the `altimate-datapilot-cli` package in the project's Python.
- **Team comments** (`/comments`). The open comment threads on dbt docs your team shared through Altimate, fetched at session start and, in an interactive session, every `commentsPollSeconds` (15 minutes by default). When Claude reads or edits a model that has open threads, they are added to its context as quoted data (`commentsInContext`), so it sees the review before it changes the model. Reply and resolve are buttons you press in the pane; Claude has no way to post. Needs an Altimate sign-in.
- **dbt runs** (`/runs`). The dbt commands Claude ran that wrote `run_results.json`, with their per-node results from `dbt_run_results`, up to 50 runs per project, kept on this machine across sessions. From the pane a run can be opened, run again, or its failures run again through the prompt.
Expand Down
Loading
Loading