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
Metadata
Release files for memrecall 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| memrecall-1.0.0.tar.gz | 168.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| memrecall-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 381.9 kB
Release files / memrecall-1.0.0.tar.gz
| Download URL | memrecall-1.0.0.tar.gz |
|---|---|
| Size | 168.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
579de8f821f8e385bd07ce511c0fead62302117f891dfe440f16daae5c884d29
|
|
BLAKE2b-256 checksum How to use checksums |
a45a2b479b0346acd3ab7995f029de6831bd46b56bf429d7611481a206c50edb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / memrecall-1.0.0-py3-none-any.whl
| Download URL | memrecall-1.0.0-py3-none-any.whl |
|---|---|
| Size | 213.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c08fbb02c7839e3717ff004304d8108f385b4afa0d7e964eaea9fd23ef28c2cb
|
|
BLAKE2b-256 checksum How to use checksums |
647fc4001ed1871502d4118ab21d0ede6fc4903fb0b68f1f1368ff75cb353580
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|