
CocoSgt/dsh-inspector
62最近提交 2026年8月14日
dsh-inspector DSH 插件
dsh-inspector 是 DeepSeek Harness(dsh)的第三方插件。它在 Web UI 右侧添加一个“指令文件”面板,按 harness 的真实加载顺序显示指令链:从全局 AGENTS.md 到项目根目录再到当前工作目录,以及四个技能根目录的状态。面板完全镜像官方发现算法,所见即所得。
如何安装 dsh-inspector DSH 插件
dsh plugin --profile web add dsh-inspector复制不会执行命令。安装 dsh-inspector DSH 插件前请核对仓库和版本。
dsh-inspector DSH 插件数据来源
dsh-inspector DSH 插件快照日期:2026年8月16日
discovered
dsh-inspector DSH 插件能做什么
- 指令链视图:每个层级(全局、项目根、当前目录)一张卡片,带有重复折叠、过大忽略、本地/未提交等状态标签。
- 就地创建:每个层级的“+ 新建”按钮为缺失候选文件预填模板,仅保存时写入磁盘。
- 编辑器脏保护:未保存更改时弹出保存/丢弃/继续编辑对话框;标题栏显示未保存圆点。
- 技能目录状态:四个技能根目录(项目级和用户级),显示存在性和技能数量;技能文件可查看和编辑。
- 路径安全:读写地址通过白名单候选文件名和目录集校验,具有深度防御前缀检查。
dsh-inspector DSH 插件适合哪些场景
- 查看当前会话会被注入到模型中的精确指令链。
- 快速在项目或会话目录中创建缺失的 AGENTS.md 或 CLAUDE.md 文件。
- 编辑现有指令文件,更改在下一个会话步骤生效。
- 管理技能目录:查看哪些技能存在、数量,并编辑 SKILL.md 文件。
- 调试指令链问题,例如重复文件、过大文件或加载顺序错误。
dsh-inspector DSH 插件适合谁
- 希望完全了解指令链的 DeepSeek Harness 用户。
- 使用 DSH 开发项目并需要高效管理指令文件的开发者。
- 需要直接从 Web UI 查看和编辑技能根目录及指令文件的高级用户。
dsh-inspector DSH 插件的限制
- 面板是固定浮动右列,不可拖动;宽度固定为 min(440px, 92vw)。
- 主机信任浏览器发送的会话工作目录,未与 dsh 的工作区列表核对。
- 面板不反映字节预算截断(64 KB 基线);“生效”状态基于存在性和规则推断。
- 不显示 cwd 以下子目录的按需注入状态,仅脚注说明。
- 编辑器是纯文本区域,无 Markdown 预览或语法高亮。
- 面板不监视文件系统;编辑期间的外部更改不会实时同步。
dsh-inspector DSH 插件的仓库 README 摘录
以下文字摘自 dsh-inspector DSH 插件的上游仓库 CocoSgt/dsh-inspector 的 README,版权归原作者,仅作引用。
npm package: `dsh-inspector` · GitHub repository: [CocoSgt/dsh-inspector](https://github.com/CocoSgt/dsh-inspector) A third-party plugin for DeepSeek Harness (dsh): an "Instruction Files" panel on the right side of the Web UI that shows — and manages — the instruction chain actually in effect for the current session, in the harness's **real load order**: global `$DSH_HOME/AGENTS.md` → project root → … → the session's cwd, one directory level at a time — plus the status of the four skill roots. The information architecture mirrors the official `dsh-agent-instructions` discovery algorithm exactly: what you see is what the model gets. Open a session whose workspace sits in a project directory, then toggle the "Instruction Files" button in the session header; the panel follows the current session's workspace directory automatically. The UI ships in Chinese and English (follows the harness language preference). ## The instruction-chain model (matches the harness exactly) The layers, deduplication, and status flags shown by the panel align with the real behavior of `packages/context/agent-instructions`: 1. **Global layer**: `$DSH_HOME/AGENTS.md` (default `~/.dsh/AGENTS.md`). Only
阅读完整 README仓库未声明许可,使用前请先与作者确认。
dsh-inspector DSH 插件常见问题
如何安装 dsh-inspector?
在终端中运行命令 `dsh plugin --profile web add dsh-inspector`。如果失败,使用 GitHub 回退方式:`dsh plugin --profile web add github:CocoSgt/dsh-inspector`。安装后,重启 `dsh web` 使插件生效。
指令链面板显示什么内容?
它显示当前会话将要加载的所有指令文件,按照 harness 的确切顺序:首先是全局 AGENTS.md,然后从项目根目录向下到会话的当前工作目录。每个层级以卡片形式显示,带有重复文件、过大文件和本地文件的状态标签。
我可以在面板中创建新的指令文件吗?
可以。每个层级卡片上都有一个“+ 新建”按钮,可以创建缺失的候选文件,如 AGENTS.md 或 CLAUDE.md。编辑器会预填当前 UI 语言的模板,只有保存时才写入磁盘。
如何用这个插件编辑技能文件?
打开面板,滚动到技能目录状态部分。它会列出四个技能根目录(项目级 .dsh/skills 和 .agents/skills,用户级 ~/.dsh/skills 和 ~/.agents/skills)。点击技能文件(SKILL.md 或扁平 .md)即可在内置文本区域编辑器中查看或编辑。更改保存到磁盘,并在下一个会话步骤生效。
面板支持多语言吗?
是的,面板支持英文和中文。它跟随 harness 的语言偏好设置,当你在 harness 设置中切换语言时,UI 会自动切换。字典条目已注册到 harness 的本地化服务中。