# Agents and subagents

_Run Claude Code, Codex, and other agents as chats._

An agent runs as a chat tab. The chat shows messages, tool calls, and diffs. The agent itself lives in acpmux, a daemon, so it keeps running when the app closes.

## Start and stop

```
cmux agent quick          # start an agent
cmux agent new-chat       # new agent chat in this pane
cmux agent stop-turn      # stop the current turn
cmux agent archive-chat
```

## Fork a conversation

A fork copies the conversation so you can try another path. Fork to the right, left, above, below, a new column on either side, a new row, a new tab, a new workspace, or a new window.

```
cmux agent fork-conversation-to-right
cmux agent fork-conversation-to-new-column-right
cmux agent fork-conversation-to-new-workspace
```

## Teams

```
cmux agent launch-claude-teams
cmux agent launch-codex-teams
```

## Subagents

A subagent is an agent another agent started. It gets its own workspace and chat, so you can open it, read it, and stop it like any other.

-   [Run agents on your own API keys](https://cmux.com/docs/nightly/next/own-keys)
-   [Open-weight models](https://cmux.com/docs/nightly/next/open-models)
-   [Audit agent spend](https://cmux.com/docs/nightly/next/agent-spend)

Canonical: https://cmux.com/docs/nightly/next/agents

Documentation index: https://cmux.com/llms.txt
