Whatsmore-nf/dsh-context-steward

Whatsmore-nf★ 0TypeScriptLast synced: 2026-08-16

Open on GitHub

DSH 智能上下文压缩插件 —— 在有限窗口内管理认知资源,让 Agent 记住真正重要的信息。 Smart context compression for DSH — managing cognitive resources within limited windows, so your Agent remembers what truly matters.

README excerpt

@whatsmore-nf/dsh-context-steward English 中文 A DeepSeek Harness plugin that treats the fixed-capacity context window as a scarce cognitive resource and schedules it: within a hard token budget it protects attention bandwidth for the agent's current key decisions, tiers compression by value density, consolidates completed phases, and keeps a structured fact vault so evicted source text stays recallable. It ships as a Cordis Service registered at ctx.contextSteward , with a schemastery -declared static Config and static inject , following the same plugin shape as the official Harness plugins (e.g. @deepseek-ai/dsh-compaction-basic ). Relationship to official compaction Official dsh-compaction- compacts the conversation body itself . This plugin is the complementary layer: it schedules injected memory — deduplicating repeated observations, tiered compression, phase consolidation, key-decision bandwidth guarantees, and fact recall — before the compacted snapshot is injected into the model-visible context. Both can run side by side. Install The plugin needs the Harness runtime ( @deepseek-ai/cordis , @deepseek-ai/dsh-agent , @deepseek-ai/dsh-llm , @deepseek-ai/dsh-session ) as peer depe…

View full README on GitHub →
Agentscontextcontext-compressiondeepseek-harnessdeepseek-harness-plugindsh-contextdsh-context-stewarddsh-pluginllm-agent

Category