Granum
Manages persistent semantic memory for AI agents like Claude Code using a local vector and graph database.
Granum provides a persistent semantic memory for Claude Code, replacing traditional context-window-based memory with a robust local vector and graph database built on Kuzu. It allows Claude to save decisions, preferences, constraints, and file states as typed chunks, which are then retrieved via a two-phase search involving cosine similarity and BFS graph expansion. Running invisibly in the background, Granum ensures memory survives compaction, branch switches, and new sessions, with memory isolated by project branch and stored portably as `.granum/chunks.ndjson` for easy Git integration.
主な機能
01Hybrid vector and graph database for context retrieval
02Typed knowledge chunks for structured memory management (e.g., decisions, preferences, file state)
031 GitHub stars
04Persistent semantic memory for AI agents (Claude Code)
05Automated context retrieval and injection via semantic search and graph traversal
06Git-portable memory with branch isolation and line-level diffs
ユースケース
01Providing persistent, long-term memory for AI agents working on software development.
02Maintaining project-specific context like architectural decisions, user preferences, and file states across development sessions and git branches.
03Enhancing AI understanding of the codebase by indexing spec files and tracking actual file changes.
04Auditing and visualizing the evolution of an AI's memory and project activity over time.