Console Agents (ca) Command Reference & Combinations Guide

This document provides a comprehensive reference of all CLI commands, shell commands, options, and practical command combinations for Console Agents (ca).


1. Global Options & Flags

Global flags apply to the root ca command and can be combined with any subcommand:

Global FlagDescriptionExample
-C <dir>, --dir <dir>Specify target project directoryca -C W:\code\shop status
-P <name|n>, --project <name|n>Select registered project by name or indexca -P shop chats or ca -P 2 chats
--chat <n|id>Select target chat number or IDca --chat 3 log
-q, --quietSuppress live agent streaming activityca -q run "Run tests"
--versionDisplay version informationca --version

2. Common Execution Flags

These options apply to commands that execute turns (run, continue, /new, /continue):

FlagDescriptionValues / Examples
--agent <name>Force or prioritize a specific agent--agent claude, --agent codex, --agent antigravity, --agent agy-claude, --agent agy-gpt
--max-turns <N>Cap the maximum number of turns for this run--max-turns 5, --max-turns 20
--permission <mode>Override tool permission level--permission full (default autonomous), --permission edits (edits only), --permission read (read-only)
--no-waitExit immediately instead of waiting when all agents hit quota limits--no-wait

3. Command Syntax & All Combination Types

3.1 Starting Tasks: ca run (aliases: r, task, t)

Syntax:

ca run <task...> [options]
ca r <task...> [options]

Combinations:


3.2 Continuing Tasks: ca continue (aliases: c)

Syntax:

ca continue [options]
ca c [options]

Combinations:


3.3 Listing Chats: ca chats (aliases: ls)

Syntax:

ca chats [options]
ca ls [options]

Combinations:


3.4 Opening and Monitoring Chats: ca open (aliases: o)

Syntax:

ca open [chat_ref]
ca o [chat_ref]

Combinations:


3.5 Stopping Chats: ca stop (aliases: x)

Syntax:

ca stop [chat_ref]
ca x [chat_ref]

Combinations:


3.6 Deleting Chats: ca delete (aliases: rm, del)

Syntax:

ca delete [chat_refs...] [options]
ca rm [chat_refs...] [options]

Combinations:


3.7 Process Inspection & Cleanup: ca ps & ca kill (alias: k)

Combinations:


3.8 Chat Inspection: ca status, ca roadmap, ca log

Combinations:


3.9 Usage & Account Quota Checks: ca usage (aliases: u)

Combinations:


3.10 Agent Discovery: ca agents (aliases: a)


3.11 Project Management: ca project (aliases: p, projects)

Combinations:


3.12 Memory Management: ca memory (aliases: m, mem)

Combinations:


3.13 Settings & Configuration: ca settings (aliases: st), ca config (aliases: cf)

Combinations:


3.14 Direct System & Automation Commands


3.15 App Updates and Rollback

Updates affect the ConsoleAgents installation repository, independent of -C, -P or the open chat. Requires Git, a Git clone, a configured remote (normally GitHub origin) and network access for updates. Stop active chats and commit or stash installation edits first.

ca update --check             # fetch and show incoming commits without applying them
ca update                     # display changes and ask before applying
ca update -y                  # apply without confirmation
ca update --target v1.2.0      # check out a specific available ref/tag/commit
ca rollback --list            # list checkpoints, newest first
ca rollback                   # interactive table, selection, then confirmation
ca revert 1                   # restore checkpoint 1, with confirmation
ca rollback <commit> -y        # restore an explicit local commit without prompts
ca update --rollback          # open the same rollback interface

update aliases: up, upgrade. rollback aliases: revert, rb. The shell accepts the same options with a slash: /update --check, /update -y, /rollback --list, /rollback, /revert 1.

CommandOptionsMeaning
update--check, -cFetch and inspect updates only
update--target <ref>Check out an available ref instead of pulling; a tag or commit can leave HEAD detached, requiring a branch checkout before later updates
update--rollback, -rUse the rollback interface; --target <ref> selects its target
rollback[checkpoint_ref] or --target <ref>Checkpoint number (1 = newest) or local Git ref/commit
rollback--list, -lShow checkpoint dates, commits, actions and summaries
Both--yes, -ySkip confirmation; rollback without a target chooses the newest checkpoint
Both--allow-dirtyBypass the tracked local-edit guard; rollback can discard uncommitted edits

Normal updates use git pull --ff-only, refusing divergent history. Each update and rollback saves the previous committed version in .autoagents/update_history.json (up to 50 entries). The interactive rollback table accepts a checkpoint number, or q/empty input to cancel, then requires y to restore it. Rollback needs no network: it resets the current branch and tracked files to a locally available commit. Checkpoints do not back up uncommitted edits. Restart ca after changing versions to load the new code.

