DeepSeek Harness 插件

anno-dsh-native

Native DeepSeek Harness plugin for Anno: an in-process HTML review, editing, and annotation server plus html_review_* model tools, without the MCP bridge.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
philmingdao/anno-dsh-native
最近更新
2026年8月16日
分类
工具与能力
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/philmingdao/anno-dsh-native
插件名:anno-dsh-native
作者:philmingdao

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

![Anno for DeepSeek Harness](./assets/cover.jpg)

Anno for DeepSeek Harness (native)

@philmingdao/anno-dsh-native is a native DeepSeek Harness plugin for Anno — a local-first HTML review, editing, and annotation workspace for coding agents.

Unlike @philmingdao/anno-dsh, which bridges the MCP server through the official DSH MCP client, this package runs Anno in-process: the local review HTTP server, the on-disk session store, and the six html_review_* model tools all live inside the Harness process. There is no MCP layer, no child npx process, and no separate server to launch.

What it provides

  • A loopback-only HTTP review server (127.0.0.1, ephemeral port).
  • Persistent review sessions under $ANNO_DATA_DIR (default ~/.anno/sessions); the source file is never overwritten and outputs are versioned (-reviewed.html, -reviewed-v2.html, …).
  • Six model tools, registered with DSH's native tool registry:

- html_review_start_session - html_review_get_session - html_review_claim_handoff - html_review_mark_handoff_sent - html_review_list_sessions - html_review_register_final

  • A tool:anno system-prompt section that teaches the agent the start → review → claim → resolve workflow.

Requirements

  • DeepSeek Harness >=0.1.0-rc.6 <0.2.0
  • Node.js 22 or newer

Install

The package is a DSH profile bundle: dsh plugin add installs it and applies its cordis.patch.yml, which inserts the anno-native row into the profile (host) composition.

dsh plugin --profile web add @philmingdao/anno-dsh-native
# or from a source checkout:
dsh plugin --profile web add .

Then start Harness normally:

dsh web

The tools appear as html_review_* (no MCP namespace prefix). Because the row sits on the host plane, every agent on that profile shares one review server and one session store.

Source checkout

npm install
npm test
dsh plugin --profile web add "$(pwd)"

Use a temporary --dsh-home when testing without changing your normal profiles.

Use

Ask Harness to open or review an HTML file. It calls html_review_start_session with the absolute source path and opens the returned review_url for the user.

When the user clicks 提交给 Agent in the browser editor, the review server prepares the handoff and pushes it straight back into the originating agent conversation: the plugin captures the calling agent when the session is created and, on submission, queues an ordinary follow-up turn (agent.followup) carrying the full review — in-place text edits, format changes, element/area annotations, and page notes — so the agent claims the handoff immediately and resolves it into a verified standalone HTML file via html_review_register_final, without any manual polling.

The receiving turn's prompt instructs the agent to call html_review_claim_handoff first (durable receipt), then html_review_get_session to reload the full session and apply the edits and annotations against the draft HTML, then html_review_register_final. The in-process push is best-effort: if the originating agent is no longer live, the handoff is still persisted on disk and the agent can claim it through the ordinary html_review_* tools.

Architecture

DSH profile composition
  -> @philmingdao/anno-dsh-native  (cordis plugin + bundle patch)
    -> anno-core.js                (HTTP server + on-disk session/review/handoff store, node-only)
    -> index.js                    (registers html_review_* tools + tool:anno prompt section)

lib/anno-core.js is deliberately free of DSH imports and is unit-tested directly (npm test). It exposes an onHandoff hook (invoked by the HTTP generate endpoint with the full review payload) and a hasHostTarget predicate (reported as has_host_target on the session projection) so the host binding can deliver handoffs without the core depending on any host runtime.

lib/index.js is the thin Cordis binding that injects tools, systemPrompt, and agents, starts the server as a fiber-owned effect, and registers the tools using raw JSON-Schema definitions directly against the tools registry. It captures the calling agent on html_review_start_session and, through onHandoff, delivers the submission back as an agent.followup notice. It imports no @deepseek-ai/dsh-tools (or any other DSH package) — the follow-up user message is built from the same shape createUserMessage produces, using only node:crypto — so the package keeps zero external dependencies and loads from any location (including a link:-installed source checkout).

Configuration

The anno-native row accepts:

FieldDefaultMeaning
hostdshHost kind stamped on session records.
dataDir$ANNO_DATA_DIR or ~/.annoRoot for persisted review sessions.
assetsDirpackage assets/Directory holding editor.html / handoff.html.

Uninstall

dsh plugin --profile web remove @philmingdao/anno-dsh-native

Existing review sessions under the data directory are left in place.

License

MIT. The editor UI is the same Anno asset set; see the main Anno repository for the bundled font's SIL Open Font License.