MCPcopy
hub / github.com/codeaashu/claude-code / getPlanModeV2SparseInstructions

Function getPlanModeV2SparseInstructions

src/utils/messages.ts:3385–3397  ·  view source on GitHub ↗
(attachment: {
  planFilePath: string
})

Source from the content-addressed store, hash-verified

3383}
3384
3385function getPlanModeV2SparseInstructions(attachment: {
3386 planFilePath: string
3387}): UserMessage[] {
3388 const workflowDescription = isPlanModeInterviewPhaseEnabled()
3389 ? 'Follow iterative workflow: explore codebase, interview user, write to plan incrementally.'
3390 : 'Follow 5-phase workflow.'
3391
3392 const content = `Plan mode still active (see full instructions earlier in conversation). Read-only except plan file (${attachment.planFilePath}). ${workflowDescription} End turns with ${ASK_USER_QUESTION_TOOL_NAME} (for clarifications) or ${ExitPlanModeV2Tool.name} (for plan approval). Never ask about plan approval via text or AskUserQuestion.`
3393
3394 return wrapMessagesInSystemReminder([
3395 createUserMessage({ content, isMeta: true }),
3396 ])
3397}
3398
3399function getPlanModeV2SubAgentInstructions(attachment: {
3400 planFilePath: string

Callers 1

getPlanModeInstructionsFunction · 0.85

Calls 3

createUserMessageFunction · 0.85

Tested by

no test coverage detected