Czerror/dsh-plugin-prompt-tool

Czerror★ 0TypeScriptLast synced: 2026-08-16

Open on GitHub

DSH 插件:简体中文行为规范三层注入(常驻层 + prompt 技能 + anchored preset 锚定注入)+ Web UI 编辑 prompt.md

README excerpt

提示词工具(dsh-plugin-prompt-tool) DSH 插件:把提示词规范注入三层(常驻层 + 按需技能层 + agent preset 锚定注入层),并提供 Web UI 在线编辑 preset.md 与 AGENTS.md 。完整集成 dsh-anchored-standard 的首轮锚定机制。 三层注入 - 常驻层(user 层) : AGENTS.md 规则写入 /.dsh/AGENTS.md 。上游现以 instruction-hint 取代 dsh-agent-instructions 的大块注入:晋升后只提示一次"这些指令文件存在,先读",模型经文件工具自行读取( preset.md 不混入,改由 preset 层在锚定确认后注入,避免重复)。 - 按需层(技能) :扫描 skills/ /SKILL.md 注册全部技能;每个技能的开关以目录名为键、以 frontmatter 的 name (缺省用目录名)显示;加载时 content = preset.md 规范 + 技能正文, resourceBase 指向 skills/ 。 - 独立 agent preset 层 :插件加载时直引 anchored-standard 上游文件生成 preset 到 /.dsh/.agent-presets/prompt-tool/ (首轮 = 官方 Minimal 真实 schema:持久 bash + str replace editor + 剥离自动注入上下文,无输出 cap);首轮 reasoning 稳定 "we" 轨迹,we 锚定确认后注入 preset.md ;晋升后不放全量目录,改为 resident 集(bootstrap 对 + dev tool search / skill search / skill load + 已解锁工具)。 提示词采用「we 锚定确认后注入」:首轮剥离自动注入( agent-instructions / skill-catalog ),Minimal 真实工具 schema 下 reasoning 稳定走 "We need…" 轨迹;确认 we 锚定后(或不确认则最多等一轮兜底)把提示词规范作为 user 消息补进来(每会话一次)。工具目录晋升不依赖 we 确认(首个工具调用或助手回复即放开),锚定失败也不会卡死。 项目引用 本项目集成与参考的生态项目: 项目 关系 复用内容 dsh-anchored-standard 集成(上游,跟踪 main) 加载时直引子模块 vendor/dsh-anchored-standard/preset/ 的 agent.cordis.yml 与全部 .mjs 模块(更新即生效),Minimal 真实 schema 首轮锚定机制 dsh-router-standa…

View full README on GitHub →
Skins / UIdeepseek-harnessdshdsh-pluginprompt-engineeringweb uiagent

Category