wfviz

A local, read-only viewer of Claude Code Dynamic Workflow runs: watch agents work live, replay finished runs, see findings, verdicts, tests, tokens and cost.

A run in wfviz: phases, the role by unit matrix, the report card and the live event log
A run: phases, roles, the role × unit matrix, the report card and the live event log.

What it is

wfviz reads the files Claude Code writes under ~/.claude/projects and shows each Dynamic Workflow run as it happens or after it ended. It only reads: the server listens on 127.0.0.1 only and has no endpoint that writes, starts or stops anything. Hover a value to see where it came from: Claude Code's files, the run's final file, or wfviz's own inference (with the method). A value the files do not give is shown as ? with the reason.

Run it

Node.js 20 or newer, Claude Code on the same machine. No dependencies, nothing to install. Developed and tested on macOS.

git clone https://github.com/falkolab/wfviz.git
cd wfviz
node bin/wfviz.mjs

wfviz starts a server on 127.0.0.1 on a free port and opens the browser. It exits on Ctrl+C, or two minutes after the last browser tab closes. A fixed port that stays up:

node bin/wfviz.mjs --no-open --port 4317 --idle 0

No runs of your own yet? node bin/wfviz.mjs --demo plays a built-in demo.

What you see

The drawer of one agent with its prompt, result, activity and tokens
Agent drawer: prompt, result, recent activity, tokens and cost.
The report card of a finished run
Report card: status, duration, findings, verdicts, tests, tokens and cost.
The run picker with the all switch and filters
Run list: last 24 hours by default, or every run of every project, with filters.
Search results with the matches highlighted
Search across loaded runs: names, prompts, results, activity and log lines.
A finished run being replayed, paused
Replay a finished run at 1×, 4× or 20×; pause keeps the pace, the real view stays as it is.
The demo run with rounds, findings and verdicts
Demo mode: a made-up run that never mixes with real data.

Options

OptionWhat it does
--since <hours>Runs changed within this window are read in full and watched at start (default 24). Older runs are still listed and read when opened. Infinity reads all at start.
--root <dir>Projects folder to read (default ~/.claude/projects).
--offlineNever fetch model prices; costs show as unknown.
--port <n>Port on 127.0.0.1 (default: any free port).
--no-openDo not open a browser.
--idle <seconds>Exit this long after the last browser tab leaves (default 120; 0 = never).
--demoBuilt-in demo runs instead of real ones.
--replay <run> [--speed <n>]Replay one saved run (run id or run directory) at its recorded pace times --speed (0.25–100, default 4).

Cost

Token counts come from the run files; one API message written several times is counted once. Cost is an estimate: tokens times prices from OpenRouter's public model list, which wfviz fetches when a cost is first shown and keeps for an hour. The request carries no data about you or your runs. A model without a matching price shows "cost unknown" with the reason. Tokens spent by other tools a workflow calls (for example Codex) are not in Claude Code's files and are not counted. --offline turns the request off; demo mode never makes it.

Better tracking (optional)

wfviz shows any workflow as it is. A workflow shows more when it follows a few conventions:

The Better tracking notice with a prompt to copy
The page offers a ready prompt to copy for your agent.

The plugin/ folder holds a small Claude Code plugin that gives every new session this note as context. It never blocks anything and can be switched off. See plugin/README.md.