feat(core): 增强 General 和 Explore Agent 预设

General Agent:
- 添加详细的 prompt 引导子代理行为
- 禁用 todo_read/todo_write(避免与父 Agent 冲突)
- 增加 maxSteps 到 20

Explore Agent:
- 支持 thoroughness 参数 (quick/medium/thorough)
- 启用只读 bash 命令(ls, tree, find, git log 等)
- 禁用写入工具和 Todo 工具
- bash 默认策略改为 deny(比 Plan 更严格)
- 添加详细的探索深度指导 prompt

Plan Agent:
- 添加 web: 'ask' 权限配置
This commit is contained in:
2025-12-15 22:01:53 +08:00
parent 35d87a04fb
commit df811395f8
3 changed files with 182 additions and 21 deletions
+2
View File
@@ -22,6 +22,7 @@ export const planAgent: Omit<AgentInfo, 'name'> = {
## 可用工具
- read_file, grep_content, search_files: 代码搜索
- bash: 只读命令 (ls, grep, find, git log/diff/status...)
- web_search, web_extract: 网络搜索和网页内容提取(需用户允许)
- plan_mode_respond: 输出结构化计划
## 工作流程
@@ -183,6 +184,7 @@ export const planAgent: Omit<AgentInfo, 'name'> = {
write: 'deny',
dangerous: 'deny',
},
web: 'ask', // 网络搜索和网页提取需要用户允许
},
model: {
temperature: 0.5,