Skip to main content

CLI Reference

The gt CLI is the primary interface for interacting with Gas Town. It manages workspaces, agents, work distribution, communication, and diagnostics across your entire multi-agent development environment.

Usage

gt <command> [subcommand] [options] [arguments]

Global flags available on all commands:

FlagDescription
--help, -hShow help for any command
--version, -vPrint the Gas Town version

Many subcommands also support --json, --verbose, --quiet, and --rig <name> flags. See individual command documentation for details.

Command Categories

CategoryDescriptionKey Commands
Workspace ManagementInstall, initialize, manage services, and configure your Gas Town workspacegt install, gt start, gt up, gt down, gt shutdown, gt status
Agent OperationsStart, stop, and manage the agent hierarchygt mayor, gt deacon, gt witness, gt polecat, gt crew
Work ManagementCreate, assign, track, and complete work itemsgt sling, gt hook, gt done, gt commit, bd create
Convoy & TrackingBundle and track batches of related workgt convoy create, gt convoy status, gt synthesis
CommunicationSend and receive messages between agents and humansgt mail, gt nudge, gt broadcast, gt escalate
Merge QueueManage the refinery merge pipelinegt mq list, gt mq submit, gt mq status
Rig ManagementAdd, configure, and manage project containersgt rig add, gt rig start, gt rig config
Session & HandoffManage agent sessions, handoffs, and moleculesgt handoff, gt resume, gt prime, gt mol, gt cycle
DiagnosticsMonitor, audit, and troubleshoot the systemgt activity, gt doctor, gt dashboard, gt status
ConfigurationConfigure agents, accounts, themes, hooks, and pluginsgt config, gt account, gt theme, gt hooks, gt plugin

Gas Town integrates with the Beads issue tracker (bd CLI). Beads commands are documented in the Work Management section alongside gt work commands.

Quick Examples

# Set up a new workspace
gt install ~/gt --git

# Add a project and start working
gt rig add myapp https://github.com/you/app.git
gt start

# Check system status
gt status
gt rig list
gt feed

# Diagnose issues
gt doctor
gt dashboard
Shell Completions

Install tab completions for a better CLI experience. See Workspace Management for setup instructions.

Context-Aware Commands

Many gt commands auto-detect the current rig based on your working directory. Use --rig <name> to override this when needed.