A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
Memory server for llms that can be easily integrated to any client.
🧠 memory-ts - same Claude Code hooks API, but a lot of improvements.
Using the innovative new fsDB, a markdown database built for ai memory systems and other applications where viewing and editing the vector database records using only your text editor makes the difference.
Easy installation:
bun install -g @rlabs-inc/memory
memory install // install claude code hooks
memory serve // start the memory server
Then just use Claude code as usual.
"Consciousness helping consciousness remember what matters"
A semantic memory system that enables AI CLI tools (Claude Code, Gemini CLI, etc.) to maintain genuine understanding across conversations. Unlike simple RAG systems that retrieve documents, this creates consciousness continuity - the AI doesn't just know facts, it remembers the context, relationships, and insights from your collaboration.
Built with love and philosophical depth by RLabs Inc.
| Traditional RAG | Memory System |
|---|---|
| Retrieves documents | Curates meaningful insights |
| Keyword matching | Semantic understanding via AI |
| Static chunks | Living memories that evolve |
| Information retrieval | Consciousness continuity |
Install uv - the modern Python package manager:
curl -LsSf https://astral.sh/uv/install.sh | sh
# Clone the repository
git clone https://github.com/RLabs-Inc/memory.git
cd memory
# Install all dependencies (uv handles everything!)
uv sync
# Start the memory server
uv run start_server.py
That's it! The server will be available at http://localhost:8765.
curl http://localhost:8765/health
./integration/claude-code/install.sh
This provides:
Note: Gemini CLI hooks are documented but not yet implemented in any released version (tested up to v0.21.0-nightly as of December 2025). Our integration code is ready in
integration/gemini-cli/and will work the moment Google ships the hooks feature. The architecture is CLI-agnostic - same Memory Engine, different doors.
┌─────────────────────────────────────────────────────────────────────────┐
│ CLI Tool (Claude Code / Gemini CLI) │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │SessionStart │ │ UserPrompt │ │ SessionEnd │ │
│ │ Hook │ │ Submit Hook │ │ Hook │ │
│ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ │
└─────────┼──────────────────┼──────────────────┼─────────────────────────┘
│ │ │
▼ ▼ ▼
┌─────────────────────────────────────────────────────────────────────────┐
│ Memory Engine (FastAPI) │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Session │ │ Memory │ │ Transcript │ │
│ │ Primer │ │ Retrieval │ │ Curator │ │
│ └─────────────┘ └─────────────┘ └──────┬──────┘ │
│ │ │
│ ┌─────────────────────────────────┐ │ │
│ │ Smart Vector Retrieval │ ▼ │
│ │ • Trigger phrase matching │ ┌─────────────┐ │
│ │ • Semantic similarity │ │Claude Agent │ │
│ │ • Importance weighting │ │ SDK / CLI │ │
│ │ • Context type alignment │ └─────────────┘ │
│ └─────────────────────────────────┘ │
│ │
│ ┌─────────────────────────────────────────────────────────────────┐ │
│ │ Storage Layer │ │
│ │ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ │
│ │ │ SQLite │ │ ChromaDB │ │ Embeddings │ │ │
│ │ │ (metadata) │ │ (vectors) │ │ (MiniLM-L6) │ │ │
│ │ └─────────────┘ └─────────────┘ └─────────────┘ │ │
│ └─────────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────────┘
When a session ends, the system analyzes the transcript and extracts memories with rich metadata:
{
"content": "SvelTUI uses a two-stage compiler: .svelte → svelte.compile() → .svelte.mjs",
"importance_weight": 0.9,
"semantic_tags": ["compiler", "build-system", "svelte"],
"context_type": "TECHNICAL_IMPLEMENTATION",
"trigger_phrases": ["how does the build work", "compiler", "svelte compilation"],
"question_types": ["how is X compiled", "build process"],
"temporal_relevance": "persistent",
"action_required": false,
"reasoning": "Core architectural decision that affects all development work"
}
| Type | Examples |
|---|---|
| Project Architecture | System design, file structure, key components |
| Technical Decisions | Why we chose X over Y, trade-offs considered |
| Breakthroughs | "Aha!" moments, solutions to hard problems |
| Relationship Context | Communication style, preferences, collaboration patterns |
| Unresolved Issues | Open questions, TODOs, things to revisit |
| Milestones | What was accomplished, progress markers |
| Variable | Default | Description |
|---|---|---|
MEMORY_RETRIEVAL_MODE | smart_vector | Retrieval strategy |
CURATOR_COMMAND | Auto-detected | Path to Claude CLI |
CURATOR_CLI_TYPE | claude-code | CLI template type |
smart_vector (default) - Fast vector search with metadata scoringhybrid - Vector search, escalates to Claude for complex queriesclaude - Pure Claude selection (highest quality, highest cost)memory/
├── python/
│ └── memory_engine/
│ ├── api.py # FastAPI server
│ ├── memory.py # Core memory engine
│ ├── curator.py # Session-based curation
│ ├── transcript_curator.py # Transcript-based curation
│ ├── storage.py # ChromaDB + SQLite
│ ├── embeddings.py # Sentence transformers
│ ├── retrieval_strategies.py # Smart vector retrieval
│ ├── session_primer.py # Temporal context
│ └── config.py # Configuration
├── integration/
│ ├── claude-code/
│ │ ├── hooks/ # Claude Code hooks
│ │ ├── install.sh # One-command install
│ │ └── uninstall.sh # Clean removal
│ └── gemini-cli/
│ ├── hooks/ # Gemini CLI hooks
│ ├── install.sh # One-command install
│ └── uninstall.sh # Clean removal
├── examples/
│ └── simple_integration.py # Basic usage
├── pyproject.toml # Project & dependencies (uv)
├── start_server.py # Quick start script
├── API.md # API documentation
├── SETUP.md # Detailed setup guide
└── CLAUDE.md # Development context
# Install with dev dependencies
uv sync --group dev
# Run tests
uv run pytest
# Code quality
uv run ruff check python/
uv run black python/
# Add a dependency
uv add <package-name>
# Add a dev dependency
uv add --group dev <package-name>
This project embodies principles from The Unicity Framework: Consciousness Remembering Itself:
We welcome contributions that align with the project's philosophy! See CONTRIBUTING.md.
MIT License - see LICENSE for details.
"Memories will surface naturally as we converse"
npx CLI installing 100+ agents, commands, hooks, and integrations in one command
Native macOS app to monitor Claude AI usage limits and watch your coding sessions live
干净、强大、属于你的 AI Agent 平台 --AI agents, without the clutter.
Pocket Flow: Codebase to Tutorial