AgentKit
DocsKitsCLI ReferenceDesktop App

ak plan

ak plan

Choose safely between plan-directory commands and the private local plan-store lifecycle.

Use ak plan as the namespace for working with AgentKit plan files and the local plan index. The group command itself only prints help; select a subcommand to read or change a plan.

Usage

ak plan

The group accepts no positional arguments and has no command-specific flags. Shared flags are described in CLI conventions, but ak plan --json is not a JSON data operation: the parent has no renderer and still shows command help.

Choose the correct storage layer

GoalCommandPrimary ownerEffect
Create a plan directoryak plan create <name>Plan filesCreates plan.md and a starter phase, then best-effort indexes them.
Add or complete tasksak plan add-phase, ak plan checkPlan filesWrites phase Markdown, then best-effort refreshes an existing store row.
Inspect one directoryak plan parse <path>, ak plan kanban [path]Plan filesReads plan.md and phase-NN-*.md directly.
List tracked workak plan listPlan store, with a files fallbackReads the private SQLite index; may fall back to the current repository's ./plans/.
Close, archive, or retainak plan close, ak plan archive, ak plan cleanupPlan storeChanges lifecycle state without deleting the plan directory.
Import older foldersak plan migrate --from-project-filesFiles to plan storePreviews or indexes recognized repository plan folders.
Manage one indexed phaseak plan phaseFiles and plan store, depending on the child commandKeeps file-owned phase state separate from index-only notes and evidence.

Plan files under a repository are canonical for their title, body, phase content, and checkbox-derived progress. The store lives at $AGENTKIT_HOME/plans/plans.db (default ~/.agentkit/plans/plans.db) and holds cross-project identity, lifecycle state, index-only fields, and full-text search data.

Local effects and privacy

The plan family does not contact a network, authenticate, invoke a provider, or use a remote cache. Commands that resolve repository identity can launch the local git executable with fixed arguments. Store-backed commands can create the private plan-store directory and database, tighten their permissions, and apply forward-only schema migrations when the store is opened.

Structured plan output can include repository URLs, absolute project or worktree paths, and plan text or titles. Remove local details before sharing captured JSON outside your machine.

Confirmation and recovery

There is no family-wide confirmation rule. File mutations, close, and archive run directly. cleanup and migrate instead use an explicit preview/apply split. --yes does not replace either command's required --apply flag.

Close, archive, and applied cleanup retain plan-store recovery databases. These are separate from the general ak backups inventory and do not back up the repository's plan files. Read the command page before changing either layer.

Exit behavior

Running the parent help succeeds with exit 0. Invalid parent flags or arguments use exit 2. Every operational exit is subcommand-local; do not apply the parent's generic 1/2/3 help rows as a complete contract for all children.