Repository navigation
Conversation
What team comments, the model context, the dbt run history, the cost check, project health, the SQL graph, CTE timing, /to-model, defer and the lineage pane read and where it goes, the run records kept in the plugin store, and the tools run with --allow-write without asking. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ow-write, and what each feature sends Corrects the model context trigger and frequency, the cost check's compile-time queries, off switch and estimate lines reaching Claude, the SQL graph's request fields, the CTE baseline query, and adds docs coverage and /propagate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the write-permission wording Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… other paths and the health artifact folder Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r project, and the sql-graph request in the summary Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ion and names the cost recheck and the CTE Tell Claude route Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
review-loop: APPROVED at 8429919 (reviewers: Claude, Codex) |
Code Review SummaryStatus: 1 Issue Found | Recommendation: Merge No new findings in Overview
Issue Details (click to expand)SUGGESTION
Files Reviewed (4 files)
Fix these issues in Kilo Cloud Previous Review Summaries (2 snapshots, latest commit 4c6da96)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 4c6da96)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)SUGGESTION
Files Reviewed (5 files)
Fix these issues in Kilo Cloud Previous review (commit 8429919)Status: 2 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)SUGGESTION
Files Reviewed (4 files)
Reviewed by deepseek-v4.1-flash-1017 · Input: 131.2K · Output: 22.2K · Cached: 3.5M |
…its, not off switches Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
review-loop: APPROVED at 4c6da96 (reviewers: Claude, Codex) |
sahrizvi
left a comment
There was a problem hiding this comment.
Consensus review: Claude (lead) and Codex (independent pass, then cross-check). Requesting changes for one statement that the code contradicts.
Blocking
PRIVACY.md:48: "Claude has no way to post" is false. Claude can post a comment reply or resolve through altimate-code's CLI with--allow-writeafter the person approves it. Only the MCP route refuses. A user who asks Claude to reply to a comment would hit this in normal use. It is a one-sentence fix.
Also open
PRIVACY.md:59(major, edge case): a--varssecret written as a bare number ({password: 123456}) is recorded. Fix the wording or the check.
Minors that do not block
- 50 runs counted per session folder, not per project: an edge case, and the 1 MB cap holds.
- The lineage ask Claude prompt is not named in its row: it only sends identifiers and needs a press.
- Re-run filling the prompt: a draft of Claude's own command.
- End-of-task files under
target/.altimate-lineage/: existed before this PR, stay on the machine.
Everything else I checked holds against the code, including:
- the model context numbers (300 / 40 / 160);
- the comments limits (6 messages, 600 characters, 8 threads, about 6,000 characters; poll 900 s, 30 to 86,400);
- the five
write: truecallers, the same five the policy and README list; - the SQL graph request (
POST /dbt/v3/sql_lineagewithcompiled_sql,model_info,model_dialect,session_id); - the
table_lineage/databricks_table_lineageMCP call (only for a model the person asked for); - the usage event list, and the store files (mode 0600 on Claude Code 2.1.329).
The hooks/altimate-cli.ts hunk is a comment only.
Checks:
claude plugin test: 1263 pass, 1 fail at both head and base. The failing runs test is the same at base, so this PR did not cause it.tests/*.sh: 8/8 pass at both. pytest: 65 pass at both.validate --strictfails at both on ICON_MISSING only.
Nits and the merge-tree results are in a separate comment.
| | Feature | What it reads or runs | Where it goes | | ||
| |---|---|---| | ||
| | **Model context** (a helper) | When Claude reads a model's `.sql` file, a note built from the project's `target/manifest.json`: the model's name, materialization and relation, its parents and children and how deep they go, its tags, its description (cut at 300 characters), its tests, and up to 40 columns with their type, tests and description (each cut at 160 characters). The descriptions are whatever your dbt docs say. The note is framed as data, not instructions. | It goes with the file once per model, manifest revision, turn and agent (a subagent has its own), each time Claude reads that `.sql` file again in a new turn, and reaches your model provider. A toast on your screen shows the model's name and materialization, with the counts of columns and tests and the depth upstream and downstream. Nothing else is sent. | | ||
| | **Team comments** (`/comments`, the band, Claude's context) | The dbt project's name (the `name:` of `dbt_project.yml`) is passed to altimate-code's `docs_share_comments` tool, which asks the Altimate service you are signed in to for the open comment threads on your team's shared dbt docs. It asks at session start (or when Claude first reads a model of a project below the session folder) and, in an interactive session, every `commentsPollSeconds` (900 by default, 30 to 86400); a session with nobody at the prompt asks once. When the service answers that you are signed out or refused, it stops polling until you press Refresh or open `/comments`; reading a file of another dbt project still asks once for that project's threads. | When Claude reads or edits a file that has open threads (a model's `.sql`, `.yml` or `.py`, a `.md` or a `.csv`), one block names each thread's line, column or field, highlighted text, and its last 6 messages with the authors' names and text (a message cut at 600 characters, at most 8 threads and about 6,000 characters), and tells Claude that other people wrote it. That text enters Claude's context and reaches your model provider. The plugin setting "Team comments in Claude's context" (`commentsInContext`) off keeps it out of Claude's context; the pane still shows it. The threads and your drafts are kept in the session only, not in the plugin's store. A reply or resolve is sent only when you press its button in the `/comments` pane: the reply text and the thread's ids go to the Altimate service, posted under your name. Claude has no way to post. | |
There was a problem hiding this comment.
Major (real case, blocks): "Claude has no way to post" is not true. The plugin's own posting path is button-only, but Claude can post a reply or resolve through altimate-code's CLI. docs_share_comments is on the tool run allow-list (altimate-code tool-cli/allow-list.ts:130). With --allow-write the CLI's askFor lets its docs_share_comments permission through (tool-cli/permissions.ts:36-49). The tool then posts under the signed-in user's name (tools/docs-share-comments.ts:229-300). The threads' ids come from a read-only list call. The skill tells Claude to ask before adding --allow-write (skills/altimate-code/SKILL.md:113), so this needs the person's yes. But a person who asks Claude to "reply to that comment" gets a post the policy says cannot happen. Only the MCP route refuses it: forceReadOnly is set without write (mcp-server/adapter.ts:460-475).
Suggested wording: "The plugin posts only when you press its button. Claude can also post a reply or resolve through altimate-code's CLI (docs_share_comments with --allow-write) when you ask it to and approve the write; the plugin's MCP server refuses it."
| | **Docs coverage and `/propagate`** | After Claude writes a column description in a model's YAML, `impact_analysis` reads the manifest locally to find the downstream columns that carry the same value; after Claude edits a model's SQL, `dbt_docs_coverage` reads the manifest for the model's undocumented columns. The offered copies are held for the session. | A line under the edit names the models and columns and goes to Claude. When you press Apply in the `/propagate` pane, one prompt naming those models and columns (with their unique ids), the project folder and the YAML file is submitted to Claude and reaches your model provider; it carries names and ids, not the description text, which Claude reads from the YAML file. | | ||
| | **Lineage pane and edit impact** | `dbt_lineage` and `impact_analysis` read the manifest locally; the pane shows the answers. A line for what an edit reaches downstream goes to Claude with the edit's result (also shown to you when `show_edit_impact` is on). | That line names models and columns and reaches your model provider. When you ask for a model (`/lineage`, a press, or `r`), and another MCP server you connected offers a `table_lineage` or `databricks_table_lineage` tool, the model's relation name (database, schema and table) is sent to that server to draw warehouse lineage, and to no other; a model the pane only followed from Claude's reads is never sent. That server's handling is its own. | | ||
|
|
||
| **Run records.** Each record in the dbt runs history holds the artifact's invocation id, the dbt project folder, the command as Claude ran it (with the folder it ran in) and the `dbt retry` line that Re-run failed fills in, the dbt subcommand, the elapsed time, the completion time, the counts of nodes (total, passed, failed, skipped), and up to 50 rows, failures first, each with a node's unique id, name, status, execution time and dbt's message cut at 300 characters. Messages are dbt's, as written, and can name relations or values. A secret-looking `NAME=value` in front of the command is stored as `NAME="$NAME"`, and a command whose `--vars` name a secret, or that holds a URL with a credential in it, is not recorded. The history is kept in Claude Code's plugin store under the Claude Code configuration directory, in files only your user can read, across sessions and `/clear`, and is not sent anywhere by the plugin. It holds at most 50 runs per dbt project and about 1 MB in all; past that the oldest run of the folder with the most runs is dropped. There is no expiry and no clear button, and turning `dbt_mods` off does not delete it: to remove it, delete the plugin's store data (which also makes a new install id). |
There was a problem hiding this comment.
Major (edge case): "a command whose --vars name a secret ... is not recorded" does not hold when the secret's value is a bare number. pairHoldsSecret (hooks/features/runs.tsx:168) exempts numeric, boolean and null values, so that token_limit: 3 is not treated as a secret. Run through resultsInvocations, the two cases below give:
dbt build --vars '{password: 123456}'is recorded ascd /repo && dbt build --vars '{password: 123456}'dbt run --vars '{db_pin: 482913}'is recorded verbatim
The quoted form '{password: "hunter22"}' is correctly not recorded. This needs an all-digit secret written without quotes, and it stays in the 0600 store file. Either say "names a secret with a text value", or stop exempting numbers for password-type keys.
| | **Docs coverage and `/propagate`** | After Claude writes a column description in a model's YAML, `impact_analysis` reads the manifest locally to find the downstream columns that carry the same value; after Claude edits a model's SQL, `dbt_docs_coverage` reads the manifest for the model's undocumented columns. The offered copies are held for the session. | A line under the edit names the models and columns and goes to Claude. When you press Apply in the `/propagate` pane, one prompt naming those models and columns (with their unique ids), the project folder and the YAML file is submitted to Claude and reaches your model provider; it carries names and ids, not the description text, which Claude reads from the YAML file. | | ||
| | **Lineage pane and edit impact** | `dbt_lineage` and `impact_analysis` read the manifest locally; the pane shows the answers. A line for what an edit reaches downstream goes to Claude with the edit's result (also shown to you when `show_edit_impact` is on). | That line names models and columns and reaches your model provider. When you ask for a model (`/lineage`, a press, or `r`), and another MCP server you connected offers a `table_lineage` or `databricks_table_lineage` tool, the model's relation name (database, schema and table) is sent to that server to draw warehouse lineage, and to no other; a model the pane only followed from Claude's reads is never sent. That server's handling is its own. | | ||
|
|
||
| **Run records.** Each record in the dbt runs history holds the artifact's invocation id, the dbt project folder, the command as Claude ran it (with the folder it ran in) and the `dbt retry` line that Re-run failed fills in, the dbt subcommand, the elapsed time, the completion time, the counts of nodes (total, passed, failed, skipped), and up to 50 rows, failures first, each with a node's unique id, name, status, execution time and dbt's message cut at 300 characters. Messages are dbt's, as written, and can name relations or values. A secret-looking `NAME=value` in front of the command is stored as `NAME="$NAME"`, and a command whose `--vars` name a secret, or that holds a URL with a credential in it, is not recorded. The history is kept in Claude Code's plugin store under the Claude Code configuration directory, in files only your user can read, across sessions and `/clear`, and is not sent anywhere by the plugin. It holds at most 50 runs per dbt project and about 1 MB in all; past that the oldest run of the folder with the most runs is dropped. There is no expiry and no clear button, and turning `dbt_mods` off does not delete it: to remove it, delete the plugin's store data (which also makes a new install id). |
There was a problem hiding this comment.
Minor (edge case): "at most 50 runs per dbt project" holds per session folder, not per project. The store is keyed by the session root (runs.tsx:569, :581), and withRun counts projects inside one root's list only (runs.tsx:310-318). Opening the same project from /repo and from /repo/models keeps 50 in each: I ran withRun/fitStore and got 100 runs kept for one project. The 1 MB total cap holds. Suggest "at most 50 runs per dbt project for each folder you start Claude Code in".
| | **Raw SQL to a model** (`/to-model`) | Only when you run it: the SQL (a file you name, or your selection) and the project folder go to `dbt_map_relations`, which maps each table to a `ref()` or `source()` call. | When the command finishes it submits one prompt to Claude, holding the SQL and the replacements; that reaches your model provider. | | ||
| | **Defer and target** (`/defer`, `/target`) | `dbt_defer_state` reads the project's dbt Power User defer setting and the profile's target names. The plugin adds `--defer --state <dir>`, `--favor-state` or `--target <name>` to the dbt commands Claude runs that take them. | The plugin sends nothing for it; the setting is read through altimate-code. Claude's tool result says what the command ran as. | | ||
| | **Docs coverage and `/propagate`** | After Claude writes a column description in a model's YAML, `impact_analysis` reads the manifest locally to find the downstream columns that carry the same value; after Claude edits a model's SQL, `dbt_docs_coverage` reads the manifest for the model's undocumented columns. The offered copies are held for the session. | A line under the edit names the models and columns and goes to Claude. When you press Apply in the `/propagate` pane, one prompt naming those models and columns (with their unique ids), the project folder and the YAML file is submitted to Claude and reaches your model provider; it carries names and ids, not the description text, which Claude reads from the YAML file. | | ||
| | **Lineage pane and edit impact** | `dbt_lineage` and `impact_analysis` read the manifest locally; the pane shows the answers. A line for what an edit reaches downstream goes to Claude with the edit's result (also shown to you when `show_edit_impact` is on). | That line names models and columns and reaches your model provider. When you ask for a model (`/lineage`, a press, or `r`), and another MCP server you connected offers a `table_lineage` or `databricks_table_lineage` tool, the model's relation name (database, schema and table) is sent to that server to draw warehouse lineage, and to no other; a model the pane only followed from Claude's reads is never sent. That server's handling is its own. | |
There was a problem hiding this comment.
Minor: the lineage pane's ask Claude button (hotkey a) submits Explain the lineage of <model>[.<column>] and what a change to it would affect. straight to Claude (hooks/lineage.tsx:1750). The section's opening sentence covers it in general, but this row names every other path to Claude and not this one. It only sends identifiers and needs a press. Worth one clause.
| | **Raw SQL to a model** (`/to-model`) | Only when you run it: the SQL (a file you name, or your selection) and the project folder go to `dbt_map_relations`, which maps each table to a `ref()` or `source()` call. | When the command finishes it submits one prompt to Claude, holding the SQL and the replacements; that reaches your model provider. | | ||
| | **Defer and target** (`/defer`, `/target`) | `dbt_defer_state` reads the project's dbt Power User defer setting and the profile's target names. The plugin adds `--defer --state <dir>`, `--favor-state` or `--target <name>` to the dbt commands Claude runs that take them. | The plugin sends nothing for it; the setting is read through altimate-code. Claude's tool result says what the command ran as. | | ||
| | **Docs coverage and `/propagate`** | After Claude writes a column description in a model's YAML, `impact_analysis` reads the manifest locally to find the downstream columns that carry the same value; after Claude edits a model's SQL, `dbt_docs_coverage` reads the manifest for the model's undocumented columns. The offered copies are held for the session. | A line under the edit names the models and columns and goes to Claude. When you press Apply in the `/propagate` pane, one prompt naming those models and columns (with their unique ids), the project folder and the YAML file is submitted to Claude and reaches your model provider; it carries names and ids, not the description text, which Claude reads from the YAML file. | | ||
| | **Lineage pane and edit impact** | `dbt_lineage` and `impact_analysis` read the manifest locally; the pane shows the answers. A line for what an edit reaches downstream goes to Claude with the edit's result (also shown to you when `show_edit_impact` is on). | That line names models and columns and reaches your model provider. When you ask for a model (`/lineage`, a press, or `r`), and another MCP server you connected offers a `table_lineage` or `databricks_table_lineage` tool, the model's relation name (database, schema and table) is sent to that server to draw warehouse lineage, and to no other; a model the pane only followed from Claude's reads is never sent. That server's handling is its own. | |
There was a problem hiding this comment.
Minor (existing before this PR): the end-of-task band also keeps files on disk. It copies the manifest and writes last-task.json under target/.altimate-lineage/ (hooks/task-impact.tsx:127, :302-342). That file includes column SQL expressions from before and after the task. The existing "lineage report" section names only the HTML file there. The files stay on this machine. Fine as a follow-up.
| |---|---|---| | ||
| | **Model context** (a helper) | When Claude reads a model's `.sql` file, a note built from the project's `target/manifest.json`: the model's name, materialization and relation, its parents and children and how deep they go, its tags, its description (cut at 300 characters), its tests, and up to 40 columns with their type, tests and description (each cut at 160 characters). The descriptions are whatever your dbt docs say. The note is framed as data, not instructions. | It goes with the file once per model, manifest revision, turn and agent (a subagent has its own), each time Claude reads that `.sql` file again in a new turn, and reaches your model provider. A toast on your screen shows the model's name and materialization, with the counts of columns and tests and the depth upstream and downstream. Nothing else is sent. | | ||
| | **Team comments** (`/comments`, the band, Claude's context) | The dbt project's name (the `name:` of `dbt_project.yml`) is passed to altimate-code's `docs_share_comments` tool, which asks the Altimate service you are signed in to for the open comment threads on your team's shared dbt docs. It asks at session start (or when Claude first reads a model of a project below the session folder) and, in an interactive session, every `commentsPollSeconds` (900 by default, 30 to 86400); a session with nobody at the prompt asks once. When the service answers that you are signed out or refused, it stops polling until you press Refresh or open `/comments`; reading a file of another dbt project still asks once for that project's threads. | When Claude reads or edits a file that has open threads (a model's `.sql`, `.yml` or `.py`, a `.md` or a `.csv`), one block names each thread's line, column or field, highlighted text, and its last 6 messages with the authors' names and text (a message cut at 600 characters, at most 8 threads and about 6,000 characters), and tells Claude that other people wrote it. That text enters Claude's context and reaches your model provider. The plugin setting "Team comments in Claude's context" (`commentsInContext`) off keeps it out of Claude's context; the pane still shows it. The threads and your drafts are kept in the session only, not in the plugin's store. A reply or resolve is sent only when you press its button in the `/comments` pane: the reply text and the thread's ids go to the Altimate service, posted under your name. Claude has no way to post. | | ||
| | **dbt runs** (`/runs`) | After a `dbt run`, `build`, `test`, `seed`, `snapshot`, `compile`, `retry` or `clone` Claude ran, the plugin reads the project's `target/run_results.json` through `dbt_run_results` (a local read) and records the run. | Kept locally, see below. Claude gets one line per run: the subcommand, the counts, and up to 5 failed node names, as plain identifiers. | |
There was a problem hiding this comment.
Minor: Re-run also puts the stored command into the prompt box ($.prompt.fill, hooks/features/runs.tsx:614, :642). The text only reaches the model provider if the person sends it, and it is the command Claude itself ran (with secret-named assignments now "$NAME"). Line 59 mentions this for Re-run failed only. Naming both buttons here would complete the row.
|
Consensus review (Claude + Codex): nits and other notes for #48 at Nits
Rejected from the panel: in round 2, Codex said posting needs no Merge-tree against other open PRs
No CI workflow or test reads |
What changes
PRIVACY.md gets a "dbt Power User features" section, a short-version bullet, a new "Last revised" date and a dated entry in "Changes to this policy". The section says, from what the hooks do:
commentsInContextkeeps comments out; replies and resolves are sent only on a button press./runshistory stores (fields, 50 runs per project, about 1 MB, secret handling in the stored command), where (Claude Code's plugin store), that it has no expiry or clear button and how to remove it.--allow-writeruns: which features pass it without asking (cost estimate, project health, SQL graph, CTE timing, comment posts) and when each runs./to-model, defer, lineage pane) with what it reads or runs and where it goes, including the SQL graph's call to the Altimate backend and the lineage pane's table name sent to a connectedtable_lineageMCP server.Documentation only; no code changes.
How it was tested
plugins/altimate-code/hooks/features/*andhooks/dbt-mods*.claude plugin test plugins/altimate-code: all pass except, on separate runs under load, "a dbt call that starts while another call reads its artifact" and a timing test incost.test.tsx, both of which also fail on an unchangedmain.bash tests/*.sh: all pass.claude plugin validate --strict .: passed.🤖 Generated with Claude Code