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.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
P

dsh-plugin-memory-four-books

Plugin Memory Four Books

Layered long-term memory for DeepSeek Harness: red lines / today / in-progress / common sense / archive, with BM25 recall, automatic capture and automatic consolidation. Zero dependencies, plain text.

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

npx -y @deepseek-ai/dsh plugin --profile web add github:wodexiaoling/dsh-plugin-memory-four-books#348b7b19a367ac1daf83ff479f068d8154cf4b55
READMECompatibilityVersions

Compatibility and provenance

Plugin Memory Four Books is published as dsh-plugin-memory-four-books and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
10/29/2026

Versions

0.1.0stable
10/29/2026

Related plugins

Loading related plugins…

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

Hindsight Coding Agents@vectorize-io/hindsight-coding-agentsReflect-only Hindsight long-term memory for coding agents (harness-pluggable: opencode, …), with automatic background ingestion (no setup CLI).Contextdsh-contextA DeepSeek Harness plugin for context insight and management, with context dashboard and context command, for understanding how the context is made of, and how it evolves.Memory Plugin@openviking/dsh-memory-pluginOpenViking memory and context bundle for DeepSeek HarnessMnemondsh-mnemonComposable, view-based context for DeepSeek Harness. Pluggable sources and strategies, with layered memory and self-evolving skills out of the box.

README

dsh-plugin-memory-four-books

Layered long-term memory for DeepSeek Harness.

Instead of dumping a huge history file into every prompt, this plugin keeps memory in five ordered tiers and only injects what fits. Expensive information (red lines) is always present; cheap details wait on disk until the model asks for them.

Zero dependencies. Plain Markdown and JSONL on disk. No network calls, no background services, no database.

Install

dsh plugin --profile <your-profile> add github:wodexiaoling/dsh-plugin-memory-four-books

The plugin is distributed through GitHub only — it is not published on npm. dsh clones the repository into the profile and links it as a bundle.

To update later:

dsh plugin --profile <your-profile> remove dsh-plugin-memory-four-books
dsh plugin --profile <your-profile> add github:wodexiaoling/dsh-plugin-memory-four-books

How it works

you type
   ↓
agent/pre-step ──→ filtered and appended to 支线/对话.jsonl
   ↓
model runs
   ↓
every 10 min ──→ consolidate ──→ writes tiers only when something changed

Automatic capture. Every message you send is filtered (greetings, duplicates and injected runtime context are dropped) and appended to an append-only journal.

Automatic consolidation. Every ten minutes the journal is summarised into one line per entry, de-duplicated and sorted into tiers. Nothing is deleted — old entries move down a tier.

Tiered injection. Before every model step the plugin rebuilds a prompt block from the tiers:

TierInjectedCap
当天 / todayalways, never truncated400 entries
红线 / red linesalways, never truncated, never decayed40 entries
进行中 / in progresslatest 3080 entries
常识 / common senselatest 70260 entries
档案 / archiveonly on demand800 entries

The block is cached by file mtime, so an unchanged memory costs nothing.

BM25 recall. memory_recall runs a BM25 index (Chinese 2-gram, k1=1.5 b=0.75) over every tier plus the raw journal, then applies a 120-day half-life decay with a floor of 0.4 so old entries stay findable but stop crowding out recent ones.

Tools

ToolPurpose
memory_recallsearch memory by keyword
memory_rememberstore one entry under a tag
memory_consolidaterun consolidation now
memory_statustier counts, caps, file sizes, automation state

Config

All fields are optional; set them in the plugin row's config:

FieldDefaultMeaning
dataDir$DSH_HOME/memory-four-bookswhere memory lives
injecttrueinject the tier block into prompts
injectBudget15000character budget for the injected block
sectionOrder45order of the prompt section
autoRecordtruecapture user messages automatically
autoConsolidatetruerun consolidation on a timer
consolidateMinutes10timer interval
dayMaxChars8000byte guard for the "today" tier
indexMaxDocs20000max journal rows kept in the search index

Where data lives

$DSH_HOME/memory-four-books/
  支线/对话.jsonl            append-only journal
  四册/记忆核心.md            the five tiers (this is what gets injected)
  四册/MEMORY_INDEX.md       one line per topic
  四册/档案库.md             archive
  四册/memory_changelog.md   append-only change log
  归纳台账.jsonl             consolidation ledger

Everything is plain UTF-8. Open it, edit it, back it up, delete it — the plugin rebuilds derived files from the journal.

Privacy

This plugin records what you type, locally. No data leaves the machine: the plugin makes no network requests and starts no server. Memory is stored unencrypted in dataDir.

Disable capture with "autoRecord": false if you only want manual memory_remember.

Limits

  • Memory is shared by every session and subagent in a profile. It is not scoped per workspace.
  • It is not encrypted.
  • It is not part of the session log, so forking a session does not fork its memory.
  • Japanese/Chinese/English text is supported; other scripts fall back to single-character n-grams and recall quality drops.
  • The plugin assumes DSH >= 0.2.0 (uses agent/pre-step and systemPrompt.section).

License

MIT