面向 dsh-mneme 的记忆巩固调优(开启 autoDream、放大输出预算、deepseek-chat 路由)与 llm-deepseek 推理力度修复,附带可审计智能体运行时 seed-society 的 MCP 工具桥与六个唯识种子技能。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:woshishadowhunter/dsh-seed-society
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。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
唯识论八识架构的 Agent Society 插件:把 seed-society 的可审计双循环运行时接成
mcp__society__* 工具,并随包提供六个种子技能。
包含内容(安装后自动生效)
| 层 | 内容 | 载体 |
|---|---|---|
| MCP 工具桥 | mcp__society__*(run/enqueue/status/knowledge/genome/experience/approve…) |
dsh-mcp-client 实例(insert) |
| 种子技能 | yogacara-society/alaya/manas/mano/panca/sila 六个 SKILL.md |
随包 + 镜像到 ~/.dsh/skills |
| 插件元数据 | 插件名、描述、图标(插件管理/设置页直接读取) | locale/en.json、locale/zh.json、icon.svg |
明确不做:不改写 llm-deepseek 或 dsh-mneme 的配置。0.2 的 loader 对
带 id 的层是整段替换 config(不做深合并),所以跨包改写会覆盖对方自己的
默认值;目标行不存在时还会警告 patch: entry "<id>" not found 并整层跳过。
记忆侧怎么配,归 mneme 自己的默认值与该 profile 的 patch 层。
兼容性
- DSH 0.2.x:
engines.dsh为>=0.2.0-rc.1 <0.3.0-0。0.2 的 loader 只认engines.dsh(有它就不再检查 peerDependencies),并按 includePrerelease 比对,所以0.2.1-rc.2可用,0.1.x 与 0.3 会被判为 incompatible 后跳过。 - Python 3.10+(MCP 桥与运行时)。
@modusensus/dsh-mneme可选:装了就由它负责记忆注入与巩固,与本文插件互不 改写。
安装(一条命令)
powershell -ExecutionPolicy Bypass -File integrations\dsh\install-plugin.ps1
脚本依次:pip 安装 seed-society(并验证 seed_society.mcp_server 可导入)→
装 mneme → 装本插件(pnpm add + bundles 对账)→ 同步技能到 ~/.dsh/skills →
dump-config 校验(缺行或出现 [dsh-seed-society] 警告即失败)。装完重启
DSH(新 bundle 层需要重新组合)。
手动安装
从 GitHub 安装(分发方式):
python -m pip install -e <seed-society 仓库> # 1. python 运行时
dsh plugin --profile web add @modusensus/dsh-mneme # 2. mneme(可选)
dsh plugin --profile web add github:woshishadowhunter/dsh-seed-society
本地开发时把最后一行换成 dsh plugin --profile web add <path-to-this-plugin>。
技能由安装脚本(或主仓库的 integrations/dsh/sync-skills.ps1)镜像到
~/.dsh/skills;只装插件不镜像技能也能得到 mcp__society__* 工具,六个
SKILL.md 只是告诉模型怎么用这套运行时。
不想装插件、只想要 MCP 桥:把
integrations/dsh/cordis.patch.example.yml
的 insert 块并入 profile 的 cordis.patch.yml。
验证
dsh --profile web --dump-config 2>&1 | grep -E "mcp-society|serverName: society"
node --test test/plugin.test.mjs && node scripts/verify-patch.mjs
重启后:
- 模型工具里出现
mcp__society__*(society_health返回ready: true); - dump-config 的 stderr 里没有
[dsh-seed-society]警告; llm-deepseek与dsh-mneme两行与本插件安装前一致(本插件不碰它们)。
记忆侧:确定性巩固仍可用
插件不再替 mneme 决定梦巩固策略。想完全不触发 mneme 的 LLM 路径时,用本项目的 确定性引擎做巩固(不需要模型):
seed-society consolidate GOAL --db society.db --mneme-dir ~/.dsh/memory --apply
若确实要调整 mneme,请在 profile 的 cordis.patch.yml 里写 - id: dsh-mneme
并把该行需要的键写全(整段替换),例如:
- id: dsh-mneme
config:
autoDream: true
dreamProvider: deepseek-official
dreamModel: deepseek-flash
dreamReasoningEffort: "off" # 只压推理,不动 dreamMaxTokens 预算
dreamMaxTokens 建议保持 mneme 的默认上限(0.9.x 为 131072);调低会挤掉决策
JSON 的输出预算,这是 2026-08 那一轮 no json array in llm output 的直接原因。
仓库
- 主项目(运行时/文档/测试):https://github.com/woshishadowhunter/seed-society
- 本插件:https://github.com/woshishadowhunter/dsh-seed-society
插件真源在主项目 integrations/dsh/plugin/dsh-seed-society;插件仓库由
git subtree 发布(主项目 integrations/dsh/publish-plugin.ps1)。请把改动
提到主项目,不要只改插件仓库,否则下一次发布会覆盖。
发布到插件超市(可选)
在 awesome-dsh-plugin 提交注册条目:
{
"name": "dsh-seed-society",
"owner": "woshishadowhunter",
"url": "https://github.com/woshishadowhunter/dsh-seed-society",
"category": "memory",
"description": { "en": "...", "zh": "..." }
}
注册表快照更新后,用户即可 dsh plugin --profile web add dsh-seed-society
一键安装(需先发布 npm 包,或在注册条目中用 github URL)。
边界
- 插件只做配置组合与桥接:不改验收标准、不给模型权限、不绕过审批;
- mcp-society 需 Python 环境;服务端不使用 shell、不持密钥;
- mneme 的 LLM 仲裁与其 CAS/快照哈希审计保持原样。
链接
同类插件
vectorize-io/hindsight#coding-agents★ 64164
Hindsight:会学习的 Agent 长期记忆系统,自动召回/保存、知识页、深度反思与按仓库隔离的记忆银行。
volcengine/OpenViking#examples/dsh-memory-plugin★ 43028
面向 DeepSeek Harness 的 OpenViking 记忆与上下文插件:pre-step 自动召回与画像注入、会话捕获、`viking://` URI 防护,以及对接 OpenViking 服务端的 recall/write 记忆工具。
MemTensor/MemOS#memos-local-plugin★ 12541
DeepSeek Harness 本地记忆插件:分层 L1/L2/L3 记忆,自动沉淀与手动 memos_* 检索工具并存,内置记忆浏览器。
agentscope-ai/ReMe#dsh★ 3869
将 DeepSeek Harness 接入 ReMe 本地优先、自进化的个人知识库:自动把已完成的主 Agent 对话沉淀为用户掌控的 Markdown 记忆,通过 reme_search 结合 BM25、可选向量检索和 wikilink 展开搜索对话与资料,并按日整理长期记忆。
zilliztech/memsearch#MemSearch★ 2968
供 DSH 与其他编程 Agent 共享的 Markdown 记忆,支持自动捕获、步骤前上下文注入、搜索召回,以及通过审阅面板实现 memory-to-skill 自进化。
vshulcz/deja-vu#extensions/dsh★ 1700
跨会话长期记忆与上下文恢复:读取本机上其他四十五个(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 账号。