Model or dataset
patoles/agent-flow avatar
patoles/agent-flow

agent-flow: telemetry in the published binary only, and two default ports

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

1,806 stars221 forksTypeScriptApache-2.0

At a glance

What is it?
A visualiser for Claude Code and Codex agent runs, fed by an HTTP hook server on one side and by tailing Codex rollout files on the other, with two runtimes watched concurrently by default. The telemetry disclosure is specific about what is aggregated and what is never sent, and the two entry points disagree about which port the server listens on.
Who is it for?
Agent Flow is worth using if you debug agent behaviour rather than ship agents, because a node graph of tool calls and branches answers questions a transcript cannot. Two things to weigh.
Can I use it commercially?
Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 2 days ago.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • patoles/agent-flow1,806 ★ · +170
Star history
Repository2026-09-102026-11-22
patoles/agent-flow1.6k1.8k

170 Stars in the last 73 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Two event sources feeding one graph

The interesting engineering is in how events arrive, and the two runtimes need different mechanisms. For Claude Code there is a hook server: a lightweight HTTP endpoint that receives events directly from the agent, which the file describes as zero-latency streaming and which is configured once by a setup step or the first time you open the extension panel. For Codex there is no hook, so Agent Flow reads Codex's own rollout files instead, tailing the rollout JSONL files under the Codex sessions directory, respecting the CODEX_HOME environment variable for a non-default install. That path also gives it something the hook path does not: the file says it surfaces tool calls, reasoning and authoritative token counts from Codex's own event stream, so the numbers come from the agent rather than from an estimate made by the visualiser. Everything after ingestion is common: an interactive node graph with tool calls, branching and return flows.

Both runtimes are watched unless you stop one

The default is to watch everything. Agent Flow watches the Claude Code projects directory and the Codex sessions directory concurrently in all three entry points, the VS Code extension, the development server and the published binary, and sessions are shown side by side and tagged by the runtime they came from. The file's reassurance about people who only use one is worth quoting in spirit: the other runtime becomes a harmless no-op, with no visible effect and no user action. Restricting it takes one setting or one variable. In VS Code, agentVisualizer.runtime accepts auto, claude or codex. For the command-line entry points, the AGENT_FLOW_RUNTIME environment variable takes claude or codex, and its documented default is to watch both. A related setting, eventLogPath, lets you point the visualiser at any JSONL file instead, which is the mode to use when you want to replay a run rather than watch it live.

Two entry points, two default ports

The quickest route needs nothing but Node and an agent:

bash
npx agent-flow-app

That starts the visualiser in your browser, with three options: --port to change the server port, whose default is given as 3001, --no-open to suppress the automatic browser launch, and --verbose for detailed event logs. The route from source uses a different number:

bash
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

and the instructions say to open http://localhost:3000. So the published binary defaults to 3001 and the development server to 3000, with the relay port on 3001 underneath both, which the manifest confirms by setting the relay port in the environment when it starts the two processes. Nothing is wrong with it, but a bookmark or a screenshot that works in one mode will not work in the other, and that is the kind of detail worth knowing before you conclude the tool is not running.

Telemetry exists only in the published binary

The privacy section is the best-written part of the file, and it makes a distinction most projects do not. Agent Flow ships opt-out anonymous usage telemetry, enabled by default only in the published npx binary; the development server and the VS Code extension emit nothing at all. The aggregate categories are enumerated: session count, duration, event count, operating system and architecture, the Agent Flow version, distinct model identifiers observed, which runtimes were watched, and error class names. Then the negative list, which is cut off in the visible text mid-sentence: prompts, file paths, tool calls, user information and environment variables are never, and the sentence ends there. What is left unspecified is the endpoint and the retention, which for a tool that reads agent transcripts is the part you would want named. On the evidence given, the risk is a build that phones home and a source checkout that does not, and the opt-out applies to the former.

Tests cover the scripts and the app, not the web app

The root manifest is short and has no name or version field, which is normal for a private workspace root and means the published package version lives elsewhere. Its test script is one line: node with tsx imported, running the built-in test runner over a glob for test files under scripts and a second glob under the app's src directory. That covers the scripts and the packaged app, and it does not cover the Next.js web app or the extension, whose test files would live elsewhere and which no glob mentions. There is also no lint or typecheck script at the root, and the three development dependencies are the ones you would expect for this arrangement: a runner for concurrent processes, esbuild for bundling, and tsx for running TypeScript directly. The esbuild pin sits at a 0.20 series in a project whose last commit is from mid-2026, which is old enough to be worth checking against advisories if you plan to build from source.

