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 Andersonlimahwv1.0.0MITIn 1 marketplace
Turns documents, codebases and incident notes into a sourced knowledge graph that agents can query and share. Says it needs no network or dependencies and renders an interactive HTML explorer.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Build typed, provenance-tracked knowledge graphs from any context so one or many AI agents share durable memory instead of copying transcripts.
The agent forgets, the graph does not.
Implements the graph plane described in Karpathy: Graph Engineering Systems — extract, resolve, assemble, query, evaluate. Every claim carries a source, every merge is reversible, every answer cites edge ids.
KG="plugins/karpathy-graph/scripts/kgraph.py"
python3 "$KG" --name "Payments Incident" init --objective "trace vendors to incidents"
python3 "$KG" --name "Payments Incident" --run-id run_1 ingest @extraction.json
python3 "$KG" --name "Payments Incident" validate
python3 "$KG" --name "Payments Incident" render
open ./.karpathy-graphs/payments-incident/graph.html
No dependencies. Stdlib-only Python 3.9+, no network, no install step.
| Situation | Location |
|---|---|
| A path was given | exactly that path (--path) |
| No path given | ./.karpathy-graphs/<graph-name>/ (--name) |
.karpathy-graphs/payments-incident/
├── manifest.json name, objective, budget, counters
├── log.jsonl append-only event log — the source of truth
├── graph.json materialized nodes + edges
├── REPORT.md health, composition, invariant violations
├── graph.html interactive explorer
└── graph.mmd Mermaid diagram
A single CLI that any harness drives as a subprocess — Claude Code, Codex, OpenCode, Antigravity, Gemini, or a plain shell.
| Command | Purpose |
|---|---|
init | create a graph with an objective and budget |
ingest | apply an extracted {nodes, edges} payload in one validated write |
add-node / add-edge | precise single writes |
resolve | reversibly merge alias entities, with a recorded rationale |
query | bounded subgraph retrieval (json / triples / context) |
path | shortest provenance route — the grounding primitive |
validate | check the four write invariants; exits 1 on violation |
stats | nodes, edges, density, components, isolated nodes |
render | write REPORT.md, graph.html, graph.mmd |
retract | reverse a node or edge without rewriting history |
list | every graph under the default root |
selftest | 15-check end-to-end verification |
Full reference: references/cli.md.
graph.html is a self-contained explorer — no network, no build step. Open it
from a browser or attach it to an issue.
graph.mmd drops straight into markdown and renders on GitHub.
| Skill | Stage |
|---|---|
karpathy-graph | entry point, rules, retrieval discipline |
karpathy-graph-extract | 1 — context → typed entities and relations |
karpathy-graph-resolve | 2 — surface forms → canonical entities |
karpathy-graph-build | 3 — validated assembly with provenance |
karpathy-graph-query | 4 — bounded retrieval and claim grounding |
karpathy-graph-evaluate | 5 — quality metrics and the ratchet loop |
karpathy-graph-visualize | render for humans, explain the picture |
karpathy-graph-swarm | fan the pipeline across parallel agents |
| Agent | Role |
|---|---|
graph-builder | end-to-end build: extract → resolve → assemble → validate → render |
graph-querier | multi-hop answers and claim grounding with edge citations |
graph-orchestrator | coordinate parallel workers writing one graph |
Nodes: Entity Claim Source Artifact AgentRun Evaluation Task
Commit Metric
Edges: MENTIONS SUPPORTS CONTRADICTS DERIVED_FROM PRODUCED
EVALUATES REVISES SUPERSEDES DEPENDS_ON PARENT_OF RESOLVED_TO
Fixed by design. Domain specifics go in attrs, never in new types — a graph
whose ontology drifts per project cannot be queried by a shared skill.
| Rule | |
|---|---|
| I1 | every Claim has a Source edge, or is marked inference=true |
| I2 | every Artifact has an authoring AgentRun and a version |
| I3 | every Evaluation identifies a rubric |
| I4 | every superseded object stays addressable |
validate enforces them and exits non-zero on any violation — wire it into CI
or a ratchet loop as the gate.
Verify a claim by asking the graph for a path, not a model for an opinion:
python3 "$KG" --name "<graph>" path <vendor_x_id> <incident_y_id>
Found → cite the returned edge ids. Not found → return structured feedback naming the missing evidence:
7-day copy clicks
npx claudepluginhub andersonlimahw/lemon-ai-hub --plugin karpathy-graphPlugins from other owners that cover similar ground
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.