Speculator gives Claude a persistent memory of your architecture — stored as a knowledge graph right in your repo.
Every time Claude needs to understand your codebase, it reads dozens of files — burning your budget before writing a single line.
Document once. Query forever. Your knowledge lives next to your code.
Add entities and edges to the graph using CLI or MCP. Store architecture decisions, reasons, and relationships — right in your repo.
Claude asks the graph instead of reading files. One call returns the entity, all its edges, and the reasons behind every decision.
Claude makes precise changes — knowing what's connected, why it was built that way, and what will break. No guessing, no rereading.
Watch how Speculator traverses the knowledge graph — finding connections even without a direct edge, and surfacing file locations, code snippets, and schemas stored on each edge.
A typical frontend → api → database stack. Hover a node to see its summary. Search to highlight. This is what your KB looks like in practice.
One command bootstraps everything: downloads Speculator, wires Claude Code hooks, creates
AGENTS.md, and
initialises your knowledge base.
tools/speculator.cmd — no global install needed.claude/settings.json — Claude queries your graph automaticallyAGENTS.md with the knowledge-graph protocol
knowledge/ directory ready for entities and edges