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.

Context Memory — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

dsh-context-memory

Context Memory

Cross-session memory for your dsh agent: remembered, recalled, and re-verified instead of assumed.

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-context-memory@0.7.1
READMECompatibilityVersions

Compatibility and provenance

Context Memory is published as dsh-context-memory and currently resolves to version 0.7.1. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
npm
Registry updated
10/16/2026

Versions

0.7.1stable
10/16/2026
0.7.0stable
10/16/2026
0.6.1stable
9/19/2026
Show 11 more versionsCollapse versions
0.6.0stable
9/19/2026
0.5.1stable
9/19/2026
0.5.0stable
9/19/2026
0.4.1stable
9/19/2026
0.4.0stable
9/19/2026
0.3.0stable
9/19/2026
0.2.1stable
9/18/2026
0.2.0stable
9/18/2026
0.1.2stable
9/18/2026
0.1.1stable
9/18/2026
0.1.0stable
9/18/2026

Related plugins

Loading related plugins…

Latest
0.7.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
227.6 kB
Files
39
Surface
web
License
MIT
Source
npm
GitHub
★ 0
Weekly downloads
93
Last push
10/16/2026
View source ↗Project homepage ↗
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.

Mnemondsh-mnemonComposable, view-based memory for DeepSeek Harness. Pluggable sources and strategies, with layered memory out of the box.Memsearch Dsh@zilliz/memsearch-dshMemSearch plugin for DeepSeek Harness: shared markdown memory across agents, with capture, pre-step context injection, memory-recall skill, and a skill-candidate review panel.Memory@furongjun1999/dsh-memoryLingshu (Lingshu·líng shū) DeepSeek Harness plugin: a complete brain—long-term memory/knowledge flywheel/self-awareness/recursive reflection integrated with DSH, with conversations automatically distilled into the md_cg cognitive graph (md documents)Archive Manager@michengai/dsh-archive-manager归档、恢复、收藏和永久删除会话,并诊断损坏的会话日志。 · Archive, restore, favorite, and permanently delete sessions, and diagnose damaged session logs.

README

dsh-context-memory

Cross-session memory for your dsh agent — remembered, recalled, and re-verified instead of assumed.

Install

dsh plugin --profile web add dsh-context-memory

What it does

Every session with your agent starts from nothing. What you decided yesterday, which approach failed, the constraint you explained once — all of it is gone, and you explain it again.

This plugin keeps it, and — unlike a note file — re-checks the parts that can be checked.

  • Remember. A memory carries provenance: which session, which step, whether it came from you, the agent, or a plugin. "Why does the agent think it knows this" has an answer.
  • Recall. Retrieval is ranked (token overlap, recency, verification strength) instead of pasting every memory into the context window. Each hit reports the breakdown of its score, so a ranking is never something you have to trust.
  • Forget with a reason. A memory is superseded, never deleted. The wrong memories are the most valuable records in the log — they are the only thing that can explain a past decision.
  • Conflict detection. Two active memories about the same subject are reported as a conflict. The plugin does not pick a winner; the log does not say which one is right, and guessing would be the unfounded assertion this plugin exists to remove.
  • Verification. A memory whose statement has a checkable shape is compiled into a platform-aware guard and re-checked on demand. This is the part a notes file cannot do.

The point

A memory is a claim about the world. Storing it makes it available; it does not make it true. Statements like "the file README.md exists" or "config.json contains pnpm" were true when you said them and stop being true quietly.

So verify turns each checkable memory back into a check and runs it:

dsh-context-memory verify
passed      4f2a9c1b8e30  the file package.json exists
violated    7d1e0a55c9f2  the file README.md contains Installation
uncheckable 2b8f31aa0456  we settled on pnpm because yarn hoisting broke the build
broken      a91c4e77b0d3  the file scripts/release.sh exists

passed 1, violated 1, broken 1, uncheckable 1

Four outcomes, and the distinction between them is the whole point:

OutcomeMeaning
passedThe check ran and the memory holds.
violatedThe check ran and the world disagrees with the memory.
brokenThe check itself could not run — a typo, a missing binary. Not evidence about the memory.
uncheckableNo check could be compiled. The memory is still stored and recalled; it is just not verified.

verify exits non-zero only for violated. A broken guard is a defect in the check, and letting it turn a pipeline red is how a typo would get a true memory marked false — after which you learn to ignore the output.

Nothing is ever marked as verified because it was stored, and a memory supplied by the agent is never executed as a command: guards come from templates that only ever interpolate quoted file paths and literal search strings.

CLI

dsh-context-memory remember "the file package.json exists"
dsh-context-memory list
dsh-context-memory recall "how do we install"
dsh-context-memory conflicts
dsh-context-memory forget 4f2a9c1b8e30 "moved to bun"
dsh-context-memory verify        # exit 1 only on a real violation

Auto capture and recall injection (0.6.0+)

The plugin hooks into agent/pre-step to close the loop automatically:

  • Auto capture. When the user's message contains an explicit memory statement ("记住…", "remember that…"), the plugin distills and stores it before the agent sees the request. Each captured memory carries session provenance — which agent, which session — so "why does the agent think it knows this" always has an answer.

  • Recall injection. Before each agent step, the top-5 memories whose subject overlaps the user's text are folded into the request as a collapsible context message (source plugin/dsh-context-memory, form recall). Unresolved conflicts are included with a warning. The injection position is right after the claimed batch — the same slot the host's own context plugins use.

Both features can be toggled from the panel's 「集成」 card. When auto capture is off, memories are still stored via the CLI and service API. When recall injection is off, the plugin still records but does not inject.

Panel

A Context memory page inside Settings: active and superseded memories, verification status per memory, conflicts, provenance, and integration toggles. The host registers GET /api/context-memory.panel and rebuilds the payload from the log on every request, so the panel shows what is on disk rather than what was in memory at startup. A headless host has no web connection and simply skips the route.

Layout

PathRole
src/index.tsHost half — apply(ctx), exposes the contextMemory service
src/memory.tsFold the log, remember, supersede, conflicts, verify
src/store.tsAppend-only .memory/events.jsonl
src/guard.tsStatement → platform-aware check; run it; classify pass / violated / broken
src/recall.tsRelevance ranking with an explainable score
src/identity.tsId derived from the normalised subject, so repeats fold
src/cli.ts / src/bin.tsCommand-line entry, usable without dsh
src/routes.tsPanel and verify routes on the host's web connection
src/client/view.tsxBrowser half — pure rendering, statically tested in Node
src/client/index.tsxBrowser half — fetch and settings registration

Why the log is append-only

Current state is always a fold over the events, recomputed on each read. The alternative — a mutable store — lets the last writer decide what was always true, and "what did the agent believe on Tuesday, and why" becomes unanswerable. The log is the evidence, so a torn trailing line after a crash is dropped (recoverable) while damage anywhere else is reported rather than skipped.

Develop

npm ci
npm run typecheck
npm run build
npm test

License

MIT