dsh-layered-memory
Run the following command in DeepSeek Harness:
dsh plugin install Olalaye/dsh-layered-memory
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install Olalaye/dsh-layered-memory in the DeepSeek Harness terminal; the project source is at https://github.com/Olalaye/dsh-layered-memory . Once installed it loads automatically with Harness startup and persists across restarts.
About this plugin
Every time you open DeepSeek Harness, the agent starts from scratch - your writing style, business constraints, and unfinished context from the previous session are all gone. dsh-layered-memory distills conversation content into three tiers of long-term memory: a transient layer for current session highlights, an episodic layer storing one summary per session, and a semantic layer accumulating your habits, style, business needs, and long-term preferences. Install once, and subsequent sessions pick up where you left off automatically.
The core design centers on automation. The plugin captures user messages in real time via an agent/pre-step hook with zero manual intervention; the model classifies reusable preferences into the semantic layer (covering categories such as habit, writing style, business requirements, and facts) and commits an episodic summary at the end of each task. Recall uses CJK-aware tokenization, importance weighting, and a 45-day exponential decay score, handling both single-character and bigram Chinese words as well as English tokens. Duplicates above a similarity threshold are merged automatically to keep the semantic layer lean. All data persists as plain JSON in your user directory - straightforward to back up and migrate, with no dependency on external services or vector databases. An HTTP API is also provided for browsing, searching, editing, and statistics.
It is built for heavy dsh users doing technical writing, business analysis, or multi-turn collaboration who want the agent to retain personal preferences and reduce repetitive context-setting. Zero configuration, zero build step, pure JavaScript - install and go, uninstall and clean up.
Use Cases
- Retain writing style, business requirements, and long-term preferences across sessions without re-explaining
- Auto-commit an episodic summary and semantic facts at task end so the next session picks up seamlessly
- Browse, full-text search, edit, and prune long-term memory entries via HTTP API
Best For
- Developers who rely on dsh for technical writing or multi-turn collaboration
- dsh users who want the agent to accumulate personal preferences and cut down repetitive context-setting
- Users who prefer a zero-config, fully local, dependency-free memory solution
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.