DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Highlightpin — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

dsh-highlightpin

Highlightpin

DeepSeek Harness 的三级源文本固定项:召回内容、常驻背景和突出显示的约束。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add dsh-highlightpin@0.1.2
README兼容性版本

兼容性与来源证明

Highlightpin 以 dsh-highlightpin 发布,当前版本为 0.1.2。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/10/14

版本

0.1.2stable
2026/10/14
0.1.1stable
2026/10/13
0.1.0stable
2026/10/13

相关插件

正在加载相关插件…

最新版
0.1.2
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
199.9 kB
文件数
41
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 1
周下载
0
最近提交
2026/10/14
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 memory-context 分类下经过校验的插件。

Hindsight Coding Agents@vectorize-io/hindsight-coding-agents面向编程代理的仅反思式 Hindsight 长期记忆(可插拔支持多种运行框架:opencode、……),自动在后台导入(无需设置 CLI)。Ab Memorydsh-ab-memory--- description: "dsh-ab-memory 包:一种跨会话、基于文件的智能体记忆,提供五个工具(remember / recall / forget / load_skill / distill)以及始终启用的轻量注入。" kind: "package-reference" ---Contextdsh-context用于上下文洞察和管理的 DeepSeek Harness 插件,提供上下文仪表板和上下文命令,帮助了解上下文的构成及其演变过程。Memsearch Dsh@zilliz/memsearch-dsh适用于 DeepSeek Harness 的 MemSearch 插件:在多个代理之间共享 Markdown 记忆,支持捕获、步骤前上下文注入、记忆召回技能和技能候选审核面板。

README

highlightpin

Pin any selected passage; compaction cannot take it away.

中文 · Design · Evaluation · Live evidence

A DeepSeek Harness (DSH) plugin. Select any stretch of text in a conversation — a constraint, a number, a formula, a piece of code — and pin it with one click. From then on, no matter how the context is compacted, what the model receives is that source text, not a summary.

Three levels

Each pin carries its own level:

LevelBehaviourGood forCost
pin (default)Does nothing while the text is still in context; once compaction drops it, the extract text is re-inserted verbatim near the tail before the next requestMost pinsNever touches the system prompt, so it does not break the prefix cache on its own
residentLives in the system prompt with neutral wording: "consult it when relevant; no need to bring it up"Important background: you want the model to match on it the moment it matters, without you mentioning it every turnCosts one prefix-cache invalidation when you switch levels
highlightLives in the system prompt with emphatic wording: "follow it when relevant; if it conflicts with your latest explicit instruction, the latest instruction wins"Constraints and priorities the model must keep honouringSame as above; emphasis also raises how often the model brings it up on its own

resident and highlight are deliberately two separate levels. "The model can always find it" and "the model always keeps it in mind" are different things, and emphasis has side effects of its own — so the choice is yours.

Installation

From npm (published releases):

dsh plugin --profile desktop add dsh-highlightpin@0.1.2

Or straight from the GitHub source:

dsh plugin --profile desktop add 'https://codeload.github.com/sbearbug/dsh-highlightpin/tar.gz/v0.1.2'

On the web profile, replace desktop with web. After installing or upgrading, fully quit and restart DSH, then refresh the page, so that host and client both load the new version. Existing pins survive.

Compatible DSH versions

peerDependencies declares >=0.1.7-rc.1 <0.2.0-0 || >=0.2.0-rc.1 <0.3.0-0. The DSH plugin manager checks these peers with semver.satisfies(runtimeVersion, range, { includePrerelease: true }) and blocks installation and activation on a mismatch.

The range carries an explicit prerelease branch on purpose: under ordinary semver semantics a single >=0.1.7-rc.1 <0.3.0-0 does not match the 0.2.0-rc.* builds, because node-semver admits a prerelease only when some comparator in the range shares its exact major.minor.patch tuple and itself carries a prerelease tag.

