Skip to content
Conduit

mcp server

DeepFlow

Live architecture signal map for agentic coding. Tree-sitter + MCP bridge lets agents query, trace, and animate your codebase graph in real time.

vanshksingh/DeepFlowcommunitylistedunreviewed

Set up

Runs on your computer. Pick your agent and operating system.

This project does not publish an install method we can turn into a config. Follow the README instead.

README

synced Oct 21, 2026

Most code tools either show the human the architecture, or feed context to the agent. DeepFlow does both at the same time. Tree-sitter parses your JS/TS and Python files locally, and an MCP bridge lets any agent open a workspace, query the graph, and animate the viewer as it edits — so you can actually watch your agent navigate the codebase in real time. Try the live demo →

The agent doesn't just edit files. It shows the architecture moving.


Hosted Demo

DeepFlow Live Demo — explore the interactive fixture map.

Hosted on Render's free tier. If the instance has been inactive, it may take ~50 seconds to spin back up on first load.


Quick Start

Paste this prompt into any agent chat (Cursor, Claude, Codex, Antigravity, etc.) and it will clone, install, start, and wire DeepFlow automatically:

Setup DeepFlow (local codebase visualizer + MCP):
1. Clone and Bootstrap:
   git clone https://github.com/vanshksingh/DeepFlow.git && cd DeepFlow && bash scripts/agent-bootstrap.sh
   (Installs deps, starts viewer on http://127.0.0.1:4317, generates config in .deepflow.mcp.generated.json)
2. Connect: Merge generated config into your IDE's MCP settings. Verify via `deepflow_status`.
3. Usage in any repo:
   - Connect workspace: `deepflow_open_workspace {"root": "<ABS_PATH>"}`
   - Sync writes:       `deepflow_after_edit {"paths": ["rel/path/to/edited"]}`
   - Trace/Explain:     `deepflow_jump_to`, `deepflow_impact`, or `deepflow_summary`
   - Keep `npm run dev` running in the DeepFlow checkout.

One-liner bootstrap:

bash scripts/agent-bootstrap.sh

Manual setup:

npm install
npm run dev          # viewer on http://localhost:4317
# in a second terminal or IDE MCP config:
# node /absolute/path/to/DeepFlow/mcp-server.js

What it does

FeatureDescription
Live agent loopdeepflow_after_edit refreshes the graph and triggers animations the moment an agent writes a file
Nested framesFolder frames wrap file frames wrap function frames — like Figma for your codebase
Trace focusPin any node; unrelated rows dim and wires follow calls and imports
Signal animationsParticle bursts, fire embers, heart blooms, and typewriter effects on every edit

Keyboard shortcuts: Cmd+K / Ctrl+K to search · double-click a function to open source · Esc to collapse · drag to pan · scroll to zoom

Deep link example: #path=apps/gateway/src/routes.ts&module=startIngest&mode=signal


MCP Tools

The viewer (npm run dev) must be running for tools that animate the UI. Analysis tools work headless too and return JSON.

ToolWhat it does
deepflow_statusHealth check: viewer, root, connected browsers
deepflow_open_workspaceConnect a repo and start the FS watcher — call this first
deepflow_summaryCompact brief: languages, entrypoints, orphans, hot files
deepflow_findSearch files and modules by substring
deepflow_explainOne node: region, modules, typed edges with evidence
deepflow_impactUpstream and downstream static impact for a path
deepflow_path_betweenDirected path between two files
deepflow_entrypointsDetected entry files
deepflow_orphansUnreferenced code, highlighted in viewer
deepflow_diagnosticsUnresolved imports, parse issues, TODOs
deepflow_after_editRefresh map and trigger edit animation after a write
deepflow_jump_toFocus a file or path::module, enter signal path, pulse
deepflow_open_flowCode-flow overlay: upstream, focus, downstream + snippets
deepflow_explain_flowStructured flow story for agents, optionally opens overlay
deepflow_close_flowClose the code-flow overlay
deepflow_highlight_pathsMulti-select highlight and pin
deepflow_clear_highlightsClear pins, return to rails
deepflow_set_modeForce rails / outline or signal mode
deepflow_set_edgesToggle calls / imports / dataflow / events
deepflow_share_linkHash URL for the current focus
deepflow_file_diffLocal git diff for one path (includes untracked via --no-index)
deepflow_pr_diffUnified diff for a branch/PR range (base...head, defaults to main/master)
deepflow_analyze_workspaceFull graph JSON
deepflow_setup_helpMCP config block + sample workspace roots

Paths may use file.ts::moduleName (or #) on explain / impact / jump / flow tools. viewerUrl must be loopback (127.0.0.1 / localhost).

Recommended agent loop

deepflow_status
deepflow_open_workspace { root }
deepflow_summary { root }
  ...edit files...
deepflow_after_edit { root, paths: ["..."] }
deepflow_jump_to { root, path, module?, pin: true }
deepflow_explain_flow { root, path, module? }
deepflow_impact { root, path }

Built with Codex and GPT-5.6

DeepFlow was originally built with Codex and GPT-5.6 during OpenAI Build Week.


Fixtures

PathUse
fixtures/atlas-workspaceMessy TS monorepo, default boot target
fixtures/python-miniTiny Python import and call graph

Any JS/TS/Python repo works via deepflow_open_workspace. Cross-language HTTP edges are not inferred; each language's own imports and calls are tracked separately.


Scripts

CommandAction
npm run devViewer + API on :4317
npm run mcpStdio MCP server
npm testGraph and insight tests
npm run bootstrapSame as bash scripts/agent-bootstrap.sh

Requirements

  • Node.js 18+ (20+ recommended)
  • A native build toolchain only if tree-sitter needs to compile on your platform — standard npm install is enough on macOS and Linux
  • A browser open to the viewer for live animations
  • Git (optional — enables diff badges on file nodes)

Privacy

Everything runs locally. No source code or graph data is ever uploaded. The browser folder picker builds a static snapshot on your machine. Live watching, Git integration, and agent sync all go through MCP deepflow_open_workspace pointing at your disk.

FileRole
server.jsHTTP viewer + SSE + track API
mcp-server.jsMCP tools (stdio JSON-RPC)
src/repository-graph.jsTree-sitter polyglot graph builder
src/graph-insights.jsSummary / find / impact / flow helpers
public/Signal map UI
fixtures/Sample workspaces
AGENTS.mdAgent contract

License

This project is licensed under the MIT License.

↑↓ navigate openesc close