dsh-adaptive-context
Run the following command in DeepSeek Harness:
dsh plugin install Icstick/dsh-adaptive-context
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install Icstick/dsh-adaptive-context in your terminal to install this plugin; the full source is available at https://github.com/Icstick/dsh-adaptive-context .
About this plugin
Anyone who has worked with an agent has probably hit this frustration: you explicitly told it last week to keep config and code separate, yet this week it mixes them again; you worry about letting it remember, fearing an unreliable web snippet becomes a preference that taints every session; and when it remembers something wrong you cannot tell who recorded it, when, or how to fix it. The ACP (Adaptive Context Plane) plugin tackles exactly this problem by making agent memory behave like a ledger: every entry carries a source, an authority level, and an effective time window; writes pass through a governance gate, injection has a token budget, and behavioural changes require approval.
Memory is modelled across six explicit domains (user facts, preferences, work, expression style, experience, external facts), all grounded in an append-only SQLite evidence ledger where replaying the same event produces a single record. Context injection ranks candidates through both lexical and semantic channels, respects a per-turn token quota, and automatically deduplicates self-echoes. Background consolidation runs without blocking the conversation, uses an LLM to distil observations, retries on failure so no batch is lost, and falls back to rule-based extraction only when the LLM is unavailable. Expression-style promotion requires either human approval or a policy guardrail, backed by a five-state machine with full rollback. Every critical operation is audited, and a one-click JSONL export and import make migrating to a new machine painless.
It is built for developers who collaborate with an agent long-term and want memory that is controllable, auditable, and explainable, especially those who find the dump-everything-into-the-prompt approach too crude and are looking for a governance layer. If you are already using DeepSeek Harness, installing this plugin gives you a long-term memory system with gates, budgets, and audit trails out of the box, without building it yourself.
Use Cases
- Remember user preferences and corrections across sessions without repeating instructions
- Govern memory writes and injection through gates to keep unreliable content out of context
- Migrate the full memory to a new machine via one-click JSONL export and import
Best For
- Developers collaborating with agents long-term who want auditable and controllable memory
- Users who find dump-into-prompt memory too crude and want a governance layer
- DeepSeek Harness users looking for an out-of-the-box long-term memory system
Related Plugins
Memory layer for coding agents that indexes local session history and auto-recalls relevant context before edits, commands, and failures, with no manual search needed.
Traceable, searchable cross-session memory for AI agents that turns conversation knowledge into a typed knowledge graph and recalls relevant subgraphs instead of replaying full history, natively integrated with DeepSeek Harness.
Gives DSH AI cross-session long-term memory, to-do and skill management, plus multi-session orchestration, external AI delegation, and an infinite canvas that grows with you.
dsh-mnemon is a three-tier, pluggable, Agent-driven memory system for DeepSeek Harness, combining Runtime memory, Project Documents, and replaceable Memory Spaces with nine long-term providers.