Real-time visualization of Claude Code agent orchestration — see your agents think, branch, and coordinate as they work.
TypeScript
1,694
61 commits
updated Oct 10, 2026
Real-time visualization of Claude Code and Codex agent orchestration. Watch your agents think, branch, and coordinate as they work. Demo video here.

I built Agent Flow while developing Antics, a game creation platform driven by AI agents. Debugging agent behavior was painful, so we made it visual. Now we're sharing it.
Claude Code is powerful, but its execution is a black box — you see the final result, not the journey. Agent Flow makes the invisible visible:
agentVisualizer.runtime setting~/.codex/sessions/**/rollout-*.jsonl (respects CODEX_HOME) and surfaces tool calls, reasoning, and authoritative token counts from Codex's own event streamnpx agent-flow-app
This starts the visualizer in your browser. Start a Claude Code session in another terminal — events will stream in real-time.
Options:
--port <number> — change the server port (default: 3001)--no-open — don't open the browser automatically--verbose — show detailed event logsgit clone https://github.com/patoles/agent-flow.git
cd agent-flow
pnpm i
pnpm run setup # configure Claude Code hooks (one-time)
pnpm run dev # start the web app + event relay
Open http://localhost:3000 and start a Claude Code session in another terminal — events will stream to the browser in real-time.
Cmd+Shift+P) and run Agent Flow: Open Agent FlowAgent Flow automatically configures Claude Code hooks the first time you open the panel. To manually reconfigure, run Agent Flow: Configure Claude Code Hooks from the Command Palette.
By default Agent Flow watches both Claude Code (~/.claude/projects/) and Codex (~/.codex/sessions/) concurrently in all three entry points (VS Code extension, pnpm run dev, npx agent-flow-app). Sessions are shown side-by-side and tagged by runtime. If you only use one, the other is a harmless no-op — no visible effect, no user action needed.
To restrict to one runtime:
agentVisualizer.runtime to "auto" / "claude" / "codex" in your settingspnpm run dev and npx agent-flow-app: set the AGENT_FLOW_RUNTIME environment variable to claude or codex (defaults to watching both)For non-default Codex installs, set the CODEX_HOME environment variable.
You can also point Agent Flow at a JSONL event log file:
agentVisualizer.eventLogPath in your VS Code settings to the path of a .jsonl file| Command | Description |
|---|---|
Agent Flow: Open Agent Flow | Open the visualizer panel |
Agent Flow: Open Agent Flow to Side | Open in a side editor column |
Agent Flow: Connect to Running Agent | Manually connect to an agent session |
Agent Flow: Configure Claude Code Hooks | Set up Claude Code hooks for live streaming |
| Shortcut | Action |
|---|---|
Cmd+Alt+A (Mac) / Ctrl+Alt+A (Win/Linux) | Open Agent Flow |
| Setting | Default | Description |
|---|---|---|
agentVisualizer.runtime | "auto" | Which agent runtime(s) to watch: "auto" (both), "claude", or "codex" |
agentVisualizer.devServerPort | 0 | Development server port (0 = production mode) |
agentVisualizer.eventLogPath | "" | Path to a JSONL event log file to watch |
agentVisualizer.autoOpen | false | Auto-open when an agent session starts |
pnpm i # install dependencies for all packages
pnpm run setup # configure Claude Code hooks (one-time)
pnpm run dev # start dev server + event relay
pnpm run dev starts both the Next.js dev server and an event relay that receives Claude Code events and streams them to the browser via SSE.
Other scripts:
| Script | Description |
|---|---|
pnpm run dev:demo | Start with demo/mock data |
pnpm run dev:relay | Run the event relay server standalone |
pnpm run dev:extension | Watch-build the extension |
pnpm run build:all | Production build (webview + extension) |
pnpm run build:web | Build the Next.js web app |
pnpm run build:extension | Build the extension |
pnpm run build:webview | Build the webview assets |
Created by Simon Patole, for Antics.
Agent Flow ships opt-out anonymous usage telemetry, enabled by default only
in the published npx agent-flow-app binary. pnpm run dev and the VS Code
extension emit nothing. Only aggregate events are sent — session count,
duration, event count, OS/arch, Agent Flow version, distinct model IDs
observed, which runtimes were watched, and error class names. Prompts, file
paths, tool calls, user info, and environment variables are never sent.
export AGENT_FLOW_TELEMETRY=false or export DO_NOT_TRACK=1
(disabled installs write zero state to disk — no ~/.agent-flow/ directory)cat ~/.agent-flow/telemetry/events.jsonlserialize() function
in scripts/telemetry.ts~/.agent-flow/installation-id —
a fresh random UUIDv4 will be generated on next runApache 2.0 — see LICENSE for details.
The name "Agent Flow" and associated logos are trademarks of Simon Patole. See TRADEMARK.md for usage guidelines.
153 followers · starred Jul 2026
523 followers · starred Jul 2026
18 followers · starred Mar 2026
166 followers · starred Mar 2026
Real-time visualization of Claude Code agent orchestration — see your agents think, branch, and coordinate as they work.
TypeScript
1,694
61 commits
updated Oct 10, 2026
Real-time visualization of Claude Code and Codex agent orchestration. Watch your agents think, branch, and coordinate as they work. Demo video here.

