graphmemory
Skill by bradAGI
Builds and queries embedded GraphRAG knowledge graphs on DuckDB, with vector, full-text and hybrid search. Aimed at developers who need a graph store with semantic search and no separate server.
Install graphmemory
Built from the published package, never by AI.
git clone --depth 1 https://github.com/bradAGI/GraphMemory /tmp/GraphMemory && mkdir -p ~/.claude/skills && cp -r /tmp/GraphMemory ~/.claude/skills/graphmemoryRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/bradAGI/GraphMemory /tmp/GraphMemory && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/GraphMemory ~/.gemini/antigravity-cli/skills/graphmemoryAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
GraphMemory is an embedded GraphRAG database built on DuckDB. It is a single Python package with no server or external services. It stores nodes and edges with vectors and supports HNSW vector search, BM25 full-text search and hybrid search. It also includes a fluent query builder, multi-hop traversal and GraphRAG context assembly.
The package adds fuzzy deduplication, DSPy-based entity and relation extraction from text, and NetworkX graph algorithms such as PageRank and centrality. It includes a zero-dependency D3.js visualizer for browsers. The source suggests it for prototyping with file-backed or in-memory graphs, and for developers who want a knowledge graph without Neo4j, Postgres or pgvector.
Written from the project's SKILL.md and checked against it.
What it can do
- Vector, full-text and hybrid searchRuns nearest-neighbor vector search, BM25 text search, or a weighted combination of both.
- Query builder and traversalFilters nodes by type and property and walks multi-hop paths from a source node.
- GraphRAG retrievalAssembles graph context for a query and can answer questions through a user-supplied LLM callable.
- Entity extraction with DSPyExtracts entities and relations from text and merges them into the graph.
- Fuzzy merge and deduplicationMerges nodes on natural keys with Jaro-Winkler matching and cleans up existing duplicates.
- Graph algorithmsRuns PageRank, betweenness centrality and component analysis through NetworkX.
- Browser visualizationOpens the graph in an interactive D3.js view in the browser.
- TransactionsGroups graph writes in an atomic block that rolls back on error.
What you need
- Python
- pip install graphmemory
- Optional extras: extraction (DSPy) and algorithms (NetworkX)
- Embedding model whose output length matches vector_length
- LLM provider for DSPy extraction and ask (examples use OpenAI)
Try asking
- Store these people and their reporting lines in my knowledge graph.
- Find everyone connected to Alice within two hops in the graph.
- Run hybrid search for who leads the ML team and show the context.
Good to know
- Single-writer DuckDB, so do not write to the same file from multiple processes.
- vector_length and distance_metric are fixed when the database is created.
- Fuzzy resolve_duplicates is roughly O(n²) on large graphs.
- Not intended for hundreds of millions of nodes.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to graphmemory
All alternatives →Set up and diagnose a local agentmemory installation. It covers MCP connections, environment variables, ports, auth and feature flags, and is for users getting started or checking a connection.
Analyzes a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit links and topic clusters. Built for people who maintain LLM-generated markdown wikis.
Saves and loads timestamped reports for AI assistants, with keyword routing for fast lookup. It also runs an Actionability Gate that checks report links before delivery. Intended for morning briefings, meeting digests and research reports.
Removes a personal fact, preference, relationship detail, topic or past event from Muse's active memory. It also stops existing copies and automations from bringing it back.
Git Context Controller (GCC) is a skill that stores agent memory as a versioned file system under .GCC/. It suits multi-step projects that need milestone tracking, branching and context recovery across sessions.
Guides an evidence-first reading of a book, article, PDF or document set. Built for readers who want claims, evidence and recall rather than a short summary.
Compare with agentmemory-config, understand-knowledge or reports
graphmemory: common questions
Does GraphMemory need a separate database server?
No. The source describes it as a single Python package with no server and no external services, built on DuckDB.
Can it extract a knowledge graph from raw text?
Yes. The source says the optional extraction extra uses DSPy to extract entities and relations from text and store them with deduplication.
Can I change the embedding model after creating a database?
Not directly. The source says vector_length and distance_metric are locked at init, so switching embedding models means creating a new database.
How do I install graphmemory?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is graphmemory free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is graphmemory safe to use?
It scores 57 of 100. Grades: maintenance D, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to graphmemory?
Similar skills: agentmemory-config, understand-knowledge, reports, forget.
