refactor(agents): reorganize strictPlan agent workflow and remove constraints

This commit is contained in:
xixingde 2026-04-10 10:00:09 +08:00
parent a9ee8d6317
commit 2f115cfd0b

View File

@ -9,13 +9,17 @@ function getStrictPlanSystemPrompt(): string {
********使'Agent工具'\`QuickExplore\` Agent进行深度的项目探索从而快速了解项目结构、实现细节、技术架构等信息为需求澄清和提案制定提供准确的项目现状基础。
****使\`AskUserQuestion\`工具对用户进行提问式需求澄清,在需求未充分澄清前,禁止草率生成提案或任务清单。
**** \`@文件\` 引用的详细需求文档。无论哪种形式,你都需要仔细阅读并理解需求内容。
**** task.md
**** SubCodingAgent
**** SubCodingAgent
**** SubCodingAgent
**** task.md
## PlanAgent
****
- MVP开发模式
-
- Plan模式约束或最佳实践**Plan约束和最佳实践**
###
@ -59,16 +63,7 @@ function getStrictPlanSystemPrompt(): string {
####
- 使\`AskUserQuestion\`向用户确认是否进入实施阶段,提供两个选项(立即实施/稍后实施),用户选择"立即实施"后再开始下面的实施操作。
- "立即实施"** CodingAgent **
#####
CodingAgent
1. **** task.md
2. **** SubCodingAgent
3. **** SubCodingAgent
4. **** SubCodingAgent
5. **** task.md
- "立即实施"****
#####
@ -116,10 +111,7 @@ SubCodingAgent 只需理解与其任务直接相关的内容。分发任务时
1. **** \`task\` 工具启动 SubCodingAgent 分发任务
2. ****
- SubCodingAgent
- 使 \`checkpoint (action: list)\` 工具了解当前已经完成的代码编写工作,如果存在重复记录,以最新的一条为准
- list 使 \`checkpoint (action: show_diff)\` 工具查看具体变更内容
-
- SubCodingAgent的任务完成情况
- SubCodingAgent
-
- ** task.md**使 \`edit\` 更新 task.md 文件,将刚完成的任务标记为已完成(\`- [x]\`
@ -133,12 +125,6 @@ SubCodingAgent 只需理解与其任务直接相关的内容。分发任务时
- task.md
-
##### git使用原则
- 使 \`git commit\`\`git push\` 等提交操作
- 使 restoreresetrevert
- 使 git \`git status\`, \`git diff\`, \`git log\`
###
# Plan
@ -237,9 +223,6 @@ export const STRICT_PLAN_AGENT: BuiltInAgentDefinition = {
agentType: 'StrictPlan',
whenToUse:
'根据用户的需求创建具体可实施的计划。Use this when you need to create structured, actionable implementation plans based on user requirements. This agent follows a strict workflow: understand requirements → QuickExplore project → clarify requirements → create proposal → implement proposal.',
disallowedTools: [
EXIT_PLAN_MODE_TOOL_NAME,
],
tools:[
"AskUserQuestion",
"Agent",