advising提示词与example配置去task.md残留:提示词不再描述落盘文件名(系统存brief为任务书、执行者从brief续作,task.md是系统实现细节不该进顾问认知);config.example.yml对齐config.js新DEFAULTS(tools_deny加handoff、advising名单read_file/fetch/handoff+显式tools_deny清空,补lab式注释防继承反噬)

This commit is contained in:
2026-09-25 19:19:10 +08:00
parent d084d10f85
commit 3e6caca0aa
2 changed files with 9 additions and 9 deletions
+5 -4
View File
@@ -5,14 +5,15 @@
platforms: []
# 全局工具黑名单:profile 未配 tools_deny 时继承它;allow 先、deny 后叠加(deny 赢,与 mcp_servers 同构)。
# 写数组即整体覆盖默认值,写 [] 即清空。默认屏蔽元工具 lab。
tools_deny: [lab]
# 写数组即整体覆盖默认值,写 [] 即清空。默认屏蔽元工具 lab 与阶段出口 handoff(后者仅 advising 显式清空后可见)。
tools_deny: [lab, handoff]
# 模型 profile:prompt + tools 名单组合,模型用 profile: <名> 引用(不配 = 全量)。
# 内置 advising 不靠引用:会话处于 advising 阶段(顾问澄清需求/规划)时强制命中,见 server/engine.js resolveProfileName。
model_profiles:
advising: # 顾问阶段:只留问答/调研/写任务书工具,配专属提示词
tools_allow: [read_file, fetch, write_file]
advising: # 顾问阶段:只聊和读不写,唯一出口 handoff,配专属提示词
tools_allow: [read_file, fetch, handoff]
tools_deny: [] # 必须显式清空全局黑名单,否则 handoff 自己也被 deny(同 lab 的教训)
system_prompt_file: advising-system.txt
lab: # 统一入口自测:tools 只有 lab,其余能力经 lab(help) 现场发现
tools_allow: [lab]