* Code-review system prompt: role only. The actual changeset and how to inspect * it are NOT in the system prompt — they ride on the user's messages, where the * review server's shared agent-review prompt machine describes the *current* * view (a git command to run, or the diff inline for modes g
()
| 203 | * `buildCurrentAiReviewContext` and packages/ui/utils/aiPrompt.ts. |
| 204 | */ |
| 205 | function buildCodeReviewPrompt(): string { |
| 206 | return [ |
| 207 | ANSWER_DIRECTLY, |
| 208 | "", |
| 209 | "The user is reviewing a set of code changes in Plannotator. Their messages " + |
| 210 | "describe the changeset under review and how to inspect it — either a git " + |
| 211 | "command to run, or the diff inline.", |
| 212 | ].join("\n"); |
| 213 | } |
| 214 | |
| 215 | function buildAnnotatePrompt( |
| 216 | ctx: Extract<AIContext, { mode: "annotate" }> |