refactor(costrict): rename QuickExplore to Explore, standardize imports and remove dead code
This commit is contained in:
parent
c15c952659
commit
80288a1c46
|
|
@ -59,7 +59,7 @@ function getReviewAndFixSystemPrompt(): string {
|
|||
- 使用\`sequential-thinking\`工具深入分析用户反馈的具体内容、意图
|
||||
- 探索相关代码。探索方式选择:
|
||||
* 简单探索(少量已知文件、局部问题):使用\`read\`,\`grep\`,\`glob\`,\`file-outline\`工具
|
||||
* 复杂探索(跨模块追踪、大范围筛选):使用'Agent工具'来启动\`QuickExplore\`agent进行深度的项目探索
|
||||
* 复杂探索(跨模块追踪、大范围筛选):使用'Agent工具'来启动\`Explore\`agent进行深度的项目探索
|
||||
2. 修改任务:
|
||||
- 当制定任务时,请严格依据用户反馈,不遗漏、不添加
|
||||
- 修改task.md文件,在文件末尾插入新任务,任务格式与原有任务保持一致
|
||||
|
|
|
|||
|
|
@ -1,14 +1,7 @@
|
|||
import { BASH_TOOL_NAME } from 'src/tools/BashTool/toolName.js'
|
||||
import { EXIT_PLAN_MODE_TOOL_NAME } from 'src/tools/ExitPlanModeTool/constants.js'
|
||||
import { FILE_READ_TOOL_NAME } from 'src/tools/FileReadTool/prompt.js'
|
||||
import { GLOB_TOOL_NAME } from 'src/tools/GlobTool/prompt.js'
|
||||
import { GREP_TOOL_NAME } from 'src/tools/GrepTool/prompt.js'
|
||||
import { hasEmbeddedSearchTools } from 'src/utils/embeddedTools.js'
|
||||
import type { BuiltInAgentDefinition } from '../../tools/AgentTool/loadAgentsDir.js'
|
||||
import type { BuiltInAgentDefinition } from 'src/tools/AgentTool/loadAgentsDir.js'
|
||||
|
||||
function getStrictPlanSystemPrompt(): string {
|
||||
// Ant-native builds alias find/grep to embedded bfs/ugrep and remove the
|
||||
// dedicated Glob/Grep tools, so point at find/grep via Bash instead.
|
||||
|
||||
return `你是一个专门为软件项目创建结构化需求提案的 PlanAgent。
|
||||
你的核心职责是:遵循"**理解用户需求→探索项目→需求澄清→创建提案→实施提案**"的严格工作流。
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { EXIT_PLAN_MODE_TOOL_NAME } from 'src/tools/ExitPlanModeTool/constants.js'
|
||||
import type { BuiltInAgentDefinition } from '../../loadAgentsDir.js'
|
||||
import type { BuiltInAgentDefinition } from 'src/tools/AgentTool/loadAgentsDir.js'
|
||||
|
||||
function getStrictSpecSystemPrompt(): string {
|
||||
return `你是工作流编排专家,负责将用户需求按照标准阶段分配到对应工作流Agent执行。
|
||||
|
|
@ -47,10 +47,7 @@ function getStrictSpecSystemPrompt(): string {
|
|||
|
||||
1. 通常按照 \`需求明确阶段->架构设计阶段->开发任务拆分阶段->方案执行阶段\` 执行
|
||||
|
||||
2. 当用户输入"继续"、"继续任务"、"继续执行"或类似意图时:
|
||||
按照中继工作流: \`!tool{spec-manage}(mode=specstage,path=./)\` 工作流开始执行
|
||||
|
||||
3. 当用户指定修改需求、设计、开发任务则直接启动Agent执行,不遵循工作流
|
||||
2. 当用户指定修改需求、设计、开发任务则直接启动Agent执行,不遵循工作流
|
||||
|
||||
### 异常处理
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user