Give Claude persistent memory across conversations by indexing and searching your session summaries.
git clone <this-repo>
cd claude-code-vector-memory
# Run setup
./setup.sh # Linux/macOS
setup.bat # WindowsThe setup automatically:
✅ Creates Python environment
✅ Installs dependencies
✅ Sets up Claude Code integration
✅ Creates global search command
✅ Configures everything for your OS
# Search your memories
./search.sh "your query" # Linux/macOS
search.bat "your query" # Windows
# From anywhere (after setup)
claude-memory-search "your query"
# In Claude Code
/system:semantic-memory-search your query- Place summary files in
claude_summaries/ - Run:
python reindex.py
- Semantic Search: Uses sentence transformers to find conceptually similar past sessions
- Hybrid Scoring: Combines semantic similarity (70%), recency (20%), and complexity (10%)
- Rich Metadata: Extracts titles, dates, technologies, file paths, and more
- ChromaDB Backend: Fast vector similarity search with persistent storage
- Beautiful CLI: Rich terminal output with tables and formatted results
- Cross-Platform: Works on Linux, macOS, and Windows
- Claude Code Integration: Automatic memory search before every task
- Index: Scans your Claude summaries and creates semantic embeddings
- Search: Finds similar past sessions using vector similarity
- Integrate: Claude automatically searches memories before each task
- Learn: Builds on past solutions and approaches
claude-code-vector-memory/
├── setup.sh/setup.bat # Platform-specific setup scripts
├── search.sh/search.bat # Platform-specific search scripts
├── reindex.py # Reindex summaries
├── scripts/ # Core Python scripts
│ ├── index_summaries.py
│ ├── memory_search.py
│ └── health_check.py
└── claude-integration/ # Claude Code integration files
- Python 3.8+
- Claude Code
- Your Claude session summaries in
~/.claude/compacted-summaries/
- Permission denied? Run:
chmod +x *.sh(Linux/macOS) - Command not found? Restart your shell after setup
- No results? Make sure you've added summaries and run
python reindex.py
For more help, see docs/TROUBLESHOOTING.md
See CONTRIBUTING.md for development setup and guidelines.
MIT License - see LICENSE file for details.