Skip to Content

AIX CLI Command Reference

This document provides complete syntax, arguments, options, and exit code definitions for the aix CLI binary.


1. Top-Level Command Syntax

aix [OPTIONS] [PROMPT] aix [COMMAND] [ARGS...]

Global Options

OptionShorthandTypeDescription
--mode-mcontrol|auto|fast|planExecution autonomy mode (Default: control)
--yes-yflagAuto-approve bounded tool executions (Identical to --mode auto)
--planflagDry-run mode: generates diff plan without writing to filesystem
--target-tsn|gcp|localEnvironment endpoint target profile (Default: sn)
--modelstringOverride default model (e.g. claude-3-5-sonnet, qwen-max-longcontext)
--timeoutintegerMaximum execution timeout in seconds (Default: 600)
--verbose-vflagEnable detailed debug logs, JSON-RPC payloads, and timing
--version-VflagDisplay version information and exit
--help-hflagShow help screen and command options

2. Command Reference

aix run / Direct Prompt Execution

Execute autonomous engineering workflows directly:

# Interactive single prompt aix "Refactor the payment retry loop in payments/worker.py to use exponential backoff" # Fully automated non-interactive SWE loop aix -y "Fix issue #412: WMS GC stock adjustment event dropped on network timeout" # Stream execution output in JSONL format for CI/CD runners aix --mode auto --output jsonl "Run static security audit"

aix doctor

Audit environment, credentials, network routes, and sandbox permissions:

aix doctor [--fix] [--json]

aix profile

Manage corporate environment connections:

aix profile list # List all configured profiles aix profile show # Display active profile details aix profile use <name> # Switch active profile (e.g. sn, gcp) aix profile add <name> # Add new connection target

aix tui

Launch the 4-Split interactive full-screen terminal dashboard:

aix tui [--session <session_id>]

aix vibe (Multi-Agent Swarm Orchestration)

Orchestrate a team of specialized agents (Architect, Dev, Data Engineer, QA, Ops):

# Launch multi-agent cooperative team aix vibe --team fullstack "Build a high-throughput webhook receiver with Kafka forwarding" # Run architecture tournament between 3 LLM models aix vibe --tournament 3 "Design a distributed rate limiter with Redis Cluster backend"

aix mcp (Model Context Protocol Integration)

Inspect and invoke enterprise MCP server tools:

aix mcp list # List connected MCP servers & active tools aix mcp call <tool> <args> # Manually invoke an MCP tool with JSON arguments aix mcp ping # Verify connectivity to remote MCP server pool

3. Process Exit Codes (0-6)

Automation scripts and CI/CD pipelines rely on deterministic exit codes:

CodeLabelMeaningRecommended Action
0SUCCESSTask completed cleanly; all verification tests passedProceed to next pipeline stage
1GENERAL_ERRORUnhandled exception or unexpected failureCheck standard error output
2VERIFICATION_FAILEDCode generated, but tests failed to passInspect pytest report; increase loop iterations
3CIRCUIT_BREAKER_TRIPPEDRepetitive tool failures reached breaker thresholdCheck permissions or invalid diff syntax
4TIMEOUTTask runtime exceeded --timeout limitIncrease timeout or decompose prompt into smaller tasks
5POLICY_VIOLATIONAction denied by Cedar governance / sandbox ruleRequest elevated PAM lease or adjust policy
6AUTH_EXPIREDSSO token or API key expiredRun aix auth login to renew credentials

4. Error Taxonomy & Troubleshooting

Error CodeRoot CauseRemediation
ERR_AUTH_LEASE_EXPIREDPAM lease exceeded max TTL (8 hours)Run aix auth login --target sn to acquire a new lease
ERR_GATEWAY_TIMEOUTUpstream model pool latency spikeSpecify fallback model via --model claude-3-5-haiku
ERR_SANDBOX_ESCAPE_PREVENTEDTool attempted writing outside workspace rootKeep file paths relative to git root
ERR_DIFF_HUNK_REJECTEDFile modified concurrently on diskRun git stash or re-synchronize working tree