AgentKit
ReferenceCLI commands
BetaYou are reading docs for the beta channel (2.4.1-beta.1) — updated automatically on every beta release.Switch to stable →

CLI commands

ak plan create

Bootstrap a new plan directory from template

Scaffold a new AgentKit plan directory under --basedir (default: ./plans/). Creates plan.md with YAML front matter and a starter phase-01-start.md.

Who it's for: Both: interactive planning and CI automation.

When to use it: (unspecified)

What changes on disk: Creates <basedir>/<timestamp>-<slug>/ with plan.md and phase-01-start.md.

Usage

ak plan create <name> [flags]

Examples

ak plan create "My Feature"
ak plan create "Deploy Pipeline" --basedir ./work
ak plan create "Auth" --json

Flags

FlagDescription
--basedir stringParent directory for the new plan (default: ./plans/)
-h, --helphelp for create
--jsonEmit machine-readable JSON (implies --no-interactive)
--no-interactiveDisable interactive prompts (CI-safe)
-q, --quietSuppress non-error output on stderr
-V, --verboseExtra diagnostic output on stderr (loses to --quiet)
-y, --yesAssume yes for all prompts

Output modes

ModeBehavior
prettydefault on TTY (colors, ASCII markers)
plainauto when stdout piped or --no-interactive
json--json (single-object envelope, NDJSON-safe)

Exit codes

CodeMeaning
0success
1runtime error
2invalid flags
3user-cancel (SIGINT, prompt-cancel)
1I/O error or invalid name
  • ak plan — Manage AgentKit plan directories

On this page