Files
agent/app/server
kicer 3084e4f28a 两套模型提示词整体精简(用户手写)+ 提交前审查补两处
用户手工压缩 advising-system.txt 与 system-prompt.txt:能力清单从逐条枚举
压成段、handoff 产出说明去重合并、out-of-scope 处置压成三条、Tool Use 删掉
与工具描述重复的单工具用法(fetch/web_search/db/schedule 的描述已在
definitions.json 覆盖,核对过)、文档转换注记整节删除(x2pdf 技能 frontmatter
description 自带「一律用本技能、不要手写排版脚本」,技能清单段覆盖,核对过)。
压缩方向:省常驻 token,细节信源归一到工具/技能描述。

提交前审查发现并修复两处:
1. advising-system.txt 合并时删读出的残句「the system will switch a
   full-capability agent continues」→ 修成完整句(then switches the session
   into execution mode and a full-capability agent continues from the brief
   alone);
2. system-prompt.txt 精简时把「mint_public_link 不得用于含机密文件」连带删了
   ——工具描述只讲机制(publicly reachable / cannot authenticate)不讲禁令,
   这条护栏全网唯一,删了就没了:按精简后的句式补回 Tool Use。

重启后 prompt.txt dump:占位符零残留、护栏行就位,health 200。
2026-09-26 12:03:02 +08:00
..
2026-09-06 18:47:20 +08:00
会话阶段状态机advising/executing(单会话单问题:先聊清再干活):新建会话与「清空」落advising——resolveProfileName两档化(phase=advising强制命中内置advising组合,否则随模型配置profile,tools_allow只留read_file/fetch/write_file、不带skill故模板无技能清单段,配advising-system.txt:问答判意图引导澄清、每轮至多1-2问防过度追问);唯一出口是任务书正门——runLoopInner工具批跑完后,advising回合内write_file/edit_file成功落任务目录根task.md(argsHitTaskBrief,上传同名与terminal间接创建不算;批量末尾统一切,防父assistant先存档后落库回执成孤儿行被上游拒收)即enterExecuting:全史标archived+插type=task_brief磁盘快照行作执行阶段唯一上下文起点+phase翻转与SSE phase广播,下一迭代重读历史重解profile天然切默认组合、同回合开工(幂等:执行中再改task.md只是普通编辑);回头路只有清空(archiveTaskBrief把旧task.md mv进.task-history/task-<ts>.md防污染新规划,点目录沿用.imgcache隐式约定);压缩对phase中性(压完回原模式,task_brief不豁免存档,漂移可控因压缩本就用户主导);定时投递前强制executing(无人值守不能被顾问话术卡住);db迁移存量phase回填executing零打扰、sessions.profile列废弃不读写;运行期手动切profile全拆(消息级参数/bind的profile分支/setSessionProfile与hasModelProfile/status的model_profiles名单/bind弹窗模式区),头部徽标机位复用为阶段徽标(仅advising显灯泡,SSE phase驱动,转执行toast反馈)
2026-09-25 11:54:20 +08:00
2026-09-22 19:38:53 +08:00