Back to directory

dsh-mindmark

In a curated listMaintenance: Active

baike-zhang/dsh-mindmark

Show the model your mind: mark up an answer like in Word (highlight / underline / strike / comment / rewrite) and DeepSeek Harness feeds your markup back to the model on the next turn.

View on GitHub
$ dsh plugin --profile web add dsh-mindmark

24

stars

4

forks

JavaScript

Language

MIT

License

2026-11-16

Created

2026-11-16

Last push

MIT dsh plugin with a host half and a web client half: seven annotation types drawn with the CSS Custom Highlight API, injected through agent/pre-step, plus an `annotations` tool for resolve / material / distill.

DSH integration

Native runtime

Author-claimed

Safety audit

Unaudited

Last verified

2026-11-20

License

MIT

01What can it help you accomplish?

  • Correct an answer the way you would correct a Word document, instead of re-describing what you wanted

    Highlight / underline / strike / comment / rewrite / evidence / move marks on the answer, all pending marks injected as one user-context message before the next turn

    People running the deepseek-harness web profile for writing, design or code who are tired of typing "no, I meant…" into the prompt

  • Turn recurring corrections into standing instructions

    One-sentence preferences written into a managed block of `$DSH_HOME/AGENTS.md` (`<!-- dsh-mindmark:start -->` … `<!-- dsh-mindmark:end -->`, everything outside it preserved), which the workspace-instructions plugin feeds to every new session

    Long-running dsh users who keep making the same edit

  • Keep annotation injection cheap on long answers

    Two injection modes per session — brief (only the marked paragraphs plus a little context) or full (the whole answer with marks inline) — switchable next to the input box, with a pending count

    Anyone working in long conversations or on large answers

02How to install into DeepSeek Harness

Prerequisites

  • DeepSeek Harness (dsh) installed — the plugin client half declares `platform: web`
  • A writable `$DSH_HOME` — annotations and reference materials are stored there

Installation steps

  1. 01

    Run `dsh plugin --profile web add dsh-mindmark`

    $ dsh plugin --profile web add dsh-mindmark

  2. 02

    Or open the plugin page in Harness → Add plugin → `dsh-mindmark`; local development uses `link:<absolute path>`

  3. 03

    Restart Harness after changing the client half

Verify the integration

Not specified by the author

03DSH integration and capability boundaries

DSH integrationNative runtime

Native dsh plugin with two halves — the host hooks the official `agent/pre-step` stage to inject pending marks and exposes an `annotations` tool, the client takes over the `conversation.chat.text-interaction` slot for the selection toolbar and panel

  • Seven annotation types in the selection toolbar

    select text inside any answer→highlight / underline / strike / comment / rewrite / evidence / move, drawn with the CSS Custom Highlight API in separate pending and handled colours, with no nodes inserted into the message DOM

    takes over the built-in quote panel of the `conversation.chat.text-interaction` slot while keeping the quote button
  • `annotations` tool

    `action`: resolve / material / distill, optionally with `ids` or `offset`→marks confirmed as handled, reference material read in 8000-character chunks, distilled preferences written to AGENTS.md

    writes `$DSH_HOME/annotations/state.json` and `$DSH_HOME/annotations/materials/``distill` edits only the managed block of `$DSH_HOME/AGENTS.md` and leaves the rest untouched
  • Pre-step injection

    every pending mark in the current conversation→one user-context message right after yours, plus a short protocol paragraph in the system prompt explaining what each mark means and how to confirm it

    lands in the session log like any other context plugin, visible in the trajectory view
  • Reopen, re-submit and auto-collapse

    marks whose handled state is wrong, from the panel→re-submitted marks, or automatic collapse after `maxInjections` (default 3) rounds without a resolve call

    marks that are never confirmed stop being injected instead of being resent forever
  • Move inside a single answer

    Alt+C to pick up a selection, a click to choose the spot, Alt+V to drop→the paragraph relocated after a blinking orange caret line (or replacing the text you dragged over), with an orange dashed line left in its old place; Esc cancels

    the hotkeys do not fire while focus is in the input box, so typing is unaffected

