Skip to main content
Glama

Neurons MCP

Let the coding agents on your machine work as a team.

You often run more than one agent: Claude Code in one window, Codex in another. Each knows things the other doesn't: its own memory, its past chats, the work it just did. Neurons lets them ask each other, like colleagues, while you stay in charge:

  • an agent asks, and the agent that owns the knowledge answers;

  • you decide which chats may talk, by connecting them on a canvas, and you can follow every conversation;

  • agents never read each other's memory or chats, and no login, token or config is ever shared.

Everything stays on your machine: one small local database, no cloud and no account.

Features

  • Ask another agent. Say "ask Codex how the cache works". Codex searches its own memory and past chats, then replies.

  • Connect chats by drawing a line. Every open Claude and Codex chat is a box on the dashboard's canvas. Drag a line from one to another, and those two can talk until you hang up. Each message travels along its line as a dot, and both boxes blink.

  • You decide what goes. Each chat's ⚙ on the canvas sets how its messages go: Automatic, or Ask first (you allow each message from a notification or a card on the graph). A provider can be turned off in Neurons altogether.

  • Second opinions. Ask every other agent at once and see the answers side by side.

  • Hand work over. One agent writes a handoff (goal, what's done, next steps) for another. Every session also leaves an automatic one: which files it changed and what it committed.

  • Code review between agents. One agent asks for a review; another returns structured findings.

  • No collisions. Agents can claim files, and an agent is warned before it edits a file another session claimed.

  • A dashboard in your editor. The live canvas of chats and lines, every conversation as a chat, search and delete.

  • Optional free local model. Simple general questions can go to Ollama or LM Studio instead of an agent.

Related MCP server: synco-mcp

Supported agents

Agent

Support

Claude Code (CLI and IDE extension)

Full

Codex (CLI and IDE extension)

Full; an idle Codex even answers on its own

Gemini CLI (0.35+)

Full

OpenCode, with any model (OpenRouter, Ollama, LM Studio, …)

Full, through a small plugin

Any other MCP client

Basic: it can ask and answer, and sees new messages when it next uses a Neurons tool

Works on Linux, macOS and Windows.

Setup

You need: Node.js 22.16 or newer (not 23.x), and git.

In the neurons-mcp folder, build it once:

npm install
npm run build

Then pick one of the two ways below.

  1. Build and install the extension:

    npm run package
    code --install-extension dist/neurons-*.vsix      # VSCodium: codium --install-extension …
  2. Click the Neurons icon in the activity bar.

  3. Press Connect next to each agent you use.

  4. Restart those agents' open sessions.

  5. Codex only: run /hooks in Codex once and trust the Neurons hooks.

Connect only adds a neurons entry to each agent's own config, and keeps a backup of the file. Disconnect removes it again.

Option B: from the terminal (no editor)

Register the server with each agent. Replace /path/to/neurons-mcp with your folder.

Claude Code

claude mcp add -s user neurons -e NEURONS_AGENT=claude -- "$(command -v node)" /path/to/neurons-mcp/dist/neurons-mcp.mjs

Codex

codex mcp add neurons --env NEURONS_AGENT=codex -- "$(command -v node)" /path/to/neurons-mcp/dist/neurons-mcp.mjs

Then add tool_timeout_sec = 180 under [mcp_servers.neurons] in ~/.codex/config.toml.

Gemini CLI: in ~/.gemini/settings.json

{ "mcpServers": { "neurons": { "command": "node", "args": ["/path/to/neurons-mcp/dist/neurons-mcp.mjs"], "env": { "NEURONS_AGENT": "gemini" }, "timeout": 180000 } } }

OpenCode: in ~/.config/opencode/opencode.json

{ "mcp": { "neurons": { "type": "local", "command": ["node", "/path/to/neurons-mcp/dist/neurons-mcp.mjs"], "environment": { "NEURONS_AGENT": "opencode" }, "enabled": true } } }

This is enough to ask and answer. For messages to arrive by themselves, each agent also needs the Neurons hooks; the editor's Connect adds them in one click. To add them by hand, see docs/how-it-works.md.

How to use it

You talk to your agents in plain words; they use Neurons for you.

  1. Open the chats you want to work together, for example Claude Code and Codex in the editor.

  2. Open the connection graph. In the Neurons sidebar, press Open the connection graph (or click Neurons in the status bar). It opens in an editor tab, with a box per open chat, named by its title.

  3. Connect them. Drag from a dot (●) on either side of one chat to a dot on the other. The line stays on the sides you picked, and one chat can have lines to several chats at once. From now on the connected chats can talk.

    ┌───────────────────────┐            ┌───────────────────────┐
    │ ✳ Claude Code    ●●●● │            │ ◉ Codex          ●●●● │
    │ Fix the cache         ●────────────● Review the API        │
    │ claude-1a2b3c4        │            │ codex-9f8e7d6         │
    │ claude-opus-5-5       │            │ gpt-6-astra           │
    │ ● Working          ⚙  │            │ ● Idle             ⚙  │
    └───────────────────────┘            └───────────────────────┘
  4. Ask one chat to talk to the other. For example, in Claude Code:

    Ask Codex where the cache TTL is set.

  5. Watch it travel. The message moves along the line as a dot, and the MSG light is lit on the sender while it travels, then blinks on the receiver as it arrives; both go off afterwards.

  6. The other chat answers from its own memory and past chats; the answer comes back the same way, and the asking chat tells you.

  7. Hang up when you are done: select the line and press Delete (or its ×), or tell either chat to disconnect.

A chat that is not connected cannot send. It says so and asks you to connect it, so nothing ever goes anywhere you did not wire up.

Settings per chat. The ⚙ on a box (or a double-click) opens its info, its lines and its settings:

  • Role: None (the default, an equal peer), Admin or Worker. An admin hands out tasks to the workers on its lines and answers their permission requests, asking you when it is not sure. A worker does its admin's tasks as if you gave them, within its usual permissions, replies with the result, and asks its admin before anything risky. A role never lets a message approve a permission prompt or override you.

  • Sending over its lines: Automatic (the default) sends right away. Ask first holds each message until you allow it: a notification pops up in the editor and a card shows on the graph, each with Allow and Deny. With no answer within 45 seconds nothing is sent, and the chat is told. Replies always go.

  • Wake when a message arrives (Claude Code chats): off by default. Turning it on first tells you what it means, and only Allow saves it. Then a message that reaches the chat while it is idle starts a turn by itself, as an idle Codex already does. Each such turn uses your Claude usage, and the message shows as coming from another session, so it can never approve a permission prompt.

  • Turn off a provider (for example Gemini CLI) in Neurons: its chats leave the graph, their lines end, and they can neither send nor receive. Its setup stays; turn it back on under Agents setup.

More things you can ask:

You say

What happens

"Ask everyone you're connected to what they think about this plan"

Every connected chat answers; the replies come back together

"Hand this work over to Codex"

A handoff note Codex can open with the goal, progress and next steps

"Ask Codex to review my changes"

Codex reviews the diff and sends back findings

"Claim src/api.js while you work on it"

Other sessions are warned before they edit that file

"Ask the local model what a 409 status means"

Answered for free by Ollama or LM Studio, if installed

Notes per agent

  • Codex: when it is idle, a message arrives in its chat and Codex answers right away. Trust the hooks once with /hooks.

  • Claude Code: when it is idle, the message waits for your next prompt; while it works, it answers after its current step.

  • Gemini CLI: answers at your next prompt, or after its current step. Needs version 0.35 or newer for the hooks.

  • OpenCode: gets messages through its plugin, after its next tool call.

Following along

  • Connection graph (an editor tab): every open chat is a box in its own color, titled as its agent titles it, with a small panel of lights: PWR (open), ACT (working) and MSG (lit while it sends a message, blinks as one arrives). Its ⚙ (or a double-click) shows its info, lines and settings. Agents setup (top right) connects or disconnects agents. Conversations shows every exchange as a chat, with search. Other tabs hold handoffs, reviews, notes, claims and storage (with backups before every clear).

  • The canvas only moves while you look at it, so it never slows the editor down.

  • Terminal:

    node dist/neurons.mjs watch            # live feed of messages, lines and agents
    node dist/neurons.mjs status           # who is connected, unread messages, open lines
    node dist/neurons.mjs disconnect all   # hang up every line

Privacy and safety

  • An agent only ever searches its own memory and chats. Others learn only what it chooses to reply.

  • Neurons never opens login files, tokens, .env files or agent configs, and refuses any message that looks like it contains a secret.

  • Everything is stored in one local database (for example ~/.local/share/neurons-mcp on Linux), readable only by you.

  • The optional local model is only ever reached on localhost.

Troubleshooting

Problem

Fix

"Couldn't reach codex"

That agent isn't running, or isn't connected. Open it, then ask again.

"Not connected to codex"

Draw a line between the two chats on the connection graph.

"[BLOCKED] … could not answer" or "… is blocked"

That chat hit its provider's usage limit (or lost its login). Whoever waits on it is told at once, with the reset time when the provider gives one, and new messages to it are refused until then. Its box shows Blocked. Ask another chat, or send again later.

"…'s chat is closed right now"

That chat's window was reloaded or closed, and its line is paused. Reopen the same chat (a Codex thread also needs one prompt) and the line is back. A paused line ends after a day.

A chat is missing from the graph

A Claude Code chat shows a few seconds after it opens; a Codex chat once it has run its first message. Check that its agent is connected under Agents setup.

An agent doesn't seem to get messages

Restart its session after Connect. For Codex, trust the hooks with /hooks.

The extension says Node is missing

Install Node 22.16+ (not 23), or set its path in the neurons.nodePath setting.

Learn more

docs/how-it-works.md covers the rest:

  • how lines and message delivery work;

  • the tools, the security model and every setting;

  • manual hook setup;

  • the project layout for developers.

License

Neurons is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.

Copyright (C) 2026 Sabbir Ahamed Maruf.

Available Tools

15 tools
claimsNeurons ClaimsB

Advisory edit locks so two sessions do not edit the same files. action claim (paths), release (paths, or all), list.

Inputs: action (required), repo, force, paths, +2 more.

disconnectNeurons DisconnectB

Hang up your line to a handle or agent, or "all". No arguments: your only line.

Inputs: to.

discoverNeurons DiscoveryC
Read-only

Who is online, your lines (the user connects chats in the Neurons dashboard), your inbox count. Pass model/task/label to tell peers what you are doing.

Inputs: task, label, model.

handoff_getNeurons HandoffsB
Read-only

With id: the full handoff. Without: recent handoffs, including auto snapshots of other sessions' uncommitted work (filter by repo/agent).

Inputs: id, repo, agent, limit.

handoff_publishNeurons HandoffB

Hand work over: goal, done, decisions (with reasons), next steps, open questions, gotchas, files, commits. to notifies a running agent.

Inputs: title (required), to, done, goal, +8 more.

inboxNeurons InboxB

Unread questions, replies, reviews and handoffs for you. wait_seconds blocks until something arrives.

Inputs: peek, limit, include_read, wait_seconds.

memory_saveNeurons Memory SaveA

Save, update (id) or archive (id + archive) a note in YOUR Neurons memory. Facts from a peer need source=peer and evidence of what you verified. No secrets.

Inputs: id, body, repo, tags, +7 more.

recallNeurons RecallA
Read-only

Search YOUR OWN knowledge: your memory files, past chats, Neurons notes and the repo. Use it to answer a peer's question. Open hits with recall_get.

Inputs: query (required), limit, sources, repo_path.

recall_getNeurons Recall DetailA
Read-only

Open a ref from recall ("#12", "memory:…", "session:@", "repo::"). Your own data only.

Inputs: ref (required).

replyNeurons ReplyA

Answer a message addressed to you. Only what was asked, short, with sources. Proposals: status accepted or rejected. A permission request (a question): accepted allows it, rejected denies it.

Inputs: body (required), message_id (required), refs, status.

review_getNeurons ReviewsB

With id: open (and claim) a review request or its result. Without: list reviews (status, mine).

Inputs: id, mine, repo, claim, +1 more.

review_requestNeurons Review RequestA

Ask a running agent to review a change: diff text, or base/head + files. Findings come back to your inbox. No secrets in the diff.

Inputs: title (required), to, base, diff, +4 more.

review_submitNeurons Review SubmitB

Finish a claimed review: verdict, short summary, findings. The requester gets it in its inbox.

Inputs: id (required), summary (required), verdict (required), findings.

sendNeurons SendA

Ask (question), tell (note) or suggest a memory change (proposal) to "codex", "claude", a handle, or "all" (every chat you are connected to, for a second opinion). Messages travel only over lines the user connected in the Neurons dashboard; without one this fails. "local" asks the free local model; local_first tries it before the target. Keep it short. wait_seconds blocks for the reply.

Inputs: to (required), body (required), kind, refs, +4 more.

session_readNeurons Past ChatsB
Read-only

Without handle/native_id: list your own agent's past sessions. With one: read it (text and tool names, redacted).

Inputs: here, tail, limit, handle, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 15 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes across messaging, memory, handoffs, reviews, sessions, and edit claims. Minor potential confusion exists between discover and inbox, and between handoff_get and session_read, but the descriptions clarify the boundaries well enough.

    Naming Consistency3/5

    The naming is readable and partly systematic, especially in the handoff_* and review_* families, but it mixes bare verbs (send, reply, disconnect), bare nouns (inbox, claims), and noun_verb compounds (recall_get, memory_save, session_read). The convention is not predictable across the full set.

    Tool Count5/5

    Fifteen tools is appropriate for a multi-agent collaboration server covering messaging, memory, handoffs, reviews, sessions, and edit locks. Each tool appears to serve a distinct workflow rather than duplicating another.

    Completeness4/5

    The surface covers core collaboration workflows well: discovery, inbox/send/reply, memory search/save, handoff publish/read, review request/read/submit, session reading, and claims. Some minor lifecycle gaps remain, such as richer memory deletion/management beyond archiving and limited review cancellation/cleanup operations.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables coding agents to join a secure agent-to-agent network for team collaboration, with tools for direct messaging, shared rooms, and approval-gated file/command requests.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables multiple AI coding agents to coordinate on a shared software project by registering, claiming tasks, declaring file intents, publishing structured change reports, and handing off context, with a local dashboard showing state in near real time.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables multiple coding agents to collaborate in a shared workspace with roles, messaging, concurrent file editing, task graphs, and live awareness of each other.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI coding agents to ask the user questions, receive written replies, share files, and hand tasks to other agent sessions — with every cross-agent request routed through human approval first. Sessions register themselves so they can be read, woken, and answered from a phone over a local-first, self-hosted setup.
      2
      Apache 2.0