DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Local Memory — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
L

@dsh-external/dsh-local-memory

Local Memory

适用于 DSH 的跨会话持久化本地记忆,使用 Markdown SSOT 和可自我修复的 SQLite FTS 镜像

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:huangjua/dsh-local-memory#8d3161f9c4333fb8497e10ceb244d54778a62899
README兼容性版本

兼容性与来源证明

Local Memory 以 @dsh-external/dsh-local-memory 发布,当前版本为 0.0.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/9/1

版本

0.0.1stable
2026/9/1

相关插件

正在加载相关插件…

最新版
0.0.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
BSD-3-Clause
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/9/10
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 memory-context 分类下经过校验的插件。

Memory Plugin@openviking/dsh-memory-plugin适用于 DeepSeek Harness 的 OpenViking 记忆与上下文套件Contextdsh-context用于上下文洞察和管理的 DeepSeek Harness 插件,提供上下文仪表板和上下文命令,帮助了解上下文的构成及其演变过程。Weknora@wxg-prc-cpg/dsh-weknora适用于 DeepSeek Harness (dsh) 的 WeKnora 知识检索工具:通过自有知识库进行语义搜索、文档阅读以及 RAG/代理回答。Memsearch Dsh@zilliz/memsearch-dsh适用于 DeepSeek Harness 的 MemSearch 插件:在多个代理之间共享 Markdown 记忆,支持捕获、步骤前上下文注入、记忆召回技能和技能候选审核面板。

README

🧠 dsh-local-memory

Persistent cross-session local memory for DSH agents
100% Local • Plain Markdown Truth • Self-Healing SQLite Mirror • Prefix-Cache Friendly

Features • Quick Start • DSH Power Suite • Tools • Architecture • 简体中文


💡 Why dsh-local-memory?

DSH agents are natively stateless. Every new conversation starts from zero, forcing you to repeatedly explain project rules, environment setups, and coding preferences.

dsh-local-memory gives your agent long-term memory that you actually own:

  • 📝 Markdown is the Single Source of Truth: All memories are stored in plain .md files under ~/.dsh/memory/. You can view, edit, or version-control them with Git.
  • ⚡ Zero Cache Misses: Employs per-session frozen snapshots (WeakMap<Session, ...>) to maintain byte-for-byte prefix cache stability, saving tokens and speeding up responses.
  • 🔒 100% Local & Fail-Closed: No cloud leaks. Workspace boundaries strictly validated against official workspace registries.
  • 🛡️ Staged Write Approvals: Global profile edits require explicit user confirmation (memory_pending approve) to prevent hallucinated changes.

🚀 Quick Start

Installation

# In your DSH plugin environment
dev_inject_plugin @dsh-external/dsh-local-memory

Typical Usage Flow

  1. Ask agent to remember: "Remember that our project uses pnpm and strict TypeScript."
  2. Review staged memory: Run /local-memory or approve staged entries via memory_pending.
  3. Seamless recall: In any new session, the agent automatically receives the frozen memory context without any extra prompts.

🧩 DSH Power Suite

This plugin is part of the DSH Agent Power Suite — 4 modular, zero-hard-dependency plugins forming a complete closed-loop developer workflow:

flowchart LR
    M["🧠 dsh-local-memory<br>(1. Remember rules & prefs)"] --> E["⚡ dsh-context-economy<br>(2. Save 80%+ tokens reading code)"]
    E --> A["🛡️ dsh-evidence<br>(3. Tamper-proof audit receipts)"]
    A --> S["🔍 dsh-session-index<br>(4. CJK search & bookmarks)"]
    S --> M

    style M fill:#e8f4fd,stroke:#2b7de9,stroke-width:2px
    style E fill:#eef9f2,stroke:#1e8e3e,stroke-width:2px
    style A fill:#fef7e0,stroke:#f29900,stroke-width:2px
    style S fill:#f3e8fd,stroke:#8430ce,stroke-width:2px
PluginRole in SuiteSynergy with Local Memory
🧠 dsh-local-memoryMemory Layer (Current)Curates persistent long-term knowledge, developer profiles, and workspace conventions.
⚡ dsh-context-economyContext EconomySlashes code reading tokens by 80–93%, leaving ample prompt budget for memory snapshots.
🛡️ dsh-evidenceAudit & ReceiptsCreates SHA256 receipts for execution runs, grounding memory entries in verifiable evidence.
🔍 dsh-session-indexSession SearchIndexes raw .jsonl.zstd logs with CJK support. Memory curation belongs here; log searching belongs there.

📖 Deep Dive & Reference

🛠️ Available Tools & Commands (8 Tools + 1 Command)

Tools

ToolDescriptionScope / Action
memory_writeAdd a new memory entryUser/Profile ➡️ Staged; Workspace ➡️ Direct
memory_updateRevise an entry via memoryId or oldTextPrevious active marked superseded
memory_forgetRemove an entry from active memoryReplaced with minimal tombstone
memory_pendingManage staged approvalslist, approve, reject
memory_append_dailyAppend timestamped block to daily notesAppend-only workspace scratchpad
memory_searchSearch memories with FTS5 trigramAuto pre-syncs modified Markdown
memory_statusDetailed file counts, active entries, DB sizeRead-only diagnostics
memory_distillCollect candidate daily notes for distillationRead-only + state metadata

User Commands

  • /local-memory feedback <receipt-id> bundle <helpful|harmful>: Submit feedback on memory delivery receipts.
📁 Architecture & Storage Layout
~/.dsh/memory/
├── user/                       # User-level profile & global memories (MEMORY.md / USER.md)
├── workspaces/<WorkspaceId>/   # Workspace-scoped memories (MEMORY.md)
├── daily/<WorkspaceId>/        # Daily scratch notes (YYYY-MM-DD.md)
├── summaries/                  # Distilled summaries
├── pending/memory/             # Staged write approvals
├── index/memory.sqlite         # Derived FTS5 SQLite index mirror (Schema v12)
└── meta.json                   # Metadata & version tracking

Key Architectural Invariants:

  • Markdown is the Single Source of Truth: All text and metadata reside in .md files.
  • SQLite is a Disposable Replica: If corrupted, SQLite automatically recovers from Markdown via buildMemoryIndex.
  • Pre-Search Incremental Sync: memory_search syncs changed files on the fly by content_hash.
⚖️ Design Trade-offs & Boundaries
AdvantageTrade-off / Boundary
SSOT/Replica separation ensures zero data lossSchema v12 migration chain requires strict maintenance
Dual channel: frozen snapshots + real-time tool searchLocal-machine bound (no cloud sync)
Strict workspace fail-closed isolationIndex contains plain text (do not use on untrusted shared machines)
566 test cases with comprehensive coverageforget removes active surfaces, does not do physical disk shredding
🧪 Building & Testing
# Install dependencies
pnpm install --frozen-lockfile

# Build TypeScript to lib/
bash scripts/build.sh

# Typecheck & Run test suite
npm run typecheck
npm test
🙏 Credits & References
  • Hermes Agent (Nous Research, MIT): entries.ts, threat.ts, and approval.ts adapted from memory_tool, threat_patterns, and write_approval.
  • Official dsh-plan-mode (MIT): WeakMap<Session, ...> freezing + systemPrompt.section dynamic provider pattern.
  • Jesse-njx/dsh-memory (MIT): Managed entry inline HTML header metadata format.
  • ben7am1n/dsh-memory (MIT): Live Context test harness architecture.

Part of the DSH Agent Power Suite. Licensed under BSD-3-Clause.