agent-flow

作者 patoles已验证

Real-time visualization of Claude Code agent orchestration — see your agents think, branch, and coordinate as they work.

1,595
Stars
184
Forks
TypeScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/patoles/agent-flow

快速入门

使用 agent-flow 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Agent Flow

Real-time visualization of Claude Code and Codex agent orchestration. Watch your agents think, branch, and coordinate as they work. Demo video here.

Agent Flow visualization

Why Agent Flow?

I built Agent Flow while developing CraftMyGame, 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:

  • Understand agent behavior — See how Claude breaks down problems, which tools it reaches for, and how subagents coordinate
  • Debug tool call chains — When something goes wrong, trace the exact sequence of decisions and tool calls that led there
  • See where time is spent — Identify slow tool calls, unnecessary branching, or redundant work at a glance
  • Learn by watching — Build intuition for how to write better prompts by observing how Claude interprets and executes them

Features

  • Live agent visualization: Watch agent execution as an interactive node graph with real-time tool calls, branching, and return flows
  • Claude Code + Codex: Auto-detects sessions from both runtimes concurrently and shows them side-by-side, or restrict to one via the agentVisualizer.runtime setting
  • Claude Code hooks: Lightweight HTTP hook server receives events directly from Claude Code for zero-latency streaming
  • Codex rollout tailing: Reads ~/.codex/sessions/**/rollout-*.jsonl (respects CODEX_HOME) and surfaces tool calls, reasoning, and authoritative token counts from Codex's own event stream
  • Multi-session support: Track multiple concurrent agent sessions with tabs
  • Interactive canvas: Pan, zoom, click agents and tool calls to inspect details
  • Timeline & transcript panels: Review the full execution timeline, file attention heatmap, and message transcript
  • JSONL log file support: Point at any JSONL event log to replay or watch agent activity

Getting Started

Quick Start (no VS Code required)

npx 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 logs

Standalone Web App (from source)

git 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.

VS Code Extension

  1. Install the extension
  2. Open the Command Palette (Cmd+Shift+P) and run Agent Flow: Open Agent Flow
  3. Start a Claude Code or Codex session in your workspace — Agent Flow will auto-detect it

Agent 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.

Runtime selection

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:

  • VS Code extension: set agentVisualizer.runtime to "auto" / "claude" / "codex" in your settings
  • pnpm 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.

JSONL Event Log

You can also point Agent Flow at a JSONL event log file:

  1. Set agentVisualizer.eventLogPath in your VS Code settings to the path of a .jsonl file
  2. Agent Flow will tail the file and visualize events as they arrive

Commands

CommandDescription
Agent Flow: Open Agent FlowOpen the visualizer panel
Agent Flow: Open Agent Flow to SideOpen in a side editor column
Agent Flow: Connect to Running AgentManually connect to an agent session
Agent Flow: Configure Claude Code HooksSet up Claude Code hooks for live streaming

Keyboard Shortcut

ShortcutAction
Cmd+Alt+A (Mac) / Ctrl+Alt+A (Win/Linux)Open Agent Flow

Settings

SettingDefaultDescription
agentVisualizer.runtime"auto"Which agent runtime(s) to watch: "auto" (both), "claude", or "codex"
agentVisualizer.devServerPort0Development server port (0 = production mode)
agentVisualizer.eventLogPath""Path to a JSONL event log file to watch
agentVisualizer.autoOpenfalseAuto-open when an agent session starts

Requirements

Development

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:

ScriptDescription
pnpm run dev:demoStart with demo/mock data
pnpm run dev:relayRun the event relay server standalone
pnpm run dev:extensionWatch-build the extension
pnpm run build:allProduction build (webview + extension)
pnpm run build:webBuild the Next.js web app
pnpm run build:extensionBuild the extension
pnpm run build:webviewBuild the webview assets

Star History

Star History Chart

Author

Created by Simon Patole, for CraftMyGame.

Privacy & Telemetry

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.

  • Turn off: export AGENT_FLOW_TELEMETRY=false or export DO_NOT_TRACK=1 (disabled installs write zero state to disk — no ~/.agent-flow/ directory)
  • Inspect the payload: cat ~/.agent-flow/telemetry/events.jsonl
  • Full schema + exact fields: see the v0.8.1 entry in extension/CHANGELOG.md or the serialize() function in scripts/telemetry.ts
  • Reset your anonymous identity: delete ~/.agent-flow/installation-id — a fresh random UUIDv4 will be generated on next run

License

Apache 2.0 — see LICENSE for details.

The name "Agent Flow" and associated logos are trademarks of Simon Patole. See TRADEMARK.md for usage guidelines.

常见问题

What is agent-flow?

agent-flow is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by patoles. Real-time visualization of Claude Code agent orchestration — see your agents think, branch, and coordinate as they work. It has 1,595 GitHub stars.

Is agent-flow safe to use?

Yes. agent-flow passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install agent-flow?

Clone the repository with "git clone https://github.com/patoles/agent-flow" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is agent-flow written in?

agent-flow is primarily written in TypeScript. It is open-source under patoles on GitHub, so you can review or fork the full source.

Are there alternatives to agent-flow?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh agent-flow against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情