Create a review agent
Create a review agent for a concern your team wants reviewed consistently across code changes. You must be an organization owner to create or edit agents.
You can also create and update agents with the Depot CLI, including their instructions, model, repositories, and automatic events. See the Review Agents CLI reference. Use the Depot dashboard to change reasoning effort or delete an agent.
Create an agent
- Open Review Agents.
- Select Agents.
- Click New agent. If this is your first agent, the form is already visible under Create a review agent.
- Configure the agent:
- Prompt: Enter the review instructions.
- Name: Enter a name that identifies the review's purpose.
- Model: Choose a model, or keep Default.
- Reasoning effort: Choose a supported level, or keep Default.
- Repositories: Select the repositories the agent watches for automatic reviews.
- Under Run automatically on, select the checkboxes for events that start reviews automatically. Clear all checkboxes for manual runs only.
- Click Create agent.
Prompt
Tell the agent what to inspect, what evidence to report, and when a change should fail. Distinguish blocking problems from advice: findings alone do not make a review fail.
Depot asks the agent to support a failing decision with actionable findings. Missing evidence and tools or tests the agent couldn't run belong in the summary as limitations, rather than as findings or reasons to fail.
For example, use this prompt for an API compatibility agent:
Review changes to public API requests, responses, and error behavior.
Trace affected callers and tests to identify compatibility breaks introduced
by the change. Report each break with a file, line, affected client behavior,
and the evidence supporting your conclusion.
Do not report formatting preferences or speculative future problems.
Fail when an existing supported client would stop working without a migration.
Otherwise, pass and report non-blocking concerns as advisory findings.The agent receives the exact base and head revisions and the diff. Depot asks it to return a decision, a summary, and findings with a severity level, file, line, and explanation. You don't need to specify a JSON response format in your prompt.
The agent can run commands, builds, and tests to validate suspected issues in a disposable copy of the checkout. Changes made there are discarded, not committed or pushed to your repository. Commands have no network access, so they cannot download dependencies or reach remote services. Ask the agent to use what is already available in the checkout and sandbox.
Model
The Model menu lists the models currently available for reviews. Default currently uses GPT-6.1 Sol and follows Depot's default model rather than pinning a specific choice. Each review records the model it uses, so you can inspect the model in the review details. See Models and pricing to compare the available models and their token rates.
Reasoning effort
Reasoning effort controls how much the model reasons before answering. Higher levels can take longer and cost more. Default currently uses Medium.
The available levels depend on the model:
| Models | Available levels |
|---|---|
| GPT models | Low, Medium, High, Extra high |
| Claude Opus 4.6 | Low, Medium, High, Maximum |
| Claude Opus 5.5, Sonnet 5.5, and Haiku 5.5 | Low, Medium, High, Extra high, Maximum |
Changing the model resets an unsupported effort selection to Default. Changes apply to future reviews. Review details show a warning if the runtime uses a different effort level.
Repositories
Selected repositories determine where the agent runs automatically. Search for each repository by name and select it. Manual reviews can use any connected repository, even if the agent does not watch it. If you remove every repository, Depot keeps the agent's settings and the agent remains available for manual runs.
Known mirrors appear under their source repository with a mirror tag. A source and its mirror hold the same commits, so select only one of them: selecting both can review the same change twice. If the source repository isn't connected to your organization, the mirror is the only copy you can select.
Automatic events follow the provider of the repository you select. For example, if you select a Depot Code mirror of a GitHub repository, the agent runs on Depot Code events for that mirror, not GitHub events. To see results in GitHub, select the GitHub repository.
Automatic events
The Run automatically on field controls when the agent starts a review on its selected repositories. All events listed below are selected by default except GitHub's New commits pushed. Clear events you don't want, or clear all events to run reviews manually only.
| Provider | Available events |
|---|---|
| Depot Code | New commits pushed |
| GitHub | Pull request opened, New PR commits pushed, Pull request reopened, PR ready for review, New commits pushed |
| Origin | Pull request created, Head branch updated, Base branch updated, Pull request published |
- New commits pushed: Reviews branch pushes without requiring a pull request, on both Depot Code and GitHub.
- New PR commits pushed: On GitHub, reviews commits pushed to an open pull request.
- Head branch updated / Base branch updated: In Origin, the head branch contains the proposed changes. The base branch is the branch the pull request targets.
Pull request events only start reviews for open, non-draft pull requests. GitHub pull request reviews also skip pull requests from forks. Branch-push events run regardless of pull request status, but skip tag pushes and branch deletions.
On GitHub, selecting both New PR commits pushed and New commits pushed starts two reviews when you push commits to an open, non-draft pull request whose head and base branches are in the same repository: one for each event. Keep GitHub's New commits pushed off if you only want pull request reviews.
Changes included in a review
- GitHub and Origin pull request events: Review the full pull request diff, from the branches' common ancestor to the pull request's latest commit.
- GitHub branch pushes: Review the changes between the branch's previous and new commits. For a new branch, review only its latest commit against its first parent. A repository's first commit is compared against an empty tree.
Edit or pause an agent
- Open Agents in Review Agents.
- Select the agent.
- Change the settings under Edit agent.
- Click Save changes.
Changes apply to future reviews. Earlier reviews retain the instructions they ran with.
To stop automatic reviews but keep manual runs available, clear all events or remove all repositories. These changes do not cancel reviews that have already started.
Delete an agent
- Open Agents in Review Agents.
- Select the agent.
- Click Delete agent.
- Confirm the deletion.
Only organization owners can delete agents. The agent leaves the agents list and stops running on new changes. Its earlier reviews and transcripts remain available, subject to the existing transcript retention period.