04Who is it for? When not to use it?

Good for

  • People running the deepseek-harness web profile for writing, design or code who are tired of typing "no, I meant…" into the prompt
  • Long-running dsh users who keep making the same edit
  • Anyone working in long conversations or on large answers

05Compatibility, maintenance and safety notes

  • Rewrite and evidence only tell the assistant what you changed — the history it sees is still its own original answer. That is deliberate: the plugin does not modify the session log.
  • For the evidence mark, "change only this paragraph" is enforced by instruction: the model rewrites the whole answer every turn, so untouched paragraphs are guaranteed only by following the instruction, not technically.
  • Move works inside a single answer only; cross-message moves are not supported. Full mode inlines marks per message, and overlapping marks fall back to the brief list.
  • The client half targets the web profile and message anchoring depends on the Chat view's `data-chat-node-key` attribute — if upstream renames it, anchoring degrades to plain text (full mode only). Annotations live in `$DSH_HOME/annotations/state.json` per session, independent of the session log, so deleting a session does not delete them.
2026-11-162026-11-16v0.4.0

MIT · actively maintained (latest release v0.4.0, 2026-11-16)

06Frequently asked questions

How do my marks actually reach the model?

At the start of each turn the host renders every pending mark in the conversation into one user-context message placed right after yours — through the official `agent/pre-step` hook, so it lands in the session log like any other context plugin and is visible under trajectory. When marks exist, a short protocol paragraph in the system prompt explains what each mark means and how to confirm it.

What do the seven marks mean to the assistant?

Highlight: keep and strengthen this. Underline: not enough — expand, clarify or give evidence. Strike: remove, do not bring it back. Comment: do what the comment says and answer each point. Rewrite: take the user's wording. Evidence: change only this paragraph, follow the attached material, and say which sentence of it you relied on. Move: put this paragraph where the user marked.

What is the difference between brief and full injection?

Brief sends only the marked paragraphs plus a little context next turn; full sends a revised view of the whole answer with marks inlined in the text. The toggle sits left of the input box with the pending count, and `defaultMode` in `cordis.patch.yml` sets the default for new sessions (`brief` unless you change it); the toggle overrides it per session.

How do I install it?

`dsh plugin --profile web add dsh-mindmark`, or via the plugin page → Add plugin → `dsh-mindmark`; local development uses `link:<absolute path>`. Restart Harness after changing the client half.

Where does my data live, and does deleting a chat delete my marks?

Marks live in `$DSH_HOME/annotations/state.json`, grouped by session; reference materials live separately in `$DSH_HOME/annotations/materials/` (up to 200,000 characters per item, deleted together with the mark) and are not mixed into state.json. The store is independent of the session log, so deleting a session does not delete its marks. Distilled preferences go into the managed block of `$DSH_HOME/AGENTS.md`.

08Data and sources

  • Author-claimedgithub.comd3b30040a2a4…

    dsh plugin --profile web add dsh-mindmark

  • Author-claimedgithub.comd3b30040a2a4…

    **步骤前注入**:每一轮开始时,Host 把当前对话里所有待处理的标注渲染成一条用户上下文消息,

  • Author-claimedgithub.comd3b30040a2a4…

    紧跟在你的消息之后进入模型(走官方 `agent/pre-step` 钩子,像其它上下文插件一样落进会话日志,可在「轨迹」里看到)。

This page is generated from the project’s public documentation, repository metadata and a structured parse of DSH Plugins; last verified on 2026-11-20. Found an error? Submit a correction.

🏆

Best DeepSeek Harness Plugins

Twelve plugins worth installing first — picked from the whole catalog, across every category.

DSH Plugins is an independent community directory of DeepSeek Harness plugins. Not affiliated with or endorsed by DeepSeek. Third-party plugins are not security-audited — review the source before installing.

New DeepSeek Harness plugins, weekly. No spam.