dsh-argp
Guarded context compaction for DeepSeek Harness (dsh): the LLM proposes, deterministic guards dispose — eager per-atom shrink (extract/summary/false under verbatim guards) + lazy reference-graph eviction (0-LLM) + byte-exact recall from an append-only log.
DeepSeek Harness 守卫式上下文压缩——LLM 提议、确定性守卫裁决:逐原子缩放(verbatim 守卫下 extract/summary/false)+ 引用图延迟剪枝(0-LLM)+ append-only 日志逐字节精确召回。
How to install
dsh plugin add dsh-argp About
English | 中文 dsh-argp — 基于逻辑链的原子引用图剪枝式上下文压缩引擎 dsh-argp(ARGP = **A**tomic **R**eference **G**raph **P**runing,原子引用图剪枝)是 DeepSeek Harness(dsh)的第三方 CompactionEngine:**基于逻辑链(引用依赖拓扑)的原子级选择性遗忘**——历史中"被依赖"的内容按引用图保留,"孤立"内容按反向拓扑序摘除,压缩阶段零 LLM 调用,不把历史重写为摘要。 **压缩阶段 0 次 LLM 调用**——纯图规则,确定性、可收敛 **基于逻辑链决策**——剪枝依据是引用依赖拓扑("谁被依赖"),不是新旧位置或模型偏好 **选择性遗忘而非重写**——被剪内容留在 append-only 会话日志,可通过内置 recall_pruned / recall 工具取回 **引擎无关的接缝**——通过标准 CompactionEngine 接口挂载,作为 compaction-basic 的替代后端 **压缩率精确兑现**——实测 200K 上下文 → 160K 触发 → 32K 保留,输出大小可控 状态:研究/验证阶段。全链路(挂载 → 剪枝 → recall,事务不变式)已在 dsh 0.1.0-rc.6 + DeepSeek v4-flash 上完成 50 轮…
Recommendation signals
Meta
- License
- MIT
- Language
- TypeScript
- GitHub stars
- 9
- mo. downloads
- 372
- Last push
- 2026-09-23
- Created
- 2026-08-17
Basic safety check
- Findings
- None
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- agent, compaction, context-compression, cordis, deepseek-harness, dsh, dsh-plugin, llm
Related plugins
DSH-EasyRewrite
Renzic-Stone/DSH-EasyRewrite
Inline-edit and recall your own user messages in dsh web — lazily and seamlessly, with a version pager and per-session draft persistence.
dsh-web
zhu1090093659/dsh-web-ui/tree/main/packages/dsh-chat-recovery
Chat recovery for DSH: edit the last finished user message and explicitly retry failed turns, both via session-fork branches that leave the original conversation untouched.
dsh-nested-followups
sluminositys/dsh-nested-followups
Keep branching from any completed answer at any depth while the main session stays untouched.
dsh-session-sync
PerryLink/dsh-session-sync
Cross-device session sync for DeepSeek Harness — syncs sessions and settings between machines through git.