MCPcopy Create free account
hub / github.com/backnotprop/plannotator / buildCodeReviewPrompt

Function buildCodeReviewPrompt

packages/ai/context.ts:205–213  ·  view source on GitHub ↗

* 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

()

Source from the content-addressed store, hash-verified

203 * `buildCurrentAiReviewContext` and packages/ui/utils/aiPrompt.ts.
204 */
205function 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
215function buildAnnotatePrompt(
216 ctx: Extract<AIContext, { mode: "annotate" }>

Callers 1

buildSystemPromptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected