Command Reference

Complete CLI reference for all ait subcommands

Task Management

CommandDescription
ait createCreate a new task as draft, or finalize drafts (interactive or batch mode)
ait lsList and filter tasks by priority, effort, status, labels
ait updateUpdate task metadata (status, priority, labels, etc.)
ait syncSync task data with remote (push/pull)
ait gitRun git commands against task data (worktree-aware)
ait lockLock/unlock tasks to prevent concurrent work

TUI

CommandDescription
ait boardOpen the kanban-style TUI board
ait codebrowserLaunch the code browser TUI
ait settingsOpen the settings TUI for configuration management

Integration

CommandDescription
ait issue-importImport tasks from GitHub/GitLab/Bitbucket issues
ait issue-updateUpdate or close linked GitHub/GitLab/Bitbucket issues
ait pr-importImport pull requests as tasks or extract PR data for AI analysis

Reporting

CommandDescription
ait statsShow task completion statistics
ait changelogGather changelog data from commits and archived plans

Tools

CommandDescription
ait codeagentManage code agent and model configuration
ait explain-runsManage aiexplain run directories (list, delete, cleanup)
ait explain-cleanupRemove stale aiexplain run directories
ait zip-oldArchive old completed task and plan files

Infrastructure

CommandDescription
ait setupInstall/update dependencies and configure Claude Code permissions
ait installUpdate aitasks to latest or specific version

Usage Examples

ait setup                               # Install dependencies
ait create                              # Interactive task creation (draft workflow)
ait create --batch --name "fix_bug"     # Create draft (no network needed)
ait create --batch --name "fix_bug" --commit  # Create and finalize immediately
ait create --batch --finalize-all       # Finalize all draft tasks
ait ls -v 15                            # List top 15 tasks (verbose)
ait ls -v -l ui,frontend 10             # Filter by labels
ait update --batch 42 --status Done     # Mark task done
ait board                               # Open TUI board
ait codebrowser                         # Open code browser TUI
ait issue-import                        # Import issues from issue tracker
ait lock 42                             # Pre-lock a task before Claude Web
ait lock --list                         # See all active locks
ait lock --unlock 42                    # Release a lock
ait sync                               # Interactive sync with progress
ait sync --batch                        # Batch mode for scripting
ait git add aitasks/t42.md              # Git operations on task data
ait stats                               # Show completion stats
ait explain-runs --list                  # List all explain runs
ait explain-runs --cleanup-stale         # Remove stale runs
ait explain-cleanup --dry-run --all      # Preview stale cleanup
ait codeagent list-agents                 # Show available code agents
ait codeagent list-models claudecode      # List Claude models
ait codeagent resolve task-pick           # Show configured agent/model
ait settings                              # Open settings TUI
ait install                              # Update to latest version
ait install 0.2.1                        # Install specific version
ait --version                           # Show installed version

Next: Development Guide


Setup & Install

ait setup and ait install commands

Task Management

ait create, ait ls, and ait update commands

Board, Code Browser & Stats

ait board, ait codebrowser, and ait stats commands

Explain Utilities

ait explain-runs and ait explain-cleanup commands

Sync

ait sync command for bidirectional task data synchronization

Lock

ait lock command for atomic task locking to prevent concurrent work

Issue Integration & Utilities

ait issue-import, ait issue-update, ait changelog, and ait zip-old commands

PR Import

ait pr-import — import pull requests as tasks or extract PR data for AI analysis

Code Agent

ait codeagent command for multi-agent model selection and invocation