Cmd. /agent
Switch between spawned Codex subagent threads to inspect each agent transcript, status, model, and reasoning effort before merging their work.
Key takeaways
/agentswitches the active agent thread so you can inspect or continue work inside a spawned subagent.- Pair it with
/statusand/diffin multi-agent work before deciding what to integrate. - TUI displays now show each spawned agent's model and reasoning effort, and remote sessions surface agent names and paths instead of raw IDs.
- Never treat subagent output as merged until you review its diffs and tests.
Original Command Declaration
/agentOfficial Summary
/agent switches the active agent thread so you can inspect or continue work in a spawned subagent.
Usage
/agentGood Examples
- After spawning a subagent, use
/agentto inspect the subagent transcript and current status. - In long multi-agent work, combine
/agent,/status, and/diffbefore deciding what to integrate.
Similar Commands
| Command | Difference | Choose It When |
|---|---|---|
/agent | Switches among spawned agent threads | You need to inspect an agent's work |
/side | Opens a temporary side conversation | You need a short separate question |
/fork | Branches the current conversation | You need a longer alternate path |
Use Cases
- Reviewing subagent progress.
- Continuing work in a specific worker thread.
- Coordinating multi-agent investigations without losing the main transcript.
Recent Changes
- Agent role file metadata can be loaded for clearer agent identities.
- TUI displays for spawned agents include model and reasoning effort.
- Remote multi-agent sessions now show agent names and paths more clearly than raw IDs.
Cautions
- Do not treat subagent output as merged work until you review diffs and tests.
- Use
/statusif you are unsure which thread is active.
Release Basis
- Judgment: first observed mention
- First evidence version:
rust-v0.95.0 - Date (UTC): 2026-02-04
- Release link: https://github.com/openai/codex/releases/tag/rust-v0.95.0
Sources
- Codex slash commands: https://developers.openai.com/codex/cli/slash-commands
- Codex CLI features: https://developers.openai.com/codex/cli/features