把编码过程中的工程经验沉淀成本地 Markdown 知识库,并在每回合开始时把相关的部分交还给模型;带 CLI、独立工作台与 DeepSeek Harness 适配层。
安装
# npm 包(预构建)
dsh plugin --profile web add @accremind/dsh-plugin
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:ninthmonee/AccreMind#path:/packages/dsh-plugin
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
Models are always superseded by the next generation. Knowledge is not. This is the DeepSeek Harness adapter for AccreMind — a local-first knowledge base for AI-assisted engineering. AccreMind turns the decisions you made while solving a problem, the domain rules and conventions you settled on, the traps you already fell into, and how each one refines, overrides or supersedes another into reusable Markdown knowledge assets, then hands them back through three budgeted injection layers.
AccreMind is not built for DSH only. The engine, @accremind/core, is a zero-dependency Node.js library that knows nothing about any host; the CLI and the standalone workbench drive it directly. This package is the host integration: it maps AccreMind onto DSH turn hooks, tools, the sidebar panel and skill export. Another host — an IDE, a server — would be another package like this one, over the same public API. See the project README for the full picture.
What it solves
Model context rolls over, human memory decays, and documentation keeps the conclusion while dropping the reason. The knowledge that cost a team real time — this retry double-charges, this library cannot be dynamically imported under SSR since 3.x, we tried the queue design and reverted it, this domain rule overrides the generic one — is exactly what is missing when the next change is written.
AccreMind stores only that knowledge delta, as Markdown you can review in a pull request, with a rebuildable local SQLite index. No background service, no external vector store, no telemetry. The full list of what is worth accumulating — and what is deliberately never kept — is in the project README.
Install
Requires DSH ≥ 0.2.2-rc.5 (declared as engines.dsh; the host refuses to load the bundle below that range) and Node.js ≥ 24 (node:sqlite with FTS5 trigram).
In the desktop app, add the index to whichever marketplace the host ships:
- Official plugin market (
@deepseek-ai/dsh-experimental-plugin-market-bundle): Manage index sources… → Add index source, pastehttps://raw.githubusercontent.com/ninthmonee/AccreMind/main/market/index.json, then install AccreMind from Discover. - dshmarket (third-party): it reads catalogs. Give it a file with one entry —
{"plugins":[{"name":"ninthmonee/AccreMind#dsh-plugin","url":"https://github.com/ninthmonee/AccreMind/tree/main/packages/dsh-plugin","category":"memory","npm":"@accremind/dsh-plugin"}]}— as anhttp(s)://URL, afile://URL or an absolute path.
The bundle hot-loads: the panel appears in the sidebar without a restart (reload the window if your host does not hot-load bundles). The store is created on first use under ~/.dsh/accremind/ and <repo>/.accremind/.
The same build is on npm, for a profile the desktop app does not own (dsh plugin forwards its arguments to pnpm inside the profile directory, so add, remove and why all work):
dsh plugin --profile <profile> add @accremind/dsh-plugin
dsh plugin --profile <profile> remove @accremind/dsh-plugin # uninstall
The desktop profile is managed by the Electron application and rejects CLI writes — install there through the interface.
What you get
- A sidebar AccreMind panel: overview, library, candidate review, rule documents, governance, turn receipts, Git radar.
- Entries injected as the conversation needs them, plus a per-turn receipt with one-click feedback.
- Six tools for the model:
| Tool | Purpose |
|---|---|
accremind_capture |
Submit a candidate and run five-way triage |
accremind_search |
Search by keyword, kind, layer or file path |
accremind_get |
Fetch full entry: preconditions, verification, evidence |
accremind_validate |
Record success or failure; failure suspends the entry |
accremind_export_skill |
Freeze a verified entry into a DSH skill |
accremind_propose_doc_change |
Propose a change to a rule document for human review |
Configuration
Everything is optional; defaults are sensible. Configuration lives in the host's cordis patch:
plugins:
accremind:
globalDir: ~/.dsh/accremind
projectDirName: .accremind
writeGate:
mode: probation # probation | auto | manual
maxProbationExposures: 3
assessmentMode: single_pass
budgets:
residentRulesTokens: 500
turnRadarTokens: 300
toolGuardTokens: 240
toolReadMaxTokens: 1500
autoCapture:
enabled: true
autoEvolve:
tune: false # weekly auto-tuning with observation window
demote: false # automatic demotion / archiving
| Key | Meaning |
|---|---|
globalDir |
Per-user state: drafts, queues, index, cross-repo layers (default ~/.dsh/accremind) |
projectDirName |
In-repo knowledge directory (default .accremind, meant to be committed) |
writeGate.mode |
probation keeps new entries shadowed until validated; auto promotes immediately; manual requires review |
writeGate.maxProbationExposures |
Exposures without validation before a draft is archived |
budgets.* |
Per-layer token ceilings; the resident block is byte-stable so the KV cache survives |
autoCapture.enabled |
Let the host model propose candidates from a turn (needs an llm service) |
autoEvolve.tune / autoEvolve.demote |
Auditable, roll-back-able self-improvement; both off by default |
Retrieval, reminders, file guards and the staleness sweep run fully locally and need no API key. Only extraction calls a model: the plugin reuses the host llm service, or an external endpoint via ACCREMIND_LLM_BASE_URL / ACCREMIND_LLM_MODEL / ACCREMIND_LLM_API_KEY.
Where knowledge lives
| Path | Contents |
|---|---|
<repo>/.accremind/entries/ |
Verified cards (Markdown, revisions, evidence) |
<repo>/.accremind/rules/ |
Resident rules |
<repo>/.accremind/docs/ |
Domain, business rules, project norms, project profile |
~/.dsh/accremind/probation/ |
Probation drafts, never written into the repo |
~/.dsh/accremind/index/ |
Rebuildable SQLite index |
~/.dsh/accremind/tuning-history.jsonl |
Every auto-tuning step, undoable |
Run accremind rebuild at any time to rebuild the index from the Markdown.
Design guarantees
- Reference, not instruction — injected inside read-only tags, sanitised, explicitly marked as material. No host override, no execution authority.
- Only the delta — five-way triage (
index_only / link_existing / knowledge_candidate / needs_confirmation / discard) keeps reconstructible content out. - AI proposes, humans decide — probation before verification; rule documents only change on human acceptance.
- Reversible — every automatic tuning and demotion is recorded and can be undone.
Links
License
MIT © 2026 AccreMind contributors
链接
同类插件
vectorize-io/hindsight#coding-agents★ 63454
Hindsight:会学习的 Agent 长期记忆系统,自动召回/保存、知识页、深度反思与按仓库隔离的记忆银行。
volcengine/OpenViking#examples/dsh-memory-plugin★ 42807
面向 DeepSeek Harness 的 OpenViking 记忆与上下文插件:pre-step 自动召回与画像注入、会话捕获、`viking://` URI 防护,以及对接 OpenViking 服务端的 recall/write 记忆工具。
MemTensor/MemOS#memos-local-plugin★ 12510
DeepSeek Harness 本地记忆插件:分层 L1/L2/L3 记忆,自动沉淀与手动 memos_* 检索工具并存,内置记忆浏览器。
agentscope-ai/ReMe#dsh★ 3843
将 DeepSeek Harness 接入 ReMe 本地优先、自进化的个人知识库:自动把已完成的主 Agent 对话沉淀为用户掌控的 Markdown 记忆,通过 reme_search 结合 BM25、可选向量检索和 wikilink 展开搜索对话与资料,并按日整理长期记忆。
zilliztech/memsearch#MemSearch★ 2942
供 DSH 与其他编程 Agent 共享的 Markdown 记忆,支持自动捕获、步骤前上下文注入、搜索召回,以及通过审阅面板实现 memory-to-skill 自进化。
vshulcz/deja-vu#extensions/dsh★ 1677
跨会话长期记忆与上下文恢复:读取本机上其他四十五个(45+)编程智能体已经写下的会话文件,支持安装前历史找回与中断恢复(Claude Code、Codex、Cursor、Windsurf、Trae、Antigravity、VS Code Copilot Chat、opencode、OpenClaw、Hermes、Kimi、Qoder、Cline、Zed、Magpie 等):提供 deja_recall、deja_session、deja_blame、deja_fix、deja_how、deja_remember 六个工具与 /deja 命令,并可选地把召回结果加入运行时上下文。共享本地 BM25 CLI/MCP 索引,不用大模型,不用向量嵌入,不联网(dsh plugin --profile web add dsh-deja)。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。