refactor(strictPlan): update agent references from Explore to QuickExplore

This commit is contained in:
xixingde 2026-04-09 14:06:48 +08:00
parent 0c3b7e1cb2
commit 9cef68a360
4 changed files with 5 additions and 23 deletions

View File

@ -91,19 +91,8 @@ SubCodingAgent 完成后,审查其代码提交:
- **todos完成**使 \`todowrite\` 工具将当前任务标记为完成
- ******task.mdtodos**
### 3
- task.md中任务全部执行完成后****\`ReviewAndFix\`Agent进行审查。
- task.md中的任务与提交的代码
- \`ReviewAndFix\`Agent的目标描述中必须包含<change-id>
### 4
### 3
- task.md中正确标记为完成
- 使\`checkpoint\`工具提交
- 使\`question\`工具,向用户说明:已完成修改,是否有问题需要进一步修改?
-
* "确认任务完成" - CodingAgent任务
- "自定义输入"task.md中创建一个新的fix任务SubCodingAgent进行修改
- "确认任务完成"退CodingAgent任务
<directory_structure>

View File

@ -6,7 +6,7 @@ function getStrictPlanSystemPrompt(): string {
return `你是一个专门为软件项目创建结构化需求提案的 PlanAgent。
"**理解用户需求→探索项目→需求澄清→创建提案→实施提案**"
****'Agent工具'\`PlanApply\`agent实施提案。
********使'Agent工具'\`Explore\` Agent进行深度的项目探索从而快速了解项目结构、实现细节、技术架构等信息为需求澄清和提案制定提供准确的项目现状基础。
********使'Agent工具'\`QuickExplore\` Agent进行深度的项目探索从而快速了解项目结构、实现细节、技术架构等信息为需求澄清和提案制定提供准确的项目现状基础。
****使\`AskUserQuestion\`工具对用户进行提问式需求澄清,在需求未充分澄清前,禁止草率生成提案或任务清单。
**** \`@文件\` 引用的详细需求文档。无论哪种形式,你都需要仔细阅读并理解需求内容。
@ -22,14 +22,14 @@ function getStrictPlanSystemPrompt(): string {
1. ****: plan的任务状态使\`AskUserQuestion\`工具对用户进行提问是否继续未成任务或开始新任务。如果用户选择继续完成,则直接进行**实施提案**,否则按流程进行。
1
2. ****
3. ****使Agent工具启动Explore SubAgent****
3. ****使Agent工具启动QuickExplore SubAgent****
- ****@文件引用或需求描述****
- ****
(1)
(2) //
(3)
- **SubAgent产出要求**SubAgent必须提供可操作的技术决策依据
- **Agent调用**\`task\`工具,并行启动 1~3 个Explore SubAgent高效完成项目探索工作
- **Agent调用**\`task\`工具,并行启动 1~3 个QuickExplore SubAgent高效完成项目探索工作
- 3 使 1
- SubAgent适用场景
- SubAgent适用场景
@ -63,11 +63,6 @@ function getStrictPlanSystemPrompt(): string {
- \`PlanApply\` agent执行完成后检查task.md中对应的子任务是否已标记为已完成若未完成需重新提交。
- task.md
####
- 使\`AskUserQuestion\`向用户确认是否进入测试阶段,提供两个选项(稍后测试/立即测试),用户选择"立即测试"后再开始下面的实施操作。
- "立即测试"\`Agent工具启动\`启动\`TestDrivenDevelopment\` agent执行。
- \`TestDrivenDevelopment\` agent执行完成后即可结束任务。
###
# Plan
@ -165,7 +160,7 @@ c. 查看\`TaskCheck\`返回的总结报告,了解修复情况
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 → explore project → clarify requirements → create proposal → implement proposal.',
'根据用户的需求创建具体可实施的计划。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,
],

View File

@ -3,7 +3,6 @@ import { getIsNonInteractiveSession } from '../../bootstrap/state.js'
import { getFeatureValue_CACHED_MAY_BE_STALE } from '../../services/analytics/growthbook.js'
import { isEnvTruthy } from '../../utils/envUtils.js'
import { PLAN_APPLY_AGENT } from '../../costrict/agents/planApply.js'
import { REVIEW_AND_FIX_AGENT } from '../../costrict/agents/reviewAndFix.js'
import { STRICT_PLAN_AGENT } from '../../costrict/agents/strictPlan.js'
import { SUB_CODING_AGENT } from '../../costrict/agents/subCoding.js'
import { TASK_CHECK_AGENT } from '../../costrict/agents/taskCheck.js'
@ -54,7 +53,6 @@ export function getBuiltInAgents(): AgentDefinition[] {
PLAN_AGENT,
STRICT_PLAN_AGENT,
PLAN_APPLY_AGENT,
REVIEW_AND_FIX_AGENT,
SUB_CODING_AGENT,
TASK_CHECK_AGENT,
QUICK_EXPLORE_AGENT,