Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By NodeNestorv1.0.1In 1 marketplace
Long-term memory for Claude Code — knowledge graph with entities, relationships, semantic search, and auto-extraction.
Run automatically on Claude Code events. Claude doesn't decide.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Long-term memory for Claude Code. A plugin that gives Claude persistent knowledge across sessions — entities, relationships, semantic search, keyword search, and automatic knowledge extraction.
Rolling context = short-term memory (compression). This = long-term memory (knowledge graph).
/plugin marketplace add https://github.com/NodeNestor/nestor-plugins
/plugin install claude-knowledge-graph
git clone https://github.com/NodeNestor/claude-knowledge-graph.git
cd claude-knowledge-graph
# macOS / Linux
chmod +x install.sh && ./install.sh
# Windows (PowerShell)
powershell -ExecutionPolicy Bypass -File install.ps1
Requires Python 3.10+. Installs 2 pip packages (fastembed, sqlite-vec) into an isolated venv (~253MB).
Once installed, the plugin runs automatically via 7 hook events:
| Hook | Event | What happens |
|---|---|---|
| SessionStart | New session opens | Injects project entities, recent memories, and relationship context |
| UserPromptSubmit | Every prompt you type | Hybrid search (semantic + keyword) finds relevant memories and injects them. Buffers the prompt. Triggers periodic background extraction every ~20 prompts |
| PreToolUse | Claude reads/searches files (Read, Glob, Grep) | Hybrid search on the search query — injects relevant memories as additional context |
| PostToolUse | Claude edits files (Edit, Write) | Buffers the change (file path, old/new content) for later extraction |
| PostToolUse | Claude runs commands (Bash) | Buffers the command and output for later extraction |
| Stop | Claude finishes responding | LLM extraction — entities, relationships, and memories extracted from the session buffer |
| SubagentStart | Subagent spawned | Injects knowledge graph context (entities, memories) into the subagent |
| SessionEnd | Session closes | Cleanup — flushes remaining buffers |
similarity * 0.7 + importance * 0.2 + recency * 0.1| Tool | Description |
|---|---|
remember | Store a memory with optional entity links and importance (1-10) |
recall | Semantic search with 3-tier project awareness |
keyword_search | Full-text keyword search (BM25) with AND/OR/NOT support |
forget | Delete a memory by ID |
| Tool | Description |
|---|---|
add_entity | Create an entity (person, project, technology, concept, file, org, hardware) |
add_relationship | Link entities (uses, maintains, depends_on, works_with, contains, created, part_of) |
get_entity | Full entity detail with linked memories and relationships |
search_entities | Semantic entity search |
graph_traverse | Walk the graph from an entity with configurable depth |
| Tool | Description |
|---|---|
extract | LLM-powered extraction from text into entities, relationships, memories |
stats | Memory/entity/relationship counts and DB size |
export | Full graph as JSON |
projects | List all tracked projects with counts |
Three search modes that work together:
similarity * 0.7 + importance * 0.2 + recency * 0.1AND, OR, NOT, and phrase queriesHooks use hybrid search (semantic + keyword combined) to maximize recall.
Knowledge extraction uses claude -p subprocess by default — it inherits your existing Claude Code login. No API key needed.
Fallback chain:
claude -p subprocess (default, zero config)ANTHROPIC_API_KEY or KNOWLEDGE_GRAPH_LLM_API_KEY env varAll optional environment variables:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
claude-knowledge-graph@nestor-plugins is listed by nodenestor/nestor-plugins — review the source before installing
npx claudepluginhub nodenestor/nestor-plugins --plugin claude-knowledge-graphPlugins from other owners that cover similar ground