MR

majiayu000/remem

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

34 stars 4 forks 质量 70 趋势 32MIT

Claude Code 和 Codex CLI 的本地优先持久内存——Rust CLI、hooks、MCP 服务器、SQLite/SQLCipher、可审计调用,用于长时间编程工作。

概览

别每次新的编码代理会议都重新解释你的项目。 Remem 自动捕获、提炼、搜索并注入工程内存,跨 Claude Code 和 OpenAI Codex CLI 会话。决策、漏洞修复理由、项目模式和偏好通过钩子、MCP、CLI 和本地托管 REST API 保持可用。 新的 Claude Code 会话会调用之前的根因、提交和打开的 TODO,并带有记忆引用,无需重新解释。 - 自动会话捕获和后台LLM蒸馏。- 通过一个本地存储库实现跨Claude代码和Codex的项目范围调回。- 可搜索决策、漏洞修复、架构说明、偏好设置和原始会话证据。- 源代码归因、陈旧标签、抑制、审查队列和注入审计。- 默认支持SQLite加密,适用于新安装。- MCP、CLI和认证本地主机REST访问,均可通过一个Rust运行时访问。 Remem 优先考虑内存质量。

概述(AI 翻译)

别每次新的编码代理会议都重新解释你的项目。

语言:英语 |简体中文

remem 自动捕获、蒸馏、搜索并注入工程 内存跨越 Claude Code 和 OpenAI Codex CLI 会话。决策, 修复错误的理由、项目模式和偏好设置依然可用 钩子、MCP、CLI以及本地主机REST API。

新的Claude代码会话会调用之前的根因、提交和打开 TODO,记忆引用,不重复解释。

记忆给你的

  • 自动会话捕获和后台LLM蒸馏。
  • 通过一个本地存储库实现跨 Claude Code 和 Codex 的项目范围调用。
  • 可搜索决策、漏洞修复、架构说明、偏好设置和原始内容 会谈证据。
  • 来源归属、陈旧标签、抑制、审查队列,以及 注入审计。
  • 新安装默认使用 SQLCipher 加密的 SQLite。
  • MCP、CLI 和认证本地主机 REST 访问,均来自一个 Rust 运行时。

REMEM优先考虑内存质量。自动采集是主要路径; 当需要记录决策时,手动呼叫save_memory补充 立刻。

五分钟内安装

自制

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

remem: Local-first memory for Claude Code and OpenAI Codex

Stop re-explaining your project every new coding-agent session.

Language: English | 简体中文

remem automatically captures, distills, searches, and injects engineering memory across Claude Code and OpenAI Codex CLI sessions. Decisions, bug-fix rationale, project patterns, and preferences stay available through hooks, MCP, CLI, and a localhost REST API.

A new Claude Code session recalls the earlier root cause, commit, and open TODO with memory citations and no re-explaining.

What remem gives you

  • Automatic session capture and background LLM distillation.
  • Project-scoped recall across Claude Code and Codex using one local store.
  • Searchable decisions, bug fixes, architecture notes, preferences, and raw session evidence.
  • Source attribution, staleness labels, suppression, review queues, and injection audits.
  • SQLite with SQLCipher encryption by default for fresh installs.
  • MCP, CLI, and authenticated localhost REST access from one Rust runtime.

remem prioritizes memory quality. Automatic capture is the primary path; manual save_memory calls supplement it when a decision needs to be recorded immediately.

Install in five minutes

Homebrew

brew install majiayu000/tap/remem
"$(brew --prefix remem)/bin/remem" install --target codex

Use --target claude for Claude Code. --target all configures every known host, including Cursor where its v1 renderer is supported.

Standalone installer

curl -fsSL https://raw.githubusercontent.com/majiayu000/remem/main/install.sh | env REMEM_NO_CONFIG=1 sh
~/.local/bin/remem install --target codex

npm or Cargo

npm install -g @remem-ai/remem
# or
cargo install remem-ai --bin remem

remem install --target codex

Codex installation, detection, doctor, uninstall, transcript scanning and default native-memory import all honor CODEX_HOME; the default is ~/.codex. Set it to an absolute directory before running these commands to select another Codex profile. Empty or relative overrides fail visibly before installation writes. Unrelated profile files stay untouched.

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →