Command Reference

Every wg command at a glance. All commands support --json for machine-readable output and --dir <path> for custom workgraph directories.


Task management

CommandDescription
wg add <title>Create a new task. Supports --after, --verify, --model, --skill, --hours, --deliverable, and more.
wg edit <id>Modify an existing task's fields — title, description, tags, skills, model, verify criteria, etc.
wg done <id>Mark task complete. Use --converged to stop a cycle.
wg fail <id>Mark task as failed with --reason.
wg abandon <id>Mark task as abandoned (terminal state).
wg retry <id>Reset a failed task back to open.
wg claim <id>Claim a task for work (sets in-progress).
wg unclaim <id>Release a claimed task back to open.
wg reclaim <id>Transfer a task from one agent to another.
wg pause <id>Pause a task — coordinator skips it.
wg resume <id>Resume a paused task.
wg approve <id>Approve a task pending validation.
wg reject <id>Reject a task pending validation with feedback.
wg assign <task> <agent>Assign an agent identity to a task.
wg add-dep <task> <dep>Add a dependency edge.
wg rm-dep <task> <dep>Remove a dependency edge.
wg wait <id>Park a task until a condition is met.
wg publish <id>Publish a draft task (validates deps, resumes subgraph).
wg log <id> "msg"Add a progress note. Use --list to view.
wg artifact <id> <path>Record a file artifact on a task.

Query commands

CommandDescription
wg show <id>Full task details — description, logs, timestamps, deps, model.
wg listList tasks. Filter with --status, --tag, --skill.
wg readyTasks with no unfinished blockers.
wg vizASCII dependency graph. Use wg viz <id> to show a subtree.
wg statusSummary statistics — counts by status.
wg cyclesInspect detected cycles with iteration counts.
wg contextView the current task's full context.
wg quickstartSession orientation — shows project state and next steps.

Service commands

CommandDescription
wg service startStart the background daemon.
wg service stopStop daemon. --kill-agents to also kill agents.
wg service statusDaemon PID, uptime, agent summary.
wg service reloadRe-read config.toml without restarting.
wg service restartGraceful stop then start.
wg service pausePause coordinator (no new spawns).
wg service resumeResume coordinator.
wg service installGenerate systemd user service file.

Agent commands

CommandDescription
wg agentsList agents. --alive, --dead, --working, --idle.
wg spawn <task>Manually spawn an agent for a task.
wg kill <agent>Kill an agent (unclaims its task). --force for SIGKILL.
wg dead-agentsCheck for dead agents. --cleanup, --purge.

Agency commands

CommandDescription
wg agency initSeed starter roles and tradeoffs.
wg agency statsPerformance leaderboard, synergy matrix.
wg role add <name>Create a role with --outcome, --skill.
wg role listList all roles.
wg role show <id>Show role details.
wg tradeoff add <name>Create a tradeoff with --accept, --reject.
wg tradeoff listList all tradeoffs.
wg agent create <name>Create an agent with --role, --tradeoff.
wg agent listList all agents.
wg evaluate run <task>LLM-based evaluation of completed task.
wg evaluate showView evaluation history.
wg evolve runEvolve agency using performance data.

Configuration

CommandDescription
wg config --listShow merged config (source: global, local, or default).
wg config --max-agents <n>Set max parallel agents.
wg config --model <m>Set default model.
wg config --executor <e>Set executor type.
wg config --auto-assign trueEnable automatic agent assignment.
wg config --auto-evaluate trueEnable automatic evaluation.
wg config --flip-enabled trueEnable FLIP scoring.
wg config --globalShow/set global config only.
wg config --localShow/set project config only.
wg setupInteractive setup wizard (run once after install).

Model management

CommandDescription
wg model listShow all models (built-in + user-defined).
wg model add <name>Add a model with --provider, --model-id.
wg model set-default <m>Set default dispatch model.
wg model set --role <r> <m>Per-role model routing.
wg key set <provider>Configure a provider's API key.
wg key checkValidate key availability.

Communication

CommandDescription
wg msg send <task> "text"Send a message on a task.
wg msg read <task>Read messages for a task.

Utilities

CommandDescription
wg initInitialize a workgraph in the current directory.
wg tuiInteractive terminal dashboard.
wg watchWatch task graph for changes.
wg gcGarbage collect completed/abandoned tasks.
wg sweepClean up orphaned tasks.
wg skill installInstall the Claude Code skill.
wg skill listList available skills.
wg func listList reusable workflow functions.
wg func apply <id>Instantiate a workflow function.

Run wg --help or wg <command> --help for full details on any command.