fix(agents): normalize tool name references in built-in agent prompts

This commit is contained in:
yhangf 2026-04-10 17:26:05 +08:00
parent 0fef4c250f
commit 8258d9be59
9 changed files with 26 additions and 26 deletions

View File

@ -573,10 +573,10 @@ function getRequirementSystemPrompt(): string {
---
# 使
1. 使 read
2. 使 write
3. 使 edit
4. 使 bash
1. 使 Read
2. 使 Write
3. 使 Edit
4. 使 Bash
#

View File

@ -33,7 +33,7 @@ function getStrictPlanSystemPrompt(): string {
(2) //
(3)
- **SubAgent产出要求**SubAgent必须提供可操作的技术决策依据
- **Agent调用**\`task\`工具,并行启动 1~3 个QuickExplore SubAgent高效完成项目探索工作
- **Agent调用**\`Agent\`工具,并行启动 1~3 个QuickExplore SubAgent高效完成项目探索工作
- 3 使 1
- SubAgent适用场景
- SubAgent适用场景
@ -104,18 +104,18 @@ SubCodingAgent 只需理解与其任务直接相关的内容。分发任务时
#####
使 \`todowrite\` 工具列出 task.md 中的任务清单,作为待办事项跟踪。
使 \`TodoWrite\` 工具列出 task.md 中的任务清单,作为待办事项跟踪。
****
1. **** \`task\` 工具启动 SubCodingAgent 分发任务
1. **** \`Agent\` 工具启动 SubCodingAgent 分发任务
2. ****
- SubCodingAgent的任务完成情况
- SubCodingAgent
-
- ** task.md**使 \`edit\` 更新 task.md 文件,将刚完成的任务标记为已完成(\`- [x]\`
- ** todos **使 \`todowrite\` 工具将当前任务标记为完成
- ** task.md**使 \`Edit\` 更新 task.md 文件,将刚完成的任务标记为已完成(\`- [x]\`
- ** todos **使 \`TodoWrite\` 工具将当前任务标记为完成
- ****** task.md todos**
3. ****

View File

@ -16,7 +16,7 @@ function getSubCodingSystemPrompt(): string {
-
-
\`read\` 命令读取代码片段)。
\`Read\` 工具读取代码片段)。
###
- /

View File

@ -50,7 +50,7 @@ function getTaskCheckSystemPrompt(): string {
### 3
issues
1. //
2. \`question\` 工具
2. \`AskUserQuestion\` 工具
3. continue 2
###

View File

@ -99,7 +99,7 @@ Phase 6修复编码问题
****
- ********
- ****使 \`question\` 工具请求用户许可
- ****使 \`AskUserQuestion\` 工具请求用户许可
- "在 [文件名] 中发现错误:[错误描述]。该文件最近未修改,允许我修复吗?"
-
-
@ -214,7 +214,7 @@ Phase 9完成验证
****
-
- 使 \`question\` 工具请求许可
- 使 \`AskUserQuestion\` 工具请求许可
-
-

View File

@ -24,8 +24,8 @@ function getTddTestPrepareSystemPrompt(): string {
4. ****
- TEST_GUIDE.md 使
- 使 \`question\` 工具向用户确认后才能使用
- / question
- 使 \`AskUserQuestion\` 工具向用户确认后才能使用
- / AskUserQuestion
- ** TEST_GUIDE.md TODO **
5. **退**
@ -36,15 +36,15 @@ function getTddTestPrepareSystemPrompt(): string {
<workflow>
**使 todowrite **
**使 TodoWrite **
使 \`todowrite\` 工具创建任务列表:
使 \`TodoWrite\` 工具创建任务列表:
1. Check TEST_GUIDE.md completeness
2. Ask user if auto-search needed
3. Identify runnability verification commands
4. Identify test case management methods
5. Identify test execution methods
6. Confirm with user (question tool)
6. Confirm with user (AskUserQuestion tool)
7. Update TEST_GUIDE.md
phase
@ -63,7 +63,7 @@ Phase 1检查 TEST_GUIDE.md 完整性并解析指引文档
5. Phase 1.5
Phase 1.5
- 使 \`question\` 工具询问用户是否需要自动搜索项目文件
- 使 \`AskUserQuestion\` 工具询问用户是否需要自动搜索项目文件
- header: "搜索方式"
- question: "TEST_GUIDE.md 内容不完整,是否自动搜索项目文件以分析测试命令?(支持在后续确认时自定义输入)"
- options: [
@ -93,7 +93,7 @@ Phase 2搜索项目文件仅当用户选择"自动搜索"时执行,使
- 2CI/CD .github/workflows.gitlab-ci.yml
- 3jestpytestgo testnpm testbun test
Phase 3使 \`question\` 工具,三个问题作为独立数组提交)
Phase 3使 \`AskUserQuestion\` 工具,三个问题作为独立数组提交)
**1**
- header: "可运行性"

View File

@ -21,7 +21,7 @@ function getWikiCatalogueDesignSystemPrompt(): string {
JSON文档结构
##
- ****: \`read\` 工具读取 \`.costrict/wiki/.staging/basic_analyze.json\`
- ****: \`Read\` 工具读取 \`.costrict/wiki/.staging/basic_analyze.json\`
- ****:
##

View File

@ -104,7 +104,7 @@ function getWikiDocumentGenerateSystemPrompt(): string {
### 3 -
1. ****: 使 \`read\` 工具读取每个关键文件
1. ****: 使 \`Read\` 工具读取每个关键文件
2. ****
- MVC
@ -162,7 +162,7 @@ function getWikiDocumentGenerateSystemPrompt(): string {
- 优先级4: 环境变量配置
****
- 使 \`read\` 工具按优先级批量读取关键代码文件
- 使 \`Read\` 工具按优先级批量读取关键代码文件
-
-
-

View File

@ -19,7 +19,7 @@ function getWikiProjectAnalyzeSystemPrompt(): string {
###
- ****: README.mdpackage.jsonrequirements.txtCargo.toml等核心配置
- ****: tsconfig.jsonpyproject.tomlDockerfileCI/CD配置等
- ****: \`list\` 工具获取的项目全貌
- ****: \`Bash\` 工具获取的项目全貌
##
@ -108,8 +108,8 @@ function getWikiProjectAnalyzeSystemPrompt(): string {
##
### 1
- 使 \`list\` 工具获取完整项目结构
- 使 \`read\` 工具解析关键配置文件
- 使 \`Bash\` 工具获取完整项目结构
- 使 \`Read\` 工具解析关键配置文件
-
### 2