GitHub Get started

NeuroMesh

Built for AI-assisted coding

Your AI agent does not need three thousand lines of boilerplate to fix one bug. NeuroMesh indexes your repo into a live graph, routes your prompt to the right symbols, and sends a folded evidence packet — not whole-file dumps. Default engine: fast needs no model download.

Works with · Cursor · VS Code · Claude · Codex · OpenCode · Windsurf · Zed · Kilo · Trae · Antigravity · MiMo CLI

What the model actually sees — folded skeleton

Your editor is oversharing

You ask one focused question. The agent pulls in two or three massive files, burns tokens, and still misses the function you cared about.

💸

You pay for noise

Private helpers, legacy parsers, and unrelated utilities — billed on every turn.

⏳

You wait for the wrong stuff

The chat fills up while the model still has not seen the code path you asked about.

🌊

The model hallucinates

Too much context. Wrong conclusions. Bugs that were never in your codebase.

What people tryWhy it fails
Vector RAGChunks break functions apart. Structure disappears.
"Attach the whole file"The model sees everything. Understands nothing.
Static code graphsNice map — then they still paste full files into the prompt.
NeuroMeshRoute, then fold. Only the relevant skeleton reaches the model. Expand a fold when you need the body.

Keep structure. Cut tokens.

NeuroMesh never deletes your code. It folds what the task does not need into a single reversible line — like a table of contents that still knows where every function lives.

🧬

What you need — open

The functions and files that match your task stay fully visible with real bodies.

📦

What you do not — folded

Everything else becomes a one-line marker with a fold ID. Signatures and imports stay in view.

⚡

Need the body? One tool call

Run neuromesh_expand_fold — instant restore from memory, no grep hunt.

You keep the map. The model stops reading the encyclopedia.

Inspired by how nature packs information

🧬

Smart folding

Code skeleton

Hide boilerplate. Keep signatures, imports, and file shape.

🦠

Shortest path

Graph routing

Connect only the files your task needs — not the whole repo neighborhood.

⚡

Remembers what worked

Learning from your edits

Files you actually changed get priority on the next similar task.

🛡️

Safety modes

Context budget

Balanced by default. Auth and payment tasks automatically get more context.

🍄

Faster follow-ups

Prefetch

The next likely file is warmed before your second tool call.

🕸️

Live code graph

Indexed in RAM

Functions, imports, and calls — so routing is structural, not guesswork.

3D Neural Galaxy

Run neuromesh monitor and explore your project as a live graph — subsystems, files, symbols — before you ask the agent anything.

Default URL: http://127.0.0.1:8765 · Port: neuromesh port

One question. One tight packet.

Ask in plain language (English, Persian, Arabic, …). NeuroMesh finds symbols, pulls neighbors, folds the rest, and tells you when to grep for more.

1
Understand
Your prompt as written
2
Route
Graph + smart fill
3
Deliver
Fold + packet
💬

Prompt

Read the task exactly as written — intent is not lowercased into mush.

1 of 8 steps

max_savings

0 extra tokens

Tiny, obvious edits

max_quality

16,000 extra tokens

Refactors, auth, critical paths

The more you ship, the better it routes

After a successful edit, call neuromesh_record_feedback. NeuroMesh strengthens the paths you actually used — so the next similar task needs fewer greps and fewer tokens.

Turn 1 / 3

First time — the agent explores and may grep twice.

The loop that makes it stick
📦
get_context_packet Agent gets a focused packet
↓
✏️
You edit & succeed Real files, real fix
↓
⚡
record_feedback Tell NeuroMesh what worked
↓
🧠
Next task Shorter path, fewer misses
Route strength 18%
Hit rate 0.75
Extra greps 2
🧪

Learns from real edits

Only files you actually changed influence the next packet — no fake shortcuts.

🍄

Ready for the next hop

Likely follow-up files are pre-warmed so expand and trace feel instant.

Skip feedback and every session starts from zero. One line after a good fix compounds over time.

Measured on a real monorepo

Token savings are per task, after folding — not a marketing average. Run neuromesh eval on your repo.

v0.9.11 · default fast engine · up to ~97% fewer tokens vs attaching the whole project

0
% token savings (fix MCP handler task)
0
% token savings (trace routing code task)
0
Files indexed in benchmark project
0
ms to build a packet (warm)
TaskModeFull repoBefore foldPacketSavedGrepms
Fix MCP tool handlerbalanced650,85972,42817,389 97.3%022
Trace graph routingbalanced650,85919,6254,080 99.4%012

Fast by default. Embeddings opt-in.

v0.9.11 ships with engine: fast — instant graph index, no ONNX warm. Install, index, pass your prompt — done. Opt in to hybrid / deep when you need semantic search.

🌿

Retrieval engine

fast (default) — graph + prompt expansion, no download. hybrid / deep — add MiniLM when NL recall needs a boost.

neuromesh config engine get
neuromesh install embed minilm   # only for hybrid/deep
neuromesh config engine hybrid
🔌

Connect your editor

One command registers MCP and copies agent rules so your IDE actually uses NeuroMesh instead of raw file reads.

neuromesh connect --global --agent-rules
neuromesh index

Full setup guide →

Install NeuroMesh

One command, then neuromesh doctor to verify, and neuromesh connect to wire your editor.

Terminal
curl -fsSL https://raw.githubusercontent.com/pinoox/neuromesh/main/install.sh | bash
PowerShell
irm https://raw.githubusercontent.com/pinoox/neuromesh/main/install.ps1 | iex
Build from source (rustup 1.80+)
git clone https://github.com/pinoox/neuromesh.git
cd neuromesh
cargo build --release --bin neuromesh --features embeddings
Cargo install
cargo install --git https://github.com/pinoox/neuromesh.git neuromesh-cli --bin neuromesh --features embeddings
After install
neuromesh doctor
neuromesh connect --global --agent-rules
neuromesh index      # graph in RAM — usually under 30s

Connect in one command

NeuroMesh speaks MCP over stdio — the standard protocol Cursor, Claude, VS Code, Windsurf, Zed, and dozens of agents already support. No cloud. No API key for indexing. Your code stays on your machine.

MCP config snippet
{
  "mcpServers": {
    "neuromesh": {
      "command": "neuromesh",
      "args": ["mcp"]
    }
  }
}
Cursor
VS Code
Claude Desktop
Claude Code
Codex
OpenCode
Windsurf
Zed
Kilo Code
Trae
Cline / Roo
Antigravity
MiMo CLI
Gemini CLI
MiniMax Code

Run neuromesh connect and pick your apps — or neuromesh connect --print to copy a snippet manually.

What your agent can call

Teach the agent this loop: get_context_packet → expand a fold if needed → trace callers → record_feedback after a good edit.

get_context_packet
Start here — compact skeletons, fold IDs, coverage hints
neuromesh_expand_fold
Restore one folded function body — no disk grep
neuromesh_trace
Follow call and import chains
neuromesh_search_symbols
Find symbols when coverage is partial
neuromesh_get_dependencies
See what a file imports and calls
neuromesh_analyze_impact
Blast radius before you refactor
neuromesh_get_architecture
Languages, packages, entry points at a glance
neuromesh_record_feedback
One line after a good edit — routes improve next time
neuromesh_get_project_memory
Project facts from manifests and docs
neuromesh_explain_packet
Debug why a file was selected or dropped
neuromesh_get_file_skeleton
Fold a single file on demand
neuromesh_get_stats
Graph size and index health

30+ languages and frameworks — Rust, TypeScript, Python, Go, PHP, Laravel, Django, Next, Vue, Spring, Android, Express, and more.