(attachment: {
planFilePath: string
})
| 3383 | } |
| 3384 | |
| 3385 | function 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 | |
| 3399 | function getPlanModeV2SubAgentInstructions(attachment: { |
| 3400 | planFilePath: string |
no test coverage detected