Skip to content

oyekamal/claude-code-flow-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Claude Code Flow Visualizer β€” See Your Entire Agent Harness as an Interactive Graph

Visualize any Claude Code configuration (CLAUDE.md, subagents, skills, slash commands, hooks, MCP servers, schedulers) as one interactive flow diagram β€” straight from a GitHub URL, a ZIP, or a local folder. No install for your target repo, no backend, 100% client-side.

Claude Code agent harness visualized as an interactive flow graph

Why

Claude Code agent setups live as scattered markdown files: CLAUDE.md, .claude/agents/*.md, .claude/skills/*/SKILL.md, commands, settings.json hooks, and .mcp.json connectors. To understand how an existing harness works β€” which agent delegates to which, what skills fire when, where Notion/database/MCP connections plug in β€” you'd normally have to open and read every single file.

This tool parses the whole project and renders it as a wired graph in seconds:

  • πŸ€– Agents with model + tool badges, delegation edges traced from prompt bodies
  • πŸ“š Skills attached to the agents and commands that actually reference them
  • ⌨️ Slash commands, πŸͺ lifecycle hooks, ⏰ schedulers (GitHub Actions / cron)
  • πŸ”Œ MCP connectors and πŸ—„οΈ memory / state stores drawn as distinct node types
  • 🚨 Pipeline lints: broken delegation references, duplicate agent names, circular delegation, orphan skills, reviewers with write access, orchestrators missing the Task tool, vague trigger descriptions

Quick Start

git clone https://github.com/oyekamal/claude-code-flow-visualizer.git
cd claude-code-flow-visualizer
npm install
npm run dev        # β†’ http://localhost:5173

Then either:

  1. Paste a GitHub repo (owner/repo, full URL, or a /tree/branch/subfolder link) and hit VISUALIZE
  2. Upload a ZIP (GitHub β†’ Code β†’ Download ZIP) β€” fully offline
  3. Upload a folder β€” point it at any local clone
  4. Or click LOAD DEMO HARNESS to explore a sample multi-agent content pipeline

Start screen β€” import a Claude Code repo from GitHub, ZIP, or local folder

Features

Interactive canvas

Pan, zoom, and drag nodes. Hover or select any node to highlight its wiring. Edge styles encode meaning: solid = delegation, dashed = skill use, dotted = MCP connection, dash-dot = state reads/writes, animated = scheduled loop.

Multi-agent orchestrator pipeline rendered with delegation, skill, and MCP edges

Node inspector with raw source

Click any agent, skill, command, hook, or connector to see its description trigger, model, tools, incoming/outgoing references β€” and the underlying markdown file, side by side.

Node inspector showing an agent's tools, delegations, and raw markdown source

Pipeline lints ("don't break my harness")

The validator catches the ways multi-agent pipelines actually break:

Check Level
Delegation to an agent/skill that doesn't exist error
Orchestrator delegates but lacks the Task tool error
Duplicate agent names (later file shadows earlier) warn
Circular delegation loops warn
Reviewer/validator agents holding write tools warn
Skills never referenced by anything (dead weight) warn
Missing or vague descriptions (agents never auto-trigger) warn/info
MCP servers configured but never used info

Three import transports

  1. GitHub API + raw.githubusercontent (supports private repos via token)
  2. jsDelivr mirror β€” no rate limits for public repos
  3. Claude API relay β€” works even inside sandboxed previews where only api.anthropic.com is reachable

Unparseable content is never dropped β€” it's counted and preserved verbatim.

How it works

files β†’ parser β†’ project model β†’ graph builder β†’ layered layout β†’ SVG canvas. A single React component (~1,700 lines, no graph library): minimal YAML-frontmatter parser, path classifier for the .claude contract, reference extraction from prompt bodies (backticked names, @mentions, delegation verbs), BFS-layered layout with barycenter ordering, and a lint pass over the resulting graph.

Testing

End-to-end tested with Playwright (test_e2e.py): empty state, demo graph, inspector, lint panel, live GitHub import, ZIP import.

python3 -m venv .venv && .venv/bin/pip install playwright && .venv/bin/playwright install chromium
npm run dev &
.venv/bin/python test_e2e.py

Roadmap

  • Canvas β†’ files: edit nodes in the UI and regenerate valid markdown (two-way sync)
  • Impact analysis + diff preview before writing changes back
  • Pre-built agent/skill library and flow templates (orchestratorβ†’workers, builder+validator, scheduled loop with memory)

Keywords

Claude Code visualizer Β· CLAUDE.md viewer Β· Claude subagents graph Β· .claude directory explorer Β· AI agent orchestration diagram Β· multi-agent pipeline visualization Β· MCP server map Β· agent harness debugging Β· Anthropic Claude agents

License

MIT Β© oyekamal

About

πŸ” Visualize any Claude Code agent harness β€” CLAUDE.md, subagents, skills, commands, hooks & MCP servers β€” as an interactive flow graph. Import from GitHub, ZIP, or local folder. 100% client-side.

Topics

Resources

License

Stars

6 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors