CLI Subagents
Give your coding agent subagents that run in your other agent CLIs and on your other accounts, all with the same tools.

Your main session, in Claude Code, Codex or Antigravity, can start subagents in Claude Code, Codex, Antigravity or OpenCode. Workers use your existing MCP servers and instructions. Accounts in the same CLI share its skills, plugins and settings too. When a pooled account runs out of quota, the work moves to the next one and carries on. OpenCode uses one profile; its free-model IP limit does not trigger account rotation.
It installs as a plugin in Claude Code, Codex and Antigravity, and works as a plain MCP server in any other MCP client.
flowchart LR
host["Your main session<br/>Claude Code · Codex · Antigravity"]
core["CLI Subagents<br/>jobs · accounts · messages"]
shared[("Your setup<br/>MCP servers · skills<br/>plugins · instructions")]
w1["Claude Code<br/>account 2"]
w2["Claude Code<br/>account 3"]
w3["Codex<br/>account 1"]
w4["Antigravity<br/>Gemini"]
w5["OpenCode v2<br/>your model or free DeepSeek"]
host -- "start · wait · message" --> core
core --> w1 & w2 & w3 & w4 & w5
shared -. "one shared pool" .-> w1 & w2 & w3
What you get
- Subagents that feel built in. Start one, keep working, and get the result back when it's done. In Claude Code they appear in the agent list like native subagents, colored by CLI and labeled with the model and task, and you can open one to watch each step and its reasoning as the worker goes.
csa setup --host codex also installs native Codex relay agents, with a separate thread for each job; see host support for the app verification still due. Claude Code's hooks also wake an idle session when a subagent finishes or asks a question, and list any uncollected results after you resume.
- Two-way messages. A subagent can send progress notes or ask a question and wait for the answer; you can send it follow-ups while it works, and each message is delivered once.
- Jobs you can always continue. A job that stopped (usage limit, cancel, timeout, or the PC switched off) keeps its worker conversation and continues where it stopped, with its override, waiting for a free slot when a cap is full. When its relay is gone, a new relay continues it with
resume=JOB; csa jobs --resumable lists those jobs.
- One setup for every account. Your MCP servers, skills, plugins, agents,
CLAUDE.md, project memory and settings are shared from your normal config folder through links and launch flags, not copied. Only the login differs per account.
- Automatic account switching. Claude Code and Codex report each account's 5-hour and weekly usage, and new work goes to the account with the most room. If a Claude, Codex or Gemini account hits its limit mid-task, the job continues on the next account (a Claude conversation moves with its transcript). Failover is on by default and can be turned off per CLI.
- Limits handled for you. Plan presets and extra caps are opt-in. By default,
max_jobs_per_account = 1 runs one worker per account and queues extra jobs. usage_ceiling = 0.95 blocks new starts on accounts with known usage at or above 95%. Set a plan or extra caps to refuse starts that would go over them, with one line that says what to do instead.
- Only the user can authorize more parallel jobs with
override=<their words> (relay or MCP) or --override "..." (csa run / csa start). Never set override on your own judgment; use it only when the user asked for more jobs in this conversation, or confirmed after you warned them and told them how much of the 5-hour window is left. It bypasses csa's caps and queueing; real usage-limit cooldowns, model and effort restrictions, login, depth and access still apply. See configuration.
- Optional delegation rules. Preview a template with model tiers with
csa rules, then choose whether to install it. See Delegation rules.
- Mixing CLIs. A Claude Code session can hand a task to Codex, Gemini (through Antigravity) or OpenCode. The subagent gets the parent's MCP servers and instruction-file paths. OpenCode v2 needs no csa setup: it becomes available when
opencode is on PATH, unless [opencode] enabled = false turns it off. It keeps your OpenCode default model, or uses opencode/deepseek-v4.1-flash-free when none is set. Free models are for personal projects only; see OpenCode.