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 Clean — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

dsh-context-clean

Context Clean

DeepSeek Harness plugin: a model-callable context compressor that strips duplicated words / repeated lines / repeated paragraphs from a transcript without dropping important info (numbers, paths, code, decisions).

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-context-clean@0.1.1
READMECompatibilityVersions

Compatibility and provenance

Context Clean is published as dsh-context-clean and currently resolves to version 0.1.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
9/20/2026

Versions

0.1.1stable
8/15/2026

Related plugins

Loading related plugins…

Latest
0.1.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
11.1 kB
Files
7
Surface
any
License
MIT
Source
npm
GitHub
★ 1
Weekly downloads
42
Last push
8/15/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 memory-context.

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.Mnemondsh-mnemonComposable three-tier memory control plane for DeepSeek Harness: persistent runtime context, searchable project documents, pluggable long-term memory, guarded strategies, WebUI, and headless tools.

README

dsh-context-clean

English | Česky

A DeepSeek Harness plugin that exposes a model-callable context compressor: context_clean. It strips bloat from a conversation or thinking transcript while keeping the information that matters — numbers, paths, code, decisions.

Public, MIT-licensed. No runtime dependencies beyond the DSH tools peer.

What it removes (and what it keeps)

Bloat removedPreserved
Adjacent repeated words (the the the → the)All first occurrences
Consecutive duplicate lines (collapsed to a [… N×]… marker)First line of each run
Repeated paragraphs/blocks (later copies dropped)First paragraph of each block
Runs of blank lines (collapsed to one)Section structure

The compressor is deliberately conservative: it only drops exact duplicates (case- and whitespace-insensitive for paragraphs), so numbers, code lines, and decision text are never rewritten.

Tool

context_clean(text?, path?) — clean a transcript and return the compacted text plus a one-line before/after summary.

  • text — inline transcript text (required unless path is given).
  • path — absolute path to a text file to clean instead.

The engine is a small Python script (scripts/clean_context.py) that ships inside the plugin, so it works regardless of the session's working directory. Python 3 is the only prerequisite.

Install

dsh plugin --profile web add dsh-context-clean

After restarting the session, context_clean appears in the tool catalog.

CLI usage (standalone)

python3 scripts/clean_context.py transcript.txt   # file → stdout + stats on stderr
cat transcript.txt | python3 scripts/clean_context.py

License

MIT.