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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user