By oliverhees
Temporal knowledge graph memory — time-aware context persistence powered by Graphiti + Kuzu
Matches all tools
Hooks run on every tool call, not just specific ones
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Temporal Knowledge Graph Memory for Claude Code
graphiti-mem gives Claude Code a persistent, growing brain. Unlike simple RAG-based memory, it uses Graphiti to build a temporal knowledge graph — tracking entities, relationships, and how facts change over time.
| Feature | claude-mem (RAG) | graphiti-mem (Knowledge Graph) |
|---|---|---|
| Storage | SQLite + ChromaDB | Kuzu (embedded graph DB) |
| Memory type | Flat text vectors | Entities + relationships + timestamps |
| Context loss on compact | ✗ Lost | ✓ Saved as episode |
| Contradiction handling | ✗ Duplicate facts | ✓ Auto-invalidated |
| "What changed?" | ✗ No | ✓ Temporal tracking |
| Server required | Worker (Bun) | Worker (Python/FastAPI) |
| External DB server | ✗ None | ✓ None (Kuzu embedded) |
Tool Output → PostToolUse Hook → Python Worker (port 37778)
→ Graphiti.add_episode()
→ Kuzu Graph DB (NLP entity extraction)
Session Compact → SessionStart(compact) Hook → /compact endpoint
→ Full context saved as episode → Zero knowledge loss
Session Start → SessionStart Hook → /search + /entities + /timeline
→ Relevant context injected as system-reminder
Session End → Stop Hook → /learn endpoint
→ NLP extraction of learnings, decisions, preferences
Every interaction makes the graph richer. Graphiti's LLM pipeline automatically extracts:
ANTHROPIC_API_KEY — for NLP entity/relationship extraction (Claude Haiku)VOYAGE_API_KEY — for semantic embeddings (Voyage AI — Anthropic's recommended embedding partner, 50M tokens/month free)Via Claude Code Plugin Marketplace:
/plugin marketplace add oliverhees/graphiti-mem
/plugin install graphiti-mem
One-line installer:
curl -sSf https://graphiti-mem.dev/install.sh | bash
graphiti-mem/
├── .claude-plugin/
│ ├── plugin.json # Plugin manifest
│ └── marketplace.json # Marketplace registration
├── plugin/
│ ├── hooks/hooks.json # 6 lifecycle hooks
│ ├── scripts/
│ │ ├── worker-service.py # FastAPI + Graphiti + Kuzu (7 endpoints)
│ │ ├── worker-runner.js # Hook bridge (Node.js → Python worker)
│ │ ├── smart-install.js # Dependency check on setup
│ │ └── mcp-server.js # 4 MCP tools for on-demand queries
│ └── skills/
│ └── mem-search.md # Memory search skill
└── installer/ # Interactive CLI installer
| Hook | Trigger | Action |
|---|---|---|
| Setup | Plugin install | Check/install dependencies |
| SessionStart (startup/clear) | New session | Start worker, inject context |
| SessionStart (compact) | After compaction | Save compact context, inject context |
| UserPromptSubmit | Every prompt | Ensure worker is alive |
| PostToolUse | After every tool | Capture observation as episode |
| Stop | Session end | Full NLP learning extraction |
| SessionEnd | Final cleanup | Log session completion |
Available directly in Claude:
search_memory — semantic + keyword search across all factsget_entities — list entities for current projectget_relationships — show entity relationshipsget_timeline — chronological activity viewAll data is stored locally in ~/.graphiti-mem/:
~/.graphiti-mem/
├── venv/ # Python virtual environment
├── projects/
│ ├── a1b2c3d4/ # Project by path hash
│ │ └── [Kuzu DB files]
│ └── e5f6g7h8/
├── worker.pid # Running worker PID
└── worker.log # Worker logs
Each project gets an isolated namespace — memories never cross project boundaries.
MIT
npx claudepluginhub oliverhees/graphiti-mem --plugin graphiti-memComplete AI agency with 38 specialized agents for autonomous SaaS development. Includes C-Level, Design, Development, QA, DevOps, Security, Tech Specialists, and Analytics teams.
Ultra-compressed communication mode. Cuts 65% of output tokens (measured) while keeping full technical accuracy by speaking like a caveman.
Memory compression system for Claude Code - persist context across sessions
Multi-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
45% cost reduction measured. Cache expiry prevention, SubTask auto-delegation, zero-cost context restoration, real-time cost dashboard. The only Claude Code plugin built from CC source analysis.