Skip to main content
Glama

Synapse – Live Plan, Code & Mental Model Mindmap for Any Agent

Synapse is an MCP server + live web viewer that lets any coding agent (Claude Code, Claude Desktop, Cursor, OpenCode, Codex, Windsurf, etc.) maintain a real-time visual mindmap of:

  1. What the plan is (hierarchical tasks with planned, in_progress, completed, and blocked statuses)

  2. How the agent is thinking about the code (HLD / Mental Model) (semantic component, data_flow, decision, hypothesis, and risk cards connected by directed flow links)

  3. Which files and symbols are being touched (line ranges, symbols, diff summaries, and cross-highlighting between plan tasks and architectural components)

📖 Docs: https://vss96.github.io/synapse/

Quick Start

Requires Node ≥ 20.

# Register Synapse with the coding agents installed on this machine
npx synapse-mindmap init

# Watch your agent work (port 4040, or the next free port)
npx synapse-mindmap viewer --open

init detects Claude Code, Claude Desktop, Cursor, OpenCode and Codex (which also covers the ChatGPT desktop app), asks before configuring each one, and backs up any config file it edits. Restart your agent afterwards. Mindmaps are stored in ~/.synapse/data (override with SYNAPSE_DATA_DIR). See the client guide for manual setup, and Updating for getting new releases.


Related MCP server: io.github.WBXWHT/wayfinder

Screenshots

1. Code Mental Model & High-Level Design (HLD) View

Visualize how the agent understands the system architecture, data flows, design decisions, hypotheses, and risks—without reading walls of text:

Code Mental Model (HLD) View

2. Split View (Plan Tree + Code Mental Model)

See the full execution plan and the architectural mental model side-by-side in a single live canvas. The Sessions panel on the left lists every mindmap with its active task, progress, and a live dot; filter it or switch with ⌥↑/⌥↓. Press / to find a card, file or symbol on the map:

Split View – Plan + HLD

3. Plan & Tasks View + Changes Tab

The Changes tab shows what kind of change the agent made in each file (added, modified, fixed, refactored, renamed, removed, tested). Pick a kind to highlight every plan task and HLD component with that kind of change:

Plan & Tasks View with the Changes tab filtered to fixes

4. Live Activity Stream

Track a real-time chronological log of every plan update, HLD mapping, and file edit:

Live Activity Stream

5. Archiving Sessions

Sessions are grouped by repository. Hover over a finished session and click Archive to tuck it into the collapsed Archived group at the bottom; nothing is deleted, and Restore brings it back:


MCP Tools

Tool

Description

create_mindmap

Create a new mindmap with title, workspacePath, and optional initialPlan steps

map_architecture

Batch-record the agent's mental model / HLD (component, data_flow, decision, hypothesis, risk nodes + directed links)

link_nodes

Create a directed conceptual or data/control-flow arrow between two nodes (solid, dashed, or animated)

unlink_nodes

Remove links by linkId, or by from + to + optional label

update_plan_status

Mark a task node planned, in_progress, completed, or blocked, and optionally start nextNodeId

log_file_touch

Attach a touched file (path, action incl. rename + previousPath, lines, summary) and symbol-level changes (add, modify, fix, refactor, rename, remove, test) to the active task or component node

sync_git_status

Inspect git status & git diff in the workspace and auto-attach changed files (including staged renames) to the mindmap

get_plan_summary

Render a Markdown dashboard of task progress (%), HLD concept count, and all touched files

add_node

Add a child task, plan step, HLD concept, file, or note node

update_node

Update a node's label, status, semantic type, notes, or files (files, removeFiles), or move it under another parent (parentId)

remove_node

Remove a node and all its descendants

list_mindmaps

List stored mindmaps sorted by most recently updated, optionally by workspacePath or without archived ones (includeArchived: false)

get_mindmap

Get full mindmap data as JSON

render_mindmap

Render as mermaid (a mindmap, without links), mermaid-flowchart (with links), indented text, or json

delete_mindmap

Delete an entire mindmap

Connect to Any Agent

1. MCP Server Config

npx synapse-mindmap init writes this for you. To add it by hand, most clients use:

{
  "mcpServers": {
    "synapse": {
      "command": "npx",
      "args": ["-y", "synapse-mindmap", "mcp"]
    }
  }
}

2. Automatic Agent Behavior

  • Built-in MCP Instructions & Prompt: Synapse automatically advertises server instructions and the track-coding-plan MCP prompt to connected clients.

  • Skill / Rules:

Development

Development uses Bun; the published package is plain Node.js.

./setup.sh            # bun install, build, write claude.json for this checkout
bun test              # tests
bun run build         # tsc → dist/ (MCP server, CLI, viewer server) + bundled viewer app
bun run dev           # MCP server from source, restarting on changes
bun run viewer        # build, then serve the viewer against ./data
bun run docs:dev      # docs site

