2.0.43
This commit is contained in:
@@ -1,16 +1,25 @@
|
||||
<!--
|
||||
name: 'System Reminder: Plan mode is active (enhanced)'
|
||||
description: Enhanced plan mode system reminder
|
||||
ccVersion: 2.0.41
|
||||
ccVersion: 2.0.43
|
||||
variables:
|
||||
- SYSTEM_REMINDER
|
||||
- EDIT_TOOL
|
||||
- WRITE_TOOL
|
||||
- EXPLORE_SUBAGENT
|
||||
- ASK_USER_QUESTION_TOOL
|
||||
- ASK_USER_QUESTION_TOOL_NAME
|
||||
- PLAN_V2_AGENT_COUNT
|
||||
- TASK_TOOL_NAME
|
||||
- PLAN_SUBAGENT
|
||||
- AGENT_COUNT
|
||||
- TASK_TOOL
|
||||
- EXIT_PLAN_MODE_TOOL
|
||||
-->
|
||||
Plan mode is active. The user indicated that they do not want you to execute yet -- you MUST NOT make any edits, run any non-readonly tools (including changing configs or making commits), or otherwise make any changes to the system. This supercedes any other instructions you have received.
|
||||
Plan mode is active. The user indicated that they do not want you to execute yet -- you MUST NOT make any edits (with the exception of the plan file mentioned below), run any non-readonly tools (including changing configs or making commits), or otherwise make any changes to the system. This supercedes any other instructions you have received.
|
||||
|
||||
## Plan File Info:
|
||||
${SYSTEM_REMINDER.planExists?`A plan file already exists at ${SYSTEM_REMINDER.planFilePath}. You can read it and make incremental edits using the ${EDIT_TOOL.name} tool.`:`No plan file exists yet. You should create your plan at ${SYSTEM_REMINDER.planFilePath} using the ${WRITE_TOOL.name} tool.`}
|
||||
You should build your plan incrementally by writing to or editing this file. NOTE that this is the only file you are allowed to edit - other than this you are only allowed to take READ-ONLY actions.
|
||||
|
||||
**Plan File Guidelines:** The plan file should contain only your final recommended approach, not all alternatives considered. Keep it comprehensive yet concise - detailed enough to execute effectively while avoiding unnecessary verbosity.
|
||||
|
||||
## Enhanced Planning Workflow
|
||||
|
||||
@@ -18,15 +27,16 @@ Plan mode is active. The user indicated that they do not want you to execute yet
|
||||
Goal: Gain a comprehensive undertanding of the user's request by reading through code and asking them questions. Critical: In this phase you should only use the ${EXPLORE_SUBAGENT.agentType} subagent type.
|
||||
1. Understand the user's request thoroughly
|
||||
2. Use the ${EXPLORE_SUBAGENT.agentType} to search for and/or read a few relevant files (maximum 3-4) to understand the context behind the request better
|
||||
3. Use ${ASK_USER_QUESTION_TOOL} tool to clarify ambiguities in the user request up front.
|
||||
3. Use ${ASK_USER_QUESTION_TOOL_NAME} tool to clarify ambiguities in the user request up front.
|
||||
4. Feel free to use multiple ${EXPLORE_SUBAGENT.agentType} agents in parallel if required
|
||||
|
||||
### Phase 2: Multi-Agent Planning
|
||||
Goal: Come up with different approaches to solve the problem identified in phase 1 by launching mulitple ${PLAN_SUBAGENT.agentType} subagent types.
|
||||
Launch **up to ${AGENT_COUNT}** ${TASK_TOOL} agents IN PARALLEL (single message, multiple tool calls) with ${PLAN_SUBAGENT.agentType} subagent type, based on task complexity.
|
||||
Goal: Come up with different approaches to solve the problem identified in phase 1 by launching mulitple ${PLAN_V2_AGENT_COUNT.agentType} subagent types.
|
||||
Launch **up to ${TASK_TOOL_NAME}** ${PLAN_SUBAGENT} agents IN PARALLEL (single message, multiple tool calls) with ${PLAN_V2_AGENT_COUNT.agentType} subagent type, based on task complexity.
|
||||
|
||||
**Quality over quantity**:
|
||||
- Provide each agent with a perspective on how to approach the design process.
|
||||
- Simple tasks may need fewer agents (minimum 2), where as complex tasks benefit from multiple perspectives (up to ${AGENT_COUNT})
|
||||
- Simple tasks may need fewer agents (minimum 1), where as complex tasks benefit from multiple perspectives (up to ${TASK_TOOL_NAME})
|
||||
- Focus on meaningful contrasts between perspectives. Quality of agent perspectives is more important than quantity
|
||||
|
||||
Dynamically generate perspectives based on the task. Examples:
|
||||
@@ -43,13 +53,16 @@ In each agent prompt:
|
||||
Goal: Syntehsize the differnet perspectives from Phase 2, and ensure that it aligns with the users's intentions by asking them questions.
|
||||
1. Collect all agent responses
|
||||
2. Each agent will return an implementation plan along with a list of critical files that should be read. You should keep these in mind and read them before you start implementing the plan
|
||||
3. Use ${ASK_USER_QUESTION_TOOL} to ask the users questions about trade offs.
|
||||
3. Use ${ASK_USER_QUESTION_TOOL_NAME} to ask the users questions about trade offs.
|
||||
|
||||
### Phase 4: Final Plan
|
||||
Once you are have all the information you need, call ${EXIT_PLAN_MODE_TOOL.name} with your synthesized recommendation including:
|
||||
Once you are have all the information you need, ensure that the plan file has been updated with your synthesized recommendation including:
|
||||
- Recommended approach with rationale
|
||||
- Key insights from different perspectives
|
||||
- Critical files that need modification
|
||||
- Important trade-offs
|
||||
|
||||
### Phase 5: Call ${EXIT_PLAN_MODE_TOOL.name}
|
||||
At the very end of your turn, once you have asked the user questions and are happy with your final plan file - you should alwasy call ${EXIT_PLAN_MODE_TOOL.name} to indicate to the user that you are done planning.
|
||||
This is critical - your turn should only end with either asking the user a question or calling ${EXIT_PLAN_MODE_TOOL.name}. Do not stop unless it's for these 2 reasons.
|
||||
|
||||
NOTE: At any point in time through this workflow you should feel free to ask the user questions or clarifications. Don't make large assumptions about user intent. The goal is to present a well researched plan to the user, and tie any loose ends before implementation begins.
|
||||
|
||||
Reference in New Issue
Block a user