DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

@playform/hook-dsh-comment-filter

Hook Dsh Comment Filter

comment-filter hook:一个 DeepSeek Harness 插件和一种新的 overpass flavor,在 tools/post-execute 阶段从 `read` 和 `ccr_retrieve` 工具结果中移除代码注释,并根据存储在 agent/pre-step 的任务意图进行控制。该转换器理解 read t

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

npx -y @deepseek-ai/dsh plugin --profile web add @playform/hook-dsh-comment-filter@0.2.1
README兼容性版本

兼容性与来源证明

Hook Dsh Comment Filter 以 @playform/hook-dsh-comment-filter 发布,当前版本为 0.2.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

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

版本

0.2.1stable
2026/10/28
0.2.0stable
2026/10/25
0.1.0stable
2026/10/25

相关插件

正在加载相关插件…

最新版
0.2.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
27.2 kB
文件数
33
Surface
any
许可证
CC0-1.0
发布源
npm
GitHub
★ 2
周下载
305
安全扫描
✓ v0.2.1 扫描通过
最近提交
2026/11/4
查看源码 ↗项目主页 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

README

@playform/hook-dsh-comment-filter

This is a NEW overpass flavor, and it strips code comments from the read and ccr_retrieve tool results.

  • Listener 1 is tools/post-execute (prepended), which strips comments from the targeted results.
  • Listener 2 is agent/pre-step, which stashes the last user message as the per-task intent.
  • The gate reads enabled, targets, exempt, and the intent keywords in Source/Function/Gate.ts.

The overpass arms of the family normalize bytes after the fact, and this one OMITS them.

The deliberate opposite

The normalize flavors exempt read as byte-contracted, and this flavor TARGETS it.

The omission IS the feature, and the exemption list keeps the other byte contracts of the family.

That list is edit, raw-write, normalize-file, subagent, and ask_user_question.

The intent gate

A task ABOUT comments (docstring, jsdoc, license, annotation, ...) keeps them untouched.

Stripping the very bytes a task is asking about would sabotage the task.

The gate runs per call and in order, as Source/Function/Gate.ts shows:

  • An enabled of off passes, a tool outside targets passes, and a tool in exempt passes.
  • An intent of off strips, task text with an intentKeywords entry passes, and everything else strips.
  • A step with no user message keeps the previous intent, so the gate works past step one.
  • IntentMap is keyed by the agent object, and Global is the fallback for a no-agent call.

The transform

The transform understands the model-facing envelope of the read tool byte-for-byte:

<path>{displayPath}</path>
<type>file</type>
<content>
{n}: {line text}
...

(End of file - total N lines)
</content>

Every line-number prefix and every line is preserved, and an unknown extension passes by identity.

A full-line comment becomes an empty line, and a trailing comment is removed from its start.

The scanner is string-aware for quotes with escapes, JS/TS/Go templates, Python docstrings, and similar forms.

Under-stripping is acceptable, and corrupting code is not.

The language table gives // and the slash-star pair for the C family and # for the hash family.

It gives -- for SQL, --[[ ]] for Lua, {- -} for Haskell/Elm, ; for Lisp/asm, and % for TeX.

It gives <!-- --> for markup, # plus <# #> for PowerShell, and the =begin/=end pair of Ruby.

md, mdx, json and txt are deliberately absent.

Unknown extensions pass by identity.

The v1 blind spots are regex literals, JSX text, Rust raw strings, Lua long strings, and shell ${...}.

Configuration

logFile         string    ~/.dsh/playform/hook-dsh-comment-filter.log    volatile
log             boolean   true                                          volatile (the ledger gate)
enabled         boolean   true                                          volatile
targets         string[]  ["read", "ccr_retrieve"]                      plain
exempt          string[]  ["edit", "raw-write", "normalize-file", ...]  plain
intent          boolean   true                                          volatile
intentKeywords  string[]  comment, comments, commented, ...             volatile
notice          boolean   true                                          volatile

The full default list of intentKeywords lives in Source/Variable/Config.ts with 15 entries.

enabled is the filter switch only, and it maps onto State.Active rather than the ledger gate of the factory (State.Enabled, from the shared log cell), so a filter that is off still records its activation line.

targets and exempt are structural, because editing them remounts, and the rest are volatile.

Ledger strings (byte-exact)

  • hook-dsh-comment-filter: activated (targets 2, intent on, notice on, logFile=...)
  • hook-dsh-comment-filter: filtered {N} comment(s) in tool result {name} {callId}
  • (Comments omitted. Use grep to inspect them, or ask the user to include comments.)

Activation

The bundle patch is cordis.patch.yml, which holds an - insert: row.

The package activates when the profile package.json lists it in dsh.profile.bundles AND the app restarts.

A file: dependency alone is NOT activation, because bundle layers compose at host boot.

Build and verify

pnpm install --offline
cd Classic/packages/hook-dsh-comment-filter
pnpm run prepublishOnly
node Target/Test/Overpass/Test.js   # 19 PASS - Overpass
node Target/Test/Intent/Test.js     # 12 PASS - Intent

The per-folder READMEs declare the expected counts, which is the vacuously-green guard.

The aggregate at node Maintain/Run-Smokes.mjs discovers the folders automatically.

相关插件

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

Better Sidebardsh-better-sidebarBetter Sidebar for DSH — 在一列中提供文件树、编辑器、变更、任务和侧边聊天,并为每个对话单独显示。同时提供服务,供其他插件注册侧边栏标签页和文件查看器。Client Ui Git Graph@linxin666/dsh-client-ui-git-graph外部 dsh Web GUI 插件:空会话 Git 分支选择器和 Git 图,包含实际的主机端 Git 操作与防护,作为 dsh 配置文件包Ssh@linxin666/dsh-sshdsh Web GUI 的远程 SSH 操作:主机配置存储(~/.dsh/dsh-ssh.json,可从 ~/.ssh/config 导入)、支持跳板主机的持久化 ssh2 连接池、exec / PTY Web 终端 / SFTP 传输 / 本地端口转发隧道 / 集群执行Update@linxin666/dsh-update用于 dsh Web GUI 的自更新插件:探测 npm 上是否有更新的系列版本,并在原地运行所属配置的 pnpm 更新;可通过设置图标旁侧边栏中的触发器启动,并显示发布说明面板