MCPcopy Create free account
hub / github.com/Noumena-Network/code / getPlanModeV2SparseInstructions

Function getPlanModeV2SparseInstructions

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

Source from the content-addressed store, hash-verified

3483}
3484
3485function getPlanModeV2SparseInstructions(attachment: {
3486 planFilePath: string
3487}): UserMessage[] {
3488 const workflowDescription = isPlanModeInterviewPhaseEnabled()
3489 ? 'Follow iterative workflow: explore codebase, interview user, write to plan incrementally.'
3490 : 'Follow 5-phase workflow.'
3491
3492 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.`
3493
3494 return wrapMessagesInSystemReminder([
3495 createUserMessage({ content, isMeta: true }),
3496 ])
3497}
3498
3499function getPlanModeV2SubAgentInstructions(attachment: {
3500 planFilePath: string

Callers 1

getPlanModeInstructionsFunction · 0.85

Calls 3

createUserMessageFunction · 0.70

Tested by

no test coverage detected