(attachment: {
planFilePath: string
})
| 3771 | } |
| 3772 | |
| 3773 | function 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 | |
| 3787 | function getPlanModeV2SubAgentInstructions(attachment: { |
| 3788 | planFilePath: string |
no test coverage detected