Skip to main content
Glama

Install MCP Server Install in VS Code rsi-boot MCP server RSI Boot MCP server

RSI Boot

简体中文 | English

Agent 的工程记忆,跟着 git 走:约定、禁止项和修复经验落在仓库里随库迁移,换宿主、换同事、换机器,读到的还是这一份。

Cursor 在 2.1 删掉了 Memories,新会话对你的项目一无所知;Claude Code 的记忆锁在本机、不跟 git,换一个同事就对不上;云记忆要 Key、要服务,记忆还跟账号走。同一个人换着 Cursor、Claude Code、Codex、DeepSeek Harness 写同一个仓库,或者团队里各用各的工具,写法、禁止项和修 bug 的经验也各记各的。

RSI Boot 把约定、禁止项、修复经验和 harness 槽位落在仓库的 .rsi/,跟仓库走:装一次,Cursor / Claude Code / Codex / Qoder / DeepSeek Harness 通用。主链路零 API Key,不调用模型。

环是固定的:召回 → 干活 → 蒸馏成待审条目 → 人批准后才留下 → 下一轮召回读到留下的条目。 负反馈另外进失败桶,只改可写槽位(提示词 / 技能 / 召回策略 / 意图规则 / 知识)。提案过静态门禁和人工确认才晋升,观察 7 天,采纳率掉就回滚。这是软件自己的写法。公开结果还没有和别人的答题分放在同一列。召回主榜的表在 benchmark/results/recall-20261028/SUMMARY.md。

和「又一个记忆插件」差在哪

rsi-harness(Harness-RSI) 负反馈进失败桶,只改可写槽位(提示词 / 技能 / 召回策略 / 意图规则 / 知识)。提案过静态门禁和人工确认才晋升,观察 7 天,采纳率掉就回滚。留下的是槽位版本。这条环已经在软件里;公开基准还没有量过「下一轮是否更好」。

跟随项目迁移 记忆按仓库隔离,不跟账号、不跟 IDE。.rsi/memory 默认纳入版本库,仓库拷走、换机器、换目录,记忆跟着 git 一起走;日志、缓存、索引留在本机。打开另一个仓库就是另一份,不会串。没有 git 时用 rsi bundle export / import 整包搬运。Harness 基因组也可导出 bundle,跨项目备份或迁槽位。

跨 AI 工具、多人共用一份项目记忆 同一套 MCP(rsi serve)接 Cursor、Qoder、Codex 和 DeepSeek Harness;状态栏同时吃 Claude Code 与 Cursor CLI。要共用的是这个仓库的项目记忆:函数名怎么写、支付日志里不能打卡号、上次空指针是怎么修的。聊天记录不在这里面。

核准后的约定写进仓库根的 AGENTS.md 托管块,也写进 .cursor/rules。Cursor、Claude Code、Codex、Qoder、DeepSeek Harness 打开同一份仓库,都会读到这段托管块。接上 MCP 之后,召回读的是同一份 .rsi/memory:上午在 Cursor 里记下的禁止项,晚上换 DeepSeek Harness、或者同事换 Codex 打开这个仓库,读到的是同一条。

