DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
C

dsh-clear-conversation

Clear Conversation

DeepSeek Harness 插件:按需清除对话上下文,让旧的对话轮次不再消耗令牌

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

npx -y @deepseek-ai/dsh plugin --profile web add github:William20100221/dsh-clear-conversation#064e98304cf97507b23833d2ecdc7fa3dcc47a19
README兼容性版本

兼容性与来源证明

Clear Conversation 以 dsh-clear-conversation 发布,当前版本为 0.6.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/11/1

版本

0.6.0stable
2026/11/1
0.5.0stable
2026/11/1

相关插件

正在加载相关插件…

最新版
0.6.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 1
周下载
0
最近提交
2026/11/4
查看源码 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Experimental Session Search@deepseek-ai/dsh-experimental-session-search为 Agents 提供搜索和读取当前工作区早期会话的工具。Mnemondsh-mnemon面向 DeepSeek Harness 的可组合、基于视图的上下文。开箱即用的可插拔来源与策略、分层记忆和自我演进技能。Ab Memorydsh-ab-memory--- description: "dsh-ab-memory 包:一种跨会话、基于文件的智能体记忆,提供五个工具(remember / recall / forget / load_skill / distill)以及始终启用的轻量注入。" kind: "package-reference" ---Archive Manager@michengai/dsh-archive-manager归档、恢复、收藏和永久删除会话,并诊断损坏的会话日志。

README

dsh-clear-conversation

Say "clear everything above" and DeepSeek Harness actually forgets it.

Long sessions get slow and expensive: every request resends the whole history, and old topics leak into new answers. This DeepSeek Harness (dsh) plugin lets you drop that history in plain words, mid-conversation, without starting a new session.

What a session looks like (illustrative):

You:   My favourite colour is green. Now help me name a cat.
dsh:   How about "Basil"? It suits a green-loving owner.

You:   Clear everything above, then tell me a joke.
dsh:   [clear_conversation]  Context cleared.
       Why don't skeletons fight? They don't have the guts.

You:   What's my favourite colour?
dsh:   I don't know. You haven't told me in this conversation.

Quick start

dsh plugin --profile web add github:William20100221/dsh-clear-conversation
dsh web

That's it: no build step and no configuration. Using the DeepSeek Harness desktop app? Open Plugins → Add plugin and enter github:William20100221/dsh-clear-conversation. New to dsh, or want to try it safely first? See TESTING.md.

Features

  • Ask naturally. "Clear everything above", "forget the previous chat", "start over", 清空上下文, in any language.
  • Keeps your request. "Clear, then do X" still does X: only the turns before your message are dropped.
  • Saves tokens immediately. The model stops receiving the old turns from its very next request, even within the same turn.
  • Nothing is deleted. Old turns stay in the transcript and the session log; they just stop being sent.
  • Hard to trigger by accident. Casual phrases like "forget it, let's move on" or "how do I clear the context?" are ignored.
  • /clear command. Clear everything yourself while the agent is idle (Web, Desktop and SDK).
  • See what you saved. /clear shows a collapsible "Context cleared" card with the input tokens released, measured by dsh's own token meter. Open it to see which prompts were cleared.
  • Update reminders. When a newer release exists, the next clear tells you, with how to update. Set DSH_CLEAR_CONVERSATION_NO_UPDATE_CHECK=1 to switch the check off.
  • Safe by construction. The system prompt is never touched, and a clear that would split an unfinished tool call is refused.

How it works

dsh builds every request from the session's surface, an ordered list of messages. Its own /compact command replaces a run of old turns with an AI-written summary. This plugin uses the same mechanism, but writes one short note instead of a summary, so it costs nothing to run.

flowchart LR
  A[System prompt] --> B[Old turns] --> C["Your message: clear, then X"] --> D[Reply]
  B -. replaced by .-> N["Note: earlier conversation cleared"]

FAQ

Does it delete my messages? No. The transcript and session log keep everything. Only the model's view changes.

Can I undo a clear? Not yet. The old turns stay readable, but cannot be put back into the model's context.

Can the cleared messages be folded away in the transcript? Not from a plugin today. dsh's Web UI gives plugins no way to hide messages it has already drawn, which is also why messages compacted by /compact stay visible. The "Context cleared" card shows where the clear happened instead.

Does it contact the internet? Once per start, to ask GitHub for the latest release number. Nothing about your sessions is sent. Set DSH_CLEAR_CONVERSATION_NO_UPDATE_CHECK=1 to switch it off.

Which dsh surfaces does it work in? The tool works everywhere the model runs. /clear appears where dsh shows commands: Web and SDK, not ACP or headless.

How do I remove it? dsh plugin --profile web remove dsh-clear-conversation, then restart dsh.

Status? Preview, for dsh 0.2.1-rc.5 and later 0.2.x releases. Clearing by request and /clear are confirmed in the desktop app; the /clear card and token count are new and covered by tests. Please open an issue if something breaks.

Other harnesses

This repo also keeps the earlier Cherry Studio work. Each part works on its own.

Cherry Studio chats: MCP server

mcp-server is a tiny tool you add in Cherry Studio's MCP settings. No fork needed, and it really saves tokens. It works by writing the Ctrl+K divider into Cherry Studio's database, with a backup first. If a Cherry Studio update changes the database, it stops and asks you to update.

  • Needs Node.js 22.13 or newer. node server.mjs --check verifies your setup and tells you when a newer version exists.
  • Chats only. Agents keep their memory in Claude's own transcript, which nothing outside the app can reset; use the fork for agents.

See the MCP server README for install steps.

Any skill-loading app: the skill

skill/clear-conversation is an Agent Skill. It works in stock Cherry Studio agents, Claude Code, and other apps that load skills.

  • Install it from the latest release ZIP, or from GitHub with the link to its SKILL.md.
  • Without special app support, it does a soft reset: the model ignores the earlier conversation and tells you the app's own way to clear for real.

See the skill README for install steps and phrases.

Cherry Studio fork

William20100221/cherry-studio, branch feature/clear-context-tool adds a built-in clear_conversation tool. With it, a clear is real: older messages stay on screen but are no longer sent to the model, which saves tokens.

Chat topicAgent session
Needs the skillNo, the tool's description is enoughYes, for the full rules
Where the divider goesDirectly above the message that askedAfter the current turn
When the fresh start beginsThe next turnThe next turn, once the session is idle
UndoClick the divider, or the Undo toastThe Undo toast (10 s)
Ctrl+K / eraserDivider now, or a queued clear while streamingSame
Ctrl+LStops the reply, then divider or delete (setting), queue continuesSame
Delete modeAlways asks first, also when the model requests itSame

Settings → Context Management has two switches: the default clear action (divider or delete) and whether the assistant may clear at all.

In an Agent session, follow-ups already queued behind the clearing turn still run with the old context.

Development

npm test

The tests exercise the clearing logic against a stand-in session; they do not start dsh.

License

MIT for this repo. The Cherry Studio fork stays under Cherry Studio's AGPL-3.0 license.