/agentflow:inspect runs | show <run-id> | results <run-id> [--checklist|--json] | tree <run-id> | budget <run-id> | timeline <run-id>from Agent Flow
Read-only inspector for Agent Flow primitives (enumerate/foreach/group/reduce/iterate/pipe). Lists runs, shows status, draws tree, aggregates budget, prints timeline, and reuses run outputs as JSON or checklist without re-running.
Ships in Agent Flow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are operating the read-only inspector. There is no state to manage and nothing to write. Your job is to dispatch the right subcommand and surface the output to the user.
node "${CLAUDE_PLUGIN_ROOT}/dist/inspect.js" runs [--cmd foreach|group|iterate|reduce|pipe] [--json]
node "${CLAUDE_PLUGIN_ROOT}/dist/inspect.js" show <run-id> [--cmd <name>] [--pretty]
node "${CLAUDE_PLUGIN_ROOT}/dist/inspect.js" results <run-id> [--cmd <name>] [--json | --checklist] [--field a.b] [--status <s>] [--limit N]
node "${CLAUDE_PLUGIN_ROOT}/dist/inspect.js" tree <run-id> [--cmd <name>] [--max-depth N]
node "${CLAUDE_PLUGIN_ROOT}/dist/inspect.js" budget <run-id> [--json]
node "${CLAUDE_PLUGIN_ROOT}/dist/inspect.js" timeline <run-id> [--limit N]
runsList every run across every primitive: cmd, run_id, status, is_done, agents, usd, updated_at. Use --cmd to filter by primitive. Use --json for structured output.
show <run-id>Auto-detect which primitive owns the run-id and print a JSON summary with primitive-specific extras:
Use --cmd to disambiguate when two primitives have a run with the same id.
results <run-id> — reuse a finished run WITHOUT re-running itEvery result is persisted in the run's state.json, so you can transform an expensive run's output
deterministically (code over the saved items — nothing is dropped, count == total). Auto-detects the
primitive (use --cmd to disambiguate, e.g. --cmd foreach).
--json — every output at full fidelity: foreach → one row per item {id, status, result};
step/reduce/pipe → the produced output (inline or read from its result_pointer file).--checklist — a markdown - [ ] line per item (one per item, so a 2,000-item run yields 2,000
lines, none lost). Append a result field as the task text with --field <key> (or --field a.b for a
nested field); if the item's result is a plain string it is appended automatically.--status <s> filters foreach items (e.g. failed); --limit N caps rows (use 1 to peek at the shape first).Turn a review run into an actionable checklist (no re-run):
node "${CLAUDE_PLUGIN_ROOT}/dist/inspect.js" results <run-id> --cmd foreach --json --limit 1 # see the result shape → pick --field
node "${CLAUDE_PLUGIN_ROOT}/dist/inspect.js" results <run-id> --cmd foreach --checklist --field summary > CHECKLIST.md
Then action it with /agentflow:checklist CHECKLIST.md. (Writing the output file via a redirect is
fine — results only READS run state.)
tree <pipe-run-id>For a /agentflow:pipe run, recursively walk the stage tree and show each child run's status, agent count, and USD estimate. Indented ASCII tree. Useful to see at a glance "stage 1 done, stage 2 in_progress, stage 3 pending".
budget <run-id>Walk the run and (if /agentflow:pipe) all its children recursively. Sum tokens_used, agents_dispatched, usd_estimate and break down per-node. Answers "how much did this pipeline cost?"
timeline <run-id>Print created_at / started_at / updated_at / completed_at plus the last N budget events (--limit). Useful for "where did the time go?"
node "${CLAUDE_PLUGIN_ROOT}/dist/inspect.js" runs --cmd pipe — find the failed pipe.node "${CLAUDE_PLUGIN_ROOT}/dist/inspect.js" tree <pipe-run-id> — identify which stage failed.node "${CLAUDE_PLUGIN_ROOT}/dist/inspect.js" show <failed-child-run-id> --cmd <its-primitive> — get details on the failure.node "${CLAUDE_PLUGIN_ROOT}/dist/state/foreach.js" list <run-id> --status failed for per-item errors.node "${CLAUDE_PLUGIN_ROOT}/dist/inspect.js" budget <pipe-run-id> for cumulative tokens/USD across a whole pipeline (including all primitive children).
/agentflow:inspect never modifies state. If you need to fix something (reset stuck items, force a transition), use the primitive's own state CLI (state/foreach.js reset, etc.)./agentflow:runs (the writable sibling): pause/resume a job or the whole engine, set priority, delete a run, clean finished ones. Note the name overlap — inspect runs is a read-only listing; runs (the skill) is the control panel./agentflow:inspect does not appear in the Stop hook's PRIMITIVES registry — it has no runs to resume.--json (or --pretty for show) when you need structured output for further processing.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
agent-flow, run-inspector, debugging, workflow-visualization
npx claudepluginhub alesaiani/agentflow --plugin agentflow23 skills in this plugin
/auditDeep code-audit recipe: discover files in a target → review each (LLM, cached) → partition by
component → executive digest with hotspots and recurring patterns. A layer-3 recipe over /agentflow:pipe
(the 6-stage pipeline and caching are detailed in the body).
USE when the user asks to "review / audit / find bugs across" a folder, repo, or glob and wants a
persisted, structured report — and the target is large enough (≥ ~10 files) that per-file parallelism
plus a digest beats reading inline.
DON'T use for a few named files (read them inline), exploratory questions ("what does this do?"), or
generic per-item work that isn't a code review (→ /agentflow:foreach).
Not a `/`-menu command — it's the shipped `workflows/audit/` recipe: reach it by asking ("audit src
for bugs"), or run it directly with `/agentflow:run-workflow workflows/audit/WORKFLOW.md`.
/boardWorkspace dashboard: lists every active framework run across all primitives, highlights blockers (stuck items, exhausted auto-continue caps), shows cumulative cost, and suggests the next action. The natural command to run after re-opening Claude Code in a workspace with in-flight runs, or whenever the user wants a one-shot overview of "what's going on".
USE this skill when:
- the user has just (re)opened the workspace and wants to know what is in flight;
- the user says "what's going on", "show me everything", "any active runs", "where are we", "any pipelines running";
- the user wants a one-shot health check + suggested next action.
DON'T use this to inspect a specific run in depth (use `/agentflow:inspect show <id>` or `tree <id>`), or
to modify state (board is read-only). Explicit: `/agentflow:board` or `/agentflow:board --json`.