DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

Context Guardian Deepseek Harness — DeepSeek Harness 插件(DSH…
← Plugins

context-guardian-deepseek-harness

Context Guardian Deepseek Harness

DeepSeek Harness 上下文压缩前的人工审核

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

npx -y @deepseek-ai/dsh plugin --profile web add context-guardian-deepseek-harness@0.4.2
README兼容性版本

兼容性与来源证明

Context Guardian Deepseek Harness 以 context-guardian-deepseek-harness 发布,当前版本为 0.4.2。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

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

版本

0.4.2stable
2026/9/17
0.4.1stable
2026/9/17
0.4.0stable
2026/9/17
查看其余 12 个版本收起版本
0.3.5stable
2026/9/16
0.3.4stable
2026/9/16
0.3.3stable
2026/9/16
0.3.2stable
2026/9/15
0.3.1stable
2026/9/14
0.3.0stable
2026/9/14
0.2.2stable
2026/9/14
0.2.1stable
2026/9/13
0.2.0stable
2026/9/13
0.1.2stable
2026/9/12
0.1.1stable
2026/9/12
0.1.0stable
2026/9/12

相关插件

正在加载相关插件…

最新版
0.4.2
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
102.4 kB
文件数
25
Surface
any
许可证
MIT
发布源
npm
GitHub
★ 1
周下载
56
最近提交
2026/9/17
查看源码 ↗项目主页 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

README

Context Guardian for DeepSeek Harness

English · 简体中文

This adapter audits a native Preview before DeepSeek Harness commits context compaction:

Harness native Preview → Context Guardian Audit → auto correction / max 3 topic questions
→ exact status correction or deterministic Reviewed Facts block → native Harness compaction commit

It is a decorator over dsh-compaction-basic. DeepSeek Harness continues to own compaction range selection, token accounting, durable session events, summary framing, persistence, and the /compact command. The adapter makes one native summarize() call, applies only exact source-backed edits to text blocks, and adds one deterministic Reviewed Facts content block when needed. Non-text summary blocks and metadata are preserved. If Python, the bridge, audit, review UI, or finalization is unavailable, the adapter logs a warning and accepts the successful Preview. This is experimental and does not guarantee better summaries or agent performance.

The hard review budget is controlled by CONTEXT_GUARDIAN_MAX_REVIEW_QUESTIONS=0..3; zero disables questions and resolves uncertain topics conservatively.

Install

DeepSeek Harness is currently a developer preview, so this adapter is pinned to the 0.1.5-rc.x API family. The adapter package is published; install it into the Web profile with:

python3 -m pip install context-guardian-core
dsh plugin --profile web add context-guardian-deepseek-harness

The adapter and Python core share a versioned bridge contract and must stay on the same 0.4.x release line. Pin both sides when reproducing a published setup; for example, the 0.4.2 pair is:

python3 -m pip install "context-guardian-core==0.4.2"
dsh plugin --profile web add context-guardian-deepseek-harness@0.4.2

If an older core does not recognize an operation used by the adapter, the adapter's fail-open warning includes the underlying bridge error instead of silently hiding the compatibility problem.

For a source checkout, replace the package name with /absolute/path/to/ContextGuardian/adapters/deepseek-harness.

Because DeepSeek Harness Web composes compaction inside the selected agent preset, installing the package alone does not replace the standard preset's nested native backend. Create a user preset based on standard, replace its compaction-basic row with context-guardian-deepseek-harness, and select that preset (or make it the default). The preset must contain this compaction group:

- id: compaction
  name: cordis:group
  group: true
  isolate:
    compaction: true
    toolResultPruner: true
  config:
    - id: context-guardian-compaction
      name: context-guardian-deepseek-harness
    - id: command-compact
      name: '@deepseek-ai/dsh-command-compact'
    - id: tool-result-pruner
      name: '@deepseek-ai/dsh-compaction-tool-result-pruner'

Keep the rest of the copied standard preset unchanged. This is required because DeepSeek Harness mounts the preset in a per-session scope; a profile-level plugin row cannot override the preset's own compaction-basic row.

Install the Python core in the same environment used by dsh, or point the adapter at an interpreter explicitly:

python3 -m pip install -e /absolute/path/to/ContextGuardian
export CONTEXT_GUARDIAN_PYTHON=/absolute/path/to/python

The adapter does not receive or forward DEEPSEEK_API_KEY. Structured inspection calls go back through DeepSeek Harness's active ctx.llm route, so Harness remains the only process that resolves provider credentials.

Provider audit output is untrusted. Findings must cite a message from the current request and evidence snippets must match that message verbatim before they can become Review topics or Reviewed Facts. Readable or translated provider text is display-only; the UI shows original source evidence separately and persists only the validated source sentence. Host planning metadata, system/plugin messages, tool calls, paths, hashes, logs, and resolved mechanical errors cannot enter the review UI. This is the same provenance rule used by the Pi adapter.

If the core is installed in a virtual environment, set CONTEXT_GUARDIAN_PYTHON=/absolute/path/to/venv/bin/python before starting Harness.

On Windows, the bridge preserves the runtime variables required by Python's networking stack while still passing only an explicit minimal environment to the child process. If the python3 command resolves to the Microsoft Store placeholder, set the interpreter explicitly in the same PowerShell session used to start Harness:

$env:CONTEXT_GUARDIAN_PYTHON = (Get-Command python).Source
$env:CONTEXT_GUARDIAN_DEBUG = "1"
$env:CONTEXT_GUARDIAN_TIMEOUT_MS = "120000"
dsh --profile web

The bridge timeout defaults to 120 seconds and can be lowered with CONTEXT_GUARDIAN_TIMEOUT_MS (up to 120 seconds). With debug enabled, the adapter logs when it loads and reports only audit finding and topic-question counts (never raw prompt contents).

Start the web profile and use a sufficiently long session or /compact:

dsh --profile web

Review topics appear through Harness's user-question UI. In headless compositions without an answerer, the adapter reports that Review UI is unavailable and accepts the successful native Preview. For an explicitly configured no-UI run, set CONTEXT_GUARDIAN_NO_UI=1; unresolved topics then use their conservative recommendations.

For a repeatable end-to-end UI test that does not require a long real conversation:

env PATH="/path/to/node-22.19/bin:$PATH" npm run dsh-fixture-smoke

The fixture creates an isolated Web profile, seeds a sufficiently large conversation, deliberately omits selected facts from the replayed native Preview, and opens the Harness UI. Select the session named Context Guardian 预置长对话(请先选择) (or the context-guardian-fixture-long workspace), then enter /compact. The UI should show at most three topic questions, including a source-backed status correction; select Apply correction or Keep current summary and confirm the native Preview with its deterministic Reviewed Facts block. It uses a replay model, so no DeepSeek API key is required. Exit the temporary Web process with Ctrl-C when finished.

For release verification against the real Harness host and its configured model, run the same fixture in live mode:

CONTEXT_GUARDIAN_DSH_LIVE=1 \
CONTEXT_GUARDIAN_FIXTURE_PACKAGE=context-guardian-deepseek-harness@0.4.2 \
npm run dsh-fixture-smoke

Live mode uses the existing DSH home and provider route, so the configured Harness credential stays inside Harness and is never passed to Python. It seeds a long session with one deliberately unresolved future-relevant topic. In the Web UI, enter /compact, confirm that a bounded topic-level Review question appears, manually choose Keep or Drop, and confirm that native compaction finishes. The exact question is model- dependent: if the native Preview already keeps the topic, zero questions is a valid result. Use replay mode for deterministic CI and live mode for the actual host/UI check.

Disable or uninstall

To temporarily disable Context Guardian, open Settings → Agent Presets, select the native standard preset, make it the default, and start a new session. The custom preset can remain available for later use.

For a full uninstall, switch away from the custom preset first, then remove the profile plugin and optionally delete the custom preset:

dsh plugin --profile web remove context-guardian-deepseek-harness

The native standard preset restores Harness's original compaction path. If the remove command fails, inspect the selected profile with dsh plugin --profile web list before making manual changes.

Local development

npm install
npm --workspace adapters/deepseek-harness run typecheck

To test a checkout before publishing, install the adapter into a Harness profile from the repository directory:

dsh plugin --profile web add /absolute/path/to/ContextGuardian/adapters/deepseek-harness

The profile bundle disables the stock compaction-basic row and inserts the decorated backend. The adapter is intentionally separate from the Python distribution and from the Pi adapter, so each host can evolve against its own lifecycle and UI contract.

相关插件

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

Cc Safety Netcc-safety-net编码代理 CLI 钩子——阻止破坏性命令和访问机密文件Doctor@linxin666/dsh-doctorDSH 配置档案的事务性救援模式,配备受监督的启动器、隔离的恢复容器、确定性修复、健康监控以及本地 Web 恢复控制台Mobiledsh-mobileDeepSeek Harness 移动端适配与安全访问插件,支持局域网、远程连接、Android App 和手机浏览器。Codex Subscriptiondsh-codex-subscription通过 OAuth 在 DeepSeek Harness 中使用 ChatGPT 和 Codex 订阅,支持配额管理、安全重置、网页搜索、图像和快速模式