CLI commands
ak plan
Manage AgentKit plan directories
ak plan
Manage AgentKit plan directories
Synopsis
What it does: Parse, validate, inspect, and mutate AgentKit plan directories (plan.md + phase-NN-*.md files). Supports both interactive TUI and scripted --json output modes.
Who it's for: Both: power devs (--json --no-interactive) and non-tech users (defaults).
When to use it: Planning, tracking progress, or automating plan operations in CI.
Examples: ak plan parse ./plans/my-plan # display structured plan view ak plan validate ./plans/my-plan # check format; exit 0 or 1 ak plan status ./plans/my-plan # progress summary ak plan kanban ./plans/my-plan # TUI kanban board ak plan create "My Feature" # scaffold new plan ak plan check ./plans/my-plan/phase-01-setup.md # mark phase done ak plan uncheck ./plans/my-plan/phase-01.md # mark phase todo ak plan add-phase ./plans/my-plan "Deploy" # append new phase
What changes on disk: create, check, uncheck, add-phase write to plan files. parse, validate, status, kanban are read-only.
Output modes: pretty default on TTY (colors, ASCII markers) plain auto when stdout piped or --no-interactive json --json (single-object envelope, NDJSON-safe)
Exit codes: 0 success 1 runtime error 2 invalid flags 3 user-cancel (SIGINT, prompt-cancel) 1 plan directory or phase file not found / I/O error 2 invalid flags or arguments 3 plan validation failed (validate subcommand)
Options
-h, --help help for plan
--json Emit machine-readable JSON (implies --no-interactive)
--no-interactive Disable interactive prompts (CI-safe)
-q, --quiet Suppress non-error output on stderr
-V, --verbose Extra diagnostic output on stderr (loses to --quiet)
-y, --yes Assume yes for all promptsSEE ALSO
- ak - AgentKit CLI
- ak plan add-phase - Append a new phase-NN-<slug>.md to an existing plan
- ak plan check - Mark all checkboxes in a phase file as done
- ak plan create - Bootstrap a new plan directory from template
- ak plan kanban - Display a kanban board of plan phases
- ak plan parse - Parse and display a structured plan view
- ak plan status - Print plan progress summary
- ak plan uncheck - Mark all checkboxes in a phase file as todo
- ak plan validate - Check plan directory format; exits 0 (valid) or 3 (invalid)