If the shell fails to open, run ca rollback directly in a terminal, or python /path/to/ConsoleAgents/ca.py rollback when the launcher is unavailable. This fallback still requires a working Python interpreter and CLI package.


4. Interactive Shell Slash Commands

When running inside the interactive ca console shell, the following commands are available:

Shell CommandEquivalent CLI CommandDescription
<task text>ca run "<task>" --bgStart new background chat and open it
<message>ca continue -m "<msg>"Send message/reply to the currently open chat
/new <task> (/n, /task, /t)ca run "<task>" --bgStart new chat (supports --agent, --no-plan, etc.)
/plan <task>ca run "<task>" --plan --bgForce creation of a roadmap
/noplan <task>ca run "<task>" --no-plan --bgRun directly without a roadmap
/continue [msg] (/c)ca continue [-m "<msg>"]Continue current chat
/open <n|proj#n> (/o)ca open <n>Open and follow chat live
/back (/b, /home)-Return home from open chat (chat keeps working)
/chats [all] [--details] (/ls)ca chats [--all] [--details]List chats; include hidden fields on narrow screens
/stop [n] (/x)ca stop [n]Stop background chat
/rm <n...> [--done] [-y] [-f]ca delete ...Delete chats
/ps [--all] [--details]ca ps [--all] [--details]List tracked processes; include hidden fields on narrow screens
/kill <pid...> | all (/k)ca kill ...Kill leftover processes
/status (/s)ca statusView chat status
/roadmap (/rd)ca roadmapView roadmap
/log (/l)ca logView steps log
/usage (/u)ca usageView usage quotas
/usage refresh [agent] (/u refresh)ca usage refresh [agent]Check account quotas without prompt costs
/agents (/a)ca agentsView agent availability
/project [use <n|name>] (/p)ca project ...Switch or list projects
/memory [add ... | rm ...] (/m)ca memory ...Manage memory entries
/update [--check] [-y]ca update ...Check or update the app from GitHub
/rollback [ref] [--list] (/revert, /rb)ca rollback ...Choose and restore a saved app version
/settings [set ...] (/st)ca settings ...Adjust settings
/swf / /qqqca swf / ca qqqToggle shut-down-when-finished
/cd <dir>-Change working directory inside shell
/help (/?)-Show command help
/quit (/q)-Exit the interactive shell

Narrow screens and pinned status

The shell and CLI adapt to terminal width. Narrow usage lists show percentages instead of bars; chat lists omit update timestamps, and process lists omit agent, age and memory fields. ca chats --details / /ls --details and ca ps --details / /ps --details retain those fields in wrapped blocks. ca usage show codex / /u show codex includes reset times, report age, status and pacing. Desktop table columns remain available as before.

Agent display labels are orange Claude, blue Gemini (antigravity) and gray GPT (codex). Use the original identifiers in command arguments and settings. Progress lines use only a vendor-colored elapsed time, for example 0:03, followed by the message.

The interactive shell and ca open pin local usage and tracked process count at the top of compatible ANSI terminals. The header refreshes from local files every three seconds without making account requests, and follows terminal resize and project switches. It may use up to three rows; very narrow/short screens may not fit every enabled agent. Use /u for the full list.

Header fieldMeaning
P:3Three unique live tracked processes across registered projects plus the current project, including agent CLIs and helpers; P:? means the count could not be read
42%Highest usage across the agent's two quota windows
42%~Local token estimate
42%*Stale or cached account report
?No usable usage data
42%?Known usage in one window; another window is unknown
-Both windows reported disabled

When pinned status is active, the shell editor redraws typed input after asynchronous output. Use arrows, Home/End, Delete and Backspace to edit; Up/Down recall this session's history, Ctrl+U clears the line, and Ctrl+D on an empty line exits. Long input scrolls horizontally. Bracketed multiline paste is submitted as one message, with newlines converted to spaces. Ctrl+C leaves an open chat or exits from home. The scroll region, paste mode and POSIX input settings are restored when the shell closes or raises an exception.

Set CONSOLEAGENTS_HEADER=0 before launching to keep ordinary console input/output. The header is also skipped when input/output is redirected, TERM is dumb/unknown, terminal capabilities are unavailable, or the startup size is under 16 columns/four rows. Colors honor NO_COLOR; pinning does not require colored text. Native Windows console and WSL POSIX PTY checks have passed; actual Android/Termux execution remains unverified.