You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/features/agents/review-agent.mdx
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,7 +139,7 @@ You can also trigger a review manually by commenting `/review` on any PR or MR.
139
139
140
140
# Agent configs
141
141
142
-
Agent configs let you customise how the review agent behaves per repository, connection, or your whole org. You can override the model, review command, auto-review behaviour, custom prompt, and context files — all without changing environment variables.
142
+
Agent configs let you customise how the review agent behaves per repository, connection, or your whole org. You can override the model, review command, auto-review behaviour, custom prompt, and context files, all without changing environment variables.
143
143
144
144
Configs are managed on the **Agents** page in the Sourcebot UI. Each config has a **scope**:
145
145
@@ -153,20 +153,20 @@ When a PR or MR arrives, Sourcebot selects the most specific matching config. If
153
153
154
154
Each config can include a custom prompt. Two modes are available:
155
155
156
-
- **Append** (default) — your instructions are added after the built-in review rules.
157
-
- **Replace** — your instructions entirely replace the built-in rules. Use this when you want full control over what the agent looks for.
156
+
- **Append** (default): your instructions are added after the built-in review rules.
157
+
- **Replace**: your instructions entirely replace the built-in rules. Use this when you want full control over what the agent looks for.
158
158
159
159
## Context files
160
160
161
-
You can configure one or more repository files to be fetched at review time and injected as additional context for the model. This is useful for encoding project-specific conventions that the model should be aware of when reviewing diffs — for example, preferred error handling patterns, style rules, or areas of the codebase that need extra scrutiny.
161
+
You can configure one or more repository files to be fetched at review time and injected as additional context for the model. This is useful for encoding project-specific conventions that the model should be aware of when reviewing diffs (for example, preferred error handling patterns, style rules, or areas of the codebase that need extra scrutiny).
162
162
163
163
Set **Context files** in the agent config form to a comma or space separated list of paths relative to the repository root (e.g. `AGENTS.md .sourcebot/review.md`). Files that do not exist in the repository are silently ignored. The files are fetched once per PR from the head commit and included in the context for every diff hunk.
164
164
165
165
# Environment variable reference
166
166
167
167
| Variable | Default | Description |
168
168
|---|---|---|
169
-
| `REVIEW_AGENT_AUTO_REVIEW_ENABLED` | `false` | Automatically review new and updated PRs/MRs. Can be overridden per agent config. |
170
-
| `REVIEW_AGENT_REVIEW_COMMAND` | `review` | Comment command that triggers a manual review (without the `/`). Can be overridden per agent config. |
171
-
| `REVIEW_AGENT_MODEL` | first configured model | `displayName` of the language model to use for reviews. Can be overridden per agent config. |
169
+
| `REVIEW_AGENT_AUTO_REVIEW_ENABLED` | `false` | Automatically review new and updated PRs/MRs. You can override this in an agent config. |
170
+
| `REVIEW_AGENT_REVIEW_COMMAND` | `review` | Comment command that triggers a manual review (without the `/`). You can override this in an agent config. |
171
+
| `REVIEW_AGENT_MODEL` | first configured model | `displayName` of the language model to use for reviews. You can override this in an agent config. |
172
172
| `REVIEW_AGENT_LOGGING_ENABLED` | unset | Write prompt and response logs to disk for debugging. |
0 commit comments