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.

Agent Context — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
A

dsh-agent-context

Agent Context

Integrated context governance plugin: /context command + ctx.contextMeter service + pruning tools (prune_candidates/apply/expand/guard/stats) + two notification channels (context reminders / compression alerts, with state persisted to disk for deduplication across restarts)

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

npx -y @deepseek-ai/dsh plugin --profile web add github:jonah791/dsh-agent-context#094097494b962f8b24ac1500ba4d89fa6d6d23ea
READMECompatibilityVersions

Compatibility and provenance

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

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
9/14/2026

Versions

0.2.3stable
9/14/2026
0.2.1stable
9/11/2026
0.2.0stable
8/21/2026

Related plugins

Loading related plugins…

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

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.Memory@furongjun1999/dsh-memoryLingshu (Lingshu·líng shū) DeepSeek Harness plugin: a complete brain—long-term memory/knowledge flywheel/self-awareness/recursive reflection integrated with DSH, with conversations automatically distilled into the md_cg cognitive graph (md documents)Reme@agentscope-ai/remeReMe client and memory integrations for TypeScript agentsRewind Plugindsh-rewind-pluginIn-window conversation rewind with workspace file restore · 同窗口内对话回退并可还原工作区文件

README

dsh-agent-context — 上下文管理插件

DSH(DeepSeek Harness)插件:会话上下文的注入与管理。

功能特性

  • 上下文注入:按需向会话请求注入上下文内容
  • 会话感知:与 agent 会话模型联动
  • /context 命令:人类可读的上下文占用报告(占用、花费、组成)
  • ctx.contextMeter 服务:结构化上下文快照(供其他插件消费)
  • 剪枝工具:prune_candidates / prune_apply / prune_guard / prune_stats / expand
  • 压缩失败守望(v0.2.1):压缩失败不再静默

压缩失败守望(v0.2.1)

为什么需要它。 压缩插件的「会话忙」路径是 fire-and-forget——工具返回「压缩已启动」, 真正的提交发生在之后(模型输出 checkpoint 时),此时抛出的错误回不到工具调用方, 最终只落一行 logger.warn。实测代价:10 次压缩全部失败、跨 2 天无人知晓,直到从 「流程跑完了但上下文没减少」这个症状才发现。durable ≠ visible——失败记录在会话事件流里, 但没有机制去读它。

它做什么。 在每轮结束(turn/end)时,从会话尾部有界回溯,找出最近一次 compaction/end;若它携带 error,就向会话投递一条【压缩告警】,附带失败原因与事件 seq, 供下一步取证。

它不做什么(避免狼来了)。 最近一次压缩成功即视为健康,不报历史旧错误;同一失败事件 只提醒一次;只看尾部固定窗口,不扫全库;纯读取 + 字符串拼装,任何异常静默返回—— 提醒机制的故障绝不影响会话与压缩本身。

安装

cd <你的 self-plugins 目录>
git clone https://github.com/jonah791/dsh-agent-context.git
cd dsh-agent-context
pnpm install
pnpm build

相关

  • 我的数字生命爱丽丝 — 插件生态中心(架构总览)

License

MIT