Semantic memory system for Claude Code sessions
Project description
memrecall
Semantic memory system for Claude Code sessions. Captures learnings, stores them with vector embeddings, and provides retrieval via semantic similarity search.
Features
- Automatic Memory Capture: Hooks capture learnings from coding sessions
- Semantic Search: Find relevant past experiences using natural language
- Project Summaries: AI-generated summaries injected into new sessions
- Conflict Detection: Identifies contradictory or outdated memories
- Memory Consolidation: Merges related memories to reduce redundancy
Quick Start
Installation
# Install the package
pip install memrecall
# Initialize for all projects (global)
memrecall init --global
# Or initialize for current project only
memrecall init --project
Interactive Setup
memrecall init
This will prompt you to choose between:
- Global - Active for ALL projects (~/.claude/)
- Project - Active only for THIS project (./.claude/)
Basic Usage
# Search your memories
memrecall query "authentication flow"
# Add a new memory
memrecall add --type bugfix --title "Fixed timezone" --fact "Use make_naive=True"
# Quick note (auto-classifies)
memrecall note "Always use utcnow() for storage"
# View project summary
memrecall summary
# List known gotchas
memrecall gotchas
# Check server health
memrecall health
Installation Modes
| Mode | Hooks Location | Data Location | Use Case |
|---|---|---|---|
| Global | ~/.claude/hooks/memrecall/ |
~/.memrecall/ |
Single user, all projects |
| Project | ./.claude/hooks/memrecall/ |
./.memrecall/ |
Per-project isolation |
Commands
| Command | Description |
|---|---|
init |
Set up hooks and skills |
uninstall |
Remove hooks (preserves data by default) |
server |
Start the memrecall server |
query <text> |
Semantic search |
add |
Add a memory with type, title, fact |
note <text> |
Quick capture with auto-classification |
resolve <desc> |
Mark a priority as completed |
files <path> |
Find memories by file |
summary |
View project summary |
summary-generate |
Generate/regenerate summary |
recent |
Show recent memories |
gotchas |
List known pitfalls |
stats |
Project statistics |
projects |
List all projects |
health |
Server health check |
Memory Types
| Type | Description |
|---|---|
bugfix |
Bug fixes and solutions |
feature |
New functionality |
discovery |
How things work |
decision |
Architecture choices |
refactor |
Code restructuring |
optimization |
Performance improvements |
gotcha |
Pitfalls to avoid |
resolution |
Completed priorities |
Server
The memrecall server runs locally and provides:
- REST API for memory operations
- Web UI for browsing memories
- Background tasks for consolidation
# Start server manually
memrecall server
# With custom port
memrecall server --port 9000
# Development mode with auto-reload
memrecall server --reload
The server starts automatically when hooks fire or CLI commands run.
Architecture
~/.memrecall/
├── projects/
│ └── {encoded-project-path}/
│ ├── vector_db/ # LanceDB storage
│ ├── summary.json # Current summary
│ └── sessions/ # Session logs
├── config.json # Server config
└── .memrecall_mode # Installation marker
Uninstalling
# Remove hooks, keep your data
memrecall uninstall --global
# Remove everything including memories
memrecall uninstall --global --remove-data
Development
# Install in development mode
pip install -e ".[dev]"
# Run tests
pytest
# With GPU support
pip install -e ".[full]"
Requirements
- Python 3.10+
- Claude Code CLI (for hooks)
- ~200MB disk space (FastEmbed model)
Windows
On Windows, you need the Visual C++ Redistributable for the embedding model to work:
Download and install: https://aka.ms/vs/17/release/vc_redist.x64.exe
This is required because the onnxruntime library (used for embeddings) depends on the Visual C++ Runtime.
License
MIT License - see LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file memrecall-1.0.0.tar.gz.
File metadata
- Download URL: memrecall-1.0.0.tar.gz
- Upload date:
- Size: 168.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
579de8f821f8e385bd07ce511c0fead62302117f891dfe440f16daae5c884d29
|
|
| MD5 |
b839f843906a84cd566929d42353ead0
|
|
| BLAKE2b-256 |
a45a2b479b0346acd3ab7995f029de6831bd46b56bf429d7611481a206c50edb
|
File details
Details for the file memrecall-1.0.0-py3-none-any.whl.
File metadata
- Download URL: memrecall-1.0.0-py3-none-any.whl
- Upload date:
- Size: 213.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c08fbb02c7839e3717ff004304d8108f385b4afa0d7e964eaea9fd23ef28c2cb
|
|
| MD5 |
7bf4a63b8954274976503e1ea89f39ce
|
|
| BLAKE2b-256 |
647fc4001ed1871502d4118ab21d0ede6fc4903fb0b68f1f1368ff75cb353580
|