mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 22:35:51 +00:00
- 合并 getOutputEfficiencySection + getSimpleToneAndStyleSection 为精简的 Communication style - 精简 auto memory 指令:删除 4 种类型的详细说明和示例,仅保留核心 description - 精简 Agent 工具:删除 forkExamples 和 currentExamples 大段示例 - 精简 Bash 工具:合并 sleep 相关指导 - 精简 EnterPlanMode/ExitPlanMode:删除详细 GOOD/BAD 示例 - gitStatus MAX_STATUS_CHARS 从 2000 降到 1000 - 同步更新 prompt engineering audit 测试断言 Co-Authored-By: glm-5-turbo <zai-org@claude-code-best.win>
24 lines
1.5 KiB
TypeScript
24 lines
1.5 KiB
TypeScript
// External stub for ExitPlanModeTool prompt - excludes Ant-only allowedPrompts section
|
|
|
|
// Hardcoded to avoid relative import issues in stub
|
|
const ASK_USER_QUESTION_TOOL_NAME = 'AskUserQuestion'
|
|
|
|
export const EXIT_PLAN_MODE_V2_TOOL_PROMPT = `Use this tool when you are in plan mode and have finished writing your plan to the plan file and are ready for user approval.
|
|
|
|
## How This Tool Works
|
|
- You should have already written your plan to the plan file specified in the plan mode system message
|
|
- This tool does NOT take the plan content as a parameter - it will read the plan from the file you wrote
|
|
- This tool simply signals that you're done planning and ready for the user to review and approve
|
|
- The user will see the contents of your plan file when they review it
|
|
|
|
## When to Use This Tool
|
|
IMPORTANT: Only use this tool when the task requires planning the implementation steps of a task that requires writing code. For research tasks where you're gathering information, searching files, reading files or in general trying to understand the codebase - do NOT use this tool.
|
|
|
|
## Before Using This Tool
|
|
Ensure your plan is complete and unambiguous:
|
|
- If you have unresolved questions about requirements or approach, use ${ASK_USER_QUESTION_TOOL_NAME} first (in earlier phases)
|
|
- Once your plan is finalized, use THIS tool to request approval
|
|
|
|
**Important:** Do NOT use ${ASK_USER_QUESTION_TOOL_NAME} to ask "Is this plan okay?" or "Should I proceed?" - that's exactly what THIS tool does. ExitPlanMode inherently requests user approval of your plan.
|
|
`
|