Skip to main content
A Custom reviewer reviews with one of your own agents. Use it when you want your team’s rules in the review, for example naming conventions, required tests, or a check of the change against its Linear or Jira ticket.

Pick an agent

  1. In the reviewer form, under Reviewer agent, select Custom reviewer.
  2. In Agent, select one of your agents. Select Edit to open it in the agent builder.
  3. Or select Create custom reviewer. The agent builder opens with the dbt-model-reviewer template: a senior analytics engineer who checks the lineage of every changed model and calls out any change to a metric that no test proves was intended. Change it, deploy it, and you return to the reviewer form.
The agent can be built in the app or defined in .dinoai/agents/ on the default branch. Paradime reads the agent from the default branch, not from the pull request, so a pull request can’t change the reviewer that reviews it. An agent that you deploy with Open a pull request is not in the list until that pull request merges.
Built-in agents that act as a Paradime user, such as the dbt Cloud™ migration agent, can’t be reviewers.

Write the instructions

Write the agent’s role, goal, and backstory about what to look for. Don’t write how to post the review. Paradime sends the agent one message with the pull request and the output format, and it posts the findings itself. Every pull request into a watched branch reaches the agent, whatever it changes. Paradime’s message tells the agent that its scope, by default, is the dbt™ project’s source files: SQL, YAML, Python, CSV seeds, and Jinja. The agent’s own instructions come first, so write what to review or ignore in its goal or backstory. For example:
  • Also review the Terraform files under infra/.
  • Only review changes under models/marts/.
  • Ignore pull requests that only change docs.
When nothing in the pull request is in scope, the agent stops before it reads further or runs dbt™ or queries, and reports the review as skipped. See How the review is posted. The agent can use its tools as in any session: read files, run dbt compile, query the warehouse, and look up lineage. To check the change against a ticket, give the agent the Linear or Jira tools. To hand work to a specialist, add it to agents_squad. See YAML configuration. A review session has no Paradime user behind it, so tools that trigger or retry Bolt runs are refused.

What the agent receives

The agent starts checked out at the pull request’s head commit, detached. Its first message has: Paradime marks the pull request text as information written by other people, not as instructions, so a pull request description can’t redirect the reviewer.

How the review is posted

A GitHub pull request where the paradime-eu bot posted a DinoAI review from a custom reviewer named bugbot: a summary with 1 finding, and a high-severity inline comment on dim_f1__constructor.sql explaining why the new cutoff makes a CASE branch unreachable
The agent’s final message must end with one fenced block labelled dinoai-findings:
  • reviewed_head is the output of git rev-parse HEAD. If it doesn’t match the pull request’s head commit, Paradime withholds the findings and asks you to run the review again.
  • severity is critical, high, medium, low, or info.
  • line must be a line in the diff. A finding on another line goes in the review body under Further findings instead of inline.
  • suggestion is optional, and must be a full replacement for that one line.
  • fixed lists the ids of earlier findings that are now fixed. Every earlier finding not listed stays open.
  • skipped is optional. Set it only when nothing in the pull request is in scope, with an empty findings list: one line on why.
When nothing is in scope, the block looks like this:
For a skipped review, Paradime posts nothing to the pull request, and the Paradime Code Review check passes with Skipped: and the reason, also when the reviewer blocks. Paradime ignores skipped when the review has findings, or when earlier reviews left findings open. A review that someone asked for with @paradime review is posted anyway, with the agent’s summary, so the person who asked gets an answer. If the final message has no findings block, Paradime posts the message as the review summary, and the check is neutral with The review reported no structured findings. The agent must not post to the pull request itself, approve it, or run gh pr review, gh pr comment, or a write through gh api (or the glab equivalents). Paradime posts the review. To enforce this, turn off the agent’s Comment and Edit merge and pull request writes, and keep Approve and Merge off. Agents have Comment and Edit on by default. The built-in paradime-pr-reviewer has all four off.

The DinoAI reviewer

The DinoAI reviewer option runs paradime-pr-reviewer, the reviewer agent that Paradime builds in and manages. It is tuned for dbt™ changes. It reads the diff and the files around it, and it uses the dbt™ lineage to see the columns, tests, and downstream models of each changed model. It reports changes that would hurt production: wrong results, broken models or tests, a changed grain or interface that breaks downstream models, unsafe incremental logic, and new assumptions that no test checks. Each finding has the file, the line, and a fix. There is nothing to set up, and Paradime keeps it up to date. If your workspace has its own agent named pr-reviewer, the DinoAI reviewer option runs that agent instead of paradime-pr-reviewer. Paradime looks for it in the agents saved in the app first, then in .dinoai/agents/pr-reviewer.yml (or .yaml) on the default branch. This applies to every reviewer in the workspace that uses the DinoAI reviewer. To review with your own instructions on some branches only, build your own agent with another name and pick it as a Custom reviewer. Select Create custom reviewer to start from the dbt-model-reviewer template.

Guides

End-to-end PR reviewer

A custom reviewer that checks scope against Linear, plus code, tests, and docs.

dbt™ impact assessor

A custom reviewer that reports the downstream impact of a model change.