DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

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

dsh-privacy-mask

Privacy Mask

仅用于显示的 DeepSeek Harness 聊天隐私遮罩:正则表达式 → ***,悬停即可显示;复制内容和 LLM 上下文不变。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:Huauauaa/privacy#75bcb66bd8aa6c740c34503c88b78f94204049a6
README兼容性版本

兼容性与来源证明

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

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/8/20

版本

0.2.0stable
2026/8/20

相关插件

正在加载相关插件…

最新版
0.2.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
查看源码 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Experimental Agent Team Web Profile@deepseek-ai/dsh-experimental-agent-team-web-profile用于 Agent Teams Remote 和 UI 插件的实验性 Web 配置层Client Ui Task Board@linxin666/dsh-client-ui-task-board面向 DSH Web GUI 的主机权威任务面板,支持实际会话执行、主机 cron 调度以及可选的跨平台空闲睡眠保护;以挂载方式提供,无需修改 DSH 源代码。Client Ui Git Graph@linxin666/dsh-client-ui-git-graph外部 dsh Web GUI 插件:空会话 Git 分支选择器和 Git 图,包含实际的主机端 Git 操作与防护,作为 dsh 配置文件包

README

dsh-privacy-mask

Display-only privacy mask for the DeepSeek Harness (dsh) web UI. Regex matches in chat text render as a placeholder (default ***); hover reveals the original. Copy, selection, and LLM context are unchanged.

What it does

  • Scans user messages, assistant body text, and tool/result cards in the conversation DOM
  • Wraps regex matches in a CSS mask — the DOM still holds the original text
  • Shows a configurable placeholder instead of matched substrings; hover reveals the real value
  • Built-in rules for common secret shapes (API keys, Bearer tokens, email, PEM headers) plus custom rules
  • Settings page section Privacy mask (open via the bottom-left Settings button)

What it does not do

  • Does not redact session data, exports, telemetry, or model/tool payloads
  • Does not change what the LLM sees or what gets stored server-side
  • Does not alter clipboard output — copy/paste still yields the original secret text

Config still lives in browser localStorage (not Host settings.plugin.item); see Configuration storage.

Install

From a checkout of this repo:

dsh plugin --profile web add /absolute/path/to/privacy

Then restart (or reload) the web profile so the client bundle loads.

lib/client.js is a classic-script ModuleLoader factory (window.__ModuleLoader__.load, id dsh-privacy-mask), self-contained for the browser.

Dev overlay (optional): dsh web --patch ./cordis.patch.yml with absolute plugin paths per dsh docs.

Settings

Open the bottom-left Settings control, then choose Privacy mask in the settings nav.

FieldDescription
EnabledMaster switch. Off unwraps all masks and stops scanning.
PlaceholderText shown instead of matches (default ***).
RulesOrdered list. Each rule has an enable toggle, name, and regex pattern.

Per rule:

  • Builtin rules — name and pattern are read-only; you can disable them but not delete or edit the pattern.
  • Custom rules — fully editable; use Delete to remove. Add rule appends a blank custom row.

Actions:

  • Save — validates every pattern; invalid regex or empty/whitespace-only patterns show an inline error and are not written.
  • Reset to defaults — restores built-in rules and default placeholder immediately.

Storage key: dsh-privacy-mask:v1 in localStorage. After changing package.json client injects, restart the web profile so __DSH_BOOT__ picks up slots.

Default built-in rules

All enabled by default:

NamePattern (JS RegExp source)
API key-like\b(?:sk-or-|sk-|rk-)[A-Za-z0-9_\-]{16,}\b
Bearer token\bBearer\s+[A-Za-z0-9\-._~+/]+=*
Email\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b
PEM private key header-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----

The API-key rule is intentionally conservative; disable it if you see false positives.

Tests

npm test

Runs Node node:test suites for mask-core (match/segment contract), writeConfig (persist + invalid/empty-pattern rejection), and conversation selectors. Tests import ESM sources (lib/mask-core.js, lib/settings-store.js, lib/selectors.js); the browser file inlines those.

Compatibility / DOM selectors

DSH web UI markup can change between versions. If masking misses the chat or hits the wrong area, edit lib/selectors.js (keep the inlined copy in lib/client.js in sync):

  • conversationRoots() — scan start: prefers [data-conversation-scroll], then [role="log"] / [data-testid="conversation"], then main, then document.body
  • shouldSkip() — ignores composer ([data-composer-seat] / [data-composer-card]), sidebar ([data-slot="sidebar"]…), inputs/contenteditable, shell overlays, the settings panel, and nodes already masked

Prefer stable data-* / roles over hashed class names. On first install, still verify in DevTools that the transcript root and composer markers match your dsh build.

Configuration storage

The Privacy mask page is registered as a Settings nav section (settings.section). Values still persist in browser localStorage, not Host settings.plugin.item.

Public dsh rc builds enforce a WEB_SETTINGS_NAMESPACES allowlist that blocks third-party plugin namespaces from the Host settings store. Until that allowlist includes privacy-mask, localStorage remains the persistence path. The Host entry (lib/index.js) is a no-op mount marker only.

Manual smoke checklist

After install into a web profile:

  1. Send or view a message containing a fake Bearer token (e.g. Authorization: Bearer abc.def-123) — UI should show the placeholder.
  2. Hover the masked span — original text appears.
  3. Select and copy — clipboard contains the original token, not ***.
  4. Disable the Bearer rule (or master Enabled) and save — text renders plainly.