How the brain works
Two layers of knowledge
Section titled “Two layers of knowledge”Neuroplex splits the work between a deterministic tool and your own AI.
| Layer | What it captures | Who produces it | Cost |
|---|---|---|---|
| Structural | Files, modules, symbols, imports, calls, inheritance, HTTP routes and clients | The neuroplex CLI, parsing code with tree-sitter |
No LLM tokens, seconds to minutes |
| Semantic | What a module does and why, domain concepts, end-to-end flows | Your AI, guided by the /neuroplex skill |
Runs on the assistant you already use |
The CLI hands your AI focused enrichment tasks (neuroplex tasks). The AI reads the code and writes results back (neuroplex write). Every node records whether its data is structural or semantic, and the content hash it was built from, so Neuroplex always knows what is stale.
The lifecycle
Section titled “The lifecycle”- Scan.
neuroplex scanparses the project intograph/nodes.jsonlandgraph/edges.jsonl. - Enrich. Your AI works through the tasks: module summaries, the project overview, concepts, then flows.
- Build.
neuroplex buildwrites Markdown notes, an Obsidian vault and the brain’s README. With--gitit commits. - Serve.
neuroplex serveanswers MCP calls from the graph, over stdio or HTTP. - Update.
neuroplex updaterescans what changed and flags the AI knowledge that depends on it.
The brain repository
Section titled “The brain repository”The brain lives next to your project, never inside it, and is versioned on its own.
your-project-brain/├── neuroplex.json # brain config (committed)├── graph/│ ├── nodes.jsonl│ └── edges.jsonl├── notes/ # Markdown written by the AI: overview, modules, concepts, flows├── vault/ # generated Obsidian vault├── .neuroplex/ # git-ignored local state: index, cache, machine paths└── README.md # generatedThe graph
Section titled “The graph”| Node type | ID format | Example |
|---|---|---|
project |
project |
the root |
module |
module:<path> |
module:src/auth |
file |
file:<path> |
file:src/auth/login.ts |
symbol |
symbol:<path>#<name> |
symbol:src/auth/login.ts#login |
package |
package:<name> |
package:react |
concept |
concept:<slug> |
concept:authentication |
flow |
flow:<slug> |
flow:checkout |
Symbols are functions, classes, methods, interfaces, types, variables, components and routes. Edges are contains, imports, calls, extends, implements, depends_on and requests (structural), plus implements_concept, step_of and related_to (semantic).
Tools accept a node ID, a file or module path, or a symbol name.
Freshness
Section titled “Freshness”Every MCP response includes indexedCommit, the source commit the brain reflects. Nodes whose code changed since their summary was written are marked stale: true, so the assistant knows to check the source.