License

MIT. The logo is a public-domain NIAID illustration; see docs/public/LOGO-CREDITS.md.

Available Tools

14 tools
add_nodeC

Add a child node under a parent node. Supports both plan/task nodes ('plan', 'task', 'code', 'file', 'note') and semantic code-thinking nodes ('component', 'data_flow', 'hypothesis', 'decision', 'risk').

Inputs: label (required), parentId (required), mindmapId (required), type, +3 more.

create_mindmapA

Create a new mindmap to track a coding plan, touched files, and the agent's mental model / HLD of the code.

Inputs: title (required), rootLabel, initialPlan, workspacePath.

delete_mindmapB

Delete an entire mindmap and all its nodes.

Inputs: mindmapId (required).

get_mindmapC

Get a mindmap's full data as JSON.

Inputs: mindmapId (required).

get_plan_summaryA

Get a concise status report of the mindmap plan: completion percentage, active tasks, blocked items, HLD concept count, and all touched files with their changes.

Inputs: mindmapId (required).

list_mindmapsA

List all stored mindmaps with their IDs, titles, and last updated timestamps.

Inputs: no named parameters.

log_file_touchA

Record that a file was read, created, modified, renamed, or deleted, plus symbol-level changes (add, modify, fix, refactor, rename, remove, test) so the user can follow exactly what is changing. If nodeId is omitted, attaches to the currently in_progress task node; a planned task given as nodeId is started (in_progress).

Inputs: path (required), mindmapId (required), lines, action, +6 more.

map_architectureC

Batch-map the agent's high-level understanding and mental model of the codebase (HLD): components, data flows, decisions, hypotheses, and risks, plus directed links between them. Nodes are created under a 'Code Mental Model (HLD)' branch unless parentId or parentKey is given.

Inputs: nodes (required), mindmapId (required), links, parentId.

remove_nodeA

Remove a node and all its descendants from a mindmap. Cannot remove the root.

Inputs: nodeId (required), mindmapId (required).

render_mindmapB

Render a mindmap in a digestible format: mermaid (flow chart syntax), text (indented outline), or json.

Inputs: format (required), mindmapId (required).

sync_git_statusB

Inspect git status and diff in the workspace and automatically attach all modified/created/deleted files to the mindmap.

Inputs: mindmapId (required), targetNodeId, workspacePath.

update_nodeC

Update a node's label, status, semantic type, notes, or attached files.

Inputs: nodeId (required), mindmapId (required), type, files, +3 more.

update_plan_statusA

Update the status of a plan task ('planned', 'in_progress', 'completed', 'blocked'), with an optional note. Can automatically start the next task by setting nextNodeId.

Inputs: nodeId (required), status (required), mindmapId (required), notes, +1 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 14 tools

    Disambiguation3/5

    Several tool pairs have blurry boundaries: update_node also mutates node status while update_plan_status exists for status changes, add_node+link_nodes overlaps with the batch map_architecture, and log_file_touch overlaps with sync_git_status for attaching files. Descriptions do clarify the single-item vs batch/automation split, but an agent must read carefully to pick correctly.

    Naming Consistency4/5

    Nearly everything follows a snake_case verb_noun pattern (create_mindmap, list_mindmaps, add_node, link_nodes, render_mindmap, log_file_touch). Minor deviations: create/delete for mindmaps vs add/remove for nodes, and get_plan_summary uses 'plan' where the resource is a mindmap.

    Tool Count5/5

    14 tools is well within the comfortable range and each maps to a distinct part of the plan/mindmap workflow (CRUD, linking, batch HLD mapping, status propagation, file tracking, rendering). No tool looks like filler.

    Completeness4/5

    Mindmap lifecycle (create/list/get/render/delete), node CRUD, links, plan status with auto-advance, and git/file tracking are all covered, giving a full working loop. Gaps are minor: no way to unlink nodes, rename/update a mindmap's title, or move a node between parents.

    Maintenance

    ActivityMaintained
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides coding agents with a mental map of codebases via progressive disclosure, enabling efficient exploration of project structure and entity relationships.
      3
      6 npm
      GPL 3.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI coding assistants to capture and inspect local session history—prompts, file changes, decisions, branches, and lessons—as an interactive map within MCP-capable clients, while supporting viewing, panning, zooming, and node previews.
      92
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to maintain a persistent knowledge graph of a project, providing dependency context, impact analysis, side-effect discovery, and session recording for more informed coding decisions.
      5
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables an AI coding agent to publish a live, layered dependency map of a system under construction: it ghosts the intended structure first, then lights nodes up as they are built and verified. A terminal pane beside the conversation keeps that map visible, showing what is being worked on now and flagging when later changes crack a foundation beneath it.
      152 npm
      MIT