https://github.com/christian-byrne/claude-code-vector-memory

Semantic memory system for Claude Code - provides persistent conversation memory through vector search of session summaries

https://github.com/christian-byrne/claude-code-vector-memory

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.2%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

Semantic memory system for Claude Code - provides persistent conversation memory through vector search of session summaries

Basic Info
  • Host: GitHub
  • Owner: christian-byrne
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 92.8 KB
Statistics
  • Stars: 22
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog Contributing

README.md

Semantic Memory System for Claude Code

Give Claude persistent memory across conversations by indexing and searching your session summaries.

🚀 Quick Start

Setup (One Time)

```bash git clone cd claude-code-vector-memory

Run setup

./setup.sh # Linux/macOS setup.bat # Windows ```

The setup automatically: ✅ Creates Python environment
✅ Installs dependencies
✅ Sets up Claude Code integration
✅ Creates global search command
✅ Configures everything for your OS

Start Using

```bash

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 ```

Add Your Summaries

  1. Place summary files in claude_summaries/
  2. Run: python reindex.py

Features

  • 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

How It Works

  1. Index: Scans your Claude summaries and creates semantic embeddings
  2. Search: Finds similar past sessions using vector similarity
  3. Integrate: Claude automatically searches memories before each task
  4. Learn: Builds on past solutions and approaches

Project Structure

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

Requirements

  • Python 3.8+
  • Claude Code
  • Your Claude session summaries in ~/.claude/compacted-summaries/

Troubleshooting

  • 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

Contributing

See CONTRIBUTING.md for development setup and guidelines.

License

MIT License - see LICENSE file for details.

Owner

  • Name: Christian Byrne
  • Login: christian-byrne
  • Kind: user
  • Location: San Francisco
  • Company: Comfy-Org

GitHub Events

Total
  • Watch event: 10
  • Push event: 2
  • Create event: 1
Last Year
  • Watch event: 10
  • Push event: 2
  • Create event: 1

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 8
  • Total Committers: 1
  • Avg Commits per committer: 8.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 8
  • Committers: 1
  • Avg Commits per committer: 8.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
bymyself c****e@c****g 8
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: about 1 year ago


Dependencies