A debugger that reads your agent's own directories

The access model deserves stating plainly, because it is the security surface. Live mode is not a log tail of something the tool produced; it reads the directories your agent writes to, the Claude Code projects folder and, through rollout tailing, the Codex sessions folder, and it can attach an HTTP hook server that the agent posts events to. The panels it renders are correspondingly rich: a full execution timeline, a file attention heatmap showing which files the agent spent its attention on, and the message transcript. The event log mode changes the shape of that access rather than removing it, since a JSONL path can point at any file on disk. The tool is MIT licensed and the author built it while debugging agent behaviour on another product, which is a useful signal about intent and not a security control. If the agents run on a machine with credentials on disk, the visualiser is on the same machine with the same reach.

Built for one product, published as a marketplace extension

The origin story is in the file and it explains the feature choices. Agent Flow was built while developing CraftMyGame, a game creation platform driven by AI agents, because debugging agent behaviour was painful and the decision was to make it visual; the tool is now shared. The author is Simon Patole, working for that product, and the repository's homepage field points at the VS Code marketplace listing rather than at documentation, so the extension page is the front door. The surface area is small and documented as tables: four commands including opening the panel, opening it to the side, connecting to a running agent and configuring hooks; one keyboard shortcut, Cmd+Alt+A on Mac and Ctrl+Alt+A elsewhere; four settings with their defaults, where the development server port defaults to zero to mean production mode. The release history is short and unusually compressed: v0.8.0 added Codex runtime support in April, then v0.9.0 and v0.9.1 were both published on 2026-07-06 sixteen minutes apart, the second fixing Windows session discovery.

Editorial conclusion

Agent Flow is worth using if you debug agent behaviour rather than ship agents, because a node graph of tool calls and branches answers questions a transcript cannot. Two things to weigh. It reads your agent's own directories, watching the Claude Code projects folder and the Codex sessions folder, so treat the visualiser itself as having the same access as your agent, and use the event log option to replay a file instead of live tailing when that matters. And its telemetry is opt-out but scoped precisely: it is on by default only in the npx binary, and the aggregate categories are listed, so the decision is about which entry point you use rather than about whether data leaves your machine. Version history is short and tight, with two releases sixteen minutes apart. Apache 2.0, last push 2026-07-11.

Frequently asked questions

What is Agent Flow?

A real-time visualisation of Claude Code and Codex agent orchestration. It watches agent sessions and draws them as an interactive node graph with tool calls, branching and return flows, with panels for the execution timeline, a file attention heatmap and the message transcript, so you can see how a problem was broken down and which tools were reached for.

How do I start Agent Flow without VS Code?

Run npx agent-flow-app, which starts the visualiser in your browser on port 3001 by default, with --port, --no-open and --verbose as options. Then start a Claude Code session in another terminal and its events stream into the browser in real time. The from-source route uses pnpm run dev instead and serves on port 3000.

Does Agent Flow send my prompts anywhere?

It ships opt-out anonymous usage telemetry, enabled by default only in the published npx binary; pnpm run dev and the VS Code extension emit nothing. Only aggregate events are sent, namely session count, duration, event count, OS and architecture, Agent Flow version, distinct model identifiers observed, which runtimes were watched, and error class names. Prompts, file paths, tool calls, user information and environment variables are on the list of things never sent.

How do I restrict Agent Flow to one agent runtime?

By default it watches Claude Code and Codex concurrently in all three entry points and tags sessions by runtime. To restrict it, set agentVisualizer.runtime to auto, claude or codex in VS Code settings, or set the AGENT_FLOW_RUNTIME environment variable to claude or codex when using pnpm run dev or the npx binary. For a Codex install outside the default location, set CODEX_HOME.

What does Agent Flow require to run?

Node.js 20 or newer with LTS recommended, pnpm, and the Claude Code CLI. For the VS Code extension you also need a VS Code compatible IDE at version 1.85 or above, with VS Code, Cursor and Windsurf named as examples. A from-source run additionally uses a one-time setup step to configure the Claude Code hooks.

Official sources

  1. License: Apache-2.0
  2. patoles/agent-flow on GitHub
  3. Project website
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/patoles-agent-flow.svg)](https://hysenlabs.com/projects/patoles-agent-flow)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/patoles-agent-flow.svg)](https://hysenlabs.com/projects/patoles-agent-flow)

Was this useful?