Preface¶
When performing human review within a DeepSeek Harness (DSH) session, there are two common friction points: the review process may block for a long time, while bash calls often time out earlier; once a process is pushed to the background and then terminated, already-written notes may be lost with no record left in the session. Additionally, when a DSH session starts, the PATH often contains only /usr/bin:/bin:/usr/sbin:/sbin, so plannotator installed in ~/.local/bin may not be found, and the review cannot even start.
dsh-plannotator (npm package name plannotator-dsh, repository martyartem/dsh-plannotator) is a client-side DSH plugin published by maintainer martyartem: it opens the Plannotator browser UI inside the Harness, lets you review a single file, a folder, or a webpage, and after human submission, sends the annotations back to the current session as a regular chat message, so the agent can continue handling them in the same conversation. Community catalog page: skillhub.cn/plugins/martyartem/dsh-plannotator (an independent site with no official affiliation with DeepSeek / High-Flyer).
What is this¶
The plugin’s positioning can be summarized in a single sentence from the README: review files, folders, or webpages through the Plannotator browser UI within DeepSeek Harness, with annotations returned to the agent as conversation messages.
In terms of implementation, it is split into a Host side (lib/index.js: registering commands and HTTP routes, parsing CLI and workspace, launching Plannotator in the background, reading decision logs and writing them back to the session) and a Browser side (lib/client.js: injecting a Review button into places like document previews, without depending on any additional bundler). The external surface is very focused: a Review entry in the sidebar, a /plannotator command in the Composer, and two HTTP routes, with no extra flags.
Current version 0.1.0, license MIT.
Core Features¶
Interface and commands¶
| Entry | Purpose |
|---|---|
| Review in the document preview header / right sidebar | Initiates a review of the file currently on screen; if the type is not accepted by Plannotator (PDF, images, Office, etc.), it instead reviews the containing folder to avoid an ineffective button |
/plannotator <file\|folder\|url> |
Same review as Review, launched from the input box; also serves as the agent’s non-blocking entry point |
/plannotator |
Reviews the current session’s workspace directory |
/plannotate |
Alias for the commands above |
After a human submits in Plannotator, the decision log (--json) is written back to the conversation as a user message with source.kind: plugin:plannotator-dsh when autoFollowup is enabled (default true), and the agent can follow up in the same session.
Differences from “running plannotator directly”¶
The plugin launches the review in the background and immediately returns a link, rather than letting the DSH call block for a long time. It also resolves the plannotator executable itself in this order: plugin config → environment variable PLANNOTATOR_BIN → PATH → common installation paths (such as ~/.local/bin, /usr/local/bin, /opt/homebrew/bin, etc.). If the CLI is not found, the plugin can still load and prompts how to specify the path.
HTTP routes (the Browser side calls the Host; it does not directly import services)¶
| Route | Purpose |
|---|---|
GET /plannotator/review?target=<path\|url>[&session=<id>] |
Launches a review in the background and returns { ok, url, label, gate } |
POST /plannotator/log |
Forwards client logs to the plugin logs |
Environment and Dependencies¶
Before installing or enabling, please check the README and the repository source code, as well as the license (MIT).
| Dependency | Requirement |
|---|---|
| DeepSeek Harness | >=0.1.0-rc.5 (see dsh.compatibility in package.json) |
| Node (Host side) | >=20, no additional npm runtime dependencies |
| Plannotator CLI | Must conform to the documented contract: annotate <target> --json, ready file PLANNOTATOR_READY_FILE, decision log on stdout, as well as PLANNOTATOR_ORIGIN, PLANNOTATOR_PORT, etc. |
Installation and Enabling¶
Via the Harness plugin manager¶
Open Plugins within the application, install from the repository URL, then restart the application:
https://github.com/martyartem/dsh-plannotator
The npm package name is plannotator-dsh, and the Git repository name is dsh-plannotator.
Install via link from a local checkout (development)¶
If you need to clone outside ~/.dsh and link it into a profile, the README gives the following example: clone to any directory, then add a link: dependency in ~/.dsh/profiles/<profile>/package.json and include plannotator-dsh in dsh.profile.bundles, then restart; rollback is available via scripts/uninstall.sh [profile] [--purge]. For specific JSON snippets, refer to the repository README.
Configuration¶
Override the plugin entry plannotator-dsh in the profile’s patch layer (cordis.patch.yml); user patches persist after DSH upgrades. Example:
- id: plannotator-dsh
name: plannotator-dsh
config:
gate: true
timeoutMs: 1800000
Common configuration keys (default values are based on the README table):
| Key | Default | Meaning |
|---|---|---|
binary |
Auto-detect | Explicit path to the plannotator CLI |
binaryFallbacks |
Built-in candidate list | Additional candidate paths |
origin |
dsh |
Written into PLANNOTATOR_ORIGIN for each review |
gate |
false |
Whether to add an Approve button for each review |
openBrowser |
true |
Whether Plannotator opens the browser tab |
port |
Random | Fixed local review service port |
timeoutMs |
900000 |
Maximum review duration; stops on timeout |
readyTimeoutMs |
20000 |
Maximum time to wait for the local service to be ready |
autoFollowup |
true |
Whether to write annotations back to the conversation |
debug |
false |
Whether to also write plugin logs to stderr |
dataDir |
~/.dsh/storages/plannotator-dsh |
Plugin log directory |
Log file: ~/.dsh/storages/plannotator-dsh/plannotator-dsh.log.
Typical Usage¶
-
Ensure that the Plannotator CLI is installed on the local machine, the DSH version meets
>=0.1.0-rc.5, and the plugin has been installed and restarted. -
Specify the target in the Composer, for example reviewing a single file, a directory, or a URL (syntax follows the Plannotator CLI):
/plannotator ./docs/README.md
/plannotator /path/to/project
/plannotator https://example.com/doc
- To review only the current session’s workspace, you can omit the argument:
/plannotator
-
Alternatively, click Review when a document preview is open; the background returns an openable review URL, and after submission the annotations appear in the conversation, so the agent can modify or summarize based on them.
-
If behavior is abnormal after upgrading DSH or Plannotator, you can check the key log lines as suggested by the README:
grep -E "loaded|apply:|registered|unavailable|steering failed" \
~/.dsh/storages/plannotator-dsh/plannotator-dsh.log | tail -12
For example, loaded …; binary=… means the Host has loaded and found the CLI; steering failed means the write-back message was rejected; session … timed out means it was stopped because it exceeded timeoutMs.
Applicable scenarios and notes¶
Who it’s for: Teams or individuals who need to do human annotation of documents/code/webpages within DSH and want the annotations to return structurally to the same session so the agent can continue handling them; it relies on the Plannotator browser UI rather than a pure terminal diff.
Permissions and security: The plugin runs with the current DSH process’s permissions and can start a local review service, read/write workspace-related paths. Before installing, please read the GitHub repository source code and the MIT license, and only enable it under the premise of trusting the maintainer and the dependency chain.
Workspace resolution order (Host): current agent session directory → DSH_WORKSPACE_DIR / DSH_CWD → ctx.workspaceRegistry → cwd in the session log header → most recent session → Host process cwd. When multiple workspaces coexist, apply /plannotator with no arguments or explicitly pass a path to avoid reviewing the wrong directory.
Conclusion¶
dsh-plannotator embeds Plannotator review into the DSH client: non-blocking launch, self-healing CLI path resolution, annotation write-back to the conversation, with the surface consisting of only a Review button and one command line /plannotator (and /plannotate). For further information and issues, see GitHub; when installing within Harness, use the repository URL https://github.com/martyartem/dsh-plannotator. Catalog index: https://www.skillhub.cn/plugins/martyartem/dsh-plannotator.