requirements.txt pypi
  • Jinja2 ==3.1.6
  • MarkupSafe ==3.0.2
  • PyPika ==0.48.9
  • PyYAML ==6.0.2
  • Pygments ==2.19.2
  • annotated-types ==0.7.0
  • anyio ==4.9.0
  • attrs ==25.3.0
  • backoff ==2.2.1
  • bcrypt ==4.3.0
  • blis ==1.3.0
  • build ==1.2.2.post1
  • cachetools ==5.5.2
  • catalogue ==2.0.10
  • certifi ==2025.6.15
  • charset-normalizer ==3.4.2
  • chromadb ==1.0.13
  • click ==8.2.1
  • cloudpathlib ==0.21.1
  • coloredlogs ==15.0.1
  • confection ==0.1.5
  • cymem ==2.0.11
  • distro ==1.9.0
  • durationpy ==0.10
  • filelock ==3.18.0
  • flatbuffers ==25.2.10
  • fsspec ==2025.5.1
  • google-auth ==2.40.3
  • googleapis-common-protos ==1.70.0
  • grpcio ==1.73.1
  • h11 ==0.16.0
  • hf-xet ==1.1.5
  • httpcore ==1.0.9
  • httptools ==0.6.4
  • httpx ==0.28.1
  • huggingface-hub ==0.33.1
  • humanfriendly ==10.0
  • idna ==3.10
  • importlib_metadata ==8.7.0
  • importlib_resources ==6.5.2
  • iniconfig ==2.1.0
  • joblib ==1.5.1
  • jsonschema ==4.24.0
  • jsonschema-specifications ==2025.4.1
  • kubernetes ==33.1.0
  • langcodes ==3.5.0
  • language_data ==1.3.0
  • marisa-trie ==1.2.1
  • markdown-it-py ==3.0.0
  • mdurl ==0.1.2
  • mmh3 ==5.1.0
  • mpmath ==1.3.0
  • murmurhash ==1.0.13
  • mypy ==1.7.1
  • networkx ==3.5
  • numpy ==2.3.1
  • nvidia-cublas-cu12 ==12.6.4.1
  • nvidia-cuda-cupti-cu12 ==12.6.80
  • nvidia-cuda-nvrtc-cu12 ==12.6.77
  • nvidia-cuda-runtime-cu12 ==12.6.77
  • nvidia-cudnn-cu12 ==9.5.1.17
  • nvidia-cufft-cu12 ==11.3.0.4
  • nvidia-cufile-cu12 ==1.11.1.6
  • nvidia-curand-cu12 ==10.3.7.77
  • nvidia-cusolver-cu12 ==11.7.1.2
  • nvidia-cusparse-cu12 ==12.5.4.2
  • nvidia-cusparselt-cu12 ==0.6.3
  • nvidia-nccl-cu12 ==2.26.2
  • nvidia-nvjitlink-cu12 ==12.6.85
  • nvidia-nvtx-cu12 ==12.6.77
  • oauthlib ==3.3.1
  • onnxruntime ==1.22.0
  • opentelemetry-api ==1.34.1
  • opentelemetry-exporter-otlp-proto-common ==1.34.1
  • opentelemetry-exporter-otlp-proto-grpc ==1.34.1
  • opentelemetry-proto ==1.34.1
  • opentelemetry-sdk ==1.34.1
  • opentelemetry-semantic-conventions ==0.55b1
  • orjson ==3.10.18
  • overrides ==7.7.0
  • packaging ==25.0
  • pillow ==11.2.1
  • pluggy ==1.6.0
  • posthog ==6.0.0
  • pre-commit ==3.6.0
  • preshed ==3.0.10
  • protobuf ==5.29.5
  • pyasn1 ==0.6.1
  • pyasn1_modules ==0.4.2
  • pybase64 ==1.4.1
  • pydantic ==2.11.7
  • pydantic_core ==2.33.2
  • pyproject_hooks ==1.2.0
  • pytest ==8.4.1
  • python-dateutil ==2.9.0.post0
  • python-dotenv ==1.1.1
  • referencing ==0.36.2
  • regex ==2024.11.6
  • requests ==2.32.4
  • requests-oauthlib ==2.0.0
  • rich ==14.0.0
  • rpds-py ==0.25.1
  • rsa ==4.9.1
  • ruff ==0.1.6
  • safetensors ==0.5.3
  • scikit-learn ==1.7.0
  • scipy ==1.16.0
  • sentence-transformers ==4.1.0
  • setuptools ==80.9.0
  • shellingham ==1.5.4
  • six ==1.17.0
  • smart-open ==7.1.0
  • sniffio ==1.3.1
  • spacy ==3.8.7
  • spacy-legacy ==3.0.12
  • spacy-loggers ==1.0.5
  • sqlite-vss ==0.1.2
  • srsly ==2.5.1
  • sympy ==1.14.0
  • tenacity ==9.1.2
  • thinc ==8.3.6
  • threadpoolctl ==3.6.0
  • tokenizers ==0.21.2
  • torch ==2.7.1
  • tqdm ==4.67.1
  • transformers ==4.53.0
  • triton ==3.3.1
  • typer ==0.16.0
  • typing-inspection ==0.4.1
  • typing_extensions ==4.14.0
  • urllib3 ==2.5.0
  • uvicorn ==0.35.0
  • uvloop ==0.21.0
  • wasabi ==1.1.3
  • watchfiles ==1.1.0
  • weasel ==0.4.1
  • websocket-client ==1.8.0
  • websockets ==15.0.1
  • wrapt ==1.17.2
  • zipp ==3.23.0