docs.diffs.work
Integrate

DeepSeek Harness 插件

在 DSH 里注册 diff_compare 工具与 /diff-* 命令,让 agent 的输出差异结构化呈现。


它做什么

diffs.work 的 DSH 插件把 agent → 人 的输出差异变成可审阅的对象:

工具契约

{
  "name": "diff_compare",
  "arguments": {
    "old": "docs/spec-v1.md",
    "new": "docs/spec-v2.md",
    "context": 3,
    "maxHunks": 40,
    "format": "json"
  }
}

返回:

{
  "kind": "text",
  "family": "markdown",
  "oldLabel": "docs/spec-v1.md",
  "newLabel": "docs/spec-v2.md",
  "added": 12,
  "removed": 4,
  "hunks": [{ "header": "@@ -1,20 +1,26 @@", "lines": [] }],
  "truncated": false,
  "symbols": { "added": [], "removed": [] }
}

二进制族(docx/xlsx/pptx/pdf)返回 kind: "binary" 与提示,指向本地站渲染器 —— 不在工具调用里塞几十 MB 的内容。

安装

dsh plugin --profile <profile> add link:/absolute/path/to/diffs.work/apps/dsh-plugin

安装后重启该 profile 的会话即可看到工具。

配置

键默认说明
localUrlhttp://127.0.0.1:5279本地站地址(命令打开用)
tooltrue是否注册 diff_compare 工具
commandstrue是否注册 /diff-* 命令
本页章节:它做什么 · 工具契约 · 安装 · 配置