DSH versionStatus
0.2.0-rc.2Verified live — development and real-machine checks both ran on this version
0.1.7-rc.1 / 0.1.7-rc.2Offline suite passes; CI re-runs the same suite against this line on every push
Other 0.2.xInferred from the APIs used, not verified individually
≤ 0.1.6Unsupported: CommandDefinitionId does not exist at 0.1.5 and below, and the 0.1.6 line's session-event validation already differs
≥ 0.3.0Not claimed

Usage

  1. Select text inside one finished user or assistant message.
  2. Click the pin above the composer.
  3. Click the arrow beside it to open the details panel: switch each pin between "recall / resident / highlight", check budget usage, or unpin.

When you select inside a formula, the selection is expanded to the whole formula and what gets stored is the TeX source. Select the rendered $\nabla_\theta J(\theta)$ and the plugin stores $\nabla_\theta J(\theta)$ — not the glyphs on screen. Selections inside code keep their indentation and line breaks.

Everything is also available from the command line:

CommandEffect
/hlpin listList every pin, its level and budget usage
/hlpin lastPin the most recent assistant reply in full
/hlpin show <n>Show one pin's full text
/hlpin drop <n>Unpin
/hlpin level <n> pin|resident|highlightChange a pin's level

Design notes

  • What is stored is source text, not screen text. The client serialises the selection first (formulas back to TeX, copy buttons and line numbers stripped out), and the host then locates the matching source substring in the session log. Alignment reports one of three fidelities: source-exact (a clean hit), source-normalized (matched after whitespace and Markdown normalisation, but still storing a source slice), or rendered (no match — it stores the display text and tells you so).
  • pin only re-inserts after the original is gone. Right after pinning, the text is already in context, so re-injecting it would be pointless. It comes back only once compaction has shadowed it — and at that moment the prefix cache was already invalidated. So the default level cannot break caching by construction.
  • The decision is a pure function that keeps no ledger. Every step re-decides from "is this text still in context", and records nothing like "already re-inserted". A rejected step, a plugin restart, or the recall notice itself being compacted later therefore cannot lose a pin.
  • The resident section and the recall notice never duplicate each other. Each step records which pins actually went into the system prompt for that step, and the recall path excludes them. With no such record it re-inserts as usual: better to duplicate than to lose.
  • Over budget means rejection, not truncation. pin, resident and highlight each have their own character pool. Adding or promoting past a pool's budget is rejected outright with an error code; demotion is always allowed. The plugin never quietly truncates, evicts, or demotes a pin.
  • The session log format is left alone. Pins live in the official storageDomain, and recall uses a message type the host already has, so a session can never become unloadable from an unknown event. The HTTP API is origin-checked and accepts JSON only from the local page.

The full set of trade-offs is in DESIGN.md.

Verification status

  • Live: "pin → /compact → next message" has been run end-to-end in DSH. The shadowed source text appeared in the next request's input, byte-identical to what was stored, with a matching SHA-256. Evidence: docs/PROBES.md and docs/m1-live-0.1.4.json.
  • Offline: alignment, selection serialisation, the decision function, all three injection paths, budgets, routes, commands and React interaction are covered by tests, run by CI on every push.

Configuration

{ "maxPinChars": 16000, "maxResidentChars": 6000, "maxHighlightChars": 2000, "holdSubagents": false }
SettingDefaultMeaning
maxPinChars16000Total source characters across pin pins
maxResidentChars6000Total source characters across resident pins
maxHighlightChars2000Total source characters across highlight pins
holdSubagentsfalseWhether subagent sessions are covered too (off by default, to avoid wasting tokens)

Characters are counted in UTF-16 units. Neither the number of pins nor the length of a single pin is capped; only the total per level is.

Limitations

  • Selections must stay within a single message; cross-message selections are not supported.
  • Streaming messages, reasoning content and tool output are not supported.
  • Pins belong to one session; forked sessions do not inherit them.
  • One writer host per profile is supported.
  • "Highlight" here is an emphasis level in the model input; it does not draw a visual highlight on the original message.

Development

npm ci
npm run check   # build the client + run all tests + loader check
npm run eval    # controlled fixture: byte-exact preservation through all three levels

License

MIT