liangmianya/dsh-synapse
liangmianya/dsh-synapseDeepSeek Harness 的可视化非线性对话工作区:把会话、追问与分支变成可浏览、可拖拽的对话地图。
登记具名 Claw Agent,与官方工作区侧栏隔离,并提供设置页和全局新建模板。硬依赖(需同装,否则单装会崩):dsh-claw-policy、dsh-claw-observability、dsh-claw-permissions。
治理套件的 Phase 0:把 DSH 工作区绑到一个稳定的 Claw Agent 上。只登记、解释、归档,不拦截工具。
合集与整体说明:https://github.com/xingyingyuzhui/dsh-claw-suite
打开 设置 → Claw Agent(在 Agent 预设 上方):选 Agent,再用概览 / 人设 / 模型 / 权限 / 技能看各面。Main 不在这一页。
Claw Agent 按 名字 → 名下会话 组织。工作区默认建在 DeepSeek Harness 根目录($DSH_HOME,一般是 ~/.dsh)下的 DSclaw/<agent>/。
dsh plugin --profile web add github:xingyingyuzhui/dsh-agent-registry
装完重启 dsh web。
本地开发:
dsh plugin --profile web add link:/abs/path/to/dsh-agent-registry
~/.dsh/DSclaw/<slug>/。它自己叫什么写在 IDENTITY.md,第一次对话按 BOOTSTRAP.md 问用户,不问就把文件夹名当成自称wa-template(显示名 claw区agent模板)复制出 wa-<slug> 并绑定;新会话直接带上这个预设dsh-agent-identitywa-* 预设,不能再切模式session.selectModel 写一次。换模型仍走官方选择器。不拦截 currentSelection,不另挂预设enforced: false~/.dsh/workspace-agents/registry.json卸掉本插件后,DSH 原来的权限预设照旧,不会变成全开。真正按策略拒绝,要等套件里的 dsh-agent-gate。
先在 设置 → Claw Agent → 概览 选好「卸掉本插件后」,再:
dsh plugin --profile web remove dsh-agent-registry
然后重启 dsh web。默认 归档:从官方「工作区」名单拿掉这些 Claw 行,会话日志和人设留在盘上。「转到工作区」会把它们留在官方名单里;「删掉会话记录」还会删会话日志,人设目录仍保留。
npm test
| 插件 | 安装 |
|---|---|
| 登记 | dsh plugin --profile web add github:xingyingyuzhui/dsh-agent-registry |
| 人设 | dsh plugin --profile web add github:xingyingyuzhui/dsh-agent-identity |
| 策略契约 | dsh plugin --profile web add github:xingyingyuzhui/dsh-agent-policy |
| 会话权限 | dsh plugin --profile web add github:xingyingyuzhui/dsh-session-permissions |
| 闸与审计 | dsh plugin --profile web add github:xingyingyuzhui/dsh-agent-gate |
| 委派 | dsh plugin --profile web add github:xingyingyuzhui/dsh-agent-delegate |
| 记忆 | dsh plugin --profile web add github:xingyingyuzhui/dsh-agent-memory |
MIT