Minta 记忆引擎的 DSH 原生接入层:合成官方 dsh-mcp-client 行、注册 minta-memory-governance 技能与 session-start 记忆预热,并提供 Minta agent 预设;19 个 MCP 工具由需单独部署的 Minta 引擎(Python/Docker)提供,未部署引擎则无法使用。
安装
# npm 包(预构建)
dsh plugin --profile web add @xxinchen/dsh-plugin
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:xinchen03/minta#path:/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 只有英文版本。
One command → 13 working memory tools → your agent stops re-explaining the project. Memories are governed, not hoarded: stale/conflict/redundancy checks, and nothing becomes permanent until you confirm it in the inbox.
Minta — context quality layer for DeepSeek Harness.
Installing this package composes two Cordis rows into a DSH profile:
mcp-client-minta— official@deepseek-ai/dsh-mcp-clientwired to the local Minta engine's streamable-HTTP endpoint (its 13 Communityminta_*tools reach the agent).minta-plugin— this package as a real Cordis plugin. At mount it registers a runtime skill (minta-memory-governance, content derived from the Minta interaction guide) and aagent/session-starthook that prewarms engine health + recent memory over the Minta REST API (fail-open: an unreachable engine never breaks a session).
The memory engine itself is a separately deployed service (see Prerequisites);
the plugin is a thin DSH-native surface over it. See docs/dsh-integration.md
for the verified end-to-end flow.
Prerequisites
- DeepSeek Harness (
npx @deepseek-ai/dsh web) - Minta engine running locally:
python minta_cli.py start(serves MCP at 127.0.0.1:18721 and API at 8772), ordocker compose up -d
Install (verified 2026-08-23)
dsh plugin --profile web add @xxinchen/dsh-plugin
Restart dsh web. The MCP client row is composed automatically — no manual
config editing. Verify in a new session: "list all tools whose name contains
minta" → the 13 mcp__minta__* Community tools.
Note: the engine must be running before the tools respond; failOnStartupError: false means a stopped engine does not break DSH sessions.
Using Minta in a session
- Keep the engine running —
python minta_cli.py start(or Docker). - After
dsh plugin add+ one restart ofdsh web, start a new session and ask: "list all tools whose name contains minta" — expect the 13mcp__minta__*tools. If they are absent, restartdsh webonce more. - First session: call
minta_login(your Minta credentials) so the tools operate with your identity. - Automatically at session start: the plugin checks engine health and
recent memory (logged; never blocks the session). The skill
minta-memory-governanceis registered and available to the model. - Manual first answer: say "用 Minta 先把记忆找出来再回答" — or just ask
about prior work; the skilled model will
minta_search_contextfirst. - To save something durable: tell the model to remember it — it will
minta_append_inbox, and you confirm or discard in the Minta UI (http://127.0.0.1:8772, inbox review). Your memory is never edited silently. - Engine stopped / unreachable: sessions keep working; tools and prewarm just report unavailable (fail-open).
Minta agent preset (per-turn protocol)
For turn-level automation (DSH rc.2 has no per-step/turn-end events, so the protocol is carried by the preset persona, which the model follows every turn), install the preset shipped in this package:
mkdir -p ~/.dsh/.agent-presets
cp -r <node_modules>/@xxinchen/dsh-plugin/presets/minta ~/.dsh/.agent-presets/ # or cp -r the repo's dsh-plugin/presets/minta
Then, in DSH, pick Minta in the session preset picker — or set it as the
default by overriding the agent-presets row (in ~/.dsh/profiles/web/cordis.patch.yml):
- id: agent-presets
config:
default: minta
The preset persona adds the per-turn protocol: minta_autopilot_preflight
before answering about prior work, minta_autopilot_postflight after each
reply, inbox-only writes, and graceful degradation when the engine is offline.
Migrating from the manual cordis.patch.yml block
If you previously set Minta up by appending the mcp-client-minta block to
~/.dsh/profiles/web/cordis.patch.yml, remove that block before installing
this plugin. The bundle patch and the manual block insert the same loader
entry id mcp-client-minta; with both present the profile fails to boot with
duplicate loader entry id: mcp-client-minta. Check you are clean with:
grep -A6 mcp-client-minta ~/.dsh/profiles/web/cordis.patch.yml # expect no output
(A patch file containing only [] is valid and means "no overrides".)
Manual alternative (no npm install)
Append to ~/.dsh/profiles/web/cordis.patch.yml:
- insert:
- id: mcp-client-minta
name: '@deepseek-ai/dsh-mcp-client'
config:
transport: streamable-http
serverName: minta
url: http://127.0.0.1:18721/mcp
failOnStartupError: false
Roadmap and known boundaries
Shipped: MCP wiring, runtime skill registration, session-start prewarm.
Not here yet (and why):
- Automatic pre/post-flight per turn — DeepSeek Harness 0.1.1-rc.2 exposes
no per-step or turn-end agent events, so per-message autopilot stays a
model-facing tool call (
minta_autopilot_preflight/minta_autopilot_postflight, instructed by the registered skill) rather than a hidden automatic hook. - Prompt injection of the prewarm result — the profile-level plugin cannot safely shadow the deployment persona (the prompt registry owns that slot); prewarm currently logs engine state, and the agent reads memory on demand through the MCP tools.
链接
同类插件
vectorize-io/hindsight#coding-agents★ 49309
Hindsight:会学习的 Agent 长期记忆系统,自动召回/保存、知识页、深度反思与按仓库隔离的记忆银行。
volcengine/OpenViking#examples/dsh-memory-plugin★ 39849
面向 DeepSeek Harness 的 OpenViking 记忆与上下文插件:pre-step 自动召回与画像注入、会话捕获、`viking://` URI 防护,以及对接 OpenViking 服务端的 recall/write 记忆工具。
agentscope-ai/ReMe#dsh★ 3591
将 DeepSeek Harness 接入 ReMe 本地优先、自进化的个人知识库:自动把已完成的主 Agent 对话沉淀为用户掌控的 Markdown 记忆,通过 reme_search 结合 BM25、可选向量检索和 wikilink 展开搜索对话与资料,并按日整理长期记忆。
zilliztech/memsearch#MemSearch★ 2743
供 DSH 与其他编程 Agent 共享的 Markdown 记忆,支持自动捕获、步骤前上下文注入、搜索召回,以及通过审阅面板实现 memory-to-skill 自进化。
vshulcz/deja-vu#extensions/dsh★ 1191
读取本机上其他三十三个编程智能体已经写下的会话文件——Claude Code、Codex、Cursor、VS Code Copilot Chat、opencode、OpenClaw、Hermes、Kimi、Cline、Zed 等,包括安装之前的历史:提供 deja_recall、deja_session、deja_blame、deja_fix、deja_how、deja_remember 六个工具与 /deja 命令,并可选地把召回结果加入运行时上下文。本地 BM25 索引,不用大模型,不用向量嵌入,不联网(dsh plugin --profile web add dsh-deja)。
adoresever/graph-memory★ 647
DeepSeek Harness 的可追溯、可检索跨会话记忆:把对话知识沉淀为带类型的图节点(任务/技能/事件)与关系边。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。