/agentflow:runs [list|stop|resume|pause|rm|clean|priority] [<run-id>] [flags]from Agent Flow
Controls in-flight jobs in AgentFlow: list queue, pause/resume individual or all runs, set priority, delete runs, and garbage-collect finished runs. Use when you need to act on runs, not just inspect.
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.
A job is a run launched directly (a workflow/pipe, a do, or a standalone primitive). A pipe's
sub-runs (its stages) belong to their parent and are managed with it — runs lists and controls jobs,
not internal sub-runs. All commands go through one CLI:
node "${CLAUDE_PLUGIN_ROOT}/dist/runs.js" <subcommand> [args]
node "${CLAUDE_PLUGIN_ROOT}/dist/runs.js" list # active jobs, with queue position (#1 next)
node "${CLAUDE_PLUGIN_ROOT}/dist/runs.js" list --all # include finished/failed jobs
node "${CLAUDE_PLUGIN_ROOT}/dist/runs.js" list --json # machine-readable
The POS column is the scheduling order the Stop hook follows each turn: higher priority first, then
oldest job first (FIFO). One run-step advances per turn; the oldest job runs to completion before the
next one starts (round-robin fairness is intentionally not implemented yet).
| Scope | Pause | Resume | What it does |
|---|---|---|---|
| Whole engine | runs pause | runs resume | Creates/removes .agentflow/PAUSED. The Stop hook stops auto-resuming anything. The global "stop button". |
| One job | runs stop <id> | runs resume <id> | Sets a paused flag on that job (and its subtree). Other jobs keep advancing. |
node "${CLAUDE_PLUGIN_ROOT}/dist/runs.js" pause # freeze everything
node "${CLAUDE_PLUGIN_ROOT}/dist/runs.js" resume # unfreeze (no id == global)
node "${CLAUDE_PLUGIN_ROOT}/dist/runs.js" stop my-run # pause just this job
node "${CLAUDE_PLUGIN_ROOT}/dist/runs.js" resume my-run # resume just this job
Pausing is non-destructive — state is preserved; the run resumes exactly where it left off. Prefer
stop/pause over rm whenever the user just wants something to stop happening.
node "${CLAUDE_PLUGIN_ROOT}/dist/runs.js" priority my-run 10 # higher number = scheduled sooner (default 0)
node "${CLAUDE_PLUGIN_ROOT}/dist/runs.js" rm my-run # delete this run + its subtree
node "${CLAUDE_PLUGIN_ROOT}/dist/runs.js" clean # remove COMPLETED runs (default)
node "${CLAUDE_PLUGIN_ROOT}/dist/runs.js" clean --failed # also remove failed
node "${CLAUDE_PLUGIN_ROOT}/dist/runs.js" clean --all # done + failed + aborted
node "${CLAUDE_PLUGIN_ROOT}/dist/runs.js" clean --older-than 7d --dry-run # preview first (30m|24h|7d|2w)
rm refuses to delete a still-active job, or a child of a running pipe, unless --force — those
are the cases that would break an in-flight pipeline.clean only ever touches finished top-level jobs (and their subtrees), so it can never remove a
running job's children. Always offer --dry-run first when the user is unsure.rm and clean delete state on disk and cannot be undone.
Confirm the target with the user (show runs list --all or a --dry-run) before deleting. Never rm
an active run with --force unless the user explicitly asked to discard it./agentflow:board for the session-start dashboard with suggestions;
/agentflow:inspect tree <id> to see a job's full child tree before removing it.<cmd>/<id>, e.g. pipe/my-run.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
run-management, job-control, pause-resume, queue-ordering, agentflow
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`.