Claude Memory

•

Provide curated, persistent semantic memory for Claude Code using PostgreSQL, pgvector, and local embeddings.

Claude Memory is a shared, semantic memory system engineered specifically for Claude Code to store development patterns, architectural decisions, and repository conventions. Backed by PostgreSQL with pgvector and local Ollama embeddings, it serves knowledge back to Claude through standard MCP tools and a sub-second UserPromptSubmit hook that injects relevant memory cards into active sessions. Rather than maintaining an unorganized append-only log, the tool enforces a curated lifecycle with candidate review, namespace isolation, cosine-similarity deduplication, git-based staleness tracking, and automated PR ingestion from GitHub, GitLab, and Azure DevOps.

主要功能

01Automated PR ingestion pipeline to capture decisions and patterns from merged pull requests
02Prompt hook that injects relevant memory cards within an 800 ms budget during Claude sessions
03Git-backed staleness detection alerting users when code referenced in a memory has changed
04Curated knowledge lifecycle featuring candidate stages, similarity-based deduplication, and expiration
05Hybrid search combining pgvector embeddings and PostgreSQL full-text search via Reciprocal Rank Fusion
060 GitHub stars

使用案例

01Sharing curated codebase knowledge and gotchas across team members via a shared PostgreSQL instance
02Ingesting merged pull requests to automatically build an active database of repository insights
03Retaining architectural decisions and conventions across multiple Claude Code coding sessions