Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By FuRongJun-1999v0.8.1MITIn 1 marketplace
Gives Claude cross-session memory with rule-based recall through the Lingshu MCP servers. Writes stick only with a token you issue, otherwise memory is read-only; check the returned committed field.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Of the plugin's README
Chinese
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
灵枢(Lingshu)长期记忆系统的 Claude Code 插件形态:把「20 条工作纪律」做成随插件分发的
skill(skills/linglu-discipline/),并附灵枢大脑(stdio MCP server mdcg)的接入模板。
与手工路线(复制
claude/CLAUDE.md到项目根)的差别:CLAUDE.md 不能随插件分发, 故纪律注入改由 skill 承载——Claude 按 frontmatterdescription在任务开始 / 命中触发词时 自动加载,也可用/lingshu-memory:linglu-discipline显式调用。两条路线同源(同一真源渲染),可并存。
本仓库根自带 marketplace(.claude-plugin/marketplace.json):
# Claude Code 会话内
/plugin marketplace add FuRongJun-1999/dsh-memory
/plugin install lingshu-memory@lingshu
本地开发调试可用:claude --plugin-dir ./claude/lingshu-memory。
接入记忆大脑与蜂巢(MCP):把本插件目录的 mcp.json.example 复制到你项目的根目录并改名为
.mcp.json,把两处 env.PYTHONPATH 占位值替换为你本机 dsh-memory 仓库的绝对路径
(Python 据此定位 md_cg / hive 包)。也可用命令注册:
claude mcp add mdcg --env PYTHONPATH=<本机 dsh-memory 绝对路径> --env MDCG_MCP_SURFACE=kernel \
--env MDCG_ACTOR=claude-code -- python -m md_cg.mcp_server
claude mcp add hive --env PYTHONPATH=<本机 dsh-memory 绝对路径> -- python -m hive.hive_mcp.mcp_server
工具面说明:MDCG_MCP_SURFACE=kernel 只暴露 cg / stg 两个认知基元,
cg 已覆盖 route / read / write 等全部 op,写入通道不缺;
hive 暴露 hive_spawn / hive_poll / hive_kill / hive_doctor 四工具
(通用多智能体并发 + 任务上下文管理,语义见 hive/README.md)。
多个 harness 指向同一仓库即共享同一并发池与同一个 serve;要隔离请设
HIVE_JOBS_DIR / HIVE_CONFIG。
新开会话:首次对话可直接说「先查灵枢记忆:cg(op=route, intent=…)」验证通路;
或显式调用 /lingshu-memory:linglu-discipline 加载纪律。
md_cg 是 fail-closed:不配令牌时以只读 guest 运行——读取 / 召回 / 时间线照常,
但记忆写入不落盘。签发令牌:
python -m md_cg.tokens issue --role designer --actor claude-code
把返回的明文令牌填进 .mcp.json 的 "MDCG_TOKEN"。
别把 ok: true 当写成功:是否落盘只看返回体的 committed 字段。
| 文件 | 作用 | 性质 |
|---|---|---|
.claude-plugin/plugin.json | 插件清单 | 手写 |
skills/linglu-discipline/SKILL.md | 20 条工作纪律 + 记忆操作规程 | 渲染产物,勿手改 |
mcp.json.example | 灵枢 MCP 接入模板(mdcg 记忆 + hive 蜂巢两条 server,与 claude/mcp.json.example 同源) | 模板副本 |
README.md | 本文件 | 手写 |
SKILL.md 由 scripts/render_discipline.py 从唯一真源 docs/工作纪律_认知图条目_v1.1.json
渲染生成,矩阵见 docs/discipline/harnesses.yaml(claude-code-plugin-skill 槽位,skill 变体)。python scripts/render_discipline.py --target claude-code-plugin-skill --write
→ python scripts/verify_discipline.py --target claude-code-plugin-skill 通过 → 提交。.claude-plugin/plugin.json 与 .claude-plugin/marketplace.json 的 version
(Claude 插件只有版本号提升用户才会收到更新)。Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub furongjun-1999/dsh-memory --plugin lingshu-memoryPlugins from other owners that cover similar ground