Rlm Infinite Memory For Claude Code
@EncrEor
About Rlm Infinite Memory For Claude Code
Recursive Language Models for Claude Code - Infinite memory solution inspired by MIT CSAIL paper
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"rlm-server": {
"command": "python3",
"args": [
"/path/to/rlm-claude/mcp_server/server.py"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Rlm?
Rlm is an MCP server that gives Claude Code persistent memory across sessions. It solves the problem of context window limits and the loss of conversation history after /compact, allowing users to save and recall decisions, facts, and conversation segments. It is designed for Claude Code users who need long-term memory.
How to use Rlm?
Install Rlm via pip, uv, Git, or Docker (requires Python 3.10+ and Claude Code CLI). After installation, Rlm is automatically configured with zero additional setup. Use its 14 tools, such as rlm_remember() and rlm_recall(), to save and retrieve insights; rlm_chunk() and rlm_peek() for conversation history; and rlm_search() for hybrid search. Hooks auto-save before context loss.
Key features of Rlm
- 14 tools for memory and conversation management
- Auto-save before
/compactor auto-compact (PreCompact hook) - Two memory systems: Insights (key decisions) and Chunks (full conversation)
- Multi-project organization with auto-detection from git/working directory
- Smart retention with 3-zone lifecycle (Active, Archive, Purge)
- Hybrid semantic search (BM25 + cosine similarity, optional)
- Sub-agent skills for chunk analysis (
/rlm-analyze,/rlm-parallel)
Use cases of Rlm
- Remembering client preferences and project decisions across sessions
- Recalling past architectural choices and findings
- Organizing conversation history by project or domain
- Searching for specific content with regex, fuzzy, or semantic queries
- Automatically saving context before a session is compacted
FAQ from Rlm
How does Rlm differ from Letta/MemGPT?
Rlm works natively with Claude Code via MCP, while Letta/MemGPT requires its own runtime. Rlm offers auto-save before compact, hybrid search (regex + BM25 + semantic), fuzzy search, multi-project support, smart retention, and sub-agent analysis—all with zero-config installation.
What are the installation requirements?
Rlm requires Python 3.10+ and the Claude Code CLI. It can be installed via pip install mcp-rlm-server[all], uv, Git, or Docker.
Where does Rlm store data?
Data is stored in ~/.claude/rlm/ by default. This includes session memory (insights), chunk index, conversation chunks, compressed archives, and optional semantic embeddings.
Does Rlm automatically save conversation history?
Yes. Rlm hooks into Claude Code’s /compact event (PreCompact hook) to automatically save a snapshot of the current conversation before context is wiped. No manual action is needed.
What search capabilities does Rlm offer?
Rlm provides regex search (rlm_grep), BM25 keyword search (rlm_search), and optional hybrid semantic search (BM25 + cosine similarity) using Model2Vec (fast, default) or FastEmbed (more accurate). Fuzzy matching is available for typo-tolerant searches.
More AI & Agents MCP servers
Just Prompt - A lightweight MCP server for LLM providers
dislerjust-prompt is an MCP server that provides a unified interface to top LLM providers (OpenAI, Anthropic, Google Gemini, Groq, DeepSeek, and Ollama)
欢迎来到 智言平台
Shy2593666979AgentChat 是一个基于 LLM 的智能体交流平台,内置默认 Agent 并支持用户自定义 Agent。通过多轮对话和任务协作,Agent 可以理解并协助完成复杂任务。项目集成 LangChain、Function Call、MCP 协议、RAG、Memory、HITL、Skill、Milvus 和 ElasticSearch 等技术,实现高效的知识检索与工具调用,使用 FastAPI 构建高性能后端服务。
🔎 GPT Researcher
assafelovicAn autonomous agent that conducts deep research on any data using any LLM providers
Model Context Protocol for Unreal Engine
chongdashuEnable AI assistant clients like Cursor, Windsurf and Claude Desktop to control Unreal Engine through natural language using the Model Context Protocol (MCP).
Solon Ai
opensolonJava AI application development framework (supports LLM-tool,skill; RAG; MCP; Agent-ReAct,Team-Agent). Compatible with java8 ~ java25. It can also be embedded in SpringBoot, jFinal, Vert.x, Quarkus, and other frameworks.
Comments