neoize

Turn a codebase and the hard-won knowledge around it into a local Neo4j graph that Claude queries by
relevance, instead of a wiki nobody reads and a CLAUDE.md that grows until nobody can find anything in
it.
neoize is a Claude Code plugin. You install it, run one setup command in your project, and point it at
the notes you already have. From then on Claude pulls the handful of lessons that touch the code it is
editing, and a hook reminds it of the traps at the moment a risky operation fires.
The idea
Most projects accumulate two kinds of knowledge that a long Markdown file serves badly:
- Lessons. The gotchas, conventions and rules a maintainer learned the expensive way. In a flat
file they are read wholesale or not at all, and a note about a renamed symbol rots in place with
nothing to flag it.
- Structure. What the project is made of and how a change propagates: modules, services, routes,
whatever the domain's nouns are, and the edges between them.
neoize puts both in a graph. A lesson is anchored to the thing it concerns, a topic, a decision
point, or a structural node, so it is retrieved when that thing is in play rather than scrolled past.
The conceptual model is BloodHound: a collector reads the source, Neo4j holds it, Cypher answers the
path questions (what depends on this, which lessons touch what I am editing, what bites when I push).
The graph has two layers, and they are deliberately different in how portable they are:
- The knowledge layer (Topics, Operations, Lessons) is generic. It works with no code parsing at
all, so you get value the moment you migrate your existing notes.
- The structural layer is yours. What counts as structure is your domain, so neoize does not ship a
universal extractor that would fit nowhere. Instead the setup skill reads your code and proposes a
collector for you to approve.
Products and modes
Every node in the graph carries a product discriminant, a short name for the product it belongs to.
That is what lets one Neo4j hold more than one product at once without their nodes running into each
other. A product can span several repos: give each repo's .neoize/project.json the same product id and
they feed one graph. The id defaults to the repo name; neoize product --set changes it.
One product id is reserved: shared, the universal layer. It holds the knowledge that is true for all
your work with Claude, independent of any one codebase: how you run git, how a PR is opened, verification
discipline, the voice your writing uses. It lives in the global server, so in global mode a session
reads the union of shared and its own product, with universal wisdom always in view and a project's
own lessons complementing it. A session writes to a single product; a lesson that turns out to be
universal is promoted up to shared with /neoize:promote, where every other project then reads it.
Structure and symbols are never shared, because they are one codebase's own.
Because the discriminant is in the data, you choose at setup how the server is run. It is only a
lifecycle choice:
- global (the default) runs one shared Neo4j for the whole machine, at
~/.neoize/. Every product you
set up lives in it alongside the shared layer, kept apart by the discriminant, so a session reads the
shared+project union. This is the mode to pick for a shared baseline of wisdom across your products.
- project gives a project its own Neo4j, its own container and volume and ports. The graph is
self-contained: it holds only that one product, with no shared layer. Pick it when a graph must stay
isolated (a client repo you keep apart). It is still product-stamped, so its data stays compatible.
Install
Prerequisites, both of which you very likely already have:
- Docker, with the daemon running. The graph is a local Neo4j container, bound to loopback only.
python3.
That is the whole list. The read-only MCP server Claude queries the graph through is bundled in the
plugin (scripts/neoize-mcp, pure standard library, it reaches the graph through the container), so
there is nothing to pip, uv or pipx first.
Then, in Claude Code:
/plugin marketplace add foobar-beer/claude-neoize
/plugin install neoize@foobar-beer
Restart Claude Code once after installing, so the bundled MCP server registers.
Connection