MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / getPlanModeV2SparseInstructions

Function getPlanModeV2SparseInstructions

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

Source from the content-addressed store, hash-verified

3771}
3772
3773function getPlanModeV2SparseInstructions(attachment: {
3774 planFilePath: string
3775}): UserMessage[] {
3776 const workflowDescription = isPlanModeInterviewPhaseEnabled()
3777 ? 'Follow iterative workflow: explore codebase, interview user, write to plan incrementally.'
3778 : `Follow 5-phase workflow. Phase 1: use ${EXPLORE_AGENT.agentType} agents for code exploration.`
3779
3780 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.`
3781
3782 return wrapMessagesInSystemReminder([
3783 createUserMessage({ content, isMeta: true }),
3784 ])
3785}
3786
3787function getPlanModeV2SubAgentInstructions(attachment: {
3788 planFilePath: string

Callers 1

getPlanModeInstructionsFunction · 0.85

Calls 3

createUserMessageFunction · 0.85

Tested by

no test coverage detected