Slash commands
A line that starts with / is a command; any other line is a message for the agent named below the input, or a note for a running pipeline. The terminal chat, the desktop app and VS Code read commands the same way.
On this page
Messages and commands
- A plain message goes to the current recipient: Codex when a conversation starts, until
/claudeor/codexswitches it. - While a pipeline runs, a plain message is a note for it: the agents get it from the next step. See Notes.
- Typing
/lists the commands, and the words each one takes as you go on. - A command the chat does not know is not sent anywhere: it answers
unknown command … — /help lists the commands.
Asking an agent
| Command | Effect |
|---|---|
/claude <question> | Asks Claude Code, whoever the recipient is. |
/codex <question> | Asks Codex, whoever the recipient is. |
/claude, /codex | Alone: your next messages go to that agent. |
/claude -- <question> | Always a question, even when it starts with a setting’s name (/claude -- model of the cache?). |
Words after /claude or /codex are a setting only when they have exactly a setting’s shape (below); anything else is a question. When the words start like a setting but do not fit it, they go as a question and the chat says how to set it instead.
Handing work to both agents
| Command | Effect |
|---|---|
/pipeline <task> | Runs the full workflow: plan → critique → finalize → implement → verify → review. Needs a Git repository. The pipeline. |
/discuss <question> | The recipient answers, the other agent reviews, they revise until they agree, then Codex sums it up. Works in any folder. Discussions. |
Without words both print their usage. Files waiting to be sent go with the task or the question.
Runs
| Command | Effect |
|---|---|
/resume | Continues the run stopped with Esc, or else the workspace’s latest run, unless it has ended (DONE or ABORTED). |
/resume <note> | The same, with a note for the agents (and the waiting files). |
/resume <run id> | Continues that run of this workspace. |
/plan | Shows the final plan of the current run (or its latest plan). |
/diff | Shows the diff stat of what the current run changed. |
/status | Shows the run’s phase, its planning and implementation rounds, and its cost and tokens; also who is answering or discussing now. |
The current run is the one going, else the one stopped, else the last one of this chat. /resume needs a Git repository; see Decisions and resume for what it does at each kind of stop.
Files
| Command | Effect |
|---|---|
/attach <path> | Attaches a copy of a file (image, PDF, text, code…) to your next message. One file at a time; quote a path with spaces or escape them. ~/ is your home folder. |
/attachments | Lists the files waiting to go with your next message, numbered. |
/detach <n>, /detach all | Removes one waiting file (by its number) or all of them. |
Chat
/attach screenshots/bug.png
/attach "~/Desktop/My notes.pdf"
/detach 1More in Attachments.
Settings: /mode, /claude, /codex and /settings
These commands mirror the CLIs’ own /model, /effort, /permissions and /add-dir, and change only the flags AgentDuo passes. Without a value, each one shows the current setting.
| Command | Effect |
|---|---|
/mode manual|acceptEdits|auto | Claude’s permission mode, in the chat and as the pipeline’s implementer: Manual (asks before each edit), Edit automatically, or Auto. Shift+Tab cycles through them. |
/claude model <name|default> | Claude’s model or alias (opus, sonnet, haiku, a full name). |
/claude effort low|medium|high|xhigh|max|default | Claude’s effort level. |
/claude permissions allow|deny <rule> | A tool rule for AgentDuo’s calls, on top of Claude Code’s own settings, e.g. Bash(npm test:*). |
/claude permissions remove <rule> | Drops an allow or deny rule. Alone, /claude permissions lists the rules. |
/claude add-dir <path> | Another directory Claude may work in. |
/codex model <name|default> [effort] | Codex’s model, and optionally its reasoning effort: minimal, low, medium, high, xhigh, max. |
/codex permissions read-only|auto|full-access|default | What Codex may do: read only, change files in the workspace, or change any file and use the network. full-access needs --yes. |
/settings claude|codex <setting> … | The canonical form of the same settings: a mistake gets the usage instead of becoming a question. /settings mode … is /mode. |
/settings, /config | Shows the settings both agents run with now, and their models. |
This chat, this workspace, or every workspace
| Flag | Kept |
|---|---|
| (none) | In this chat only, until it ends. |
--save | Also written to the workspace’s .agentduo/config.yaml. |
--global | Also written to your user config (~/.config/agentduo/config.yaml, or %APPDATA%\agentduo\config.yaml on Windows), for every workspace. If the workspace’s config sets the same key, the chat says that it wins there. |
--yes | Confirms /codex permissions full-access. |
Chat
/claude model opus --save
/codex permissions auto --global
/mode acceptEdits
/claude permissions allow Bash(npm test:*)Going back to the default
default as a model, an effort or Codex’s permissions leaves the choice to the CLI’s own configuration: AgentDuo passes no flag. /mode manual is Claude’s default mode, and /claude permissions remove <rule> drops a rule.
When a change applies
A change from these commands reaches the run or discussion going now from its next agent call, and its saved config, so a later resume keeps it. Questions take it from the next question.
Note
Settings that only start with new work (the agents roles and every limits key) are not chat commands; they are in the config files: Configuration reference.
The chat itself
| Command | Effect |
|---|---|
/usage | How much of their plans’ limits Claude Code and Codex have used, without calling a model. Accounts and usage. |
/new | A new conversation: the agents no longer see what was said before. A stopped run stays resumable. In VS Code it opens in a tab of its own. |
/help | Lists the commands, the settings and the keys. |
/quit, /exit | Leaves; a running pipeline stops at its step and stays resumable. |
Keys
| Key | Effect |
|---|---|
| Enter | Sends the line. With files waiting and no words, the files go on their own. |
| Esc | Stops what is running: an answer or a discussion ends there; a pipeline’s current step stops and /resume continues it. |
| Shift+Tab | Switches Claude’s mode: Manual, Edit automatically, Auto (as in Claude Code). |
| Ctrl+C twice | Leaves the terminal chat. |
In the desktop app and VS Code the recipient menu also offers Discuss and Pipeline: the text you send is then the question or the task. A typed command still goes as typed.