bots-garden/sidekickspublic Fork
⑂ 9c7f618
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/sidekicks.git
git clone ssh://git@rickub.com/bots-garden/sidekicks.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP

Assistant : un sbxenv.yaml de kit mini-me choisit aussi le programme (mm --acp)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
k33g committed 2026-11-10T06:37:36+01:00 Browse files
9c7f618 parent: 5259800
modified .memory/history.md +1 -0
@@ -227,3 +227,4 @@
227227 - **2026-11-10 — #82 wrong sandbox**: the Codex entry made by the assistant pointed at claude-acp (Claude's sbxenv.yaml was read; no code path keeps old values, the form restarts empty each time — cause on the Mac not established: dropped/chosen file?). Guard: `SbxEnv.Agent`/`SandboxEnv.agent`, `sandboxMismatch` blocks adding Claude/Codex/Gemini with another agent's sbxenv.yaml.
228228 - **2026-11-10 — #82 verified on the Mac**: Codex works with `codex-acp` alone (v3 kit puts it in the PATH; `/home/agent/.local/bin/codex-acp` was the v2 launcher). Assistant, snippet README, guides updated. Claude, Codex and Gemini in sbx all work on the Mac.
229229 - **2026-11-10 — sbx program from agent:** (owner: "select the right program once the sbxenv.yaml is dropped or chosen, for codex, gemini and claude"): `withSbxProgram` in `withSandboxEnv` — agent: claude/codex/gemini sets program + arguments when the field is empty or holds a listed program; typed programs kept. Guides EN/FR step 5 updated; comments on #81/#82/#84 (Gemini verified on the Mac). New ticket #86 Mistral Vibe in sbx (no milestone).
230+- **2026-11-10 — same for mini-me** (owner: "the same for mini me"): `programOfSandbox` — agent: mini-me* (e.g. mini-me-kit) → mm --acp; a configuration file given before the sbxenv.yaml re-applies --config. mm stays outside sbxAgentOf (its config file is still asked, no note). Docs EN/FR: run-an-agent-in-a-sandbox, add-an-agent.
@@ -227,3 +227,4 @@
227 - **2026-11-10 — #82 wrong sandbox**: the Codex entry made by the assistant pointed at claude-acp (Claude's sbxenv.yaml was read; no code path keeps old values, the form restarts empty each time — cause on the Mac not established: dropped/chosen file?). Guard: `SbxEnv.Agent`/`SandboxEnv.agent`, `sandboxMismatch` blocks adding Claude/Codex/Gemini with another agent's sbxenv.yaml.227 - **2026-11-10 — #82 wrong sandbox**: the Codex entry made by the assistant pointed at claude-acp (Claude's sbxenv.yaml was read; no code path keeps old values, the form restarts empty each time — cause on the Mac not established: dropped/chosen file?). Guard: `SbxEnv.Agent`/`SandboxEnv.agent`, `sandboxMismatch` blocks adding Claude/Codex/Gemini with another agent's sbxenv.yaml.
228 - **2026-11-10 — #82 verified on the Mac**: Codex works with `codex-acp` alone (v3 kit puts it in the PATH; `/home/agent/.local/bin/codex-acp` was the v2 launcher). Assistant, snippet README, guides updated. Claude, Codex and Gemini in sbx all work on the Mac.228 - **2026-11-10 — #82 verified on the Mac**: Codex works with `codex-acp` alone (v3 kit puts it in the PATH; `/home/agent/.local/bin/codex-acp` was the v2 launcher). Assistant, snippet README, guides updated. Claude, Codex and Gemini in sbx all work on the Mac.
229 - **2026-11-10 — sbx program from agent:** (owner: "select the right program once the sbxenv.yaml is dropped or chosen, for codex, gemini and claude"): `withSbxProgram` in `withSandboxEnv` — agent: claude/codex/gemini sets program + arguments when the field is empty or holds a listed program; typed programs kept. Guides EN/FR step 5 updated; comments on #81/#82/#84 (Gemini verified on the Mac). New ticket #86 Mistral Vibe in sbx (no milestone).229 - **2026-11-10 — sbx program from agent:** (owner: "select the right program once the sbxenv.yaml is dropped or chosen, for codex, gemini and claude"): `withSbxProgram` in `withSandboxEnv` — agent: claude/codex/gemini sets program + arguments when the field is empty or holds a listed program; typed programs kept. Guides EN/FR step 5 updated; comments on #81/#82/#84 (Gemini verified on the Mac). New ticket #86 Mistral Vibe in sbx (no milestone).
230+- **2026-11-10 — same for mini-me** (owner: "the same for mini me"): `programOfSandbox` — agent: mini-me* (e.g. mini-me-kit) → mm --acp; a configuration file given before the sbxenv.yaml re-applies --config. mm stays outside sbxAgentOf (its config file is still asked, no note). Docs EN/FR: run-an-agent-in-a-sandbox, add-an-agent.
modified docs/en/how-to/add-an-agent.md +1 -1
@@ -17,7 +17,7 @@ When the agent cannot be added (a name already used, for instance), the assistan
1717 - **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-agent` and `docker agent` the 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).
1818 - **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 mm` in a terminal gives it). Sidekicks reads your shell's `PATH` at startup, so this is rarely needed.
1919 - **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](run-an-agent-in-docker.md). Sidekicks starts the agent with `docker exec -i <container> <program> <arguments>`. To have the container recreated when it is gone, drop its `compose.yaml` on **Recreate the container when it is gone** and pick the service, or type the commands: see [Restart or recreate the container](run-an-agent-in-docker.md#restart-or-recreate-the-container).
20-- **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](run-an-agent-in-a-sandbox.md). Sidekicks starts the agent with `sbx exec -i <sandbox> <program> <arguments>`. To have the sandbox recreated when it is gone, drop its `sbxenv.yaml` on **Recreate the sandbox when it is gone**, or type the commands: see [Recreate the sandbox when it is gone](run-an-agent-in-a-sandbox.md#recreate-the-sandbox-when-it-is-gone).
20+- **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](run-an-agent-in-a-sandbox.md). Sidekicks starts the agent with `sbx exec -i <sandbox> <program> <arguments>`. To have the sandbox recreated when it is gone, drop its `sbxenv.yaml` on **Recreate the sandbox when it is gone**, or type the commands: see [Recreate the sandbox when it is gone](run-an-agent-in-a-sandbox.md#recreate-the-sandbox-when-it-is-gone). The file also chooses the program from its `agent:` line (`mm` for a mini-me kit, Claude, Codex or Gemini).
2121 - **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 program `claude-agent-acp` is chosen from its `agent: claude`), with no arguments. It relies on the `docker.io/sbx/claude-acp` kit, provided by a third party, not by Sidekicks. See [How to add a Claude agent in an sbx sandbox](add-a-claude-agent-in-a-sandbox.md).
2222 - **Codex or Gemini in an sbx sandbox**: the same, with the program `codex-acp` (kit `docker.io/sbx/codex-acp`) or `gemini` with the argument `--acp` (kit `docker.io/sbx/gemini-kit`). See [How to add a Codex agent in an sbx sandbox](add-a-codex-agent-in-a-sandbox.md) and [How to add a Gemini agent in an sbx sandbox](add-a-gemini-agent-in-a-sandbox.md).
2323 - **Options the assistant does not ask for** (`env`, `afterStop`, a different `workspacePath`): add the agent with the assistant, then complete its entry in **Settings**.
@@ -17,7 +17,7 @@ When the agent cannot be added (a name already used, for instance), the assistan
17 - **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-agent` and `docker agent` the 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).17 - **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-agent` and `docker agent` the 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).
18 - **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 mm` in a terminal gives it). Sidekicks reads your shell's `PATH` at startup, so this is rarely needed.18 - **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 mm` in a terminal gives it). Sidekicks reads your shell's `PATH` at startup, so this is rarely needed.
19 - **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](run-an-agent-in-docker.md). Sidekicks starts the agent with `docker exec -i <container> <program> <arguments>`. To have the container recreated when it is gone, drop its `compose.yaml` on **Recreate the container when it is gone** and pick the service, or type the commands: see [Restart or recreate the container](run-an-agent-in-docker.md#restart-or-recreate-the-container).19 - **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](run-an-agent-in-docker.md). Sidekicks starts the agent with `docker exec -i <container> <program> <arguments>`. To have the container recreated when it is gone, drop its `compose.yaml` on **Recreate the container when it is gone** and pick the service, or type the commands: see [Restart or recreate the container](run-an-agent-in-docker.md#restart-or-recreate-the-container).
20-- **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](run-an-agent-in-a-sandbox.md). Sidekicks starts the agent with `sbx exec -i <sandbox> <program> <arguments>`. To have the sandbox recreated when it is gone, drop its `sbxenv.yaml` on **Recreate the sandbox when it is gone**, or type the commands: see [Recreate the sandbox when it is gone](run-an-agent-in-a-sandbox.md#recreate-the-sandbox-when-it-is-gone).20+- **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](run-an-agent-in-a-sandbox.md). Sidekicks starts the agent with `sbx exec -i <sandbox> <program> <arguments>`. To have the sandbox recreated when it is gone, drop its `sbxenv.yaml` on **Recreate the sandbox when it is gone**, or type the commands: see [Recreate the sandbox when it is gone](run-an-agent-in-a-sandbox.md#recreate-the-sandbox-when-it-is-gone). The file also chooses the program from its `agent:` line (`mm` for a mini-me kit, Claude, Codex or Gemini).
21 - **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 program `claude-agent-acp` is chosen from its `agent: claude`), with no arguments. It relies on the `docker.io/sbx/claude-acp` kit, provided by a third party, not by Sidekicks. See [How to add a Claude agent in an sbx sandbox](add-a-claude-agent-in-a-sandbox.md).21 - **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 program `claude-agent-acp` is chosen from its `agent: claude`), with no arguments. It relies on the `docker.io/sbx/claude-acp` kit, provided by a third party, not by Sidekicks. See [How to add a Claude agent in an sbx sandbox](add-a-claude-agent-in-a-sandbox.md).
22 - **Codex or Gemini in an sbx sandbox**: the same, with the program `codex-acp` (kit `docker.io/sbx/codex-acp`) or `gemini` with the argument `--acp` (kit `docker.io/sbx/gemini-kit`). See [How to add a Codex agent in an sbx sandbox](add-a-codex-agent-in-a-sandbox.md) and [How to add a Gemini agent in an sbx sandbox](add-a-gemini-agent-in-a-sandbox.md).22 - **Codex or Gemini in an sbx sandbox**: the same, with the program `codex-acp` (kit `docker.io/sbx/codex-acp`) or `gemini` with the argument `--acp` (kit `docker.io/sbx/gemini-kit`). See [How to add a Codex agent in an sbx sandbox](add-a-codex-agent-in-a-sandbox.md) and [How to add a Gemini agent in an sbx sandbox](add-a-gemini-agent-in-a-sandbox.md).
23 - **Options the assistant does not ask for** (`env`, `afterStop`, a different `workspacePath`): add the agent with the assistant, then complete its entry in **Settings**.23 - **Options the assistant does not ask for** (`env`, `afterStop`, a different `workspacePath`): add the agent with the assistant, then complete its entry in **Settings**.
modified docs/en/how-to/run-an-agent-in-a-sandbox.md +1 -1
@@ -41,7 +41,7 @@ This guide shows how to declare an agent that runs inside a Docker sandbox (`sbx
4141
4242 When the sandbox is removed (by you, by `sbx rm`, after a reset of sbx), the agent can no longer start. Give Sidekicks the commands that manage the sandbox and it creates it again before starting the agent:
4343
44-1. With the assistant: choose **In an sbx sandbox**, then drop the sandbox's `sbxenv.yaml` on the **Recreate the sandbox when it is gone** area (or click **Choose an sbxenv.yaml…**). The sandbox name, the folder and the `sbx env` commands are filled in; change them if needed.
44+1. With the assistant: choose **In an sbx sandbox**, then drop the sandbox's `sbxenv.yaml` on the **Recreate the sandbox when it is gone** area (or click **Choose an sbxenv.yaml…**). The sandbox name, the folder and the `sbx env` commands are filled in; change them if needed. The program follows the file's `agent:` line: `mm` with `--acp` for a mini-me kit (`agent: mini-me-kit`; then drop the agent's configuration file to add `--config`), `claude-agent-acp`, `codex-acp` or `gemini --acp` for `claude`, `codex` or `gemini`. A program typed by hand is kept.
4545 2. Or in **Settings**, add `lifecycle` to the runtime:
4646
4747 ```yaml
@@ -41,7 +41,7 @@ This guide shows how to declare an agent that runs inside a Docker sandbox (`sbx
41 41
42 When the sandbox is removed (by you, by `sbx rm`, after a reset of sbx), the agent can no longer start. Give Sidekicks the commands that manage the sandbox and it creates it again before starting the agent:42 When the sandbox is removed (by you, by `sbx rm`, after a reset of sbx), the agent can no longer start. Give Sidekicks the commands that manage the sandbox and it creates it again before starting the agent:
43 43
44-1. With the assistant: choose **In an sbx sandbox**, then drop the sandbox's `sbxenv.yaml` on the **Recreate the sandbox when it is gone** area (or click **Choose an sbxenv.yaml…**). The sandbox name, the folder and the `sbx env` commands are filled in; change them if needed.44+1. With the assistant: choose **In an sbx sandbox**, then drop the sandbox's `sbxenv.yaml` on the **Recreate the sandbox when it is gone** area (or click **Choose an sbxenv.yaml…**). The sandbox name, the folder and the `sbx env` commands are filled in; change them if needed. The program follows the file's `agent:` line: `mm` with `--acp` for a mini-me kit (`agent: mini-me-kit`; then drop the agent's configuration file to add `--config`), `claude-agent-acp`, `codex-acp` or `gemini --acp` for `claude`, `codex` or `gemini`. A program typed by hand is kept.
45 2. Or in **Settings**, add `lifecycle` to the runtime:45 2. Or in **Settings**, add `lifecycle` to the runtime:
46 46
47 ```yaml47 ```yaml
modified docs/fr/how-to/ajouter-un-agent.md +1 -1
@@ -17,7 +17,7 @@ Quand l'agent ne peut pas être ajouté (un nom déjà pris, par exemple), l'ass
1717 - **Sur cet ordinateur, depuis le fichier de configuration de l'agent** : choisissez le programme, puis déposez le fichier YAML de l'agent sur **Le fichier de configuration de l'agent** (ou cliquez sur **Choisir un fichier…**). Le dossier de l'agent devient celui du fichier ; pour `mm`, `docker-agent` et `docker agent`, les arguments sont remplis (`--acp --config <fichier>`, `serve acp <fichier>`). Pour un autre programme, tapez les arguments. Changer de programme ensuite les remplit de nouveau. Chaque champ reste modifiable. Cela fonctionne aussi **dans une sandbox sbx** ou **dans un conteneur Docker**, si le fichier est dans un dossier que la sandbox partage, ou que le conteneur monte, au même chemin (il y est lu).
1818 - **Sur cet ordinateur** : le programme tourne ici, dans le dossier de l'agent. Si Sidekicks, ouvert depuis le Finder, ne trouve pas le programme, indiquez son chemin complet (`which mm` dans un terminal le donne). Sidekicks lit le `PATH` de votre shell au démarrage : c'est rarement nécessaire.
1919 - **Dans un conteneur Docker** : indiquez le **Nom du conteneur**. Le conteneur doit exister (Sidekicks le démarre s'il est arrêté), avec le dossier de l'agent monté au même chemin, et contenir le programme : voir [Lancer un agent dans un conteneur Docker](lancer-un-agent-dans-docker.md). Sidekicks démarre l'agent avec `docker exec -i <conteneur> <programme> <arguments>`. Pour que le conteneur soit recréé quand il a disparu, déposez son `compose.yaml` sur **Recréer le conteneur s'il a disparu** et choisissez le service, ou tapez les commandes : voir [Redémarrer ou recréer le conteneur](lancer-un-agent-dans-docker.md#redémarrer-ou-recréer-le-conteneur).
20-- **Dans une sandbox sbx** : indiquez le **Nom de la sandbox**. Elle doit exister, avec le dossier de l'agent au même chemin : voir [Lancer un agent dans une sandbox sbx](lancer-un-agent-dans-une-sandbox.md). Sidekicks démarre l'agent avec `sbx exec -i <sandbox> <programme> <arguments>`. Pour que la sandbox soit recréée quand elle a disparu, déposez son `sbxenv.yaml` sur **Recréer la sandbox si elle a disparu**, ou tapez les commandes : voir [Recréer la sandbox quand elle a disparu](lancer-un-agent-dans-une-sandbox.md#recréer-la-sandbox-quand-elle-a-disparu).
20+- **Dans une sandbox sbx** : indiquez le **Nom de la sandbox**. Elle doit exister, avec le dossier de l'agent au même chemin : voir [Lancer un agent dans une sandbox sbx](lancer-un-agent-dans-une-sandbox.md). Sidekicks démarre l'agent avec `sbx exec -i <sandbox> <programme> <arguments>`. Pour que la sandbox soit recréée quand elle a disparu, déposez son `sbxenv.yaml` sur **Recréer la sandbox si elle a disparu**, ou tapez les commandes : voir [Recréer la sandbox quand elle a disparu](lancer-un-agent-dans-une-sandbox.md#recréer-la-sandbox-quand-elle-a-disparu). Le fichier choisit aussi le programme d'après sa ligne `agent:` (`mm` pour un kit mini-me, Claude, Codex ou Gemini).
2121 - **Claude dans une sandbox sbx** : choisissez **Dans une sandbox sbx**, déposez le `sbxenv.yaml` de la sandbox (la sandbox, le dossier et les commandes sont remplis, et le programme `claude-agent-acp` est choisi d'après son `agent: claude`), sans argument. Cela repose sur le kit `docker.io/sbx/claude-acp`, fourni par un tiers et non par Sidekicks. Voir [Ajouter un agent Claude dans une sandbox sbx](ajouter-un-agent-claude-dans-une-sandbox.md).
2222 - **Codex ou Gemini dans une sandbox sbx** : de même, avec le programme `codex-acp` (kit `docker.io/sbx/codex-acp`) ou `gemini` avec l'argument `--acp` (kit `docker.io/sbx/gemini-kit`). Voir [Ajouter un agent Codex dans une sandbox sbx](ajouter-un-agent-codex-dans-une-sandbox.md) et [Ajouter un agent Gemini dans une sandbox sbx](ajouter-un-agent-gemini-dans-une-sandbox.md).
2323 - **Les options que l'assistant ne demande pas** (`env`, `afterStop`, un autre `workspacePath`) : ajoutez l'agent avec l'assistant, puis complétez son entrée dans **Settings**.
@@ -17,7 +17,7 @@ Quand l'agent ne peut pas être ajouté (un nom déjà pris, par exemple), l'ass
17 - **Sur cet ordinateur, depuis le fichier de configuration de l'agent** : choisissez le programme, puis déposez le fichier YAML de l'agent sur **Le fichier de configuration de l'agent** (ou cliquez sur **Choisir un fichier…**). Le dossier de l'agent devient celui du fichier ; pour `mm`, `docker-agent` et `docker agent`, les arguments sont remplis (`--acp --config <fichier>`, `serve acp <fichier>`). Pour un autre programme, tapez les arguments. Changer de programme ensuite les remplit de nouveau. Chaque champ reste modifiable. Cela fonctionne aussi **dans une sandbox sbx** ou **dans un conteneur Docker**, si le fichier est dans un dossier que la sandbox partage, ou que le conteneur monte, au même chemin (il y est lu).17 - **Sur cet ordinateur, depuis le fichier de configuration de l'agent** : choisissez le programme, puis déposez le fichier YAML de l'agent sur **Le fichier de configuration de l'agent** (ou cliquez sur **Choisir un fichier…**). Le dossier de l'agent devient celui du fichier ; pour `mm`, `docker-agent` et `docker agent`, les arguments sont remplis (`--acp --config <fichier>`, `serve acp <fichier>`). Pour un autre programme, tapez les arguments. Changer de programme ensuite les remplit de nouveau. Chaque champ reste modifiable. Cela fonctionne aussi **dans une sandbox sbx** ou **dans un conteneur Docker**, si le fichier est dans un dossier que la sandbox partage, ou que le conteneur monte, au même chemin (il y est lu).
18 - **Sur cet ordinateur** : le programme tourne ici, dans le dossier de l'agent. Si Sidekicks, ouvert depuis le Finder, ne trouve pas le programme, indiquez son chemin complet (`which mm` dans un terminal le donne). Sidekicks lit le `PATH` de votre shell au démarrage : c'est rarement nécessaire.18 - **Sur cet ordinateur** : le programme tourne ici, dans le dossier de l'agent. Si Sidekicks, ouvert depuis le Finder, ne trouve pas le programme, indiquez son chemin complet (`which mm` dans un terminal le donne). Sidekicks lit le `PATH` de votre shell au démarrage : c'est rarement nécessaire.
19 - **Dans un conteneur Docker** : indiquez le **Nom du conteneur**. Le conteneur doit exister (Sidekicks le démarre s'il est arrêté), avec le dossier de l'agent monté au même chemin, et contenir le programme : voir [Lancer un agent dans un conteneur Docker](lancer-un-agent-dans-docker.md). Sidekicks démarre l'agent avec `docker exec -i <conteneur> <programme> <arguments>`. Pour que le conteneur soit recréé quand il a disparu, déposez son `compose.yaml` sur **Recréer le conteneur s'il a disparu** et choisissez le service, ou tapez les commandes : voir [Redémarrer ou recréer le conteneur](lancer-un-agent-dans-docker.md#redémarrer-ou-recréer-le-conteneur).19 - **Dans un conteneur Docker** : indiquez le **Nom du conteneur**. Le conteneur doit exister (Sidekicks le démarre s'il est arrêté), avec le dossier de l'agent monté au même chemin, et contenir le programme : voir [Lancer un agent dans un conteneur Docker](lancer-un-agent-dans-docker.md). Sidekicks démarre l'agent avec `docker exec -i <conteneur> <programme> <arguments>`. Pour que le conteneur soit recréé quand il a disparu, déposez son `compose.yaml` sur **Recréer le conteneur s'il a disparu** et choisissez le service, ou tapez les commandes : voir [Redémarrer ou recréer le conteneur](lancer-un-agent-dans-docker.md#redémarrer-ou-recréer-le-conteneur).
20-- **Dans une sandbox sbx** : indiquez le **Nom de la sandbox**. Elle doit exister, avec le dossier de l'agent au même chemin : voir [Lancer un agent dans une sandbox sbx](lancer-un-agent-dans-une-sandbox.md). Sidekicks démarre l'agent avec `sbx exec -i <sandbox> <programme> <arguments>`. Pour que la sandbox soit recréée quand elle a disparu, déposez son `sbxenv.yaml` sur **Recréer la sandbox si elle a disparu**, ou tapez les commandes : voir [Recréer la sandbox quand elle a disparu](lancer-un-agent-dans-une-sandbox.md#recréer-la-sandbox-quand-elle-a-disparu).20+- **Dans une sandbox sbx** : indiquez le **Nom de la sandbox**. Elle doit exister, avec le dossier de l'agent au même chemin : voir [Lancer un agent dans une sandbox sbx](lancer-un-agent-dans-une-sandbox.md). Sidekicks démarre l'agent avec `sbx exec -i <sandbox> <programme> <arguments>`. Pour que la sandbox soit recréée quand elle a disparu, déposez son `sbxenv.yaml` sur **Recréer la sandbox si elle a disparu**, ou tapez les commandes : voir [Recréer la sandbox quand elle a disparu](lancer-un-agent-dans-une-sandbox.md#recréer-la-sandbox-quand-elle-a-disparu). Le fichier choisit aussi le programme d'après sa ligne `agent:` (`mm` pour un kit mini-me, Claude, Codex ou Gemini).
21 - **Claude dans une sandbox sbx** : choisissez **Dans une sandbox sbx**, déposez le `sbxenv.yaml` de la sandbox (la sandbox, le dossier et les commandes sont remplis, et le programme `claude-agent-acp` est choisi d'après son `agent: claude`), sans argument. Cela repose sur le kit `docker.io/sbx/claude-acp`, fourni par un tiers et non par Sidekicks. Voir [Ajouter un agent Claude dans une sandbox sbx](ajouter-un-agent-claude-dans-une-sandbox.md).21 - **Claude dans une sandbox sbx** : choisissez **Dans une sandbox sbx**, déposez le `sbxenv.yaml` de la sandbox (la sandbox, le dossier et les commandes sont remplis, et le programme `claude-agent-acp` est choisi d'après son `agent: claude`), sans argument. Cela repose sur le kit `docker.io/sbx/claude-acp`, fourni par un tiers et non par Sidekicks. Voir [Ajouter un agent Claude dans une sandbox sbx](ajouter-un-agent-claude-dans-une-sandbox.md).
22 - **Codex ou Gemini dans une sandbox sbx** : de même, avec le programme `codex-acp` (kit `docker.io/sbx/codex-acp`) ou `gemini` avec l'argument `--acp` (kit `docker.io/sbx/gemini-kit`). Voir [Ajouter un agent Codex dans une sandbox sbx](ajouter-un-agent-codex-dans-une-sandbox.md) et [Ajouter un agent Gemini dans une sandbox sbx](ajouter-un-agent-gemini-dans-une-sandbox.md).22 - **Codex ou Gemini dans une sandbox sbx** : de même, avec le programme `codex-acp` (kit `docker.io/sbx/codex-acp`) ou `gemini` avec l'argument `--acp` (kit `docker.io/sbx/gemini-kit`). Voir [Ajouter un agent Codex dans une sandbox sbx](ajouter-un-agent-codex-dans-une-sandbox.md) et [Ajouter un agent Gemini dans une sandbox sbx](ajouter-un-agent-gemini-dans-une-sandbox.md).
23 - **Les options que l'assistant ne demande pas** (`env`, `afterStop`, un autre `workspacePath`) : ajoutez l'agent avec l'assistant, puis complétez son entrée dans **Settings**.23 - **Les options que l'assistant ne demande pas** (`env`, `afterStop`, un autre `workspacePath`) : ajoutez l'agent avec l'assistant, puis complétez son entrée dans **Settings**.
modified docs/fr/how-to/lancer-un-agent-dans-une-sandbox.md +1 -1
@@ -41,7 +41,7 @@ Ce guide montre comment déclarer un agent qui tourne dans une sandbox Docker (`
4141
4242 Quand la sandbox est supprimée (par vous, par `sbx rm`, après une remise à zéro de sbx), l'agent ne peut plus démarrer. Donnez à Sidekicks les commandes qui gèrent la sandbox : il la recrée avant de démarrer l'agent.
4343
44-1. Avec l'assistant : choisissez **Dans une sandbox sbx**, puis déposez le `sbxenv.yaml` de la sandbox sur la zone **Recréer la sandbox si elle a disparu** (ou cliquez sur **Choisir un sbxenv.yaml…**). Le nom de la sandbox, le dossier et les commandes `sbx env` sont remplis ; modifiez-les au besoin.
44+1. Avec l'assistant : choisissez **Dans une sandbox sbx**, puis déposez le `sbxenv.yaml` de la sandbox sur la zone **Recréer la sandbox si elle a disparu** (ou cliquez sur **Choisir un sbxenv.yaml…**). Le nom de la sandbox, le dossier et les commandes `sbx env` sont remplis ; modifiez-les au besoin. Le programme suit la ligne `agent:` du fichier : `mm` avec `--acp` pour un kit mini-me (`agent: mini-me-kit` ; déposez ensuite le fichier de configuration de l'agent pour ajouter `--config`), `claude-agent-acp`, `codex-acp` ou `gemini --acp` pour `claude`, `codex` ou `gemini`. Un programme tapé à la main est gardé.
4545 2. Ou dans **Settings**, ajoutez `lifecycle` au runtime :
4646
4747 ```yaml
@@ -41,7 +41,7 @@ Ce guide montre comment déclarer un agent qui tourne dans une sandbox Docker (`
41 41
42 Quand la sandbox est supprimée (par vous, par `sbx rm`, après une remise à zéro de sbx), l'agent ne peut plus démarrer. Donnez à Sidekicks les commandes qui gèrent la sandbox : il la recrée avant de démarrer l'agent.42 Quand la sandbox est supprimée (par vous, par `sbx rm`, après une remise à zéro de sbx), l'agent ne peut plus démarrer. Donnez à Sidekicks les commandes qui gèrent la sandbox : il la recrée avant de démarrer l'agent.
43 43
44-1. Avec l'assistant : choisissez **Dans une sandbox sbx**, puis déposez le `sbxenv.yaml` de la sandbox sur la zone **Recréer la sandbox si elle a disparu** (ou cliquez sur **Choisir un sbxenv.yaml…**). Le nom de la sandbox, le dossier et les commandes `sbx env` sont remplis ; modifiez-les au besoin.44+1. Avec l'assistant : choisissez **Dans une sandbox sbx**, puis déposez le `sbxenv.yaml` de la sandbox sur la zone **Recréer la sandbox si elle a disparu** (ou cliquez sur **Choisir un sbxenv.yaml…**). Le nom de la sandbox, le dossier et les commandes `sbx env` sont remplis ; modifiez-les au besoin. Le programme suit la ligne `agent:` du fichier : `mm` avec `--acp` pour un kit mini-me (`agent: mini-me-kit` ; déposez ensuite le fichier de configuration de l'agent pour ajouter `--config`), `claude-agent-acp`, `codex-acp` ou `gemini --acp` pour `claude`, `codex` ou `gemini`. Un programme tapé à la main est gardé.
45 2. Ou dans **Settings**, ajoutez `lifecycle` au runtime :45 2. Ou dans **Settings**, ajoutez `lifecycle` au runtime :
46 46
47 ```yaml47 ```yaml
modified frontend/src/lib/agent/AddAgentForm.svelte +3 -0
@@ -95,6 +95,9 @@
9595 try {
9696 const env = await ConfigService.ReadSandboxEnv(path)
9797 form = withSandboxEnv(form, env)
98+ // mm chosen from the file, with its configuration file already given.
99+ const args = configFile ? argumentsFor(form.program, configFile) : undefined
100+ if (args !== undefined) form.arguments = args
98101 envFile = path
99102 envAgent = env.agent ?? ''
100103 } catch (error) {
@@ -95,6 +95,9 @@
95 try {95 try {
96 const env = await ConfigService.ReadSandboxEnv(path)96 const env = await ConfigService.ReadSandboxEnv(path)
97 form = withSandboxEnv(form, env)97 form = withSandboxEnv(form, env)
98+ // mm chosen from the file, with its configuration file already given.
99+ const args = configFile ? argumentsFor(form.program, configFile) : undefined
100+ if (args !== undefined) form.arguments = args
98 envFile = path101 envFile = path
99 envAgent = env.agent ?? ''102 envAgent = env.agent ?? ''
100 } catch (error) {103 } catch (error) {
modified frontend/src/lib/agentform.test.ts +18 -2
@@ -1,7 +1,7 @@
11 // Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE
22
33 import { describe, expect, it } from 'vitest'
4-import { argumentsFor, emptyForm, folderOf, isClaudeSandbox, sandboxMismatch, sbxAgentOf, sbxArguments, withSbxProgram, nameFromTitle, problemsOf, programsFor, quoteArgument, withAgentConfig, withComposeService, withSandboxEnv } from './agentform'
4+import { argumentsFor, emptyForm, folderOf, isClaudeSandbox, sandboxMismatch, sbxAgentOf, sbxArguments, withSbxProgram, programOfSandbox, nameFromTitle, problemsOf, programsFor, quoteArgument, withAgentConfig, withComposeService, withSandboxEnv } from './agentform'
55
66 describe('nameFromTitle', () => {
77 it('folds accents, lowercases and joins words', () => {
@@ -161,7 +161,23 @@ describe('the program follows the sandbox file (agent:)', () => {
161161 expect(withSbxProgram(typed, 'codex')).toBe(typed)
162162 const old = { ...emptyForm(), program: 'gemini', arguments: '--experimental-acp' }
163163 expect(withSbxProgram(old, 'gemini')).toBe(old)
164- expect(withSbxProgram(emptyForm(), 'mini-me-kit')).toEqual(emptyForm())
164+ expect(withSbxProgram(emptyForm(), 'shell')).toEqual(emptyForm())
165165 expect(withSbxProgram(emptyForm(), undefined)).toEqual(emptyForm())
166166 })
167167 })
168+
169+describe('mini-me in a sandbox', () => {
170+ it('chooses mm for a mini-me kit', () => {
171+ expect(programOfSandbox('mini-me-kit')).toEqual({ program: 'mm', arguments: '--acp' })
172+ expect(programOfSandbox('minime')).toEqual({ program: 'mm', arguments: '--acp' })
173+ expect(programOfSandbox('mini-meteo')).toBeUndefined()
174+ expect(withSandboxEnv(emptyForm(), { name: 'milo-sbx', agent: 'mini-me-kit', workspace: '', sandboxFolder: '/a', createCommand: '', stopCommand: '', removeCommand: '' })).toMatchObject({ program: 'mm', arguments: '--acp' })
175+ })
176+ it('keeps mm with its configuration file', () => {
177+ const form = { ...emptyForm(), program: 'mm', arguments: '--acp --config /a/agent.yaml' }
178+ expect(withSbxProgram(form, 'mini-me-kit')).toBe(form)
179+ })
180+ it('is not a coding agent of a third-party kit: its configuration file is still asked', () => {
181+ expect(sbxAgentOf({ ...emptyForm(), environment: 'sbx', program: 'mm' })).toBeUndefined()
182+ })
183+})
@@ -1,7 +1,7 @@
1 // Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE1 // Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE
2 2
3 import { describe, expect, it } from 'vitest'3 import { describe, expect, it } from 'vitest'
4-import { argumentsFor, emptyForm, folderOf, isClaudeSandbox, sandboxMismatch, sbxAgentOf, sbxArguments, withSbxProgram, nameFromTitle, problemsOf, programsFor, quoteArgument, withAgentConfig, withComposeService, withSandboxEnv } from './agentform'4+import { argumentsFor, emptyForm, folderOf, isClaudeSandbox, sandboxMismatch, sbxAgentOf, sbxArguments, withSbxProgram, programOfSandbox, nameFromTitle, problemsOf, programsFor, quoteArgument, withAgentConfig, withComposeService, withSandboxEnv } from './agentform'
5 5
6 describe('nameFromTitle', () => {6 describe('nameFromTitle', () => {
7 it('folds accents, lowercases and joins words', () => {7 it('folds accents, lowercases and joins words', () => {
@@ -161,7 +161,23 @@ describe('the program follows the sandbox file (agent:)', () => {
161 expect(withSbxProgram(typed, 'codex')).toBe(typed)161 expect(withSbxProgram(typed, 'codex')).toBe(typed)
162 const old = { ...emptyForm(), program: 'gemini', arguments: '--experimental-acp' }162 const old = { ...emptyForm(), program: 'gemini', arguments: '--experimental-acp' }
163 expect(withSbxProgram(old, 'gemini')).toBe(old)163 expect(withSbxProgram(old, 'gemini')).toBe(old)
164- expect(withSbxProgram(emptyForm(), 'mini-me-kit')).toEqual(emptyForm())164+ expect(withSbxProgram(emptyForm(), 'shell')).toEqual(emptyForm())
165 expect(withSbxProgram(emptyForm(), undefined)).toEqual(emptyForm())165 expect(withSbxProgram(emptyForm(), undefined)).toEqual(emptyForm())
166 })166 })
167 })167 })
168+
169+describe('mini-me in a sandbox', () => {
170+ it('chooses mm for a mini-me kit', () => {
171+ expect(programOfSandbox('mini-me-kit')).toEqual({ program: 'mm', arguments: '--acp' })
172+ expect(programOfSandbox('minime')).toEqual({ program: 'mm', arguments: '--acp' })
173+ expect(programOfSandbox('mini-meteo')).toBeUndefined()
174+ expect(withSandboxEnv(emptyForm(), { name: 'milo-sbx', agent: 'mini-me-kit', workspace: '', sandboxFolder: '/a', createCommand: '', stopCommand: '', removeCommand: '' })).toMatchObject({ program: 'mm', arguments: '--acp' })
175+ })
176+ it('keeps mm with its configuration file', () => {
177+ const form = { ...emptyForm(), program: 'mm', arguments: '--acp --config /a/agent.yaml' }
178+ expect(withSbxProgram(form, 'mini-me-kit')).toBe(form)
179+ })
180+ it('is not a coding agent of a third-party kit: its configuration file is still asked', () => {
181+ expect(sbxAgentOf({ ...emptyForm(), environment: 'sbx', program: 'mm' })).toBeUndefined()
182+ })
183+})
modified frontend/src/lib/agentform.ts +25 -10
@@ -150,25 +150,40 @@ export function programsFor(environment: Environment): string[] {
150150 }
151151
152152 /**
153- * Chooses the program of the sbx agent a sandbox file names (agent: claude,
154- * codex or gemini), with its arguments, when the field is empty or holds one
155- * of the programs the list offers: a program typed by hand is kept. The
156- * arguments typed for the same program are kept too (gemini
157- * --experimental-acp).
153+ * The program and arguments of the agent a sandbox file names ("agent:"):
154+ * Claude, Codex or Gemini (sbxPrograms), or mini-me (mm, from a kit such
155+ * as docker.io/k33g/mini-me-kit, whose sbx agent is named after the kit).
156+ * mm also needs its configuration file: dropping it adds --config.
157+ *
158+ * @example
159+ * programOfSandbox('gemini') // { program: 'gemini', arguments: '--acp' }
160+ * programOfSandbox('mini-me-kit') // { program: 'mm', arguments: '--acp' }
161+ */
162+export function programOfSandbox(agent: string | undefined): { program: string; arguments: string } | undefined {
163+ const known = (agent ?? '').trim()
164+ if (Object.hasOwn(sbxPrograms, known)) return { program: sbxPrograms[known as SbxAgent], arguments: sbxArguments[known as SbxAgent] }
165+ if (/^mini-?me\b/.test(known)) return { program: 'mm', arguments: '--acp' }
166+ return undefined
167+}
168+
169+/**
170+ * Chooses the program of the agent a sandbox file names (programOfSandbox),
171+ * with its arguments, when the field is empty or holds one of the programs
172+ * the list offers: a program typed by hand is kept. The arguments typed for
173+ * the same program are kept too (gemini --experimental-acp).
158174 *
159175 * @example
160176 * withSbxProgram(emptyForm(), 'gemini') // { …, program: 'gemini', arguments: '--acp' }
161177 * withSbxProgram({ ...form, program: 'my-wrapper' }, 'codex') // unchanged
162178 */
163179 export function withSbxProgram(form: AgentFormValues, agent: string | undefined): AgentFormValues {
164- const known = (agent ?? '').trim()
165- if (!Object.hasOwn(sbxPrograms, known)) return form
166- const wanted = sbxPrograms[known as SbxAgent]
180+ const wanted = programOfSandbox(agent)
181+ if (!wanted) return form
167182 const program = form.program.trim()
168- if (program === wanted) return form
183+ if (program === wanted.program) return form
169184 const offered = [...knownPrograms, ...Object.values(sbxPrograms), legacyCodexProgram] as string[]
170185 if (program && !offered.includes(program)) return form
171- return { ...form, program: wanted, arguments: sbxArguments[known as SbxAgent] }
186+ return { ...form, program: wanted.program, arguments: wanted.arguments }
172187 }
173188
174189 /**
@@ -150,25 +150,40 @@ export function programsFor(environment: Environment): string[] {
150 }150 }
151 151
152 /**152 /**
153- * Chooses the program of the sbx agent a sandbox file names (agent: claude,153+ * The program and arguments of the agent a sandbox file names ("agent:"):
154- * codex or gemini), with its arguments, when the field is empty or holds one154+ * Claude, Codex or Gemini (sbxPrograms), or mini-me (mm, from a kit such
155- * of the programs the list offers: a program typed by hand is kept. The155+ * as docker.io/k33g/mini-me-kit, whose sbx agent is named after the kit).
156- * arguments typed for the same program are kept too (gemini156+ * mm also needs its configuration file: dropping it adds --config.
157- * --experimental-acp).157+ *
158+ * @example
159+ * programOfSandbox('gemini') // { program: 'gemini', arguments: '--acp' }
160+ * programOfSandbox('mini-me-kit') // { program: 'mm', arguments: '--acp' }
161+ */
162+export function programOfSandbox(agent: string | undefined): { program: string; arguments: string } | undefined {
163+ const known = (agent ?? '').trim()
164+ if (Object.hasOwn(sbxPrograms, known)) return { program: sbxPrograms[known as SbxAgent], arguments: sbxArguments[known as SbxAgent] }
165+ if (/^mini-?me\b/.test(known)) return { program: 'mm', arguments: '--acp' }
166+ return undefined
167+}
168+
169+/**
170+ * Chooses the program of the agent a sandbox file names (programOfSandbox),
171+ * with its arguments, when the field is empty or holds one of the programs
172+ * the list offers: a program typed by hand is kept. The arguments typed for
173+ * the same program are kept too (gemini --experimental-acp).
158 *174 *
159 * @example175 * @example
160 * withSbxProgram(emptyForm(), 'gemini') // { …, program: 'gemini', arguments: '--acp' }176 * withSbxProgram(emptyForm(), 'gemini') // { …, program: 'gemini', arguments: '--acp' }
161 * withSbxProgram({ ...form, program: 'my-wrapper' }, 'codex') // unchanged177 * withSbxProgram({ ...form, program: 'my-wrapper' }, 'codex') // unchanged
162 */178 */
163 export function withSbxProgram(form: AgentFormValues, agent: string | undefined): AgentFormValues {179 export function withSbxProgram(form: AgentFormValues, agent: string | undefined): AgentFormValues {
164- const known = (agent ?? '').trim()180+ const wanted = programOfSandbox(agent)
165- if (!Object.hasOwn(sbxPrograms, known)) return form181+ if (!wanted) return form
166- const wanted = sbxPrograms[known as SbxAgent]
167 const program = form.program.trim()182 const program = form.program.trim()
168- if (program === wanted) return form183+ if (program === wanted.program) return form
169 const offered = [...knownPrograms, ...Object.values(sbxPrograms), legacyCodexProgram] as string[]184 const offered = [...knownPrograms, ...Object.values(sbxPrograms), legacyCodexProgram] as string[]
170 if (program && !offered.includes(program)) return form185 if (program && !offered.includes(program)) return form
171- return { ...form, program: wanted, arguments: sbxArguments[known as SbxAgent] }186+ return { ...form, program: wanted.program, arguments: wanted.arguments }
172 }187 }
173 188
174 /**189 /**