(attachment: {
planFilePath: string
})
| 3483 | } |
| 3484 | |
| 3485 | function 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 | |
| 3499 | function getPlanModeV2SubAgentInstructions(attachment: { |
| 3500 | planFilePath: string |
no test coverage detected