DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

@playform/hook-dsh-comment-filter

Hook Dsh Comment Filter

The comment-filter hook: a DeepSeek Harness plugin and a NEW overpass flavor that strips code comments from `read` and `ccr_retrieve` tool results at tools/post-execute, gated per task intent stashed at agent/pre-step. The transform understands the read t

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add @playform/hook-dsh-comment-filter@0.2.1
READMECompatibilityVersions

Compatibility and provenance

Hook Dsh Comment Filter is published as @playform/hook-dsh-comment-filter and currently resolves to version 0.2.1. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
npm
Registry updated
11/4/2026

Versions

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

Related plugins

Loading related plugins…

Latest
0.2.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
27.2 kB
Files
33
Surface
any
License
CC0-1.0
Source
npm
GitHub
★ 2
Weekly downloads
305
Security scan
✓ v0.2.1 scan passed
Last push
11/4/2026
View source ↗Project homepage ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in developer-tools.

Better Sidebardsh-better-sidebarBetter Sidebar for DSH — file tree, editor, changes, tasks and side chat in one column, separate for every conversation. Also exposes a service other plugins use to register sidebar tabs and file viewers.Client Ui Git Graph@linxin666/dsh-client-ui-git-graphExternal dsh web GUI plugin: a blank-session git branch selector + Git graph, with real host-side git operations and guards, as a dsh profile bundleSsh@linxin666/dsh-sshRemote SSH operations for the dsh web GUI: host config store (~/.dsh/dsh-ssh.json, import from ~/.ssh/config), a persistent ssh2 connection pool with jump-host support, exec / PTY web terminal / SFTP transfer / local port-forward tunnels / cluster executiUpdate@linxin666/dsh-updateSelf-update plugin for the dsh web GUI: probes npm for newer family releases and runs the owning profile's pnpm update in place, from a sidebar trigger beside the settings seat with a release-notes panel

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.