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-context-drawer

Context Drawer

DeepSeek Harness 插件只有一个功能:当对话上下文达到阈值(默认为模型窗口的 50%)时,将较早的消息追加到与该对话关联的文件夹中,然后从模型可见的上下文中释放最早的已完成轮次。聊天记录和仅追加式会话日志均保持不变。没有 UI、没有记忆,也没有其他功能。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:yue7ye/dsh-Context-Drawer#69687a1ad765d4518209697bf1735286d38dd440
README兼容性版本

兼容性与来源证明

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

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/10/30

版本

0.1.0stable
2026/10/30

相关插件

正在加载相关插件…

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

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Experimental Session Search@deepseek-ai/dsh-experimental-session-search为 Agents 提供搜索和读取当前工作区早期会话的工具。Hindsight Coding Agents@vectorize-io/hindsight-coding-agents面向编程代理的仅反思式 Hindsight 长期记忆(可插拔支持多种运行框架:opencode、……),自动在后台导入(无需设置 CLI)。Contextdsh-context用于上下文洞察和管理的 DeepSeek Harness 插件,提供上下文仪表板和上下文命令,帮助了解上下文的构成及其演变过程。Memory Plugin@openviking/dsh-memory-plugin适用于 DeepSeek Harness 的 OpenViking 记忆与上下文套件

README

dsh-Context-Drawer

A DeepSeek Harness (DSH) plugin with exactly one job:

When the conversation context reaches a threshold (default 50% of the model window), move older messages into a folder associated with that conversation, then release the oldest finished turns from the model-visible context.

There is no UI, no button, no route, no memory bridge, no prompt injection. The chat transcript and the append-only session log are never modified — the released part is only invisible to the model, and the archive on disk always has it.

Behaviour

  • Every turn, at the first step, the plugin estimates context usage (real provider usage when available, character estimate otherwise).
  • When usage reaches thresholdRatio (default 0.5) of the model window:
    1. Append the messages newer than the last archive watermark to {archiveDir}/{sessionShort}/{date}.md, fsync first;
    2. Only after the file is safely on disk, remove the oldest finished turns from the model-visible context with a surface replace event. The latest keepRecentTurns (default 6) turns are never touched, at most releaseMaxTurns (default 40) per pass, stopping near releaseTargetRatio (default 0.45).
  • Session log and transcript remain complete; the archive file is plain Markdown you can open at any time.
  • State lives in ~/.dsh/context-drawer/state/state.json (one watermark per session, prevents duplicates).

Where the files go

Default: ~/上下文存档/{sessionShort}/{YYYY-MM-DD}.md

sessionShort is the session id with the session- prefix removed, first 8 characters — one subfolder per conversation, so you can always tell which conversation a file belongs to.

Configuration (cordis.patch.yml)

- insert:
    - id: context-drawer
      name: dsh-context-drawer
      config:
        archiveDir: C:/deepseek/上下文存档   # optional; default ~/上下文存档
        thresholdRatio: 0.5

Other optional fields: thresholdTokens (absolute token threshold), modelWindow (default 1048576), charsPerToken, baselineTokens, keepRecentTurns, releaseMaxTurns, releaseTargetRatio, format (md | jsonl | txt), includeRoles, minTextLength, maxEntryChars, timeZone (default Asia/Shanghai), stateDir.

Install

From the DSH plugin market, search dsh-Context-Drawer and install, or:

dsh plugin --profile <profile> add dsh-context-drawer

Test

node test.mjs

Offline mock session: 10 finished turns → threshold → 20 archive entries + 8 released turns → second trigger only appends the new messages → non-first steps and low usage do nothing.

中文说明

只做一件事:上下文占用到达阈值(默认 50%)时,把更早的对话追加进「跟这个会话关联的外部文件夹」,落盘之后再把最旧的已结束轮次从模型可见上下文里移走。没有界面、没有按钮、不写记忆、不碰聊天记录原文。

默认存档位置 ~/上下文存档/{会话短号}/{日期}.md,一个会话一个文件夹;状态在 ~/.dsh/context-drawer/state/state.json。最近 6 轮永远保留,单次最多释放 40 轮。

MIT License.