Skip to content

Commit 08481cd

Browse files
author
Gavin Williams
committed
Address review comments
1 parent 98b128a commit 08481cd

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/docs/features/agents/review-agent.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ title: AI Code Review Agent
33
sidebarTitle: AI code review agent
44
---
55

6-
This agent provides codebase-aware reviews for your GitHub PRs and GitLab MRs. When a review is triggered, the agent runs a two-phase LLM pipeline and posts inline comments on the changed files.
6+
The AI Code Review Agent gives you codebase-aware reviews for your GitHub PRs and GitLab MRs. When you trigger a review, it runs a two-phase LLM pipeline and posts inline comments on the changed files.
77

88
The AI Code Review Agent is [fair source](https://github.com/sourcebot-dev/sourcebot/tree/main/packages/web/src/features/agents/review-agent) and packaged in [Sourcebot](https://github.com/sourcebot-dev/sourcebot). To get started, [deploy Sourcebot](/docs/deployment/docker-compose) and follow the configuration instructions below.
99

1010
![AI Code Review Agent Example](/images/review_agent_example.png)
1111

1212
# How it works
1313

14-
When a review is triggered, the agent runs the following steps:
14+
When you trigger a review, the agent runs the following steps:
1515

1616
1. **MR summary pass.** A single LLM call analyses the full set of changed files to identify cross-file semantic changes, such as renamed functions, changed signatures, removed exports, or behaviour changes with cross-file implications. This summary is passed as additional context into each per-file review.
1717

1818
2. **Per-file reviews.** One LLM call is made per changed file. Each call receives the file's complete diff (all hunks combined), the full file content, the PR title and description, the MR summary from step 1, and any configured context files. Reviews run in parallel, up to five files at a time.
1919

20-
3. **Inline comments.** The agent posts the results as inline review comments on the PR or MR.
20+
3. **Inline comments.** Results are posted as inline review comments on your PR or MR.
2121

22-
If the MR summary pass finds no cross-file concerns, it returns nothing and the per-file reviews proceed without it.
22+
If the MR summary pass finds no cross-file concerns, it is skipped and the per-file reviews proceed without it.
2323

2424
# Language model
2525

packages/web/src/features/agents/review-agent/nodes/generateMrSummary.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const generateMrSummary = async (
2929

3030
let selectedModel = models[0];
3131
if (env.REVIEW_AGENT_MODEL) {
32-
const match = models.find((m) => m.displayName === modelName);
32+
const match = models.find((m) => m.displayName === env.REVIEW_AGENT_MODEL);
3333
if (match) {
3434
selectedModel = match;
3535
} else {

0 commit comments

Comments
 (0)