MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / buildPlanPrompt

Function buildPlanPrompt

cli/src/commands/prompt-builders.ts:17–23  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

15 * @returns The full prompt to send to the agent
16 */
17export function buildPlanPrompt(input: string): string {
18 const trimmedInput = input.trim()
19 if (!trimmedInput) {
20 return PLAN_BASE_PROMPT
21 }
22 return `${PLAN_BASE_PROMPT}\n\n${trimmedInput}`
23}
24
25// Base prompt for interview command - asks clarifying questions before acting
26export const INTERVIEW_BASE_PROMPT = 'Interview me to better understand my request and then create a spec file. First, gather any relevant context (read files, do research, etc.). Then, use several rounds of the ask_user tool to ask non-obvious clarifying questions — things you cannot easily infer from the codebase or my initial message. Ask about edge cases, preferences, constraints, and design decisions. All questions should be directed through the ask_user tool -- not written out as text. Keep coming up with new questions that get at unique aspects of the request. Aim for at least **3 rounds** with multiple questions each round. When satisfied, write a [INSERT_REQUEST_SHORT_NAME]-spec.md file with all the information you have gathered about the request. Aim for as much detail as possible. You should NOT make any code changes yet. Stop after creating the spec file. End by using the suggest_followups tool with ways to flesh out the spec file. Here is my request:'

Callers 2

routeUserPromptFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected