| title | CLI Reference |
|---|
This page lists the public Wavemill command surface and how each command fits into the overall workflow.
The default way to run Wavemill. Pulls backlog work, expands thin tasks, routes model selection, launches parallel agents, monitors PRs, and records learning data.
Initializes .wavemill-config.json in the current repository and can also create .wavemill/project-context.md.
Expands backlog issues into implementation-ready task packets. Useful when you want to prepare work ahead of mill mode.
wavemill expand
wavemill expand HOK-1494
wavemill expand https://linear.app/hokusai/issue/HOK-1494/fix-archived-routing-decision-parsing-for-eval-enrichment HOK-1531Breaks large initiatives into smaller issues that are easier for mill to execute autonomously.
Runs targeted LLM-powered review on a PR or shows review metrics.
Runs merge-readiness checks for a PR and reports whether it is safe to merge right now. In autonomous integration mode, this is the same policy surface tend uses for dependency, migration, risk, and challenge guards.
For direct development use:
wavemill ready <pr> --repo-dir <repo>
npx tsx tools/ready.ts <pr> --repo-dir <repo>Flags:
--repo-dir <path>: inspect a repository other than the current working directory
Runs one pass or a continuous loop over PRs targeting the integration branch.
wavemill tend --once --repo-dir <repo>
wavemill tend --loop --repo-dir <repo>
wavemill tend --once --dry-run --repo-dir <repo>Flags:
--once: run a single controller pass and exit--loop: run continuously inside the mill tmux session--dry-run: print queue status without mutating labels, branches, or PRs--repo-dir <path>: repository directory to inspect
Subcommands:
promote: open or refresh the promotion PR from the integration branch to the promotion branch
Inspects currently running mill tmux sessions and reports Wavemill infrastructure problems before they silently block progress. It reads tmux panes, process trees, .wavemill/workflow-state.json, and recent mill logs.
wavemill observer --once
wavemill observer --loop --interval 120
wavemill observer --json
wavemill observer --file-linear --linear-team HOKFlags:
--once: run one observation pass and exit--loop: continue watching active sessions--interval <seconds>: delay between loop iterations--json: emit structured snapshots for a supervising Codex session--file-linear: create Linear issues for high-confidence urgent/high findings usingLINEAR_API_KEYfrom.envor the environment--dry-run: report what would be found without creating Linear issues--print-prompt: print the recommended long-running Codex supervisor prompt
The observer itself is conservative: it detects and reports stuck states, warnings, crashes, and visual pane/display issues. A supervising Codex session should decide whether to apply a narrow operational nudge, file a Linear issue, or make a Wavemill PR targeting auto/integration.
Direct entry point for promotion mode.
wavemill promote --repo-dir <repo>
wavemill promote --dry-run --repo-dir <repo>Flags:
--dry-run: print promotion status without mutating GitHub state--repo-dir <path>: repository directory to inspect
Shows the recommended planner, coder, and reviewer workflow for a task or task file.
Evaluates completed workflow runs and supports reporting, export, and aggregation.
Manages opt-in submission for collective routing intelligence.
Subcommands:
wavemill hokusai statuswavemill hokusai enablewavemill hokusai disable
Manages subsystem documentation that helps agents retain project-specific architectural context.
Subcommands:
wavemill context initwavemill context update <subsystem>wavemill context checkwavemill context search <query>
Shows the installed Wavemill version.
Shows the built-in help output.
- Start with
wavemill initonce per repository. - Use
wavemill millfor the default operating model. - Use
wavemill expandwhen task packets need manual preparation. - Use
wavemill planwhen epics are too large to mill directly. - Use
wavemill revieworwavemill evalwhen you want targeted inspection. - Use
wavemill tendwhen you need to inspect or drive theauto/integrationqueue. - Use
wavemill observerwhen you want a long-running watchdog over active mill sessions. - Use
wavemill promotewhen you are ready to moveauto/integrationtowardmain. - Use
wavemill routeorwavemill hokusaiwhen you are tuning the learning system.
- Autonomous Integration — branch protection, promotion cadence, and rollback guidance
- Getting Started — first-time setup
- Mill Mode — core workflow
- Routing & Hokusai — self-improving routing