How to add an agent
This guide shows how to add an agent from the Sidekicks window, with the "Add an agent" assistant, wherever the agent runs: on this computer, in a Docker container or in an sbx sandbox. It assumes the agent's program speaks ACP (for mm: the -acp argument).
Steps
- Open the assistant: + Add my first agent on the welcome screen, + Add an agent under the agents list, or ⇧⌘N (Ctrl+Shift+N on Linux and Windows).
- Who is it? Fill in Name shown (e.g.
Garfield (translator)). Name used with @ follows it; change it if you want a shorter one (lowercase letters, digits,-and_, starting with a letter). The icon and the description are optional: the icon is an emoji, or a letter shown in a coloured circle; left empty, the circle holds the first letter of the name shown. - Where does it run? Choose the environment, then fill in what it asks for (see below).
- How is it started? Fill in Program (choose
mm,docker-agentordocker agentin the list — plusclaude-agent-acp,codex-acpandgeminiin an sbx sandbox — or type another), Arguments (on one line, as in a terminal; quotes group words) and Agent's folder. The folder is created when it does not exist. - Click Add the agent. Its direct conversation opens once the configuration is reloaded.
When the agent cannot be added (a name already used, for instance), the assistant says why and writes nothing.
Variants
- On this computer, from the agent's configuration file: choose the program, then drop the agent's YAML file on The agent's configuration file (or click Choose a file…). The agent's folder becomes the file's folder; for
mm,docker-agentanddocker agentthe arguments are filled in (--acp --config <file>,serve acp <file>). For another program, type the arguments. Changing the program afterwards fills them again. Every field stays editable. The same works in an sbx sandbox or in a Docker container, as long as the file is in a folder the sandbox shares, or the container mounts, at the same path (it is read there). - On this computer: the program runs here, in the agent's folder. If Sidekicks was opened from the Finder and does not find the program, write its full path (
which mmin a terminal gives it). Sidekicks reads your shell'sPATHat startup, so this is rarely needed. - In a Docker container: give the Container name. The container must exist (Sidekicks starts it if it is stopped), with the agent's folder mounted at the same path, and contain the program: see How to run an agent in a Docker container. Sidekicks starts the agent with
docker exec -i <container> <program> <arguments>. To have the container recreated when it is gone, drop itscompose.yamlon Recreate the container when it is gone and pick the service, or type the commands: see Restart or recreate the container. - In an sbx sandbox: give the Sandbox name. The sandbox must exist, with the agent's folder at the same path: see How to run an agent in an sbx sandbox. Sidekicks starts the agent with
sbx exec -i <sandbox> <program> <arguments>. To have the sandbox recreated when it is gone, drop itssbxenv.yamlon Recreate the sandbox when it is gone, or type the commands: see Recreate the sandbox when it is gone. The file also chooses the program from itsagent:line (mmfor a mini-me kit,docker-agentforagent: docker-agent, Claude, Codex or Gemini). - Claude in an sbx sandbox: choose In an sbx sandbox, drop the sandbox's
sbxenv.yaml(the sandbox, the folder and the commands are filled in, and the programclaude-agent-acpis chosen from itsagent: claude), with no arguments. It relies on thedocker.io/sbx/claude-acpkit, provided by a third party, not by Sidekicks. See How to add a Claude agent in an sbx sandbox. - Codex or Gemini in an sbx sandbox: the same, with the program
codex-acp(kitdocker.io/sbx/codex-acp) orgeminiwith the argument--acp(kitdocker.io/sbx/gemini-kit). See How to add a Codex agent in an sbx sandbox and How to add a Gemini agent in an sbx sandbox. - Options the assistant does not ask for (
env,afterStop, a differentworkspacePath): add the agent with the assistant, then complete its entry in Settings.
Delete an agent
Open the agent's workspace (📂 on its row) and click Delete the agent (issue #128). The confirmation says what goes: the agent leaves the configuration and the channels, and its conversation and its history are deleted. Tick what else goes with it:
- remove its sandbox (or its container), when its configuration has a remove command;
- put its folder in the trash, when an assistant made it in the agents' folder — a folder of your own is never offered.
The agent is stopped and its terminals close. Its name is then free again: an assistant offers it without -2. What could not be removed (a sandbox sbx could not reach…) is said, with the agent deleted anyway.
See also
- To create a new mini-me agent by answering questions, with no file and no folder to choose: How to create a mini-me agent
- To create a new Claude, Antigravity, Codex, Vibe or Copilot agent in a sandbox the same way: How to create a Claude, Antigravity, Codex, Vibe or Copilot agent in a sandbox
- What the assistant writes: The configuration file
- How to edit or switch the configuration
- Tutorial: your first agent, without writing any configuration
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|