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

Function buildSystemPrompt

packages/ai/context.ts:24–33  ·  view source on GitHub ↗
(ctx: AIContext)

Source from the content-addressed store, hash-verified

22 * - That it's operating inside Plannotator (not a general coding session)
23 */
24export function buildSystemPrompt(ctx: AIContext): string {
25 switch (ctx.mode) {
26 case "plan-review":
27 return buildPlanReviewPrompt(ctx);
28 case "code-review":
29 return buildCodeReviewPrompt();
30 case "annotate":
31 return buildAnnotatePrompt(ctx);
32 }
33}
34
35/**
36 * Build a compact context summary suitable for injecting into a fork prompt.

Callers 7

ai.test.tsFile · 0.90
createSessionMethod · 0.90
forkSessionMethod · 0.90
createSessionMethod · 0.90
createSessionMethod · 0.90
createSessionMethod · 0.90
createSessionMethod · 0.90

Calls 3

buildPlanReviewPromptFunction · 0.85
buildCodeReviewPromptFunction · 0.85
buildAnnotatePromptFunction · 0.85

Tested by

no test coverage detected