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.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
C

dsh-context-drawer

Context Drawer

DeepSeek Harness plugin with exactly one job: when the conversation context reaches a threshold (default 50% of the model window), append older messages to a folder associated with that conversation, then release the oldest finished turns from the model-visible context. The chat transcript and the a

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

npx -y @deepseek-ai/dsh plugin --profile web add github:yue7ye/dsh-Context-Drawer#69687a1ad765d4518209697bf1735286d38dd440
READMECompatibilityVersions

Description

DeepSeek Harness plugin with exactly one job: when the conversation context reaches a threshold (default 50% of the model window), append older messages to a folder associated with that conversation, then release the oldest finished turns from the model-visible context. The chat transcript and the append-only session log stay untouched. No UI, no memory, nothing else.

Compatibility and provenance

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

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
10/30/2026

Versions

0.1.0stable
10/30/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/30/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

Related plugins

More verified plugins in memory-context.

Experimental Session Search@deepseek-ai/dsh-experimental-session-searchGive Agents tools to search and read earlier sessions from the current workspace.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).Contextdsh-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.Memory Plugin@openviking/dsh-memory-pluginOpenViking memory and context bundle for DeepSeek Harness

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.