rsi-boot
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@rsi-bootBefore refactoring, recall this project's conventions and prohibitions."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
RSI Boot
简体中文 | English
宿主模型(Cursor 等)的本地记忆层。把对话里验证过的约定、禁止项和修复经验沉淀下来,经审批后注入规则文件,并在下次任务前召回。零 API Key,主链路不调用模型;数据只落在当前仓库的 .rsi/。
安装
需要 Python 3.10+。在本仓库根目录:
pip install -e .
rsi initrsi init 只写用户配置 ~/.rsi/config.yaml。项目记忆在各仓库的 .rsi/,第一次启动 MCP 或 bootstrap 时创建。
Related MCP server: project-memory-mcp
接到 Cursor
在要用记忆的那个项目的 .cursor/mcp.json 加:
{
"mcpServers": {
"rsi-boot": {
"command": "rsi",
"args": ["serve"],
"env": {
"RSI_PROJECT_ROOT": "${workspaceFolder}"
}
}
}
}然后 Settings → MCP 确认 rsi-boot 已启用。改过本仓库代码后要重载该 MCP。
不要配用户级 mcp.json:那里 args 里的 ${workspaceFolder} 经常不展开,会把记忆串到别的仓库。工作区绑定顺序:RSI_PROJECT_ROOT(项目级 mcp.json,推荐,显式契约)→ MCP roots/list(插件形态下由 Cursor 自动应答)→ Cursor 注入的 WORKSPACE_FOLDER_PATHS → 进程 cwd。
接到其他宿主
Qoder
本仓库同时是 Qoder 插件:.qoder-plugin/plugin.json 清单 + 根目录 mcp.json(与 Cursor 插件共用同一份 MCP 配置),打 zip 即可分发。手动接的话二选一:
qoder mcp add rsi-boot -- rsi serve或在项目根 .mcp.json 加与 Cursor 相同的 mcpServers 片段。工作区绑定顺序与 Cursor 一致(RSI_PROJECT_ROOT → roots/list → 注入变量 → cwd)。
Codex
Codex 没有插件包格式,MCP 走 TOML 配置:用户级 ~/.codex/config.toml,或项目级 .codex/config.toml(需目录已被信任):
[mcp_servers.rsi-boot]
command = "rsi"
args = ["serve"]从项目根目录启动 codex 即可——MCP 子进程继承 cwd,rsi-boot 按 cwd 向上认领工作区。要显式钉死就在表里加一行:env = { RSI_PROJECT_ROOT = "/绝对/路径" }。
在对话里学习
接好 MCP 后不要自己去终端跑 rsi。对当前项目窗口里的代理说即可。
你说 | 代理做的 |
第一次学这个项目 |
|
重新学习 | 先 |
看到「必须指定 --host-judge 或 --local-judge」就加 --host-judge 重跑,不要改用 --local-judge(那条只给终端自己采集用)。rsi wipe --yes 会删掉该项目 .rsi 下的 memory/ logs/ cache/ audit/ state/ 与 manifest.json,保留 identity.json;若提示文件被占用,先在 Settings → MCP 关掉 rsi-boot 再重跑。
学完看 .rsi/bootstrap_report.md 的板块清单,pending=0 并经 rsi_knowledge_review 批准后才算召回可用。约定获准后只进召回,不会写成 rsi-convention-*.mdc 规则文件。
终端冒烟
不经对话、只调 CLI 时用。写盘必须带 --host-judge 或 --local-judge 其中一个;--dry-run 除外。
rsi recall "帮我审查这段 Python 代码"
rsi knowledge add --title "项目约定" --content "本项目统一使用 snake_case 命名"
rsi recall "本项目的命名约定是什么"
rsi bootstrap --dry-run
rsi bootstrap --local-judge
rsi bootstrap --local-judge --force
# 旧版 .rsi/rsi.db 先迁移
rsi memory migrate
# 一般由 Cursor 拉起,不必手跑
rsi serveMCP 工具
工具 | 干什么 |
| 任务开始前召回:禁止项置顶 + 约定/文档/gene/teaching |
| 采纳反馈;rejected+评语会提炼为禁止项 |
| 阅读包 pack_list / pack_open / pack_done,teach_catch / teach_record,Session 审计 |
| 记忆管理与审批;蒸馏条须带 |
| 短知识冲突查询与裁决 |
| 记忆索引 / 打开 / 重建 / 关系图 |
| Harness 改进提案与配置快照 |
| 记忆使用统计 |
RSI 无 OAuth。蒸馏中途不要调 mcp_auth、不要给用户弹授权。
配置
配置链:包内 default.yaml → ~/.rsi/config.yaml → 项目根 rsi-boot.yaml → 请求参数。
RSI_HOME 只覆盖用户配置目录(默认 ~/.rsi)。项目记忆、画像、归档都在工作目录 .rsi/,打开另一个仓库就是另一份,不会串。主链路零配置可用;可选增强(向量检索、LLM 提取等,需自配模型 Key)见 ~/.rsi/config.yaml 示例。
项目 rsi-boot.yaml 禁止明文密钥,发现即拒绝启动。日志落库前脱敏;注入宿主上下文前过审批闸门与黑名单;超 90 天日志自动归档到 .rsi/archive/YYYYMM.jsonl。
开发
pip install -e ".[dev]"
python -m pytest
python scripts/export_schemas.pyThis server cannot be deployed
Maintenance
Related MCP Connectors
Local-first, governed memory and session continuity for AI coding agents. No cloud, no telemetry.
Path-scoped team memories, rules and skills for Claude Code, Cursor, Codex and other MCP clients.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Adaptive plan/build/review cycles for AI coding assistants, persisted across sessions.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides 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.2MIT
- AlicenseNot gradedqualityBmaintenanceProvides a file-based, git-friendly memory store for coding agents to persist and recall project-specific lessons, bugs, and conventions via JSON files in the repository.MIT
- AlicenseNot gradedqualityCmaintenancePersistent memory for AI coding tools, enabling AI assistants to store and recall project decisions, conventions, and context across sessions.33 npmMIT
- AlicenseNot gradedqualityCmaintenanceProvides coding agents with durable, cross-session lessons-learned memory, enforcing that success or failure verdicts can only come from human approval, human correction, or objective metrics—never from the agent itself.Apache 2.0