DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

Context Clean — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

dsh-context-clean

Context Clean

DeepSeek Harness 插件:可由模型调用的上下文压缩器,可从转录文本中去除重复词语、重复行和重复段落,同时不会丢失重要信息(数字、路径、代码、决策)。

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-context-clean@0.1.1
README兼容性版本

兼容性与来源证明

Context Clean 以 dsh-context-clean 发布,当前版本为 0.1.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

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

版本

0.1.1stable
2026/8/15

相关插件

正在加载相关插件…

最新版
0.1.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
11.1 kB
文件数
7
Surface
any
许可证
MIT
发布源
npm
GitHub
★ 1
周下载
42
最近提交
2026/8/15
查看源码 ↗项目主页 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Memory Plugin@openviking/dsh-memory-plugin适用于 DeepSeek Harness 的 OpenViking 记忆与上下文套件Contextdsh-context用于上下文洞察和管理的 DeepSeek Harness 插件,提供上下文仪表板和上下文命令,帮助了解上下文的构成及其演变过程。Weknora@wxg-prc-cpg/dsh-weknora适用于 DeepSeek Harness (dsh) 的 WeKnora 知识检索工具:通过自有知识库进行语义搜索、文档阅读以及 RAG/代理回答。Mnemondsh-mnemon面向 DeepSeek Harness 的可组合三层记忆控制平面:持久化运行时上下文、可搜索的项目文档、可插拔的长期记忆、受保护的策略、WebUI 和无头工具。

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.