D3 Agent Coordination Graph

Force-directed visualization of multi-agent relationships, tool usage, and coordination patterns

-150
0.5
Disconnected
0
Total Nodes
0
Agents
0
Tools
0
Subagents
Connections
0
Events

Timeline Replay

Event 0 / 0
500ms

Legend

Node Types

Agent Session
Tool
Subagent
User Prompt

Link Types

Uses Tool
Spawns Subagent
Temporal Sequence
Error Propagation

Node Size

Node size represents activity level (event count). Larger nodes indicate more events/interactions.

Interactions

• Drag nodes to reposition
• Scroll to zoom in/out
• Hover for details
• Click to focus

About This Tool

Purpose

The D3 Agent Coordination Graph visualizes the complex relationships between Claude Code agents, tools, and subagents in multi-agent systems. It uses D3's force-directed graph layout to reveal coordination patterns, tool usage frequencies, and agent spawning hierarchies through an interactive network visualization.

Features

Web Research Integration

Source: D3 Force-Directed Graph - Observable

Techniques Applied:

Graph Data Structure

The visualization processes Claude Code hook events into a graph structure:

Usage

  1. Load Data - Click "Sample Data" to load example multi-agent scenario, or use "Import Events" to load .json/.jsonl hook event files
  2. Adjust Physics - Tune node repulsion, link distance, and link strength sliders to optimize layout for your data size
  3. Explore Graph - Drag nodes to reposition, scroll to zoom, hover for tooltips showing event counts and details
  4. Timeline Replay - Use timeline slider to step through events chronologically, or click Play to auto-replay graph evolution
  5. Connect Live - Click "Connect" under WebSocket to stream real-time events from observability server (requires server at localhost:4000)
  6. Analyze Patterns - Identify heavily-used tools (large purple nodes), agent hierarchies (green subagent connections), and coordination bottlenecks

Hook Event Mapping

The tool processes these Claude Code hook events:

Sample Data Scenario

The included sample data demonstrates a realistic multi-agent workflow:

WebSocket Integration

Connect to the Claude Code hooks observability server for real-time updates:

  1. Start the observability server: ./scripts/start-system.sh
  2. Click "Connect" in the WebSocket Connection section
  3. Graph will update automatically as new events arrive
  4. New nodes animate in with transitions, links strengthen with repeated usage
  5. Compatible with the multi-agent observability system architecture