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-tool-coach

Hook Dsh Tool Coach

The tool-coach hook: a DeepSeek Harness plugin that teaches the model to stop using the terminal for file content. It hooks the tools/post- and tools/pre-execute waterfalls, the agent/pre-step boundary, the system-prompt/assemble waterfall and the tools/c

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

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

Compatibility and provenance

Hook Dsh Tool Coach is published as @playform/hook-dsh-tool-coach 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
69.4 kB
Files
38
Surface
any
License
CC0-1.0
Source
npm
GitHub
★ 2
Weekly downloads
287
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-tool-coach - the four-tier ladder that teaches the model to keep file content out of the terminal

Version 0.2.1 - UNPUBLISHED (the npm bootstrap tier 2-planned / 3-candidates).

Plan: SCHEME.md - TOOL-COACH-OPERATIVE-PLAN.md - TOOL-COACH-PLAN.md - TOOL-COACH-RESEARCH.md.

The role

A DeepSeek Harness plugin teaches the model to stop using the terminal for file content: it watches the terminal tool calls (bash, pwsh, config judgeTools, while the dedicated tools are never judged) and runs a four-tier coaching ladder that escalates from silent observation to a persistent system-prompt section to an optional hard deny.

The one-sentence rule the coach enforces: the terminal runs COMMANDS (builds, tests, git, package managers); the tools handle CONTENT.

Any bash segment that reads file content into the conversation or mutates file content on disk is a regression class match, because terminal file edits are invisible to the plugin system: the harness's fs/observed chain (the trigger of the governor, pinner, and normalize plugins) fires ONLY on tool-layer writes.

Detection is deliberately adversarial: the command is normalized before any matching (heredoc bodies stripped, $(...)/backticks -> «sub», $VAR/${VAR} -> «var», $IFS -> space, quote layers removed), then the pattern rows, an intent-marker scan (redirect to a real path = write; pipe into a shell = write; --in-place = write), a craft library for the obfuscated variants, and a catch-all where any write-intent marker on a non-/dev/null path lands as write even when no row matches, so novel zero-day forms still count.

Exemptions (builds, tests, git, package managers, file lifecycle) are checked per pipeline AFTER normalization: an exempt head dominates its pipe (git diff > patch.txt is exempt), while a bare echo x > tracked.md is not.

The five classes are write, read, search, discovery, control, with class-priority resolution across chained segments (cat a; sed -i ... counts once, as write).

Every note names the correct tool with its LIVE registry data, fetched through ctx.tools.schemas(): the tool name, the FIRST SENTENCE of its description (≤ 120 chars), and the primary parameter key.

Any fetch failure degrades to the static STATIC_TOOL_LINES table and logs schema fetch failed -> static fallback, so a note never fails a waterfall.

fetchLive: false (the escape hatch) uses the static table unconditionally.

The three model-facing note texts (notes.first the tier-1 notice, notes.persistent the tier-2 section, notes.denied the tier-3 deny reason) are volatile config cells, so a profile patch that replaces any of them retexts a tier without touching the package.

The templates keep the placeholder grammar of Function/Compose (${command}, ${class}, ${count}, ${traceability}, ${tool.name}, ${tool.description}, ${tool.param}, ${table}), and inserted user data is escaped before substitution, so a composed note never gains an unfilled placeholder.

The intended override appends the "Live-container grammar" block to notes.persistent, so the tier-2 section also teaches the live-containers machinery; the lesson is the SECTION, not the notice, and the live-containers README's "Teaching the grammar (the tool-coach note)" describes it.

The surfaces

KindNameWhat
listenertools/post-executejudges every terminal call; tier-0 ledger + tier-1 notice via additionalContexts (source {kind: 'tool-coach', form: 'notice', summary: '<tool> <class> × <n>'})
listenertools/pre-executetier 3: denies the terminal call with the lesson as the deny reason
listeneragent/pre-stepthe clean-window accounting between judged calls
listenersystem-prompt/assembletier 2: the persistent "Tool discipline" section
listenertools/changerebuilds the cached section when the registry changes
configSCHEME.mdthe full Schemastery schema (see the table below)

The four tiers: tier 0 fires on every detected offense (ledger only, the model sees nothing); tier 1 fires when a class reaches threshold (3) strikes within window (8) judged calls, with cooldown (10) between notes; tier 2 escalates at escalateThreshold (6) offenses since the last note and turns off again after cleanWindow (12) clean calls; tier 3 fires at enforceThreshold (4) strikes.

Tier 3 is off by default (enforce: 'off'), where write denies only write-class segments and all adds read and search.

Discovery and control are never denied, even at all, because flagging them hard would dilute the write/read signal.

Every knob is volatile, hot-edited without remounting, and a flip lands on the next judged call.

The configuration

FieldTypeDefaultMeaning
logbooleantruevolatile - the shared factory log switch
logFilestring~/.dsh/playform/hook-dsh-tool-coach.logvolatile - the ledger file
enabledbooleantruevolatile - the coach switch
judgeToolsarray["bash", "pwsh"]volatile - the terminal tools that are judged
thresholdnumber3volatile - tier-1 strikes within the window
windownumber8volatile - the sliding judged-call window
cooldownnumber10volatile - judged calls between tier-1 notes
escalateThresholdnumber6volatile - offenses since the last note that turn tier 2 on
cleanWindownumber12volatile - clean calls that turn tier 2 off
enforceunionoffvolatile - off / write / all, the tier-3 deny scope
enforceThresholdnumber4volatile - strikes since the last note that deny
exemptPatternsarrayDEFAULT_EXEMPTSvolatile - the exempt command heads
patternTablearrayDEFAULT_PATTERNSvolatile - { pattern, class, tool, note? } rows
notesobjectfirst / persistent / denied templatesvolatile - the three model-facing note texts

The ledger

One log per module: ~/.dsh/playform/hook-dsh-tool-coach.log (config logFile), where the durable file lines are the [ISO] message forms with the hook-dsh-tool-coach: prefix.

activated (bundle 0.2.1, threshold=<t>/<w>, cooldown=<c>, escalate=<e>, clean=<cl>, enforce=<off|write|all>@<et>, judge=<list>, fetch=live|static)
disabled (enabled=false)
offense <tool> <class> <pattern>
strike <n>/<t> <tool> <class> -> note <tool>
cooldown suppressed <n> <tool> <class>
escalated persistent section (<n> strikes)
persistent section cleared (<n> clean calls)
section rebuilt (ttl <n>)
section rebuilt (tools/change)
denied <tool> <class> <pattern> -> use <tool>
exempt <tool> <pattern>
schema fetch failed -> static fallback

The build and the tests

  • Build: pnpm --config.verify-deps-before-run=false --dir Classic/packages/hook-dsh-tool-coach run prepublishOnly
  • Smokes: node Classic/packages/hook-dsh-tool-coach/Target/Test/<Folder>/Test.js - the six folders sum to the 129-check baseline exactly
    • Wiring-And-Defaults - 36 checks
    • Passthrough-And-Guards - 6 checks
    • Notes-And-Cooldown - 16 checks
    • Persistent-Section - 16 checks
    • Enforce-And-Exempts - 15 checks
    • Dynamic-And-Craft - 40 checks

The plan

SCHEME.md - TOOL-COACH-OPERATIVE-PLAN.md (Part 3) - TOOL-COACH-PLAN.md - TOOL-COACH-RESEARCH.md.

fetchLivebooleantruevolatile - fetch tool data from the live registry
maxSectionToolsnumber5volatile - the tier-2 tool-table row cap
sectionTtlnumber20volatile - judged calls between tier-2 section rebuilds