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 validate

Check plan directory format; exits 0 (valid) or 3 (invalid)

Validate that a plan directory follows the CK convention: plan.md with front-matter title, and at least one phase-NN-*.md file.

Who it's for: Power devs (CI/CD gates, scripting).

When to use it: (unspecified)

What changes on disk: Read-only.

Usage

ak plan validate <path> [flags]

Examples

ak plan validate ./plans/my-plan
ak plan validate ./plans/my-plan --json

Flags

FlagDescription
-h, --helphelp for validate
--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)
0plan is valid
3plan failed validation
  • ak plan — Manage AgentKit plan directories

On this page