🎫 #96 Assistant « Create a sbx agent » (Claude, Gemini, Codex), dans v1.5.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
f25badb parent: 98ffadd modified
.memory/history.md +2 -0 | @@ -255,3 +255,5 @@ | ||
| 255 | 255 | - **2026-11-14 — mini-me feature/dockerinit-account checked** (owner: "the fix is on mini-me's branch feature/dockerinit-account, check it works"): mini-me's dockerinit/acpcreate tests pass; `mm init --project yes` + `mm dockerinit` from that branch, then `docker compose up -d --wait --build` (image downloads the published mm v1.0.9): as uid 1000 and with MM_UID=501 MM_GID=20 (the Mac's), `whoami` = mm, prompt `mm@<container>:…$`, `id` uid=501(mm) gid=20(dialout); git now only asks for user.name/email ("Author identity unknown", normal git); ACP initialize through `docker exec -i jimmy-box mm --acp --config <abs>/.mm/agent.yaml` answers (agentInfo jimmy, v1.0.9). Not checkable on Linux: a 501 container writing in a folder owned by 1000 is refused here (on the Mac Docker Desktop's file sharing maps it). Nothing changed in Sidekicks. |
| 256 | 256 | - **2026-11-14 — #94 container verified on the Mac** (owner, with mm from mini-me's feature/dockerinit-account: "it works"); the owner is releasing a new mini-me with the fix. Task 7 of #94 still needs an sbx agent started from Sidekicks. |
| 257 | 257 | - **2026-11-14 — #94 closed** (owner: "close the task, do the docs, close the task and the ticket"): tasks 7 (sbx agent start not tried — closed on the owner's word) and 8 closed. Docs: create-a-mini-me-agent EN/FR gained "I have no name!" (update mini-me, `mm dockerinit`, `docker compose up -d --build`); release notes v1.5.0 EN/FR drafted with #94 and #95 (comment on #93, its task 2 left open). README status still says 1.4.0 (#93's job). |
| 258 | +- **2026-11-14 — ticket #96** (owner: "a new wizard 'create a sbx agent': Claude, Gemini or Codex for now, more later; folder in Documents by default, changeable; examples in ./tmp and config entries pasted"): #96 written (epic Docker SBX, no milestone yet): catalogue of types, `<agentsFolder>/<name>/sbxenv.yaml` + `workspace/`, config entries as the owner's, reuse of agentform.ts sbx knowledge. Open points in the ticket: sandbox name (name vs name-acp, uniqueness via `sbx ls`), API keys / OAuth (`sbx secret set …`), English comments, Gemini kit deprecation. Not committed. | |
| 259 | +- **2026-11-14 — #96 decisions** (owner): sandbox name = agent name; keys: explain, check the sbx secret exists, else ask and set it; English comments; Gemini moves to the `antigravity` kit once its ACP is understood (task 8); #96 in v1.5.0 (listed in #93). Branch feature/94-mini-me-creator merged into main (not pushed); new branch feature/96-sbx-creator. | |
| @@ -255,3 +255,5 @@ | |||
| 255 | - **2026-11-14 — mini-me feature/dockerinit-account checked** (owner: "the fix is on mini-me's branch feature/dockerinit-account, check it works"): mini-me's dockerinit/acpcreate tests pass; `mm init --project yes` + `mm dockerinit` from that branch, then `docker compose up -d --wait --build` (image downloads the published mm v1.0.9): as uid 1000 and with MM_UID=501 MM_GID=20 (the Mac's), `whoami` = mm, prompt `mm@<container>:…$`, `id` uid=501(mm) gid=20(dialout); git now only asks for user.name/email ("Author identity unknown", normal git); ACP initialize through `docker exec -i jimmy-box mm --acp --config <abs>/.mm/agent.yaml` answers (agentInfo jimmy, v1.0.9). Not checkable on Linux: a 501 container writing in a folder owned by 1000 is refused here (on the Mac Docker Desktop's file sharing maps it). Nothing changed in Sidekicks. | 255 | - **2026-11-14 — mini-me feature/dockerinit-account checked** (owner: "the fix is on mini-me's branch feature/dockerinit-account, check it works"): mini-me's dockerinit/acpcreate tests pass; `mm init --project yes` + `mm dockerinit` from that branch, then `docker compose up -d --wait --build` (image downloads the published mm v1.0.9): as uid 1000 and with MM_UID=501 MM_GID=20 (the Mac's), `whoami` = mm, prompt `mm@<container>:…$`, `id` uid=501(mm) gid=20(dialout); git now only asks for user.name/email ("Author identity unknown", normal git); ACP initialize through `docker exec -i jimmy-box mm --acp --config <abs>/.mm/agent.yaml` answers (agentInfo jimmy, v1.0.9). Not checkable on Linux: a 501 container writing in a folder owned by 1000 is refused here (on the Mac Docker Desktop's file sharing maps it). Nothing changed in Sidekicks. |
| 256 | - **2026-11-14 — #94 container verified on the Mac** (owner, with mm from mini-me's feature/dockerinit-account: "it works"); the owner is releasing a new mini-me with the fix. Task 7 of #94 still needs an sbx agent started from Sidekicks. | 256 | - **2026-11-14 — #94 container verified on the Mac** (owner, with mm from mini-me's feature/dockerinit-account: "it works"); the owner is releasing a new mini-me with the fix. Task 7 of #94 still needs an sbx agent started from Sidekicks. |
| 257 | - **2026-11-14 — #94 closed** (owner: "close the task, do the docs, close the task and the ticket"): tasks 7 (sbx agent start not tried — closed on the owner's word) and 8 closed. Docs: create-a-mini-me-agent EN/FR gained "I have no name!" (update mini-me, `mm dockerinit`, `docker compose up -d --build`); release notes v1.5.0 EN/FR drafted with #94 and #95 (comment on #93, its task 2 left open). README status still says 1.4.0 (#93's job). | 257 | - **2026-11-14 — #94 closed** (owner: "close the task, do the docs, close the task and the ticket"): tasks 7 (sbx agent start not tried — closed on the owner's word) and 8 closed. Docs: create-a-mini-me-agent EN/FR gained "I have no name!" (update mini-me, `mm dockerinit`, `docker compose up -d --build`); release notes v1.5.0 EN/FR drafted with #94 and #95 (comment on #93, its task 2 left open). README status still says 1.4.0 (#93's job). |
| 258 | +- **2026-11-14 — ticket #96** (owner: "a new wizard 'create a sbx agent': Claude, Gemini or Codex for now, more later; folder in Documents by default, changeable; examples in ./tmp and config entries pasted"): #96 written (epic Docker SBX, no milestone yet): catalogue of types, `<agentsFolder>/<name>/sbxenv.yaml` + `workspace/`, config entries as the owner's, reuse of agentform.ts sbx knowledge. Open points in the ticket: sandbox name (name vs name-acp, uniqueness via `sbx ls`), API keys / OAuth (`sbx secret set …`), English comments, Gemini kit deprecation. Not committed. | ||
| 259 | +- **2026-11-14 — #96 decisions** (owner): sandbox name = agent name; keys: explain, check the sbx secret exists, else ask and set it; English comments; Gemini moves to the `antigravity` kit once its ACP is understood (task 8); #96 in v1.5.0 (listed in #93). Branch feature/94-mini-me-creator merged into main (not pushed); new branch feature/96-sbx-creator. | ||
modified
.tickets/issues/0093-publier-la-version-1-5-0.yaml +2 -1 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-14T05:24:28.000Z |
| 9 | -updatedAt: 2026-11-14T17:49:05.000Z | |
| 9 | +updatedAt: 2026-11-14T18:13:47.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - kind::chore |
| 12 | 12 | - area::infra |
| @@ -18,6 +18,7 @@ body: | | ||
| 18 | 18 | Publier Sidekicks 1.5.0 avec ce qui sera fait après la 1.4.0 (liste à compléter) : |
| 19 | 19 | - [#94](.tickets/issues/0094-assistant-de-creation-d-agents-mini-me-pour-les.yaml) — assistant de création d'agents mini-me pour les utilisateurs non techniques |
| 20 | 20 | - [#95](.tickets/issues/0095-ask-user-de-mini-me-pas-de-zone-de-saisie-dans-s.yaml) — `ask_user` de mini-me : zone de saisie dans la conversation |
| 21 | + - [#96](.tickets/issues/0096-assistant-create-a-sbx-agent-claude-gemini-codex.yaml) — assistant « Create a sbx agent » (Claude, Gemini, Codex) | |
| 21 | 22 | |
| 22 | 23 | Même déroulé que [#92 — Publier la version 1.4.0](.tickets/issues/0092-publier-la-version-1-4-0.yaml), en suivant |
| 23 | 24 | [RELEASING.fr.md](RELEASING.fr.md) (scripts `local-ci-*.sh`), **kDrive en pause** pendant la construction. |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-14T05:24:28.000Z | 8 | createdAt: 2026-11-14T05:24:28.000Z |
| 9 | -updatedAt: 2026-11-14T17:49:05.000Z | 9 | +updatedAt: 2026-11-14T18:13:47.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - kind::chore | 11 | - kind::chore |
| 12 | - area::infra | 12 | - area::infra |
| @@ -18,6 +18,7 @@ body: | | |||
| 18 | Publier Sidekicks 1.5.0 avec ce qui sera fait après la 1.4.0 (liste à compléter) : | 18 | Publier Sidekicks 1.5.0 avec ce qui sera fait après la 1.4.0 (liste à compléter) : |
| 19 | - [#94](.tickets/issues/0094-assistant-de-creation-d-agents-mini-me-pour-les.yaml) — assistant de création d'agents mini-me pour les utilisateurs non techniques | 19 | - [#94](.tickets/issues/0094-assistant-de-creation-d-agents-mini-me-pour-les.yaml) — assistant de création d'agents mini-me pour les utilisateurs non techniques |
| 20 | - [#95](.tickets/issues/0095-ask-user-de-mini-me-pas-de-zone-de-saisie-dans-s.yaml) — `ask_user` de mini-me : zone de saisie dans la conversation | 20 | - [#95](.tickets/issues/0095-ask-user-de-mini-me-pas-de-zone-de-saisie-dans-s.yaml) — `ask_user` de mini-me : zone de saisie dans la conversation |
| 21 | + - [#96](.tickets/issues/0096-assistant-create-a-sbx-agent-claude-gemini-codex.yaml) — assistant « Create a sbx agent » (Claude, Gemini, Codex) | ||
| 21 | 22 | ||
| 22 | Même déroulé que [#92 — Publier la version 1.4.0](.tickets/issues/0092-publier-la-version-1-4-0.yaml), en suivant | 23 | Même déroulé que [#92 — Publier la version 1.4.0](.tickets/issues/0092-publier-la-version-1-4-0.yaml), en suivant |
| 23 | [RELEASING.fr.md](RELEASING.fr.md) (scripts `local-ci-*.sh`), **kDrive en pause** pendant la construction. | 24 | [RELEASING.fr.md](RELEASING.fr.md) (scripts `local-ci-*.sh`), **kDrive en pause** pendant la construction. |
added
.tickets/issues/0096-assistant-create-a-sbx-agent-claude-gemini-codex.yaml +164 -0 | new file mode 100644 | ||
| @@ -0,0 +1,164 @@ | ||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | |
| 2 | +id: 96 | |
| 3 | +title: "Assistant « Create a sbx agent » : Claude, Gemini, Codex dans une Docker Sandbox" | |
| 4 | +state: open | |
| 5 | +author: | |
| 6 | + name: k33g | |
| 7 | + email: ph.charriere@gmail.com | |
| 8 | +createdAt: 2026-11-14T18:04:31.000Z | |
| 9 | +updatedAt: 2026-11-14T18:13:47.000Z | |
| 10 | +labels: | |
| 11 | + - kind::feature | |
| 12 | + - area::ui | |
| 13 | + - area::config | |
| 14 | + - citizen-ux | |
| 15 | + - size::L | |
| 16 | +milestone: "v1.5.0 · Release" | |
| 17 | +epic: Docker SBX | |
| 18 | +related: | |
| 19 | + - 94 | |
| 20 | + - 81 | |
| 21 | + - 82 | |
| 22 | + - 84 | |
| 23 | +body: | | |
| 24 | + Un nouvel assistant, sur le modèle de [#94 — Assistant de création d'agents mini-me](.tickets/issues/0094-assistant-de-creation-d-agents-mini-me-pour-les.yaml), | |
| 25 | + pour créer un agent qui tourne dans une Docker Sandbox (sbx), sans fichier à écrire ni dossier à choisir. | |
| 26 | + | |
| 27 | + ## Déroulé | |
| 28 | + 1. Au lancement, l'assistant propose le **type d'agent** : **Claude**, **Gemini** ou **Codex**. D'autres viendront | |
| 29 | + (Mistral Vibe #86, Docker Agent #87…) : les types sont un **catalogue** (une entrée par type), pas du code en dur | |
| 30 | + dans l'interface. | |
| 31 | + 2. L'utilisateur donne le **nom** de l'agent (qui est aussi le nom de son dossier et de sa sandbox) et un **emoji** | |
| 32 | + (par défaut celui du type : 📙 Claude, 📘 Gemini, 📗 Codex ; titre par défaut : Claude, Gemini, Codex). | |
| 33 | + 3. Sidekicks crée le dossier de l'agent, écrit son `sbxenv.yaml`, l'ajoute à la configuration et ouvre sa | |
| 34 | + conversation ; la sandbox est créée au premier démarrage (`runtime.lifecycle.create`). | |
| 35 | + | |
| 36 | + Comme pour #94, le dossier de l'agent est créé dans **Documents** par défaut, modifiable avec le réglage | |
| 37 | + `agentsFolder` (déjà en place). | |
| 38 | + | |
| 39 | + ## Ce que l'assistant écrit | |
| 40 | + Dossier `<agentsFolder>/<nom>/` : | |
| 41 | + - `sbxenv.yaml`, d'après les exemples de [tmp/claude-acp/sbxenv.yaml](tmp/claude-acp/sbxenv.yaml), | |
| 42 | + [tmp/gemini-acp/sbxenv.yaml](tmp/gemini-acp/sbxenv.yaml) et [tmp/codex-acp/sbxenv.yaml](tmp/codex-acp/sbxenv.yaml), | |
| 43 | + avec `name: <nom>` et `workspace: ./workspace` ; | |
| 44 | + - `workspace/`, le dossier de travail de l'agent. | |
| 45 | + | |
| 46 | + | Type | `agent:` | kit | programme lancé | `bindings` | | |
| 47 | + | --- | --- | --- | --- | --- | | |
| 48 | + | Claude | `claude` | `docker.io/sbx/claude-acp:latest` | `claude-agent-acp` | `anthropic` (apiKey) | | |
| 49 | + | Gemini | `gemini` | `docker.io/sbx/gemini-kit:latest` | `gemini --acp` | `google` (apiKey, oauth) | | |
| 50 | + | Codex | `codex` | `docker.io/sbx/codex-acp:latest` | `codex-acp` | `openai` (apiKey, oauth) | | |
| 51 | + | |
| 52 | + Tous avec `sandboxOptions.pullPolicy: always`. | |
| 53 | + | |
| 54 | + Entrée de configuration (comme celles données par l'owner, ici pour Claude) : | |
| 55 | + | |
| 56 | + ```yaml | |
| 57 | + - name: claude | |
| 58 | + title: Claude | |
| 59 | + icon: "📙" | |
| 60 | + command: sbx | |
| 61 | + args: [exec, -i, claude-acp, claude-agent-acp] | |
| 62 | + workspace: <agentsFolder>/claude-acp/workspace | |
| 63 | + runtime: | |
| 64 | + type: sbx | |
| 65 | + sandbox: claude-acp | |
| 66 | + lifecycle: | |
| 67 | + folder: <agentsFolder>/claude-acp | |
| 68 | + create: [sbx, env, create, --force] | |
| 69 | + stop: [sbx, stop, claude-acp] | |
| 70 | + remove: [sbx, env, rm, --force] | |
| 71 | + ``` | |
| 72 | + | |
| 73 | + Gemini : `args: [exec, -i, <sandbox>, gemini, --acp]` ; Codex : `args: [exec, -i, <sandbox>, codex-acp]`. | |
| 74 | + L'assistant « Ajouter un agent » sait déjà tout cela (`sbxPrograms`, `sbxArguments`, `withSandboxEnv` dans | |
| 75 | + `frontend/src/lib/agentform.ts`, `ConfigService.ReadSandboxEnv`) : réutiliser plutôt que dupliquer, et faire | |
| 76 | + du catalogue la source commune. | |
| 77 | + | |
| 78 | + ## Décisions (owner) | |
| 79 | + - **Nom de la sandbox = nom de l'agent** (= nom du dossier). Il doit être unique pour sbx (lettres, chiffres, | |
| 80 | + tirets) : vérifier qu'aucune sandbox de ce nom n'existe déjà (\`sbx ls\`), comme le dossier et le nom d'agent. | |
| 81 | + - **Clés et connexion** : l'assistant **explique** ce qu'il faut (clé de l'API ou connexion OAuth), **vérifie** si la | |
| 82 | + clé existe déjà dans sbx et, sinon, la **demande** à l'utilisateur et la **pose** lui-même | |
| 83 | + (\`sbx secret set anthropic|google|openai\`), sans jamais l'écrire dans un fichier ni dans les journaux. | |
| 84 | + - **Commentaires du \`sbxenv.yaml\` en anglais** (ADR 0005) ; les exemples de \`tmp/\` sont en français. | |
| 85 | + - **Gemini : passer au kit \`antigravity\`** qui remplace \`docker.io/sbx/gemini-kit\` (déprécié par Docker), après avoir | |
| 86 | + vérifié comment ACP fonctionne avec lui (programme et arguments à lancer, clés, \`bindings\`). | |
| 87 | + | |
| 88 | + ## Messages d'erreur (simples) | |
| 89 | + - `sbx` absent : dire quoi installer ; rien n'est créé. | |
| 90 | + - Nom d'agent, dossier ou sandbox déjà pris : proposer un autre nom ; un dossier existant n'est jamais touché. | |
| 91 | + - Clé absente (si vérifiable) : dire quelle commande lancer, ou la demander. | |
| 92 | + | |
| 93 | + ## Critères d'acceptation | |
| 94 | + - Depuis l'assistant, sans fichier à éditer ni dossier à choisir, un utilisateur crée un agent Claude, Gemini ou | |
| 95 | + Codex ; son dossier (`sbxenv.yaml` + `workspace/`) est dans Documents (ou `agentsFolder`) ; l'agent apparaît | |
| 96 | + dans la liste avec son emoji et démarre (la sandbox est créée au premier démarrage). | |
| 97 | + - Ajouter un nouveau type = une entrée de catalogue (et son modèle de `sbxenv.yaml`). | |
| 98 | + - Tests unitaires (génération du `sbxenv.yaml`, entrée de configuration, noms pris), doc EN + FR. | |
| 99 | +tasks: | |
| 100 | + - id: 1 | |
| 101 | + title: "Catalogue des types sbx (Claude, Gemini, Codex) : agent, kit, programme, arguments, bindings, emoji et titre par défaut ; source commune avec l'assistant Ajouter un agent" | |
| 102 | + state: open | |
| 103 | + priority: high | |
| 104 | + author: | |
| 105 | + name: k33g | |
| 106 | + email: ph.charriere@gmail.com | |
| 107 | + createdAt: 2026-11-14T18:04:31.000Z | |
| 108 | + - id: 2 | |
| 109 | + title: "Génération du dossier : sbxenv.yaml (name, workspace ./workspace, kit, bindings, pullPolicy) + workspace/" | |
| 110 | + state: open | |
| 111 | + priority: high | |
| 112 | + author: | |
| 113 | + name: k33g | |
| 114 | + email: ph.charriere@gmail.com | |
| 115 | + createdAt: 2026-11-14T18:04:31.000Z | |
| 116 | + - id: 3 | |
| 117 | + title: "Service Go : vérifier sbx, noms (agent, dossier, sandbox), écrire, ajouter l'entrée de configuration" | |
| 118 | + state: open | |
| 119 | + priority: high | |
| 120 | + author: | |
| 121 | + name: k33g | |
| 122 | + email: ph.charriere@gmail.com | |
| 123 | + createdAt: 2026-11-14T18:04:31.000Z | |
| 124 | + - id: 4 | |
| 125 | + title: "Page de l'assistant : choix du type, nom, emoji ; accès depuis l'accueil, la liste des agents, la palette" | |
| 126 | + state: open | |
| 127 | + priority: high | |
| 128 | + author: | |
| 129 | + name: k33g | |
| 130 | + email: ph.charriere@gmail.com | |
| 131 | + createdAt: 2026-11-14T18:04:31.000Z | |
| 132 | + - id: 5 | |
| 133 | + title: "Clés et connexion : expliquer, vérifier si le secret sbx existe, sinon le demander et le poser (jamais écrit ni journalisé)" | |
| 134 | + state: open | |
| 135 | + priority: medium | |
| 136 | + author: | |
| 137 | + name: k33g | |
| 138 | + email: ph.charriere@gmail.com | |
| 139 | + createdAt: 2026-11-14T18:04:31.000Z | |
| 140 | + - id: 6 | |
| 141 | + title: "Tests unitaires ; essai sur le Mac avec les trois types" | |
| 142 | + state: open | |
| 143 | + priority: high | |
| 144 | + author: | |
| 145 | + name: k33g | |
| 146 | + email: ph.charriere@gmail.com | |
| 147 | + createdAt: 2026-11-14T18:04:31.000Z | |
| 148 | + - id: 7 | |
| 149 | + title: "Documentation EN + FR (how-to, référence), notes de release" | |
| 150 | + state: open | |
| 151 | + priority: medium | |
| 152 | + author: | |
| 153 | + name: k33g | |
| 154 | + email: ph.charriere@gmail.com | |
| 155 | + createdAt: 2026-11-14T18:04:31.000Z | |
| 156 | + - id: 8 | |
| 157 | + title: "Gemini : étudier le kit antigravity et son ACP (programme, arguments, clés, bindings) avant de l'adopter" | |
| 158 | + state: open | |
| 159 | + priority: high | |
| 160 | + author: | |
| 161 | + name: k33g | |
| 162 | + email: ph.charriere@gmail.com | |
| 163 | + createdAt: 2026-11-14T18:13:47.000Z | |
| 164 | +comments: [] | |
| new file mode 100644 | |||
| @@ -0,0 +1,164 @@ | |||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | ||
| 2 | +id: 96 | ||
| 3 | +title: "Assistant « Create a sbx agent » : Claude, Gemini, Codex dans une Docker Sandbox" | ||
| 4 | +state: open | ||
| 5 | +author: | ||
| 6 | + name: k33g | ||
| 7 | + email: ph.charriere@gmail.com | ||
| 8 | +createdAt: 2026-11-14T18:04:31.000Z | ||
| 9 | +updatedAt: 2026-11-14T18:13:47.000Z | ||
| 10 | +labels: | ||
| 11 | + - kind::feature | ||
| 12 | + - area::ui | ||
| 13 | + - area::config | ||
| 14 | + - citizen-ux | ||
| 15 | + - size::L | ||
| 16 | +milestone: "v1.5.0 · Release" | ||
| 17 | +epic: Docker SBX | ||
| 18 | +related: | ||
| 19 | + - 94 | ||
| 20 | + - 81 | ||
| 21 | + - 82 | ||
| 22 | + - 84 | ||
| 23 | +body: | | ||
| 24 | + Un nouvel assistant, sur le modèle de [#94 — Assistant de création d'agents mini-me](.tickets/issues/0094-assistant-de-creation-d-agents-mini-me-pour-les.yaml), | ||
| 25 | + pour créer un agent qui tourne dans une Docker Sandbox (sbx), sans fichier à écrire ni dossier à choisir. | ||
| 26 | + | ||
| 27 | + ## Déroulé | ||
| 28 | + 1. Au lancement, l'assistant propose le **type d'agent** : **Claude**, **Gemini** ou **Codex**. D'autres viendront | ||
| 29 | + (Mistral Vibe #86, Docker Agent #87…) : les types sont un **catalogue** (une entrée par type), pas du code en dur | ||
| 30 | + dans l'interface. | ||
| 31 | + 2. L'utilisateur donne le **nom** de l'agent (qui est aussi le nom de son dossier et de sa sandbox) et un **emoji** | ||
| 32 | + (par défaut celui du type : 📙 Claude, 📘 Gemini, 📗 Codex ; titre par défaut : Claude, Gemini, Codex). | ||
| 33 | + 3. Sidekicks crée le dossier de l'agent, écrit son `sbxenv.yaml`, l'ajoute à la configuration et ouvre sa | ||
| 34 | + conversation ; la sandbox est créée au premier démarrage (`runtime.lifecycle.create`). | ||
| 35 | + | ||
| 36 | + Comme pour #94, le dossier de l'agent est créé dans **Documents** par défaut, modifiable avec le réglage | ||
| 37 | + `agentsFolder` (déjà en place). | ||
| 38 | + | ||
| 39 | + ## Ce que l'assistant écrit | ||
| 40 | + Dossier `<agentsFolder>/<nom>/` : | ||
| 41 | + - `sbxenv.yaml`, d'après les exemples de [tmp/claude-acp/sbxenv.yaml](tmp/claude-acp/sbxenv.yaml), | ||
| 42 | + [tmp/gemini-acp/sbxenv.yaml](tmp/gemini-acp/sbxenv.yaml) et [tmp/codex-acp/sbxenv.yaml](tmp/codex-acp/sbxenv.yaml), | ||
| 43 | + avec `name: <nom>` et `workspace: ./workspace` ; | ||
| 44 | + - `workspace/`, le dossier de travail de l'agent. | ||
| 45 | + | ||
| 46 | + | Type | `agent:` | kit | programme lancé | `bindings` | | ||
| 47 | + | --- | --- | --- | --- | --- | | ||
| 48 | + | Claude | `claude` | `docker.io/sbx/claude-acp:latest` | `claude-agent-acp` | `anthropic` (apiKey) | | ||
| 49 | + | Gemini | `gemini` | `docker.io/sbx/gemini-kit:latest` | `gemini --acp` | `google` (apiKey, oauth) | | ||
| 50 | + | Codex | `codex` | `docker.io/sbx/codex-acp:latest` | `codex-acp` | `openai` (apiKey, oauth) | | ||
| 51 | + | ||
| 52 | + Tous avec `sandboxOptions.pullPolicy: always`. | ||
| 53 | + | ||
| 54 | + Entrée de configuration (comme celles données par l'owner, ici pour Claude) : | ||
| 55 | + | ||
| 56 | + ```yaml | ||
| 57 | + - name: claude | ||
| 58 | + title: Claude | ||
| 59 | + icon: "📙" | ||
| 60 | + command: sbx | ||
| 61 | + args: [exec, -i, claude-acp, claude-agent-acp] | ||
| 62 | + workspace: <agentsFolder>/claude-acp/workspace | ||
| 63 | + runtime: | ||
| 64 | + type: sbx | ||
| 65 | + sandbox: claude-acp | ||
| 66 | + lifecycle: | ||
| 67 | + folder: <agentsFolder>/claude-acp | ||
| 68 | + create: [sbx, env, create, --force] | ||
| 69 | + stop: [sbx, stop, claude-acp] | ||
| 70 | + remove: [sbx, env, rm, --force] | ||
| 71 | + ``` | ||
| 72 | + | ||
| 73 | + Gemini : `args: [exec, -i, <sandbox>, gemini, --acp]` ; Codex : `args: [exec, -i, <sandbox>, codex-acp]`. | ||
| 74 | + L'assistant « Ajouter un agent » sait déjà tout cela (`sbxPrograms`, `sbxArguments`, `withSandboxEnv` dans | ||
| 75 | + `frontend/src/lib/agentform.ts`, `ConfigService.ReadSandboxEnv`) : réutiliser plutôt que dupliquer, et faire | ||
| 76 | + du catalogue la source commune. | ||
| 77 | + | ||
| 78 | + ## Décisions (owner) | ||
| 79 | + - **Nom de la sandbox = nom de l'agent** (= nom du dossier). Il doit être unique pour sbx (lettres, chiffres, | ||
| 80 | + tirets) : vérifier qu'aucune sandbox de ce nom n'existe déjà (\`sbx ls\`), comme le dossier et le nom d'agent. | ||
| 81 | + - **Clés et connexion** : l'assistant **explique** ce qu'il faut (clé de l'API ou connexion OAuth), **vérifie** si la | ||
| 82 | + clé existe déjà dans sbx et, sinon, la **demande** à l'utilisateur et la **pose** lui-même | ||
| 83 | + (\`sbx secret set anthropic|google|openai\`), sans jamais l'écrire dans un fichier ni dans les journaux. | ||
| 84 | + - **Commentaires du \`sbxenv.yaml\` en anglais** (ADR 0005) ; les exemples de \`tmp/\` sont en français. | ||
| 85 | + - **Gemini : passer au kit \`antigravity\`** qui remplace \`docker.io/sbx/gemini-kit\` (déprécié par Docker), après avoir | ||
| 86 | + vérifié comment ACP fonctionne avec lui (programme et arguments à lancer, clés, \`bindings\`). | ||
| 87 | + | ||
| 88 | + ## Messages d'erreur (simples) | ||
| 89 | + - `sbx` absent : dire quoi installer ; rien n'est créé. | ||
| 90 | + - Nom d'agent, dossier ou sandbox déjà pris : proposer un autre nom ; un dossier existant n'est jamais touché. | ||
| 91 | + - Clé absente (si vérifiable) : dire quelle commande lancer, ou la demander. | ||
| 92 | + | ||
| 93 | + ## Critères d'acceptation | ||
| 94 | + - Depuis l'assistant, sans fichier à éditer ni dossier à choisir, un utilisateur crée un agent Claude, Gemini ou | ||
| 95 | + Codex ; son dossier (`sbxenv.yaml` + `workspace/`) est dans Documents (ou `agentsFolder`) ; l'agent apparaît | ||
| 96 | + dans la liste avec son emoji et démarre (la sandbox est créée au premier démarrage). | ||
| 97 | + - Ajouter un nouveau type = une entrée de catalogue (et son modèle de `sbxenv.yaml`). | ||
| 98 | + - Tests unitaires (génération du `sbxenv.yaml`, entrée de configuration, noms pris), doc EN + FR. | ||
| 99 | +tasks: | ||
| 100 | + - id: 1 | ||
| 101 | + title: "Catalogue des types sbx (Claude, Gemini, Codex) : agent, kit, programme, arguments, bindings, emoji et titre par défaut ; source commune avec l'assistant Ajouter un agent" | ||
| 102 | + state: open | ||
| 103 | + priority: high | ||
| 104 | + author: | ||
| 105 | + name: k33g | ||
| 106 | + email: ph.charriere@gmail.com | ||
| 107 | + createdAt: 2026-11-14T18:04:31.000Z | ||
| 108 | + - id: 2 | ||
| 109 | + title: "Génération du dossier : sbxenv.yaml (name, workspace ./workspace, kit, bindings, pullPolicy) + workspace/" | ||
| 110 | + state: open | ||
| 111 | + priority: high | ||
| 112 | + author: | ||
| 113 | + name: k33g | ||
| 114 | + email: ph.charriere@gmail.com | ||
| 115 | + createdAt: 2026-11-14T18:04:31.000Z | ||
| 116 | + - id: 3 | ||
| 117 | + title: "Service Go : vérifier sbx, noms (agent, dossier, sandbox), écrire, ajouter l'entrée de configuration" | ||
| 118 | + state: open | ||
| 119 | + priority: high | ||
| 120 | + author: | ||
| 121 | + name: k33g | ||
| 122 | + email: ph.charriere@gmail.com | ||
| 123 | + createdAt: 2026-11-14T18:04:31.000Z | ||
| 124 | + - id: 4 | ||
| 125 | + title: "Page de l'assistant : choix du type, nom, emoji ; accès depuis l'accueil, la liste des agents, la palette" | ||
| 126 | + state: open | ||
| 127 | + priority: high | ||
| 128 | + author: | ||
| 129 | + name: k33g | ||
| 130 | + email: ph.charriere@gmail.com | ||
| 131 | + createdAt: 2026-11-14T18:04:31.000Z | ||
| 132 | + - id: 5 | ||
| 133 | + title: "Clés et connexion : expliquer, vérifier si le secret sbx existe, sinon le demander et le poser (jamais écrit ni journalisé)" | ||
| 134 | + state: open | ||
| 135 | + priority: medium | ||
| 136 | + author: | ||
| 137 | + name: k33g | ||
| 138 | + email: ph.charriere@gmail.com | ||
| 139 | + createdAt: 2026-11-14T18:04:31.000Z | ||
| 140 | + - id: 6 | ||
| 141 | + title: "Tests unitaires ; essai sur le Mac avec les trois types" | ||
| 142 | + state: open | ||
| 143 | + priority: high | ||
| 144 | + author: | ||
| 145 | + name: k33g | ||
| 146 | + email: ph.charriere@gmail.com | ||
| 147 | + createdAt: 2026-11-14T18:04:31.000Z | ||
| 148 | + - id: 7 | ||
| 149 | + title: "Documentation EN + FR (how-to, référence), notes de release" | ||
| 150 | + state: open | ||
| 151 | + priority: medium | ||
| 152 | + author: | ||
| 153 | + name: k33g | ||
| 154 | + email: ph.charriere@gmail.com | ||
| 155 | + createdAt: 2026-11-14T18:04:31.000Z | ||
| 156 | + - id: 8 | ||
| 157 | + title: "Gemini : étudier le kit antigravity et son ACP (programme, arguments, clés, bindings) avant de l'adopter" | ||
| 158 | + state: open | ||
| 159 | + priority: high | ||
| 160 | + author: | ||
| 161 | + name: k33g | ||
| 162 | + email: ph.charriere@gmail.com | ||
| 163 | + createdAt: 2026-11-14T18:13:47.000Z | ||
| 164 | +comments: [] | ||