I built Agent Flow while developing Antics, a game creation platform driven by AI agents. Debugging agent behavior was painful, so we made it visual. Now we're sharing it.
Claude Code is powerful, but its execution is a black box — you see the final result, not the journey. Agent Flow makes the invisible visible:
agentVisualizer.runtime setting~/.codex/sessions/**/rollout-*.jsonl (respects CODEX_HOME) and surfaces tool calls, reasoning, and authoritative token counts from Codex's own event streamnpx agent-flow-app
This starts the visualizer in your browser. Start a Claude Code session in another terminal — events will stream in real-time.
Options:
--port <number> — change the server port (default: 3001)--no-open — don't open the browser automatically--verbose — show detailed event logsgit clone https://github.com/patoles/agent-flow.git
cd agent-flow
pnpm i
pnpm run setup # configure Claude Code hooks (one-time)
pnpm run dev # start the web app + event relay
Open http://localhost:3000 and start a Claude Code session in another terminal — events will stream to the browser in real-time.
Cmd+Shift+P) and run Agent Flow: Open Agent FlowAgent Flow automatically configures Claude Code hooks the first time you open the panel. To manually reconfigure, run Agent Flow: Configure Claude Code Hooks from the Command Palette.
By default Agent Flow watches both Claude Code (~/.claude/projects/) and Codex (~/.codex/sessions/) concurrently in all three entry points (VS Code extension, pnpm run dev, npx agent-flow-app). Sessions are shown side-by-side and tagged by runtime. If you only use one, the other is a harmless no-op — no visible effect, no user action needed.
To restrict to one runtime:
agentVisualizer.runtime to "auto" / "claude" / "codex" in your settingspnpm run dev and npx agent-flow-app: set the AGENT_FLOW_RUNTIME environment variable to claude or codex (defaults to watching both)For non-default Codex installs, set the CODEX_HOME environment variable.
You can also point Agent Flow at a JSONL event log file:
agentVisualizer.eventLogPath in your VS Code settings to the path of a .jsonl file| Command | Description |
|---|---|
Agent Flow: Open Agent Flow | Open the visualizer panel |
Agent Flow: Open Agent Flow to Side | Open in a side editor column |
Agent Flow: Connect to Running Agent | Manually connect to an agent session |
Agent Flow: Configure Claude Code Hooks | Set up Claude Code hooks for live streaming |
| Shortcut | Action |
|---|---|
Cmd+Alt+A (Mac) / Ctrl+Alt+A (Win/Linux) | Open Agent Flow |
| Setting | Default | Description |
|---|---|---|
agentVisualizer.runtime | "auto" | Which agent runtime(s) to watch: "auto" (both), "claude", or "codex" |
agentVisualizer.devServerPort | 0 | Development server port (0 = production mode) |
agentVisualizer.eventLogPath | "" | Path to a JSONL event log file to watch |
agentVisualizer.autoOpen | false | Auto-open when an agent session starts |
pnpm i # install dependencies for all packages
pnpm run setup # configure Claude Code hooks (one-time)
pnpm run dev # start dev server + event relay
pnpm run dev starts both the Next.js dev server and an event relay that receives Claude Code events and streams them to the browser via SSE.
Other scripts:
| Script | Description |
|---|---|
pnpm run dev:demo | Start with demo/mock data |
pnpm run dev:relay | Run the event relay server standalone |
pnpm run dev:extension | Watch-build the extension |
pnpm run build:all | Production build (webview + extension) |
pnpm run build:web | Build the Next.js web app |
pnpm run build:extension | Build the extension |
pnpm run build:webview | Build the webview assets |
Created by Simon Patole, for Antics.
Agent Flow ships opt-out anonymous usage telemetry, enabled by default only
in the published npx agent-flow-app binary. pnpm run dev and the VS Code
extension emit nothing. Only aggregate events are sent — session count,
duration, event count, OS/arch, Agent Flow version, distinct model IDs
observed, which runtimes were watched, and error class names. Prompts, file
paths, tool calls, user info, and environment variables are never sent.
export AGENT_FLOW_TELEMETRY=false or export DO_NOT_TRACK=1
(disabled installs write zero state to disk — no ~/.agent-flow/ directory)cat ~/.agent-flow/telemetry/events.jsonlserialize() function
in scripts/telemetry.ts~/.agent-flow/installation-id —
a fresh random UUIDv4 will be generated on next runApache 2.0 — see LICENSE for details.
The name "Agent Flow" and associated logos are trademarks of Simon Patole. See TRADEMARK.md for usage guidelines.
153 followers · starred Jul 2026
523 followers · starred Jul 2026
18 followers · starred Mar 2026
166 followers · starred Mar 2026