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.

Context Toolkit — DSH Plugin for DeepSeek Harness
← Plugins

dsh-context-toolkit

Context Toolkit

DeepSeek Harness bundle: native ctk_* sandbox tools, a routing gate that keeps bulk output out of the transcript, and a local full-text knowledge base. No third-party runtime dependencies.

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-context-toolkit@0.2.2
READMECompatibilityVersions

Compatibility and provenance

Context Toolkit is published as dsh-context-toolkit and currently resolves to version 0.2.2. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
npm
Registry updated
10/17/2026

Versions

0.2.2
stable
10/17/2026
0.2.1stable
10/16/2026
0.2.0stable
10/16/2026
Show 1 more versionCollapse versions
0.1.0stable
10/16/2026

Related plugins

Loading related plugins…

Latest
0.2.2
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
137 kB
Files
12
Surface
web
License
MIT
Source
npm
GitHub
★ 1
Weekly downloads
0
Last push
10/16/2026
View source ↗
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
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in memory-context.

Hindsight Coding Agents@vectorize-io/hindsight-coding-agentsReflect-only Hindsight long-term memory for coding agents (harness-pluggable: opencode, …), with automatic background ingestion (no setup CLI).Memory Plugin@openviking/dsh-memory-pluginOpenViking memory and context bundle for DeepSeek HarnessContextdsh-contextA DeepSeek Harness plugin for context insight and management, with context dashboard and context command, for understanding how the context is made of, and how it evolves.Weknora@wxg-prc-cpg/dsh-weknoraWeKnora knowledge retrieval tools for DeepSeek Harness (dsh): semantic search, document reading and RAG/agent answers over your own knowledge bases.

README

dsh-context-toolkit

简体中文 | English

A DeepSeek Harness bundle whose single job is keeping bulk output out of the conversation.

It separates raw bytes from conclusions: commands run in a child process, files are analysed in a sandbox, and long material is filed into a local knowledge base — while the conversation receives only conclusions, excerpts and counts. A routing gate refuses, before execution, the calls that would inevitably flood the transcript.

No third-party runtime dependencies. The knowledge base rides on Node's own node:sqlite (FTS5 included) and code execution uses interpreters already on the machine, so installing it pulls nothing else.

What it is for

ProblemWhat this does
A command prints thousands of lines; you only need a countctk_execute runs it in a child process and returns the answer
A large file needs statistics, not a full readctk_execute_file keeps its bytes in the sandbox
Many commands, one questionctk_batch_execute answers in one call with per-command status
A page or spec is read once and never reusedctk_index files it; ctk_search pulls excerpts on demand
curl / wget paste whole responses into the conversationThe routing gate refuses them and names the alternative
You cannot tell how much was savedctk_stats reports the ledger; the settings page shows a live occupancy panel

Tools

ToolPurpose
ctk_executeRun code in a sandboxed child process (javascript / esm / typescript / shell), return only the answer
ctk_execute_fileRun code over a file for statistics or extraction; the file text stays in the sandbox
ctk_batch_executeSeveral commands in one call, per-command status, conclusions only
ctk_indexFile text or a file into the local FTS5 knowledge base
ctk_searchMulti-query retrieval; excerpts are centred on the match
ctk_fetch_and_indexFetch pages → strip markup → file them
ctk_purgeDelete filed material (requires confirm: true)
ctk_statsSavings ledger: refusals, sandbox bytes, filed bytes, call counts
ctk_doctorSelf-check: interpreters really start, scratch dir writable, knowledge round-trip
ctk_context_reportThis conversation's context occupancy and composition

Install

From npm (recommended):

dsh plugin --profile desktop add dsh-context-toolkit

From GitHub:

dsh plugin --profile desktop add github:chimneyQ/dsh-context-toolkit

From a local checkout:

dsh plugin --profile desktop add D:\path\to\dsh-context-toolkit

Confirm dsh-context-toolkit appears in dsh.profile.bundles inside <DSH_HOME>/profiles/desktop/package.json.

Remove:

dsh plugin --profile desktop remove dsh-context-toolkit

Use it well

Reach for ctk_* first whenever the work is analysis, counting, filtering or summarising — reading that output into the conversation is the exact problem this bundle exists to solve.

// How many .log files, and how big in total?
await ctk_execute({
  language: 'javascript',
  code: `
    const fs = require('fs');
    const dir = process.argv[2];
    let n = 0, bytes = 0;
    for (const f of fs.readdirSync(dir)) {
      if (!f.endsWith('.log')) continue;
      n++; bytes += fs.statSync(dir + '/' + f).size;
    }
    console.log(n + ' files, ' + bytes + ' bytes');
  `
});

File long material once, then pull sections:

await ctk_index({ path: 'D:/specs/api.md' });          // the full text stays in the store
await ctk_search({ queries: ['rate limit', 'auth'] });  // only the relevant excerpts come back

Configuration

KeyDefaultMeaning
routingtrueMaster switch for the routing gate
denyCurlWgettrueBlock curl / wget outright
bashNudgeMinCommandBytes4096Nudge threshold for long commands (0 disables)
maxReadBytesBeforeAsk51200Nudge threshold for whole-file reads (0 disables)
trustedReadBasenamespackage.json etc.Filenames exempt from the read nudge
compressNudgeTokens120000Occupancy warning threshold (tokens)
searchLimit5Excerpts per query in ctk_search
snippetChars900Character ceiling per excerpt
fetchMaxBytes2000000Per-page fetch ceiling
storageDiremptyKnowledge-base root; empty = <DSH_HOME>/context-toolkit
tools.*see belowPer-tool switches

Tool switches: tools.execute, tools.executeFile, tools.batchExecute, tools.index, tools.search, tools.fetchAndIndex, tools.purge, tools.stats, tools.contextReport, tools.doctor — all on by default.

Verify

The offline suites need no DSH runtime:

node smoke.mjs        # 66 checks: contract, runtime discovery, tools, gate (segment matching, prefix/path normalisation, script_path coverage), resource disposal, knowledge base, observability, version reporting
node test-client.mjs  # 27 checks: browser-half contract and bilingual dictionary parity
node test-package.mjs # 20 checks: publish manifest and the zero-dependency constraint
node release-check.mjs # 27 checks: release readiness (manifest, deps, tool count, gate matching, version, SHA coverage, no hardcoded paths)

Known limits

  • Outbound fetching depends on this machine's network. If host names resolve to a loopback address, ctk_fetch_and_index fails with that reason spelled out — not a bare "fetch failed" — and ctk_index is the way to file local material instead.
  • ctk_execute timeouts are hard kills: the child is terminated and timedOut is reported.
  • A single run captures at most 256 KB; anything beyond is counted but not retained. The text handed back is additionally capped at 4000 characters, so even a 1 MB single-line output cannot enter the conversation whole.
  • The knowledge base deduplicates by path: filing the same path again replaces the earlier copy.
  • The gate is precise, not exhaustive. A flood tool is refused only when it is the command word of some segment — after exec prefixes (sudo, exec, …) and path/extension normalisation are stripped — and script_path is read up to the first 256 KB. A tool a program invokes internally (python -c 'import wget') is outside its remit.

License

MIT