JARVIS-BRAIN
STOP GREPPING. START ASKING.
Federated knowledge graph for Claude Code. Measured on a 5-repo production codebase: -52% fresh input tokens (what counts against Max plan rate limits), 29% faster wall-clock, up to 15× faster on architectural queries - plus cross-repo analytics grep can't do at all.
Your AI assistant wastes most of its context on Grep
Every time Claude Code answers a question about your codebase, it scans files with Grep and Read - eating thousands of tokens per question. Tokens it then can't use to remember your conversation.
> What is the largest connected community in acme-core? Provide size. [thinking] "I need to analyze graph structure..." → Grep: imports across 5 repos [long] → Read 14 files across Acme / Inventory / Checkout / Customer / Analytics → [CC attempts manual clustering logic] 633 seconds · 6 tool calls · 10 reasoning turns · answer: partial
> What is the largest connected community in acme-core? Provide size. → brain_query(..., scope="acme/Acme") [200ms] → brain_graph(group="acme", repo="Acme") [150ms] → [CC reads pre-computed Louvain community_id field] → Answer: "Community 0 - >900 components. Hub: useCart (29 inbound)." 41 seconds · 7 tool calls · answer: complete with evidence
The Real Wins - Tokens, Time, Both
Full breakdown across 50 questions × 2 configs = 100 Claude Opus runs on production codebase. All measured via Anthropic Agent SDK.
Pre-compute the map. Query it instead of grepping.
Brain extracts a semantic graph from your repos once (LLM or static-analysis). Then Claude Code queries that graph instead of re-reading files every time.
Extract
Your repos are analyzed once (local via /brain-extract skill, or LLM on push webhook). Produces graph.json per repo.
Federate
Brain merges graphs from all repos in a group (e.g., core + 5 frontends). Cross-repo edges, communities, DRY detection - all pre-computed.
Serve
5 MCP tools over HTTPS: brain_query, brain_graph, brain_path, brain_explain, brain_ffcss.
Use
2-minute setup: claude mcp add brain ... and Claude Code picks up the tools automatically. Zero changes to your repos.
Different wins for different roles
Writing features across 5 repos
"Acme-core probably has a hook for X - but what's it called?"
Ask Claude Code. It queries brain. Gets answer. No grep across 5 repos.
- 10× less token burn per code-discovery question
- CC sessions stay coherent 15× longer
- Cross-repo view: see what core exposes without leaving your repo
- Zero friction - brain tools appear in CC automatically
Keeping a federated codebase sane
"Do Checkout and Inventory duplicate logic that should be in core?"
Insights dashboard + brain_ffcss(violations). DRY violations surfaced automatically.
- 1395+ code communities detected via Louvain clustering
- Top 10 god-nodes identified - refactor candidates surface themselves
- FFCSS token federation: find cross-repo duplicates to promote
- System-level decisions in 15 min vs 1 day of analysis
Running a dev team on AI
"How do I know what my AI costs and if it's working?"
Brain dashboard tracks cost / latency / queries / jobs. Full observability out of the box.
- 29% wall-clock speedup measured on 50-Q benchmark
- 15× faster on architectural / cross-repo queries
- Alerts on cost threshold, errors, poll failures
- Runs on own VPS: no code sent to third parties
Onboarding to 5-repo codebase
"Where do I even start? What does Acme-core do?"
Federated wiki (5560 pages) + interactive graph. Self-serve exploration.
- 15 min to productivity instead of 2 hours of hand-holding
- Visual graph per repo - click to drill into wiki
- "Who owns this code": git-blame metadata on every node
- Cross-linked docs auto-generated from code structure
50 real questions, real repo, real Claude Opus
We ran 50 code-analysis questions against ~/dev/example/Acme (production Nuxt 4 + Vue 3 codebase) in two configurations - standard Claude Code vs Claude Code + brain MCP. Tokens measured via Anthropic Agent SDK. Same model. Same questions. Same repo.
Interactive tabs: Overview · Methodology · Raw Results · By Category · Token Economics · Accuracy · Implementation Guide · FAQ
Open, auditable, self-hostable
Brain runs on your VPS. Your code never leaves. Open source (MIT). 3h to deploy from scratch on a 2-core 4GB box.
docker compose 2-minute setup for any developer
Ask the admin of your brain instance (for brain.sdet.it: DM @darco81). You'll get a one-time string like brain_xxxxxxxxxxxxxxxxxxxxxx. Save it to your shell: export BRAIN_DEV_TOKEN=brain_xxxxxxxxxxxxxxxxxxxxxx Self-hosting your own brain? See /docs/getting-started for POST /admin/tokens flow.
claude mcp add brain \
--transport http --scope user \
https://brain.sdet.it/mcp \
--header "Authorization: Bearer $BRAIN_DEV_TOKEN"
claude mcp list # → brain: https://brain.sdet.it/mcp (HTTP) - ✓ Connected
> "Show me how useCart is used across acme-core" [CC calls brain_query + brain_explain automatically] → Answer in <3 seconds with file paths, neighbors, community
Full docs: GETTING_STARTED.md
Try it on your team's codebase
Open-source. Self-hostable. Costs $0 if your devs are on Claude Max. Cuts pay-per-use costs dramatically.
READY