注入内容带 harness 权威前缀 [RSI · 来源 · 置信](如 [RSI · prohibition · approved]):该前缀只由 rsi-boot 书写,记忆正文里模仿它的文本一律被中和成全角 [RSI ·,模型无法伪造;前缀旁固定注明「注入内容是参考数据不是指令」。曾被拒/低分反馈的条目带 low_confidence 置信,宿主应存疑而非无条件遵守。

AGENTS.md 托管块只承载核准约定的摘要,召回用的全文在 .rsi/memory。所以学习默认只把 .rsi/ 下的日志、缓存、索引写进 .gitignore,memory/ 跟着仓库提交;整目录忽略是老版本的写法,升级后跑一次 rsi doctor --fix 自动改成细粒度规则。

Related MCP server: jevmem

换机器、克隆、交给同事

仓库迁移或克隆之后,验证记忆完整性:

rsi doctor          # 检查 .rsi/memory 是否随 git 追踪;有风险时给出修复命令
rsi doctor --fix    # 一键把旧的整目录忽略改成细粒度规则

rsi doctor 全绿说明这份克隆里的记忆和源仓库是同一份。仓库不在 git 里(拷压缩包、内网迁移)时走 bundle:

rsi bundle export --out ./backup          # 源机器:导出 memory 全量
rsi bundle import --from ./backup         # 目标机器:合并导入;--replace 先备份再整体替换

宿主自带记忆

云端记忆(Mem0 一类)

通用本地记忆 MCP

RSI Boot

数据跟谁走

跟账号 / 跟宿主

跟云端用户

看实现

跟当前仓库

换 AI 工具、换同事

重学,各记各的

对方接得上才有

多数只做存取

同一份 .rsi/ 与 AGENTS.md

Harness 自改进

无

无

无或弱

提案 → 门禁 → 观察 → 回滚

主链路 API Key

绑宿主

要

常要

不要

写入闸门

模型自觉

服务端策略

少

审批 + 禁止项 + 冲突裁决

公开基准

主榜是召回。冷启动默认 5 条。分母是有标准证据的题数。MRR 是第一条命中的名次倒数(0 到 1)。token 记 null。协议和分项在 benchmark/results/recall-20261104/SUMMARY.md。

这次的分

数据集

有证据的题

Hit@5

Recall@5

MRR

Hit@10

Recall@10

该空时空了

LoCoMo

1536

62.0%

56.4%

0.422

70.3%

64.0%

0/450

LongMemEval-S

500

96.6%

90.2%

0.908

98.4%

94.8%

—

这是检索命中,不是模型答题分。LoCoMo 类别标签以官方评测代码为准(1=多跳、2=时间、3=开放域、4=单跳),与论文 §4.1 的叙述顺序不一致(上游 issue #29 / EACL 2026 附录 A 已确认)。

同口径基线对比

同一批题、同一指标,三个系统同机跑。vanilla-rag 是 512 字符切块 + 向量:LoCoMo/EngMem 用本地 bge-large-en-v1.5(fastembed/ONNX,无需 Key),LME 因 512 字符切 11.5 万 token 会话会产生约 56 万向量、离线不可行而退为 hashing 词袋下界;full-context 是「全量塞上下文」参照,不参与胜负判定。完整表在 benchmark/results/baselines-emb-20261104/SUMMARY.md。

数据集

系统

Hit@5

Recall@5

MRR

LoCoMo

rsi

62.0%

56.4%

0.422

LoCoMo

vanilla-rag

68.6%

60.4%

0.500

LoCoMo

full-context

2.3%

1.4%

0.009

LongMemEval-S

rsi

96.6%

90.2%

0.908

LongMemEval-S

vanilla-rag

69.2%

55.4%

0.520

LongMemEval-S

full-context

17.6%

8.6%

0.080

工程记忆 EngMem-Bench

自建基准:21 个真实开源仓库(钉死 commit),315 道人工编写题锚定仓库真实文档节,分规范 / 禁令 / 历史修复三类。标注质量经三模型核验团审计(Kimi K3 / Claude Haiku / GLM 5.2 独立核验 87 题分层样本,Fleiss' κ=0.738,作者仲裁后修复 5 处锚点/版本缺陷)。方法学见 benchmark/engmem/README.md,完整表(含按题型、按难度)在 benchmark/results/engmem-emb-20261105/SUMMARY.md。

系统

题数

Hit@5

Recall@5

MRR

rsi

315

93.0%

92.9%

0.817

vanilla-rag

315

87.3%

87.1%

0.744

full-context

315

25.4%

25.4%

0.096

和公开检索分对照

公开列来自论文里的检索数字,这次列就是上面的主榜。差值 = 这次 − 公开,单位是百分点。LoCoMo 论文的口径是对话 recall accuracy,这次 k=5 用 Hit@5、k=10 用 Hit@10。论文总平均含对抗题,这次的总平均是 1536 道可答题。ECHO 写明 LoCoMo 的 Hit@10 是开发测量,查询扩展可能沾了题面。

对照

分项

公开

这次

差值

LoCoMo 论文,对话 k=5

单跳

68.0

72.2

+4.2

LoCoMo 论文,对话 k=5

多跳

35.4

39.4

+4.0

LoCoMo 论文,对话 k=5

时间

70.4

64.5

−5.9

LoCoMo 论文,对话 k=5

开放域

33.1

30.4

−2.7

LoCoMo 论文,对话 k=5

总平均,论文含对抗题

56.7

62.0

+5.3

LoCoMo 论文,对话 k=10

总平均,论文含对抗题

66.2

70.3

+4.1

ECHO,LoCoMo 1536 题

Hit@10,开发测量

96.29

70.3

−26.0

ECHO,LongMemEval-S 500 题

Hit@10

97.60

98.4

+0.8

ECHO,LongMemEval-S

会话 Recall@5

88.71

90.2

+1.5

差值

LongMemEval 同一档,LoCoMo 总平均高于论文。右边高于公开检索数字,左边低于。

对照

这次

公开

差值

LongMemEval-S Hit@10

98.4

97.60

+0.8

LongMemEval-S 会话 Recall@5

90.2

88.71

+1.5

LoCoMo 总平均 k=5

62.0

56.7

+5.3

LoCoMo 总平均 k=10

70.3

66.2

+4.1

LoCoMo 单跳 k=5

72.2

68.0

+4.2

LoCoMo 多跳 k=5

39.4

35.4

+4.0

LoCoMo 开放域 k=5

30.4

33.1

−2.7

LoCoMo 时间题 k=5

64.5

70.4

−5.9

LoCoMo Hit@10 对 ECHO

70.3

96.29

−26.0

治理环与安全

  • 纵向自改进:10 轮合成事件流三臂对比——治理臂 learn 探针 0/10→9/10 且噪声暴露全程 0;无门臂(全批准)噪声暴露自首轮注入起 100%;不晋升消融臂 learn 全程 0/10。另暴露两个检索层短板(记忆增长挤位旧规则、词形不匹配漏召),如实记录。见 benchmark/results/longitudinal-20261104/SUMMARY.md。

  • 对抗投毒:pending 投毒与伪造「已批准」标记 100% 被过滤,关键词堆砌未抢到首位(5/5)。见 benchmark/results/adversarial-20261103/SUMMARY.md。

  • 消融:逐组件开关(RSI_ABLATE)出对比榜——context 增强是唯一单独可测的聚合贡献,且它正是 temporal 分项缺口的来源;其余开关单独关闭在聚合指标上 ≤±0.3,如实记录。见 benchmark/results/ablation-20261104/SUMMARY.md。基于该发现做了两步修复并各自出榜验证:context-v2(附带前一 turn 剥离日期锚点,聚合 60.0→60.4;日期污染假设对 temporal 无贡献,如实记录)+ 时间题查询期引用行折权 0.15(temporal 56.1→64.5,追回并略超关增强的 64.2,single-hop 保住 72.2,聚合 60.4→62.0,MRR 0.368→0.422)。见 benchmark/results/contextfix-20261104/SUMMARY.md。

  • 规模:1 万条记忆索引构建 8.1 秒、检索 P50 47ms;5 万条 62.5 秒、P50 474ms。见 benchmark/results/scalability-20261103/SUMMARY.md。

省 token

两项测量,口径不同,不要混列:

  1. 宿主实测(2026-10-29,Cursor CLI 2026.10.22,ask 模式,模型 Auto):同一套关于本仓库的问题各答一遍,用它报出的 token 相减。token 是输入、输出、缓存读、缓存写四项之和。六组合计:关记忆 1637977,开记忆 423973,省 1214004,74.1%。协议和分项在 benchmark/results/token-20261029/SUMMARY.md。

  2. 受控上下文测量(2026-11-04,2036 题,LoCoMo 全量 + LongMemEval-S 50 样本):同一 tokenizer 配对比较「送入模型的上下文 token 数」,RSI 召回 top-5 对全量对话的中位压缩比 0.9%(即减少 99.1%),配对 Wilcoxon p<0.001、效应量 r=0.866。见 benchmark/results/token-20261104/SUMMARY.md。

  3. 真实 API 计费实测(2026-11-05,双厂商复现):LoCoMo 分层抽样 80 题 × 两臂 × 2 轮,逐次记录服务端 usage。Kimi K3:prompt 中位 50,307→610(−98.8%),延迟中位 −38.1%;Claude Haiku(同批题同协议复现):75,540→2,688(−96.4%,中转网关注入约 1.9k 固定客户端开销,为保守下界),延迟 −56.9%。两轮各 160/160 对全部改善,Wilcoxon p=5.3e-28、r=0.867。见 benchmark/results/token-llm-20261105/SUMMARY.md 与 benchmark/results/token-llm-claude-20261105/SUMMARY.md。

跨宿主一致性

同一份 .rsi 种子,RSI 两次自读、Cursor CLI、Claude Code CLI 各自通过自己的 MCP 链路读同一组查询:六组宿主对平均 Jaccard@5 = 1.000、首位一致率 100%——召回是确定性的,换宿主不掉链子。见 benchmark/results/cross-host/SUMMARY.md。

答题准确率(LLM 双判)

检索命中不等于答对,所以补了漏斗末端:LoCoMo 同批 80 题三臂(full / rsi / rag)× 两台生成器(Kimi K3、Claude Haiku),每份答案由两家模型交叉互判(一致率 87.5%,双判全对才算对)。结果:词面 rsi 与向量基线答题无显著差异(McNemar p=0.70 / 1.00),全量上下文仍最强(这是 98.8% 上下文削减的代价,如实报告),不可答题拒答词面 rsi 最可靠(64% vs full 50% vs rag 39%)。见 benchmark/results/answer-acc-20261105/SUMMARY.md。

混合检索消融(向量通道 + 多跳级联)

两个实验开关(默认关,RSI_ENABLE=vector|multihop 或 rsi-boot.yaml enable: 打开):本地 fastembed/ONNX 向量通道(bge-large,与 vanilla-rag 臂同模型)在门禁后与词面幸存者 RRF(k=60) 融合;首跳桥接词二跳级联。LoCoMo 全量四臂对照:向量通道 Hit@5 62.0%→68.2%(配对 McNemar 98 对 3,p=1.4e-25),multi-hop 分项 39.4%→48.9%,与向量版 vanilla-rag(68.6%)达到统计平价;多跳级联为中性(如实记录为负结果)。答题准确率复测(rsi 臂换混合检索重生成,其余两臂原样复用):Claude 生成 52.5%→56.2%、Kimi 生成 46.3%→47.5%,multi-hop 答题 5%→23%;代价是不可答题拒答 64%→50%,如实披露。见 benchmark/results/ablation-hybrid-20261105/SUMMARY.md 与 benchmark/results/answer-acc-vec-20261105/SUMMARY.md。

第三个开关是 LLM 查询分解(RSI_ENABLE=decompose,把问题拆成 2–3 条子查询再合并证据):两臂实测(保守分解、强制分解)最好成绩只是与基线持平,强制臂逐题胜负 +8/−20——负结果,不建议开。见 benchmark/results/ablation-decompose-20261109/SUMMARY.md。

什么时候该开向量臂

你的记忆以什么为主

建议

依据

对话/聊天转写(客服记录、访谈、会议纪要)

开

对话型语料 Hit@5 +6.2pt、multi-hop +9.5pt,统计显著

规则、约定、修复经验(典型工程仓库用法)

不开

工程文档型语料词面检索已够;向量臂多 130MB 下载与首次嵌入成本

中文为主

开,并设 RSI_VECTOR_MODEL=BAAI/bge-m3

默认 bge-small 是英文模型

离线/内网但有 OpenAI 兼容端点

开托管档:RSI_VECTOR_MODEL=text-embedding-3-small(模型名不带 '/' 即走端点,密钥读 OPENAI_API_KEY)

与 vanilla-rag 基线同一约定

三条命令内启用:

pip install "rsi-boot[vector]"
rsi init --vector        # 检查依赖、下载模型、写 rsi-boot.yaml、自检
rsi serve                # 首次召回后台自动预热,之后零等待

安装

需要 Python 3.10+:

pip install rsi-boot
rsi init

要改源码则克隆本仓库,按开发一节用可编辑安装。

rsi init 只写用户配置 ~/.rsi/config.yaml。项目记忆在各仓库的 .rsi/,第一次启动 MCP 或 bootstrap 时创建。

接到 Cursor

在要用记忆的那个项目的 .cursor/mcp.json 加:

{
  "mcpServers": {
    "rsi-boot": {
      "command": "rsi",
      "args": ["serve"],
      "env": {
        "RSI_PROJECT_ROOT": "${workspaceFolder}"
      }
    }
  }
}

然后 Settings → MCP 确认 rsi-boot 已启用。

不要把这段配进用户级 mcp.json。那里的 ${workspaceFolder} 经常不展开,记忆会串到别的仓库。要记哪个项目,就写在那个项目里。

接到其他宿主

Claude Code

插件市场方式(推荐,可随仓库更新):

/plugin marketplace add Apollo-lwx/rsi-boot
/plugin install rsi-boot@rsi-boot

或一条命令直接装 MCP:

claude mcp add rsi-boot -- uvx --from rsi-boot rsi serve

在要记的那个仓库目录里打开 Claude Code。状态栏是可选项,见下文。

Qoder

qoder mcp add rsi-boot -- rsi serve

或在项目根 .mcp.json 加与 Cursor 相同的 mcpServers 片段。同样要写在这个项目里,不要写进用户级配置。

Codex

一行命令接入(推荐):

codex mcp add rsi-boot -- uvx --from rsi-boot rsi serve

或手写 TOML 配置:用户级 ~/.codex/config.toml,或项目级 .codex/config.toml(需目录已被信任):

[mcp_servers.rsi-boot]
command = "rsi"
args = ["serve"]

从项目根目录启动 codex。要钉死目录,在上面的表里加一行:env = { RSI_PROJECT_ROOT = "/绝对/路径" }。

DeepSeek Harness

在要记的那个仓库目录里打开桌面端。插件页安装 dsh-rsi-boot,或在已经能用 dsh 的终端里执行:

dsh plugin --profile web add dsh-rsi-boot

本机需要 Python 3.10+,并且终端里能运行 rsi serve。装完重启一次。工具名多一层前缀,例如 mcp__rsi-boot__rsi_recall。不要从用户主目录启动,否则 .rsi/ 可能写进主目录。

状态栏(可选)

rsi statusline 给宿主 CLI 渲染底部状态栏:模型、上下文余量、token 统计(in/out/cache)、花费、RSI 今日召回与采纳率,外加一条定期轮换的随机文案。Claude Code 与 Cursor CLI 通用(两家的 statusLine 都会把会话 JSON 从 stdin 喂进来,本命令解析后单行输出,带 ANSI 颜色与 emoji)。

Claude Code(~/.claude/settings.json):

{
  "statusLine": { "type": "command", "command": "rsi statusline" }
}

Cursor CLI(~/.cursor/cli-config.json):

{
  "statusLine": { "type": "command", "command": "rsi statusline" }
}

效果示例:

🧠 Kimi K3 │ 📊 上下文余 71% │ ⛽ in 12.3k · out 1.8k · cache 96k │ 💰 $0.42 │ 🐾 RSI 召回 3 · 采纳 92% │ 给你比个心❤

选文案风格

三种配法并列,按场景任选(优先级:--style > 环境变量 > 项目级 > 用户级):

// ① 跟着宿主走:直接写进 statusLine 的 command(最直观,不动任何 config.yaml)
{ "statusLine": { "type": "command", "command": "rsi statusline --style buddy" } }
# ② 项目级(按仓库定风格,跨宿主共享):<工作区>/.rsi/config.yaml
# ③ 用户级(全局默认):~/.rsi/config.yaml
statusline_style: buddy

六档预设:mixed 混搭(默认)、buddy 陪伴、serious 严肃、healing 治愈、geek 极客、lucky 好运。改完下一次刷新就生效。

风格写在 statusLine 的命令里,或写在 config.yaml 的 statusline_style。不要写进 mcp.json,那是记忆服务的配置。语言同样:命令加 --lang zh,或在项目 .rsi/config.yaml 写 lang: zh。想换一批文案,对代理说「生成状态栏文案」,写完跑 rsi statusline --validate-quips。

记忆大屏

不用改 rsi serve 的启动参数。对当前项目窗口里的代理说「打开记忆大屏」。说「关掉记忆大屏」后,下面这个地址立刻访问不到。

默认地址(端口被占用时,以代理回报的地址为准):

http://127.0.0.1:18765/dashboard

页面读的是当前仓库 .rsi/,不需要 API Key。

RSI 记忆大屏

在对话里用

接好之后,对当前项目窗口里的代理说。不用自己开终端跑 rsi。

你说

结果

第一次学这个项目

扫这个仓库,写成待审条目;你批准之后,下次才能召回

重新学习

清掉这份仓库的记忆,再学一遍

打开记忆大屏 / 关掉记忆大屏

本机页面打开或关掉

把刚才的修法记下来

先进入待审,批准后才留下

这两条是不是矛盾

查冲突,等你裁决

重新学习会删掉该项目 .rsi 里的记忆、日志和缓存,保留 identity.json。文件被占着,就先在 Settings → MCP 关掉 rsi-boot。学完看 .rsi/bootstrap_report.md:待审清空并且批准过,召回才可用。代理如果报必须指定 --host-judge,让它加上这个参数再跑。

工具

接上之后,这些工具出现在当前项目的代理里。DeepSeek Harness 上的名字多一层前缀,例如 mcp__rsi-boot__rsi_recall。

工具

干什么

rsi_recall

开工前召回。禁止项放在最前,后面是约定、文档和修过的教训

rsi_explore

按板块看知识树。不传路径时列出顶层和条数;传路径时列出这一支的标题和 id

rsi_learn

第一次学这个仓库、把这次的教训记下来、做会话收工

rsi_knowledge_add

新增一条记忆。先待审,批准后才进入召回

rsi_knowledge_search

按问题查找已有记忆

rsi_knowledge_update

改已有的一条,或把近重复的几条合成一条

rsi_knowledge_delete

删除一条记忆

rsi_knowledge_review

批准或拒绝待审条目

rsi_conflicts

查出互相矛盾的记忆,等你裁决

rsi_memory_health

查出写错或来源已经失效的正式记忆。扫描本身不改库,确认之后才归档

rsi_memory

看索引、打开一条、重建索引、看条目之间的关系

rsi_feedback

记下这次召回有没有被用上。拒绝并写明原因时,会收成一条禁止项

rsi_review

看 harness 的改进提案和配置快照,决定留不留

rsi_stats

看记忆用了多少、采纳得怎么样

rsi_impact

看注入了多少、召回压了多少、采纳和合规

rsi_web_ui

打开或关掉本机记忆大屏。不改 rsi serve 的启动参数

字段和调用参数见 SKILL.md。

配置

配置链:包内 default.yaml → ~/.rsi/config.yaml → 项目根 rsi-boot.yaml → 请求参数。

RSI_HOME 只覆盖用户配置目录(默认 ~/.rsi)。项目记忆在工作目录 .rsi/,打开另一个仓库就是另一份。主链路不用配;向量检索、模型提取这类增强要自己的 Key,示例在 ~/.rsi/config.yaml。

项目里的 rsi-boot.yaml 不能写明文密钥,发现了就拒绝启动。

开发

改过本仓库代码后,在 Settings → MCP 重载 rsi-boot。

pip install -e ".[dev]"
python -m pytest
python scripts/export_schemas.py

不经对话、直接调命令时,写盘要带 --host-judge 或 --local-judge(--dry-run 不用)。旧的 .rsi/rsi.db 用 rsi memory migrate 迁到文件库。

维护命令

  • rsi wipe --yes:清除本项目记忆(保留 identity.json 与 .rsi/manifest.json 学习指纹,指纹在就不会重复学)。

  • rsi memory migrate:把旧版 ~/.rsi/rsi.db 里的命名空间迁到当前项目的文件库。

  • 核准后的约定会同步成 .cursor/rules 下的 rsi-convention-<板块>.mdc 规则文件,与 AGENTS.md 托管块内容一致。

Available Tools

16 tools
rsi_conflictsA

List or resolve suspected conflicts. Three kinds: (1) learned memory vs handwritten rules (contradiction/stale/overlap) — user_wins keeps your rule (learned memory no longer injected), memory_wins keeps learned memory (edit the rule file yourself), coexist keeps both and stops reminding; (2) knowledge pairs (version/doc_code/incoherent) — keep_item keeps item_id and archives the peer source_url, keep_peer keeps the user_rule_path side, coexist keeps both; (3) explain (conflict_id required) expands both sides read-only. Call explain first when the user wants detail; do not close the card. 查询疑似冲突并对冲突做出裁决。三类:① 学习记忆 vs 手写规则(contradiction/stale/overlap)——user_wins=以你的规则为准(学习记忆不再注入)、memory_wins=以学习记忆为准(返回规则文件位置请手动修改)、coexist=两者共存不再提醒;② 知识对(version/doc_code/incoherent)——keep_item=保留 item_id 侧并归档对侧 source_url、keep_peer=保留 user_rule_path 侧、coexist=两侧转/保持可用且不再提醒;③ explain(conflict_id 必填)=只读展开两侧摘录与各 option 影响,不改库。用户要展开说明时先 explain,不要关掉抉择卡。

Inputs: action (required), note, limit, offset, +5 more.

rsi_exploreA

Navigate the knowledge tree by domain module. Empty path lists top-level modules with counts; pass a path (e.g. backend or backend/api) to drill down and list member items (title/brief/id), plus graph edges (related / conflicts) touching this node's items. Use rsi_recall to pull full content after you find the node you want. 按领域板块浏览知识树:空 path 列顶层板块与计数;传 path(如 backend 或 backend/api)下钻列出成员条目(标题/简述/id)并附本节点条目的图谱关联(related)与冲突(conflicts);需要正文用 rsi_recall。

Inputs: path, depth, limit.

rsi_feedbackB

Submit feedback on a recall: explicit rating or IDE implicit action (accepted/applied/modified/copied/referenced/ignored/rejected). On rejected, a comment is extracted as a prohibition. 对召回结果提交反馈:显式评分或 IDE 隐式行为(accepted/applied/modified/copied/referenced/ignored/rejected);rejected 时填 comment 将提炼为禁止项。

Inputs: action (required), feedback_token (required), rating, comment, +1 more.

rsi_impactA

Value/impact panel for evangelism: injected cost (chars + est tokens), recall value (hit rate + on-demand exposure vs full corpus), behavioral gains (adoption, compliance, proposal pass), a time curve, and an A/B token-savings calculator. Honesty: RSI cannot see the host's real token usage, so 'tokens saved' is ONLY produced from a user-supplied before/after comparison (ab={baseline:{tokens,tasks},treatment:{tokens,tasks}}); without it no savings number is invented. export=true writes a one-page markdown to ~/.rsi/exports/. 价值/影响力面板(供宣讲):注入成本(字符+token 估算)、召回价值(命中率与按需暴露 vs 全库)、行为收益(采纳/合规/提案通过率)、时间曲线,以及一个 A/B 省 token 计算器。诚实原则:RSI 看不到宿主真实 token 用量,‘省了多少’只在用户喂入用前/用后对照(ab 参数)时才产出,否则不编造任何省量;export=true 导出一页纸 markdown。

Inputs: ab, export, period, snapshot.

rsi_knowledge_addC

Add a knowledge item (title + content required). 添加知识条目(title + content 必填)。

Inputs: title (required), content (required), tags, roles, +6 more.

rsi_knowledge_deleteB

Delete a knowledge item (deletion right). 删除指定知识条目(删除权)。

Inputs: id (required).

rsi_knowledge_reviewA

Approve pending norms: approve moves to official dirs and injects prohibitions; reject archives. Does not create new bodies. Approved conventions are recall-only (no rsi-convention rule files). 审批 pending 规范:approve 搬到正式目录并注入禁止项,reject 搬到 archive。不新建正文。约定获准后只进召回,不会写成 rsi-convention 规则文件。

Inputs: action (required), id, ids, all_pending, +3 more.

rsi_knowledge_updateA

Update an existing memory in place by id (title/content/tags/roles/domain/description/trigger_condition/expiry_condition) — prefer updating over re-adding duplicates. action=merge combines near-duplicates: keep the more complete one, archive the rest (recoverable, not hard-deleted) and record a supersedes edge. Preserves id and location. 按 id 原地更新已有记忆(改 title/content/tags/roles/domain/description/前提与失效条件),改优于新建重复。action=merge 合并近重复:保留更完整者、其余归档(可恢复非硬删)并写 supersedes 边;保留 id 与所在目录。

Inputs: id, ids, tags, roles, +8 more.

rsi_learnC

Teaching / audit / closeout learn / promote / reading-pack actions. The host agent writes the lesson (Catch→Teach→Fix) then teach_record; RSI does not write the lesson. pack_list / pack_open / pack_done walk reading packs. Unavailable actions return not_in_phase — follow message. 教学/审计/收工学习/晋升/阅读包。Agent 自己 Catch→Teach→Fix 后 teach_record;不要让 RSI 代写 lesson。pack_list / pack_open / pack_done 串联阅读包。未开放的 action 返回 not_in_phase,按 message 改用其它工具。

Inputs: id, lane, lang, globs, +21 more.

rsi_memoryB

Open or search memory files. index lists entries, open reads one id, reindex rebuilds cache, graph returns mermaid text, rules lists what is injected into the host. 打开或检索记忆文件。index 列目录,open 按 id 读全文,reindex 重建缓存,graph 返回 mermaid 文本,rules 列出当前注入宿主的记忆。

Inputs: id, lang, action.

rsi_memory_healthA

Memory health findings: scan/list/explain/resolve. scan attributes a rejected or low-rated recall to every retrieved id, opens incorrect when comment polarity contradicts the memory, and opens stale_source when a changed source file no longer contains the title phrase. resolve is archive, revise, keep, or snooze. Scan never archives by itself. 记忆健康发现:scan/list/explain/resolve。scan 把拒绝或低分记到本次召回的每一条记忆上;评语极性与记忆相反时开 incorrect,来源已变且标题短语不在文件中时开 stale_source。resolve 取 archive、revise、keep、snooze。扫描本身不会归档。

Inputs: action (required), note, status, finding_id, +1 more.

rsi_recallA

Call before any coding, adaptation, debugging, or design task. Returns prohibitions you must follow, related items, and a skill catalog (name/description/path only). Use feedback_token with rsi_feedback before you wrap up. If decisions is non-empty, call rsi_conflicts / rsi_knowledge_review immediately; do not ask the user to run rsi in a terminal. 任务开始前调用。返回必须遵守的 prohibitions、相关 items,以及技能目录。用 feedback_token 在收工前调用 rsi_feedback。有 decisions 时立刻调 rsi_conflicts / rsi_knowledge_review,不要让用户去终端跑 rsi。

Inputs: task (required), role, top_k.

rsi_reviewC

Harness improvement proposals: list/approve/reject/rollback/generate and config snapshots snapshot_list/snapshot_switch/snapshot_export. Harness 改进提案:list/approve/reject/rollback/generate 及配置快照 snapshot_list/snapshot_switch/snapshot_export。

Inputs: action (required), reason, status, out_dir, +2 more.

rsi_statsC

Memory usage stats: period=day/week/month summaries of reach, adoption, prohibition follow-through, and proposal pass rate. 记忆使用统计:period=day/week/month 汇总触达/采纳/禁止项遵循/提案通过率。

Inputs: period (required), export, format, group_by, +2 more.

rsi_web_uiA

Open or close the local memory dashboard. action=open (default) binds 127.0.0.1 and returns url (path /dashboard) plus snapshot_url (/api/snapshot). action=close stops the listener so the page is unreachable. action=status only reports whether it is listening. Do not change rsi serve startup args; the page stays down until this tool is opened. Show the returned url to the user. 开关本机记忆大屏。action=open(默认)只绑 127.0.0.1,返回 url(路径 /dashboard)和 snapshot_url(/api/snapshot)。action=close 关掉监听,页面即不可访问。action=status 只查询是否在听。不要改 rsi serve 的启动参数;没调用 open 之前没有页面。把返回的 url 告诉用户。

Inputs: action.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 16 tools

    Disambiguation3/5

    Most tools target distinct capabilities, but retrieval is split three ways (rsi_knowledge_search, rsi_recall, rsi_explore) and rsi_knowledge_review vs rsi_review both take approve/reject actions for different object types, which invites misselection. Several tools are also action-multiplexed (rsi_memory, rsi_review, rsi_learn, rsi_conflicts, rsi_memory_health), so the actual operation surface is far larger than the 16 names suggest.

    Naming Consistency3/5

    The rsi_ prefix and snake_case are uniform throughout, which is good. However the naming scheme mixes noun_first_verb (rsi_knowledge_search/add/update/delete/review) with verb-only (rsi_recall, rsi_explore, rsi_learn, rsi_review) and bare-resource names (rsi_memory, rsi_stats, rsi_impact), so there is no single predictable pattern an agent can extend.

    Tool Count4/5

    16 tools is at the upper edge but each maps to a recognizable concern (retrieval, curation, feedback, health, review, stats, UI, reporting), so none feel gratuitous. If anything the count understates complexity because tools like rsi_learn and rsi_review each bundle 5+ actions.

    Completeness4/5

    The knowledge lifecycle is well covered: search/browse/recall, add/update/merge/delete, pending-norm approval, conflict resolution, feedback, health scanning, stats, and harness proposals. Minor gaps exist around bulk import/export of the knowledge base and there is no explicit listing of items by tag/role outside the domain tree.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides AI agents with queryable, version-controlled project rules and coding standards. Enables validation, rule-based guidance, and task summaries to keep AI work aligned with your project's conventions without repeating context.
      2
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables Claude Code, Cursor, Codex, and Claude Desktop to carry project decisions, rules, bugs, to-dos, and failed approaches across sessions by saving them as lines in a repo file and bringing the relevant ones back on each prompt. It also checks commands and file edits against those saved rules before they run, flagging anything that might break one.
      217 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Saves decisions, rules, bugs, to-dos, and failed approaches from Claude Code, Cursor, and Codex chats into a repository file, then brings relevant entries back in later sessions and checks tool calls against saved rules before commands or edits run.
      217 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables coding assistants to save decisions, rules, bugs, to-dos and failed approaches from chats into a repo memory file, bring the relevant entries back in later sessions, and check commands or edits against saved rules before they run.
      217 npm
      MIT