#82 #84 Assistant : Codex et Gemini dans une sandbox sbx, comme Claude (#81)
Programmes proposés en mode sbx (/home/agent/.local/bin/codex-acp, gemini --acp), note par agent, exemple agents/snippets/gemini-acp, guides EN + FR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
42be055 parent: eb69acb modified
.memory/history.md +1 -0 | @@ -221,3 +221,4 @@ | ||
| 221 | 221 | - **2026-11-09 — #26 agents calling agents** (owner: "add #26 to the milestone and implement it"): chose @mentions in answers over an MCP "ask_agent" tool (mm ignores mcpServers). In a channel, members mentioned in an agent's answer answer next (`channels.Manager.answer` loop; `HandoffPrompt` tells them who addressed them; unseen includes the user's message). Guards: members only, not self, not already queued, not in code, not after a /command, not in direct conversations; `limits.maxAgentHandoffs` (default 3, 0–10, 0 = off; `*int` in raw config, read per message via `Options.Handoffs` → `Core.maxAgentHandoffs`), then system message `handoff-limit`; ■ stops the chain. Verified under Xvfb with two fake agents mentioning each other. Docs EN/FR: manage-channels how-to, channels-and-context explanation, configuration + agents-and-events references. |
| 222 | 222 | - **2026-11-10 — messages for several agents** (owner tested "@alice make a story about seven of nine, then @bob make a summary of this story": Alice asked for the story, Bob did everything; "@alice … ensuite demande à @bob d'en faire un résumé" worked): cause — with nothing unseen, Alice got the raw text and does not know she is @alice. Now, when a user message routes to several agents in a channel, `SharedPrompt` tells each one its name, the answer order and its part (`PartFor`: words after its first mention up to the next addressed agent's mention, code masked; none under two words = request for all). The fake conn matches scripts on the user's text inside a shared prompt. Docs EN/FR: manage-channels row, channels-and-context explanation, agents-and-events routing row. Not yet tried with mm. |
| 223 | 223 | - **2026-11-10 — follow-up**: tried with mm, `SharedPrompt` failed (Alice echoed "make a story about seven of nine", Bob wrote the story). Replaced it: each addressed agent receives only its part through the plain `Prompt` format (the one that works for a single agent), linking word stripped (`trailingLink`: then/and/puis/et/ensuite…); whole text when the part is under two words. `SharedPrompt` removed. Not yet re-tried with mm. |
| 224 | +- **2026-11-10 — #82 Codex and #84 Gemini in sbx, like #81** (owner: "implement 82 like 81, the example is agents/snippets/codex-acp; then 84, you create the example"): `sbxPrograms` + `sbxAgentOf` in agentform.ts (claude-agent-acp, `/home/agent/.local/bin/codex-acp` — outside the kit's PATH per its Docker Hub page —, `gemini --acp`); a note per agent (`assistant.codexNote`, `assistant.geminiNote`), config-file block hidden. Gemini example written: kit `docker.io/sbx/gemini-kit` (deprecated by Docker for `antigravity`), `bindings.google`. Lifecycle test reads every `agents/snippets/*/sbxenv.yaml`. Guides EN/FR add-a-codex/gemini-agent-in-a-sandbox. `agents/snippets/codex-acp` holds a nested `.git` (the owner's): not committed, asked the owner. Not tried with sbx. | |
| @@ -221,3 +221,4 @@ | |||
| 221 | - **2026-11-09 — #26 agents calling agents** (owner: "add #26 to the milestone and implement it"): chose @mentions in answers over an MCP "ask_agent" tool (mm ignores mcpServers). In a channel, members mentioned in an agent's answer answer next (`channels.Manager.answer` loop; `HandoffPrompt` tells them who addressed them; unseen includes the user's message). Guards: members only, not self, not already queued, not in code, not after a /command, not in direct conversations; `limits.maxAgentHandoffs` (default 3, 0–10, 0 = off; `*int` in raw config, read per message via `Options.Handoffs` → `Core.maxAgentHandoffs`), then system message `handoff-limit`; ■ stops the chain. Verified under Xvfb with two fake agents mentioning each other. Docs EN/FR: manage-channels how-to, channels-and-context explanation, configuration + agents-and-events references. | 221 | - **2026-11-09 — #26 agents calling agents** (owner: "add #26 to the milestone and implement it"): chose @mentions in answers over an MCP "ask_agent" tool (mm ignores mcpServers). In a channel, members mentioned in an agent's answer answer next (`channels.Manager.answer` loop; `HandoffPrompt` tells them who addressed them; unseen includes the user's message). Guards: members only, not self, not already queued, not in code, not after a /command, not in direct conversations; `limits.maxAgentHandoffs` (default 3, 0–10, 0 = off; `*int` in raw config, read per message via `Options.Handoffs` → `Core.maxAgentHandoffs`), then system message `handoff-limit`; ■ stops the chain. Verified under Xvfb with two fake agents mentioning each other. Docs EN/FR: manage-channels how-to, channels-and-context explanation, configuration + agents-and-events references. |
| 222 | - **2026-11-10 — messages for several agents** (owner tested "@alice make a story about seven of nine, then @bob make a summary of this story": Alice asked for the story, Bob did everything; "@alice … ensuite demande à @bob d'en faire un résumé" worked): cause — with nothing unseen, Alice got the raw text and does not know she is @alice. Now, when a user message routes to several agents in a channel, `SharedPrompt` tells each one its name, the answer order and its part (`PartFor`: words after its first mention up to the next addressed agent's mention, code masked; none under two words = request for all). The fake conn matches scripts on the user's text inside a shared prompt. Docs EN/FR: manage-channels row, channels-and-context explanation, agents-and-events routing row. Not yet tried with mm. | 222 | - **2026-11-10 — messages for several agents** (owner tested "@alice make a story about seven of nine, then @bob make a summary of this story": Alice asked for the story, Bob did everything; "@alice … ensuite demande à @bob d'en faire un résumé" worked): cause — with nothing unseen, Alice got the raw text and does not know she is @alice. Now, when a user message routes to several agents in a channel, `SharedPrompt` tells each one its name, the answer order and its part (`PartFor`: words after its first mention up to the next addressed agent's mention, code masked; none under two words = request for all). The fake conn matches scripts on the user's text inside a shared prompt. Docs EN/FR: manage-channels row, channels-and-context explanation, agents-and-events routing row. Not yet tried with mm. |
| 223 | - **2026-11-10 — follow-up**: tried with mm, `SharedPrompt` failed (Alice echoed "make a story about seven of nine", Bob wrote the story). Replaced it: each addressed agent receives only its part through the plain `Prompt` format (the one that works for a single agent), linking word stripped (`trailingLink`: then/and/puis/et/ensuite…); whole text when the part is under two words. `SharedPrompt` removed. Not yet re-tried with mm. | 223 | - **2026-11-10 — follow-up**: tried with mm, `SharedPrompt` failed (Alice echoed "make a story about seven of nine", Bob wrote the story). Replaced it: each addressed agent receives only its part through the plain `Prompt` format (the one that works for a single agent), linking word stripped (`trailingLink`: then/and/puis/et/ensuite…); whole text when the part is under two words. `SharedPrompt` removed. Not yet re-tried with mm. |
| 224 | +- **2026-11-10 — #82 Codex and #84 Gemini in sbx, like #81** (owner: "implement 82 like 81, the example is agents/snippets/codex-acp; then 84, you create the example"): `sbxPrograms` + `sbxAgentOf` in agentform.ts (claude-agent-acp, `/home/agent/.local/bin/codex-acp` — outside the kit's PATH per its Docker Hub page —, `gemini --acp`); a note per agent (`assistant.codexNote`, `assistant.geminiNote`), config-file block hidden. Gemini example written: kit `docker.io/sbx/gemini-kit` (deprecated by Docker for `antigravity`), `bindings.google`. Lifecycle test reads every `agents/snippets/*/sbxenv.yaml`. Guides EN/FR add-a-codex/gemini-agent-in-a-sandbox. `agents/snippets/codex-acp` holds a nested `.git` (the owner's): not committed, asked the owner. Not tried with sbx. | ||
modified
.tickets/issues/0082-simplifier-l-ajout-d-une-sbx-avec-codex-acp.yaml +55 -4 | @@ -1,12 +1,12 @@ | ||
| 1 | 1 | # Managed by IssueSpec. Hand edits are welcome; keep the schema valid. |
| 2 | 2 | id: 82 |
| 3 | 3 | title: "Simplifier l'ajout d'une sbx avec Codex ACP" |
| 4 | -state: open | |
| 4 | +state: closed | |
| 5 | 5 | author: |
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-09T06:11:54.000Z |
| 9 | -updatedAt: 2026-11-10T04:26:00.000Z | |
| 9 | +updatedAt: 2026-11-10T04:43:20.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - kind::feature |
| 12 | 12 | - area::config |
| @@ -40,5 +40,56 @@ body: | | ||
| 40 | 40 | - Depuis une installation neuve, un agent Codex en sbx est ajouté en quelques clics, démarre et répond. |
| 41 | 41 | - Un message clair si sbx, le kit ou l'authentification manque, avec quoi faire. |
| 42 | 42 | - Tests (formulaire, YAML produit) ; textes EN + FR ; guide « ajouter un agent » et « agent dans une sandbox » EN + FR. |
| 43 | -tasks: [] | |
| 44 | -comments: [] | |
| 43 | +tasks: | |
| 44 | + - id: 1 | |
| 45 | + title: "Proposer /home/agent/.local/bin/codex-acp dans la liste des programmes en mode sbx (codex-acp seul reconnu aussi)" | |
| 46 | + state: closed | |
| 47 | + priority: high | |
| 48 | + author: | |
| 49 | + name: k33g | |
| 50 | + email: ph.charriere@gmail.com | |
| 51 | + createdAt: 2026-11-10T04:43:20.000Z | |
| 52 | + updatedAt: 2026-11-10T04:43:20.000Z | |
| 53 | + closedAt: 2026-11-10T04:43:20.000Z | |
| 54 | + - id: 2 | |
| 55 | + title: "Note sous le programme (kit tiers, identifiants OpenAI, guide) et bloc « fichier de configuration » caché" | |
| 56 | + state: closed | |
| 57 | + priority: medium | |
| 58 | + author: | |
| 59 | + name: k33g | |
| 60 | + email: ph.charriere@gmail.com | |
| 61 | + createdAt: 2026-11-10T04:43:20.000Z | |
| 62 | + updatedAt: 2026-11-10T04:43:20.000Z | |
| 63 | + closedAt: 2026-11-10T04:43:20.000Z | |
| 64 | + - id: 3 | |
| 65 | + title: "README de l'exemple agents/snippets/codex-acp" | |
| 66 | + state: closed | |
| 67 | + priority: medium | |
| 68 | + author: | |
| 69 | + name: k33g | |
| 70 | + email: ph.charriere@gmail.com | |
| 71 | + createdAt: 2026-11-10T04:43:20.000Z | |
| 72 | + updatedAt: 2026-11-10T04:43:20.000Z | |
| 73 | + closedAt: 2026-11-10T04:43:20.000Z | |
| 74 | + - id: 4 | |
| 75 | + title: "Tests vitest + lecture des sbxenv.yaml des exemples ; guide « Ajouter un agent Codex dans une sandbox sbx » EN + FR" | |
| 76 | + state: closed | |
| 77 | + priority: medium | |
| 78 | + author: | |
| 79 | + name: k33g | |
| 80 | + email: ph.charriere@gmail.com | |
| 81 | + createdAt: 2026-11-10T04:43:20.000Z | |
| 82 | + updatedAt: 2026-11-10T04:43:20.000Z | |
| 83 | + closedAt: 2026-11-10T04:43:20.000Z | |
| 84 | +comments: | |
| 85 | + - id: 1 | |
| 86 | + author: | |
| 87 | + name: k33g | |
| 88 | + email: ph.charriere@gmail.com | |
| 89 | + createdAt: 2026-11-10T04:43:20.000Z | |
| 90 | + body: | | |
| 91 | + Fait comme #81. | |
| 92 | + - Assistant : en mode sbx, la liste **Programme** propose `/home/agent/.local/bin/codex-acp` (le kit `docker.io/sbx/codex-acp-kit` l'installe hors du `PATH`) ; `codex-acp` seul est reconnu aussi. Une note rappelle le kit tiers et les identifiants OpenAI (`sbx secret set -g openai --oauth` ou clé), et le bloc « fichier de configuration de l'agent » est caché. Généralisé : `sbxPrograms` / `sbxAgentOf` dans [agentform.ts](frontend/src/lib/agentform.ts) pour Claude, Codex et Gemini. | |
| 93 | + - Exemple : [agents/snippets/codex-acp](agents/snippets/codex-acp/README.md) (le `sbxenv.yaml` fourni + un README avec l'entrée de l'agent). | |
| 94 | + - Docs EN + FR : guide « Ajouter un agent Codex dans une sandbox sbx », « Ajouter un agent », « Lancer un agent dans une sandbox sbx », index. | |
| 95 | + - Non vérifié : démarrage réel de Codex (pas de sbx ici). | |
| @@ -1,12 +1,12 @@ | |||
| 1 | # Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | 1 | # Managed by IssueSpec. Hand edits are welcome; keep the schema valid. |
| 2 | id: 82 | 2 | id: 82 |
| 3 | title: "Simplifier l'ajout d'une sbx avec Codex ACP" | 3 | title: "Simplifier l'ajout d'une sbx avec Codex ACP" |
| 4 | -state: open | 4 | +state: closed |
| 5 | author: | 5 | author: |
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-09T06:11:54.000Z | 8 | createdAt: 2026-11-09T06:11:54.000Z |
| 9 | -updatedAt: 2026-11-10T04:26:00.000Z | 9 | +updatedAt: 2026-11-10T04:43:20.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - kind::feature | 11 | - kind::feature |
| 12 | - area::config | 12 | - area::config |
| @@ -40,5 +40,56 @@ body: | | |||
| 40 | - Depuis une installation neuve, un agent Codex en sbx est ajouté en quelques clics, démarre et répond. | 40 | - Depuis une installation neuve, un agent Codex en sbx est ajouté en quelques clics, démarre et répond. |
| 41 | - Un message clair si sbx, le kit ou l'authentification manque, avec quoi faire. | 41 | - Un message clair si sbx, le kit ou l'authentification manque, avec quoi faire. |
| 42 | - Tests (formulaire, YAML produit) ; textes EN + FR ; guide « ajouter un agent » et « agent dans une sandbox » EN + FR. | 42 | - Tests (formulaire, YAML produit) ; textes EN + FR ; guide « ajouter un agent » et « agent dans une sandbox » EN + FR. |
| 43 | -tasks: [] | 43 | +tasks: |
| 44 | -comments: [] | 44 | + - id: 1 |
| 45 | + title: "Proposer /home/agent/.local/bin/codex-acp dans la liste des programmes en mode sbx (codex-acp seul reconnu aussi)" | ||
| 46 | + state: closed | ||
| 47 | + priority: high | ||
| 48 | + author: | ||
| 49 | + name: k33g | ||
| 50 | + email: ph.charriere@gmail.com | ||
| 51 | + createdAt: 2026-11-10T04:43:20.000Z | ||
| 52 | + updatedAt: 2026-11-10T04:43:20.000Z | ||
| 53 | + closedAt: 2026-11-10T04:43:20.000Z | ||
| 54 | + - id: 2 | ||
| 55 | + title: "Note sous le programme (kit tiers, identifiants OpenAI, guide) et bloc « fichier de configuration » caché" | ||
| 56 | + state: closed | ||
| 57 | + priority: medium | ||
| 58 | + author: | ||
| 59 | + name: k33g | ||
| 60 | + email: ph.charriere@gmail.com | ||
| 61 | + createdAt: 2026-11-10T04:43:20.000Z | ||
| 62 | + updatedAt: 2026-11-10T04:43:20.000Z | ||
| 63 | + closedAt: 2026-11-10T04:43:20.000Z | ||
| 64 | + - id: 3 | ||
| 65 | + title: "README de l'exemple agents/snippets/codex-acp" | ||
| 66 | + state: closed | ||
| 67 | + priority: medium | ||
| 68 | + author: | ||
| 69 | + name: k33g | ||
| 70 | + email: ph.charriere@gmail.com | ||
| 71 | + createdAt: 2026-11-10T04:43:20.000Z | ||
| 72 | + updatedAt: 2026-11-10T04:43:20.000Z | ||
| 73 | + closedAt: 2026-11-10T04:43:20.000Z | ||
| 74 | + - id: 4 | ||
| 75 | + title: "Tests vitest + lecture des sbxenv.yaml des exemples ; guide « Ajouter un agent Codex dans une sandbox sbx » EN + FR" | ||
| 76 | + state: closed | ||
| 77 | + priority: medium | ||
| 78 | + author: | ||
| 79 | + name: k33g | ||
| 80 | + email: ph.charriere@gmail.com | ||
| 81 | + createdAt: 2026-11-10T04:43:20.000Z | ||
| 82 | + updatedAt: 2026-11-10T04:43:20.000Z | ||
| 83 | + closedAt: 2026-11-10T04:43:20.000Z | ||
| 84 | +comments: | ||
| 85 | + - id: 1 | ||
| 86 | + author: | ||
| 87 | + name: k33g | ||
| 88 | + email: ph.charriere@gmail.com | ||
| 89 | + createdAt: 2026-11-10T04:43:20.000Z | ||
| 90 | + body: | | ||
| 91 | + Fait comme #81. | ||
| 92 | + - Assistant : en mode sbx, la liste **Programme** propose `/home/agent/.local/bin/codex-acp` (le kit `docker.io/sbx/codex-acp-kit` l'installe hors du `PATH`) ; `codex-acp` seul est reconnu aussi. Une note rappelle le kit tiers et les identifiants OpenAI (`sbx secret set -g openai --oauth` ou clé), et le bloc « fichier de configuration de l'agent » est caché. Généralisé : `sbxPrograms` / `sbxAgentOf` dans [agentform.ts](frontend/src/lib/agentform.ts) pour Claude, Codex et Gemini. | ||
| 93 | + - Exemple : [agents/snippets/codex-acp](agents/snippets/codex-acp/README.md) (le `sbxenv.yaml` fourni + un README avec l'entrée de l'agent). | ||
| 94 | + - Docs EN + FR : guide « Ajouter un agent Codex dans une sandbox sbx », « Ajouter un agent », « Lancer un agent dans une sandbox sbx », index. | ||
| 95 | + - Non vérifié : démarrage réel de Codex (pas de sbx ici). | ||
modified
.tickets/issues/0084-simplifier-l-ajout-d-une-sbx-avec-gemini-acp.yaml +56 -4 | @@ -1,12 +1,12 @@ | ||
| 1 | 1 | # Managed by IssueSpec. Hand edits are welcome; keep the schema valid. |
| 2 | 2 | id: 84 |
| 3 | 3 | title: "Simplifier l'ajout d'une sbx avec Gemini ACP" |
| 4 | -state: open | |
| 4 | +state: closed | |
| 5 | 5 | author: |
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-10T04:26:00.000Z |
| 9 | -updatedAt: 2026-11-10T04:26:00.000Z | |
| 9 | +updatedAt: 2026-11-10T04:43:20.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - kind::feature |
| 12 | 12 | - area::config |
| @@ -43,5 +43,57 @@ body: | | ||
| 43 | 43 | - Depuis une installation neuve, un agent Gemini en sbx est ajouté en quelques clics, démarre et répond. |
| 44 | 44 | - Un message clair si sbx, le kit ou l'authentification manque, avec quoi faire. |
| 45 | 45 | - Tests (formulaire, YAML produit) ; textes EN + FR ; guide « ajouter un agent » et « agent dans une sandbox » EN + FR. |
| 46 | -tasks: [] | |
| 47 | -comments: [] | |
| 46 | +tasks: | |
| 47 | + - id: 1 | |
| 48 | + title: "Créer l'exemple agents/snippets/gemini-acp (sbxenv.yaml, README, workspace/)" | |
| 49 | + state: closed | |
| 50 | + priority: high | |
| 51 | + author: | |
| 52 | + name: k33g | |
| 53 | + email: ph.charriere@gmail.com | |
| 54 | + createdAt: 2026-11-10T04:43:20.000Z | |
| 55 | + updatedAt: 2026-11-10T04:43:20.000Z | |
| 56 | + closedAt: 2026-11-10T04:43:20.000Z | |
| 57 | + - id: 2 | |
| 58 | + title: "Proposer gemini --acp dans la liste des programmes en mode sbx (gemini --experimental-acp reconnu aussi)" | |
| 59 | + state: closed | |
| 60 | + priority: high | |
| 61 | + author: | |
| 62 | + name: k33g | |
| 63 | + email: ph.charriere@gmail.com | |
| 64 | + createdAt: 2026-11-10T04:43:20.000Z | |
| 65 | + updatedAt: 2026-11-10T04:43:20.000Z | |
| 66 | + closedAt: 2026-11-10T04:43:20.000Z | |
| 67 | + - id: 3 | |
| 68 | + title: "Note sous le programme (kit tiers, clé Gemini, guide) et bloc « fichier de configuration » caché" | |
| 69 | + state: closed | |
| 70 | + priority: medium | |
| 71 | + author: | |
| 72 | + name: k33g | |
| 73 | + email: ph.charriere@gmail.com | |
| 74 | + createdAt: 2026-11-10T04:43:20.000Z | |
| 75 | + updatedAt: 2026-11-10T04:43:20.000Z | |
| 76 | + closedAt: 2026-11-10T04:43:20.000Z | |
| 77 | + - id: 4 | |
| 78 | + title: "Tests ; guide « Ajouter un agent Gemini dans une sandbox sbx » EN + FR" | |
| 79 | + state: closed | |
| 80 | + priority: medium | |
| 81 | + author: | |
| 82 | + name: k33g | |
| 83 | + email: ph.charriere@gmail.com | |
| 84 | + createdAt: 2026-11-10T04:43:20.000Z | |
| 85 | + updatedAt: 2026-11-10T04:43:20.000Z | |
| 86 | + closedAt: 2026-11-10T04:43:20.000Z | |
| 87 | +comments: | |
| 88 | + - id: 1 | |
| 89 | + author: | |
| 90 | + name: k33g | |
| 91 | + email: ph.charriere@gmail.com | |
| 92 | + createdAt: 2026-11-10T04:43:20.000Z | |
| 93 | + body: | | |
| 94 | + Fait comme #81 et #82. | |
| 95 | + - Exemple : [agents/snippets/gemini-acp](agents/snippets/gemini-acp/README.md) — kit `docker.io/sbx/gemini-kit` (Gemini CLI à jour, image Docker vérifiée), `agent: gemini`, `bindings.google` (clé : `sbx secret set google`, domaines `generativelanguage.googleapis.com`, `aiplatform.googleapis.com`, `vertexai.googleapis.com` ; OAuth `accounts.google.com`, `oauth2.googleapis.com`). | |
| 96 | + - Gemini CLI parle ACP lui-même : programme `gemini --acp` (`--experimental-acp` pour les anciennes versions, reconnu aussi). | |
| 97 | + - Docker indique `gemini-kit` comme déprécié au profit du kit `antigravity` : signalé dans le guide. | |
| 98 | + - Docs EN + FR : guide « Ajouter un agent Gemini dans une sandbox sbx », « Ajouter un agent », index. | |
| 99 | + - À vérifier sur le Mac : le nom `google` des `bindings` (repris de la page du kit) et le démarrage réel. | |
| @@ -1,12 +1,12 @@ | |||
| 1 | # Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | 1 | # Managed by IssueSpec. Hand edits are welcome; keep the schema valid. |
| 2 | id: 84 | 2 | id: 84 |
| 3 | title: "Simplifier l'ajout d'une sbx avec Gemini ACP" | 3 | title: "Simplifier l'ajout d'une sbx avec Gemini ACP" |
| 4 | -state: open | 4 | +state: closed |
| 5 | author: | 5 | author: |
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-10T04:26:00.000Z | 8 | createdAt: 2026-11-10T04:26:00.000Z |
| 9 | -updatedAt: 2026-11-10T04:26:00.000Z | 9 | +updatedAt: 2026-11-10T04:43:20.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - kind::feature | 11 | - kind::feature |
| 12 | - area::config | 12 | - area::config |
| @@ -43,5 +43,57 @@ body: | | |||
| 43 | - Depuis une installation neuve, un agent Gemini en sbx est ajouté en quelques clics, démarre et répond. | 43 | - Depuis une installation neuve, un agent Gemini en sbx est ajouté en quelques clics, démarre et répond. |
| 44 | - Un message clair si sbx, le kit ou l'authentification manque, avec quoi faire. | 44 | - Un message clair si sbx, le kit ou l'authentification manque, avec quoi faire. |
| 45 | - Tests (formulaire, YAML produit) ; textes EN + FR ; guide « ajouter un agent » et « agent dans une sandbox » EN + FR. | 45 | - Tests (formulaire, YAML produit) ; textes EN + FR ; guide « ajouter un agent » et « agent dans une sandbox » EN + FR. |
| 46 | -tasks: [] | 46 | +tasks: |
| 47 | -comments: [] | 47 | + - id: 1 |
| 48 | + title: "Créer l'exemple agents/snippets/gemini-acp (sbxenv.yaml, README, workspace/)" | ||
| 49 | + state: closed | ||
| 50 | + priority: high | ||
| 51 | + author: | ||
| 52 | + name: k33g | ||
| 53 | + email: ph.charriere@gmail.com | ||
| 54 | + createdAt: 2026-11-10T04:43:20.000Z | ||
| 55 | + updatedAt: 2026-11-10T04:43:20.000Z | ||
| 56 | + closedAt: 2026-11-10T04:43:20.000Z | ||
| 57 | + - id: 2 | ||
| 58 | + title: "Proposer gemini --acp dans la liste des programmes en mode sbx (gemini --experimental-acp reconnu aussi)" | ||
| 59 | + state: closed | ||
| 60 | + priority: high | ||
| 61 | + author: | ||
| 62 | + name: k33g | ||
| 63 | + email: ph.charriere@gmail.com | ||
| 64 | + createdAt: 2026-11-10T04:43:20.000Z | ||
| 65 | + updatedAt: 2026-11-10T04:43:20.000Z | ||
| 66 | + closedAt: 2026-11-10T04:43:20.000Z | ||
| 67 | + - id: 3 | ||
| 68 | + title: "Note sous le programme (kit tiers, clé Gemini, guide) et bloc « fichier de configuration » caché" | ||
| 69 | + state: closed | ||
| 70 | + priority: medium | ||
| 71 | + author: | ||
| 72 | + name: k33g | ||
| 73 | + email: ph.charriere@gmail.com | ||
| 74 | + createdAt: 2026-11-10T04:43:20.000Z | ||
| 75 | + updatedAt: 2026-11-10T04:43:20.000Z | ||
| 76 | + closedAt: 2026-11-10T04:43:20.000Z | ||
| 77 | + - id: 4 | ||
| 78 | + title: "Tests ; guide « Ajouter un agent Gemini dans une sandbox sbx » EN + FR" | ||
| 79 | + state: closed | ||
| 80 | + priority: medium | ||
| 81 | + author: | ||
| 82 | + name: k33g | ||
| 83 | + email: ph.charriere@gmail.com | ||
| 84 | + createdAt: 2026-11-10T04:43:20.000Z | ||
| 85 | + updatedAt: 2026-11-10T04:43:20.000Z | ||
| 86 | + closedAt: 2026-11-10T04:43:20.000Z | ||
| 87 | +comments: | ||
| 88 | + - id: 1 | ||
| 89 | + author: | ||
| 90 | + name: k33g | ||
| 91 | + email: ph.charriere@gmail.com | ||
| 92 | + createdAt: 2026-11-10T04:43:20.000Z | ||
| 93 | + body: | | ||
| 94 | + Fait comme #81 et #82. | ||
| 95 | + - Exemple : [agents/snippets/gemini-acp](agents/snippets/gemini-acp/README.md) — kit `docker.io/sbx/gemini-kit` (Gemini CLI à jour, image Docker vérifiée), `agent: gemini`, `bindings.google` (clé : `sbx secret set google`, domaines `generativelanguage.googleapis.com`, `aiplatform.googleapis.com`, `vertexai.googleapis.com` ; OAuth `accounts.google.com`, `oauth2.googleapis.com`). | ||
| 96 | + - Gemini CLI parle ACP lui-même : programme `gemini --acp` (`--experimental-acp` pour les anciennes versions, reconnu aussi). | ||
| 97 | + - Docker indique `gemini-kit` comme déprécié au profit du kit `antigravity` : signalé dans le guide. | ||
| 98 | + - Docs EN + FR : guide « Ajouter un agent Gemini dans une sandbox sbx », « Ajouter un agent », index. | ||
| 99 | + - À vérifier sur le Mac : le nom `google` des `bindings` (repris de la page du kit) et le démarrage réel. | ||
added
agents/snippets/gemini-acp/README.md +22 -0 | new file mode 100644 | ||
| @@ -0,0 +1,22 @@ | ||
| 1 | +# Add Gemini ACP Agent | |
| 2 | + | |
| 3 | +Before creating the sandbox, give your Gemini API key to sbx (never in a file): `sbx secret set google`. | |
| 4 | + | |
| 5 | +Gemini CLI speaks ACP itself: the program is `gemini --acp` (`gemini --experimental-acp` with older versions of Gemini CLI). The kit `docker.io/sbx/gemini-kit` installs the latest Gemini CLI. | |
| 6 | + | |
| 7 | +```yaml | |
| 8 | + - name: gemini | |
| 9 | + title: Gemini | |
| 10 | + icon: "📘" | |
| 11 | + command: sbx | |
| 12 | + args: [exec, -i, gemini-acp, gemini, --acp] | |
| 13 | + workspace: /Users/me/agents/gemini-acp/workspace | |
| 14 | + runtime: | |
| 15 | + type: sbx | |
| 16 | + sandbox: gemini-acp | |
| 17 | + lifecycle: | |
| 18 | + folder: /Users/me/agents/gemini-acp | |
| 19 | + create: [sbx, env, create, --force] | |
| 20 | + stop: [sbx, stop, gemini-acp] | |
| 21 | + remove: [sbx, env, rm, --force] | |
| 22 | +``` | |
| new file mode 100644 | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | +# Add Gemini ACP Agent | ||
| 2 | + | ||
| 3 | +Before creating the sandbox, give your Gemini API key to sbx (never in a file): `sbx secret set google`. | ||
| 4 | + | ||
| 5 | +Gemini CLI speaks ACP itself: the program is `gemini --acp` (`gemini --experimental-acp` with older versions of Gemini CLI). The kit `docker.io/sbx/gemini-kit` installs the latest Gemini CLI. | ||
| 6 | + | ||
| 7 | +```yaml | ||
| 8 | + - name: gemini | ||
| 9 | + title: Gemini | ||
| 10 | + icon: "📘" | ||
| 11 | + command: sbx | ||
| 12 | + args: [exec, -i, gemini-acp, gemini, --acp] | ||
| 13 | + workspace: /Users/me/agents/gemini-acp/workspace | ||
| 14 | + runtime: | ||
| 15 | + type: sbx | ||
| 16 | + sandbox: gemini-acp | ||
| 17 | + lifecycle: | ||
| 18 | + folder: /Users/me/agents/gemini-acp | ||
| 19 | + create: [sbx, env, create, --force] | ||
| 20 | + stop: [sbx, stop, gemini-acp] | ||
| 21 | + remove: [sbx, env, rm, --force] | ||
| 22 | +``` | ||
added
agents/snippets/gemini-acp/sbxenv.yaml +27 -0 | new file mode 100644 | ||
| @@ -0,0 +1,27 @@ | ||
| 1 | +schemaVersion: "1" | |
| 2 | + | |
| 3 | +name: gemini-acp | |
| 4 | +agent: gemini | |
| 5 | + | |
| 6 | +# Répertoire du projet, relatif à ce fichier. | |
| 7 | +workspace: ./workspace | |
| 8 | + | |
| 9 | +# Gemini CLI parle ACP lui-même (gemini --acp) : pas d'adaptateur. | |
| 10 | +kits: | |
| 11 | + - docker.io/sbx/gemini-kit:latest | |
| 12 | + | |
| 13 | +# Autorise l’injection de la clé Gemini (sbx secret set google) pour ces domaines. | |
| 14 | +bindings: | |
| 15 | + google: | |
| 16 | + apiKey: | |
| 17 | + domains: | |
| 18 | + - generativelanguage.googleapis.com | |
| 19 | + - aiplatform.googleapis.com | |
| 20 | + - vertexai.googleapis.com | |
| 21 | + oauth: | |
| 22 | + domains: | |
| 23 | + - accounts.google.com | |
| 24 | + - oauth2.googleapis.com | |
| 25 | + | |
| 26 | +sandboxOptions: | |
| 27 | + pullPolicy: always | |
| new file mode 100644 | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | +schemaVersion: "1" | ||
| 2 | + | ||
| 3 | +name: gemini-acp | ||
| 4 | +agent: gemini | ||
| 5 | + | ||
| 6 | +# Répertoire du projet, relatif à ce fichier. | ||
| 7 | +workspace: ./workspace | ||
| 8 | + | ||
| 9 | +# Gemini CLI parle ACP lui-même (gemini --acp) : pas d'adaptateur. | ||
| 10 | +kits: | ||
| 11 | + - docker.io/sbx/gemini-kit:latest | ||
| 12 | + | ||
| 13 | +# Autorise l’injection de la clé Gemini (sbx secret set google) pour ces domaines. | ||
| 14 | +bindings: | ||
| 15 | + google: | ||
| 16 | + apiKey: | ||
| 17 | + domains: | ||
| 18 | + - generativelanguage.googleapis.com | ||
| 19 | + - aiplatform.googleapis.com | ||
| 20 | + - vertexai.googleapis.com | ||
| 21 | + oauth: | ||
| 22 | + domains: | ||
| 23 | + - accounts.google.com | ||
| 24 | + - oauth2.googleapis.com | ||
| 25 | + | ||
| 26 | +sandboxOptions: | ||
| 27 | + pullPolicy: always | ||
added
agents/snippets/gemini-acp/workspace/.gitkeep +0 -0 | new file mode 100644 |
| new file mode 100644 |
modified
docs/en/README.md +1 -1 | @@ -7,7 +7,7 @@ This documentation follows [Diátaxis](https://diataxis.fr): pick the section th | ||
| 7 | 7 | | You want to… | Section | Pages | |
| 8 | 8 | | --- | --- | --- | |
| 9 | 9 | | **learn** by doing | Tutorials | [Your first agent, without writing any configuration](tutorials/your-first-agent.md) · [A channel with two agents](tutorials/first-channel.md) · [Your first conversation with an agent](tutorials/first-conversation.md) · [Your first launch of Sidekicks](tutorials/first-launch.md) · [Your first ACP exchange with a test agent](tutorials/first-acp-exchange.md) | |
| 10 | -| **do** a specific task | How-to guides | [Install Sidekicks](how-to/install-sidekicks.md) · [Add an agent](how-to/add-an-agent.md) · [Work with an agent's files and terminal](how-to/work-with-an-agents-files.md) · [Run an agent in a Docker container](how-to/run-an-agent-in-docker.md) · [Run an agent in an sbx sandbox](how-to/run-an-agent-in-a-sandbox.md) · [Add a Claude agent in an sbx sandbox](how-to/add-a-claude-agent-in-a-sandbox.md) · [Join files to a message](how-to/join-files-to-a-message.md) · [Manage channels and their agents](how-to/manage-channels.md) · [Edit or switch the configuration](how-to/edit-or-switch-the-configuration.md) · [Reset Sidekicks](how-to/reset-sidekicks.md) · [Watch the memory pressure](how-to/watch-the-memory-pressure.md) · [Develop the application](how-to/develop-the-application.md) · [Run the tests](how-to/run-the-tests.md) · [Check a change before merging it](how-to/check-before-merging.md) · [Run a test agent](how-to/run-a-test-agent.md) · [Run the end-to-end scenarios (v0.1)](how-to/run-the-end-to-end-scenarios.md) · [Set the version](how-to/set-the-version.md) · [Publish a release](how-to/publish-a-release.md) · [Sign and notarize for macOS](how-to/sign-and-notarize-on-macos.md) · [Test issue #52 on macOS](how-to/test-issue-52-on-macos.md) · [Test issues #49 and #50 on macOS](how-to/test-issues-49-and-50-on-macos.md) · [Test issue #47 on macOS](how-to/test-issue-47-on-macos.md) · [Test milestone M4 on macOS](how-to/test-milestone-m4-on-macos.md) · [Test milestone M3 on macOS](how-to/test-milestone-m3-on-macos.md) · [Test milestone M2 on macOS](how-to/test-milestone-m2-on-macos.md) · [Test milestone M1 on macOS](how-to/test-milestone-m1-on-macos.md) · [Test milestone Initialize on macOS](how-to/test-milestone-initialize-on-macos.md) | | |
| 10 | +| **do** a specific task | How-to guides | [Install Sidekicks](how-to/install-sidekicks.md) · [Add an agent](how-to/add-an-agent.md) · [Work with an agent's files and terminal](how-to/work-with-an-agents-files.md) · [Run an agent in a Docker container](how-to/run-an-agent-in-docker.md) · [Run an agent in an sbx sandbox](how-to/run-an-agent-in-a-sandbox.md) · [Add a Claude agent in an sbx sandbox](how-to/add-a-claude-agent-in-a-sandbox.md) · [Add a Codex agent in an sbx sandbox](how-to/add-a-codex-agent-in-a-sandbox.md) · [Add a Gemini agent in an sbx sandbox](how-to/add-a-gemini-agent-in-a-sandbox.md) · [Join files to a message](how-to/join-files-to-a-message.md) · [Manage channels and their agents](how-to/manage-channels.md) · [Edit or switch the configuration](how-to/edit-or-switch-the-configuration.md) · [Reset Sidekicks](how-to/reset-sidekicks.md) · [Watch the memory pressure](how-to/watch-the-memory-pressure.md) · [Develop the application](how-to/develop-the-application.md) · [Run the tests](how-to/run-the-tests.md) · [Check a change before merging it](how-to/check-before-merging.md) · [Run a test agent](how-to/run-a-test-agent.md) · [Run the end-to-end scenarios (v0.1)](how-to/run-the-end-to-end-scenarios.md) · [Set the version](how-to/set-the-version.md) · [Publish a release](how-to/publish-a-release.md) · [Sign and notarize for macOS](how-to/sign-and-notarize-on-macos.md) · [Test issue #52 on macOS](how-to/test-issue-52-on-macos.md) · [Test issues #49 and #50 on macOS](how-to/test-issues-49-and-50-on-macos.md) · [Test issue #47 on macOS](how-to/test-issue-47-on-macos.md) · [Test milestone M4 on macOS](how-to/test-milestone-m4-on-macos.md) · [Test milestone M3 on macOS](how-to/test-milestone-m3-on-macos.md) · [Test milestone M2 on macOS](how-to/test-milestone-m2-on-macos.md) · [Test milestone M1 on macOS](how-to/test-milestone-m1-on-macos.md) · [Test milestone Initialize on macOS](how-to/test-milestone-initialize-on-macos.md) | | |
| 11 | 11 | | **look up** an exact detail | Reference | [The configuration file](reference/configuration.md) · [Keyboard shortcuts](reference/keyboard-shortcuts.md) · [Agents, channels and events](reference/agents-and-events.md) · [Commands](reference/commands.md) · [scripts/agents.sh](reference/agents-script.md) | |
| 12 | 12 | | **understand** why | Explanation | [Workspaces and terminals](explanation/workspaces-and-terminals.md) · [Channels and what each agent knows](explanation/channels-and-context.md) · [Permissions and trust](explanation/permissions.md) · [Why ACP](explanation/why-acp.md) · [The interface stack](explanation/ui-stack.md) · [Architecture](explanation/architecture.md) · [Memory and local models](explanation/memory-and-local-models.md) | |
| 13 | 13 | |
| @@ -7,7 +7,7 @@ This documentation follows [Diátaxis](https://diataxis.fr): pick the section th | |||
| 7 | | You want to… | Section | Pages | | 7 | | You want to… | Section | Pages | |
| 8 | | --- | --- | --- | | 8 | | --- | --- | --- | |
| 9 | | **learn** by doing | Tutorials | [Your first agent, without writing any configuration](tutorials/your-first-agent.md) · [A channel with two agents](tutorials/first-channel.md) · [Your first conversation with an agent](tutorials/first-conversation.md) · [Your first launch of Sidekicks](tutorials/first-launch.md) · [Your first ACP exchange with a test agent](tutorials/first-acp-exchange.md) | | 9 | | **learn** by doing | Tutorials | [Your first agent, without writing any configuration](tutorials/your-first-agent.md) · [A channel with two agents](tutorials/first-channel.md) · [Your first conversation with an agent](tutorials/first-conversation.md) · [Your first launch of Sidekicks](tutorials/first-launch.md) · [Your first ACP exchange with a test agent](tutorials/first-acp-exchange.md) | |
| 10 | -| **do** a specific task | How-to guides | [Install Sidekicks](how-to/install-sidekicks.md) · [Add an agent](how-to/add-an-agent.md) · [Work with an agent's files and terminal](how-to/work-with-an-agents-files.md) · [Run an agent in a Docker container](how-to/run-an-agent-in-docker.md) · [Run an agent in an sbx sandbox](how-to/run-an-agent-in-a-sandbox.md) · [Add a Claude agent in an sbx sandbox](how-to/add-a-claude-agent-in-a-sandbox.md) · [Join files to a message](how-to/join-files-to-a-message.md) · [Manage channels and their agents](how-to/manage-channels.md) · [Edit or switch the configuration](how-to/edit-or-switch-the-configuration.md) · [Reset Sidekicks](how-to/reset-sidekicks.md) · [Watch the memory pressure](how-to/watch-the-memory-pressure.md) · [Develop the application](how-to/develop-the-application.md) · [Run the tests](how-to/run-the-tests.md) · [Check a change before merging it](how-to/check-before-merging.md) · [Run a test agent](how-to/run-a-test-agent.md) · [Run the end-to-end scenarios (v0.1)](how-to/run-the-end-to-end-scenarios.md) · [Set the version](how-to/set-the-version.md) · [Publish a release](how-to/publish-a-release.md) · [Sign and notarize for macOS](how-to/sign-and-notarize-on-macos.md) · [Test issue #52 on macOS](how-to/test-issue-52-on-macos.md) · [Test issues #49 and #50 on macOS](how-to/test-issues-49-and-50-on-macos.md) · [Test issue #47 on macOS](how-to/test-issue-47-on-macos.md) · [Test milestone M4 on macOS](how-to/test-milestone-m4-on-macos.md) · [Test milestone M3 on macOS](how-to/test-milestone-m3-on-macos.md) · [Test milestone M2 on macOS](how-to/test-milestone-m2-on-macos.md) · [Test milestone M1 on macOS](how-to/test-milestone-m1-on-macos.md) · [Test milestone Initialize on macOS](how-to/test-milestone-initialize-on-macos.md) | | 10 | +| **do** a specific task | How-to guides | [Install Sidekicks](how-to/install-sidekicks.md) · [Add an agent](how-to/add-an-agent.md) · [Work with an agent's files and terminal](how-to/work-with-an-agents-files.md) · [Run an agent in a Docker container](how-to/run-an-agent-in-docker.md) · [Run an agent in an sbx sandbox](how-to/run-an-agent-in-a-sandbox.md) · [Add a Claude agent in an sbx sandbox](how-to/add-a-claude-agent-in-a-sandbox.md) · [Add a Codex agent in an sbx sandbox](how-to/add-a-codex-agent-in-a-sandbox.md) · [Add a Gemini agent in an sbx sandbox](how-to/add-a-gemini-agent-in-a-sandbox.md) · [Join files to a message](how-to/join-files-to-a-message.md) · [Manage channels and their agents](how-to/manage-channels.md) · [Edit or switch the configuration](how-to/edit-or-switch-the-configuration.md) · [Reset Sidekicks](how-to/reset-sidekicks.md) · [Watch the memory pressure](how-to/watch-the-memory-pressure.md) · [Develop the application](how-to/develop-the-application.md) · [Run the tests](how-to/run-the-tests.md) · [Check a change before merging it](how-to/check-before-merging.md) · [Run a test agent](how-to/run-a-test-agent.md) · [Run the end-to-end scenarios (v0.1)](how-to/run-the-end-to-end-scenarios.md) · [Set the version](how-to/set-the-version.md) · [Publish a release](how-to/publish-a-release.md) · [Sign and notarize for macOS](how-to/sign-and-notarize-on-macos.md) · [Test issue #52 on macOS](how-to/test-issue-52-on-macos.md) · [Test issues #49 and #50 on macOS](how-to/test-issues-49-and-50-on-macos.md) · [Test issue #47 on macOS](how-to/test-issue-47-on-macos.md) · [Test milestone M4 on macOS](how-to/test-milestone-m4-on-macos.md) · [Test milestone M3 on macOS](how-to/test-milestone-m3-on-macos.md) · [Test milestone M2 on macOS](how-to/test-milestone-m2-on-macos.md) · [Test milestone M1 on macOS](how-to/test-milestone-m1-on-macos.md) · [Test milestone Initialize on macOS](how-to/test-milestone-initialize-on-macos.md) | |
| 11 | | **look up** an exact detail | Reference | [The configuration file](reference/configuration.md) · [Keyboard shortcuts](reference/keyboard-shortcuts.md) · [Agents, channels and events](reference/agents-and-events.md) · [Commands](reference/commands.md) · [scripts/agents.sh](reference/agents-script.md) | | 11 | | **look up** an exact detail | Reference | [The configuration file](reference/configuration.md) · [Keyboard shortcuts](reference/keyboard-shortcuts.md) · [Agents, channels and events](reference/agents-and-events.md) · [Commands](reference/commands.md) · [scripts/agents.sh](reference/agents-script.md) | |
| 12 | | **understand** why | Explanation | [Workspaces and terminals](explanation/workspaces-and-terminals.md) · [Channels and what each agent knows](explanation/channels-and-context.md) · [Permissions and trust](explanation/permissions.md) · [Why ACP](explanation/why-acp.md) · [The interface stack](explanation/ui-stack.md) · [Architecture](explanation/architecture.md) · [Memory and local models](explanation/memory-and-local-models.md) | | 12 | | **understand** why | Explanation | [Workspaces and terminals](explanation/workspaces-and-terminals.md) · [Channels and what each agent knows](explanation/channels-and-context.md) · [Permissions and trust](explanation/permissions.md) · [Why ACP](explanation/why-acp.md) · [The interface stack](explanation/ui-stack.md) · [Architecture](explanation/architecture.md) · [Memory and local models](explanation/memory-and-local-models.md) | |
| 13 | 13 | ||
added
docs/en/how-to/add-a-codex-agent-in-a-sandbox.md +93 -0 | new file mode 100644 | ||
| @@ -0,0 +1,93 @@ | ||
| 1 | +# How to add a Codex agent in an sbx sandbox | |
| 2 | + | |
| 3 | +This guide shows how to add Codex (OpenAI's coding agent, through its ACP adapter `codex-acp`) as a Sidekicks agent that runs inside a Docker sandbox (`sbx`). Codex then works in its own folder, isolated from the rest of your computer, and Sidekicks shows its files and a terminal like for any other agent. It assumes `sbx` is installed and that you have a ChatGPT account or an OpenAI API key. It follows the same steps as [How to add a Claude agent in an sbx sandbox](add-a-claude-agent-in-a-sandbox.md). | |
| 4 | + | |
| 5 | +A ready-made example is in the repository: [`agents/snippets/codex-acp`](../../../agents/snippets/codex-acp/README.md). | |
| 6 | + | |
| 7 | +## A kit provided by a third party | |
| 8 | + | |
| 9 | +The sandbox is built from the `docker.io/sbx/codex-acp-kit` kit. This kit is provided by a third party, **not by Sidekicks**: what it contains (Codex, `codex-acp`), its updates (the sandbox pulls `latest` each time it is created) and whether it stays available depend on that third party. Sidekicks only creates the sandbox from the `sbxenv.yaml` that names it and starts `/home/agent/.local/bin/codex-acp` inside it. If the kit changes or disappears, the sandbox may no longer be created, or Codex may no longer start: the **Log** tab then shows what sbx said. | |
| 10 | + | |
| 11 | +## What you need | |
| 12 | + | |
| 13 | +| | Role | | |
| 14 | +| --- | --- | | |
| 15 | +| A folder for the agent, e.g. `/Users/me/agents/codex-acp` | holds the sandbox's `sbxenv.yaml` and the `workspace/` folder Codex works in. | | |
| 16 | +| The `docker.io/sbx/codex-acp-kit` kit | the sandbox's image, with Codex installed and `codex-acp` in `/home/agent/.local/bin` (outside the `PATH`: that is why the program is written with its folder). | | |
| 17 | +| Your OpenAI credentials, stored in sbx | sbx adds them to Codex's requests to OpenAI: they are written neither in the sandbox nor in Sidekicks' configuration. | | |
| 18 | + | |
| 19 | +## With the assistant | |
| 20 | + | |
| 21 | +1. **Prepare the folder**: copy [`agents/snippets/codex-acp`](../../../agents/snippets/codex-acp/) (its `sbxenv.yaml` and `workspace/`) to where the agent will live, e.g. `/Users/me/agents/codex-acp`. Change `name:` in the `sbxenv.yaml` if you want another sandbox name. | |
| 22 | +2. **Give your OpenAI credentials to sbx**, before the sandbox is created: the `codex` kit reads them when the sandbox is created. | |
| 23 | + | |
| 24 | + ```bash | |
| 25 | + sbx secret set -g openai --oauth # sign in with your ChatGPT account | |
| 26 | + echo "$OPENAI_API_KEY" | sbx secret set -g openai # or: an API key | |
| 27 | + ``` | |
| 28 | + | |
| 29 | + If you store them after the sandbox exists, **🗑 Remove the sandbox** in the agent's header, then start the agent again. | |
| 30 | +3. In the **Agents** panel, click **+ Add an agent**. Fill in **Name shown** (`Codex`) and, if you like, an icon (📗). | |
| 31 | +4. **Where does it run?** Choose **In an sbx sandbox**, then drop the `sbxenv.yaml` on **Recreate the sandbox when it is gone (optional)** (or click **Choose an sbxenv.yaml…**). The sandbox, the agent's folder (`…/workspace`) and the `sbx env` commands are filled in from it. | |
| 32 | +5. **Program**: choose `/home/agent/.local/bin/codex-acp` in the list (it is offered in an sbx sandbox only; `codex-acp` alone is recognised too, if the kit puts it in the `PATH`). Leave **Arguments** empty. | |
| 33 | +6. Click **Add the agent**, then start Codex from the **Agents** panel (▶), or write to it. The first time, the **Log** tab shows `sandbox codex-acp not found: creating it`, then the kit being pulled — this can take a minute or two. | |
| 34 | + | |
| 35 | +## By hand | |
| 36 | + | |
| 37 | +The `sbxenv.yaml` of the example: | |
| 38 | + | |
| 39 | +```yaml | |
| 40 | +schemaVersion: "1" | |
| 41 | + | |
| 42 | +name: codex-acp | |
| 43 | +agent: codex | |
| 44 | + | |
| 45 | +workspace: ./workspace | |
| 46 | + | |
| 47 | +kits: | |
| 48 | + - docker.io/sbx/codex-acp-kit:latest | |
| 49 | + | |
| 50 | +bindings: | |
| 51 | + openai: | |
| 52 | + apiKey: | |
| 53 | + domains: | |
| 54 | + - api.openai.com | |
| 55 | + - openai.com | |
| 56 | + oauth: | |
| 57 | + domains: | |
| 58 | + - auth.openai.com | |
| 59 | + - chatgpt.com | |
| 60 | +``` | |
| 61 | + | |
| 62 | +And the agent's entry, under `agents:` in **Settings**: | |
| 63 | + | |
| 64 | +```yaml | |
| 65 | + - name: codex | |
| 66 | + title: Codex | |
| 67 | + icon: "📗" | |
| 68 | + command: sbx | |
| 69 | + args: [exec, -i, codex-acp, /home/agent/.local/bin/codex-acp] | |
| 70 | + workspace: /Users/me/agents/codex-acp/workspace | |
| 71 | + runtime: | |
| 72 | + type: sbx | |
| 73 | + sandbox: codex-acp | |
| 74 | + lifecycle: | |
| 75 | + folder: /Users/me/agents/codex-acp | |
| 76 | + create: [sbx, env, create, --force] | |
| 77 | + stop: [sbx, stop, codex-acp] | |
| 78 | + remove: [sbx, env, rm, --force] | |
| 79 | +``` | |
| 80 | + | |
| 81 | +`workspace` is the folder Codex works in, on this computer; sbx shares it with the sandbox at the same path. `lifecycle.folder` is the folder of the `sbxenv.yaml`, where the `sbx env` commands run. The sandbox name must be the same in `name:`, `args`, `runtime.sandbox` and `lifecycle.stop`. | |
| 82 | + | |
| 83 | +## Check that it works | |
| 84 | + | |
| 85 | +- Ask Codex to write a file, e.g. "Write `notes/hello.md` with a greeting". The file appears in the agent's **Files** tab (📂) and in `/Users/me/agents/codex-acp/workspace` on this computer. | |
| 86 | +- When Codex asks for permission to change a file or run a command, Sidekicks shows the request and waits for your answer. | |
| 87 | +- **An authentication error** in the **Log** tab: the credentials are not stored in sbx, or were stored after the sandbox was created. Store them again, then **🗑 Remove the sandbox** and start the agent. | |
| 88 | + | |
| 89 | +## See also | |
| 90 | + | |
| 91 | +- [How to add a Claude agent in an sbx sandbox](add-a-claude-agent-in-a-sandbox.md) | |
| 92 | +- [How to run an agent in an sbx sandbox](run-an-agent-in-a-sandbox.md) | |
| 93 | +- [How to add an agent](add-an-agent.md) | |
| new file mode 100644 | |||
| @@ -0,0 +1,93 @@ | |||
| 1 | +# How to add a Codex agent in an sbx sandbox | ||
| 2 | + | ||
| 3 | +This guide shows how to add Codex (OpenAI's coding agent, through its ACP adapter `codex-acp`) as a Sidekicks agent that runs inside a Docker sandbox (`sbx`). Codex then works in its own folder, isolated from the rest of your computer, and Sidekicks shows its files and a terminal like for any other agent. It assumes `sbx` is installed and that you have a ChatGPT account or an OpenAI API key. It follows the same steps as [How to add a Claude agent in an sbx sandbox](add-a-claude-agent-in-a-sandbox.md). | ||
| 4 | + | ||
| 5 | +A ready-made example is in the repository: [`agents/snippets/codex-acp`](../../../agents/snippets/codex-acp/README.md). | ||
| 6 | + | ||
| 7 | +## A kit provided by a third party | ||
| 8 | + | ||
| 9 | +The sandbox is built from the `docker.io/sbx/codex-acp-kit` kit. This kit is provided by a third party, **not by Sidekicks**: what it contains (Codex, `codex-acp`), its updates (the sandbox pulls `latest` each time it is created) and whether it stays available depend on that third party. Sidekicks only creates the sandbox from the `sbxenv.yaml` that names it and starts `/home/agent/.local/bin/codex-acp` inside it. If the kit changes or disappears, the sandbox may no longer be created, or Codex may no longer start: the **Log** tab then shows what sbx said. | ||
| 10 | + | ||
| 11 | +## What you need | ||
| 12 | + | ||
| 13 | +| | Role | | ||
| 14 | +| --- | --- | | ||
| 15 | +| A folder for the agent, e.g. `/Users/me/agents/codex-acp` | holds the sandbox's `sbxenv.yaml` and the `workspace/` folder Codex works in. | | ||
| 16 | +| The `docker.io/sbx/codex-acp-kit` kit | the sandbox's image, with Codex installed and `codex-acp` in `/home/agent/.local/bin` (outside the `PATH`: that is why the program is written with its folder). | | ||
| 17 | +| Your OpenAI credentials, stored in sbx | sbx adds them to Codex's requests to OpenAI: they are written neither in the sandbox nor in Sidekicks' configuration. | | ||
| 18 | + | ||
| 19 | +## With the assistant | ||
| 20 | + | ||
| 21 | +1. **Prepare the folder**: copy [`agents/snippets/codex-acp`](../../../agents/snippets/codex-acp/) (its `sbxenv.yaml` and `workspace/`) to where the agent will live, e.g. `/Users/me/agents/codex-acp`. Change `name:` in the `sbxenv.yaml` if you want another sandbox name. | ||
| 22 | +2. **Give your OpenAI credentials to sbx**, before the sandbox is created: the `codex` kit reads them when the sandbox is created. | ||
| 23 | + | ||
| 24 | + ```bash | ||
| 25 | + sbx secret set -g openai --oauth # sign in with your ChatGPT account | ||
| 26 | + echo "$OPENAI_API_KEY" | sbx secret set -g openai # or: an API key | ||
| 27 | + ``` | ||
| 28 | + | ||
| 29 | + If you store them after the sandbox exists, **🗑 Remove the sandbox** in the agent's header, then start the agent again. | ||
| 30 | +3. In the **Agents** panel, click **+ Add an agent**. Fill in **Name shown** (`Codex`) and, if you like, an icon (📗). | ||
| 31 | +4. **Where does it run?** Choose **In an sbx sandbox**, then drop the `sbxenv.yaml` on **Recreate the sandbox when it is gone (optional)** (or click **Choose an sbxenv.yaml…**). The sandbox, the agent's folder (`…/workspace`) and the `sbx env` commands are filled in from it. | ||
| 32 | +5. **Program**: choose `/home/agent/.local/bin/codex-acp` in the list (it is offered in an sbx sandbox only; `codex-acp` alone is recognised too, if the kit puts it in the `PATH`). Leave **Arguments** empty. | ||
| 33 | +6. Click **Add the agent**, then start Codex from the **Agents** panel (▶), or write to it. The first time, the **Log** tab shows `sandbox codex-acp not found: creating it`, then the kit being pulled — this can take a minute or two. | ||
| 34 | + | ||
| 35 | +## By hand | ||
| 36 | + | ||
| 37 | +The `sbxenv.yaml` of the example: | ||
| 38 | + | ||
| 39 | +```yaml | ||
| 40 | +schemaVersion: "1" | ||
| 41 | + | ||
| 42 | +name: codex-acp | ||
| 43 | +agent: codex | ||
| 44 | + | ||
| 45 | +workspace: ./workspace | ||
| 46 | + | ||
| 47 | +kits: | ||
| 48 | + - docker.io/sbx/codex-acp-kit:latest | ||
| 49 | + | ||
| 50 | +bindings: | ||
| 51 | + openai: | ||
| 52 | + apiKey: | ||
| 53 | + domains: | ||
| 54 | + - api.openai.com | ||
| 55 | + - openai.com | ||
| 56 | + oauth: | ||
| 57 | + domains: | ||
| 58 | + - auth.openai.com | ||
| 59 | + - chatgpt.com | ||
| 60 | +``` | ||
| 61 | + | ||
| 62 | +And the agent's entry, under `agents:` in **Settings**: | ||
| 63 | + | ||
| 64 | +```yaml | ||
| 65 | + - name: codex | ||
| 66 | + title: Codex | ||
| 67 | + icon: "📗" | ||
| 68 | + command: sbx | ||
| 69 | + args: [exec, -i, codex-acp, /home/agent/.local/bin/codex-acp] | ||
| 70 | + workspace: /Users/me/agents/codex-acp/workspace | ||
| 71 | + runtime: | ||
| 72 | + type: sbx | ||
| 73 | + sandbox: codex-acp | ||
| 74 | + lifecycle: | ||
| 75 | + folder: /Users/me/agents/codex-acp | ||
| 76 | + create: [sbx, env, create, --force] | ||
| 77 | + stop: [sbx, stop, codex-acp] | ||
| 78 | + remove: [sbx, env, rm, --force] | ||
| 79 | +``` | ||
| 80 | + | ||
| 81 | +`workspace` is the folder Codex works in, on this computer; sbx shares it with the sandbox at the same path. `lifecycle.folder` is the folder of the `sbxenv.yaml`, where the `sbx env` commands run. The sandbox name must be the same in `name:`, `args`, `runtime.sandbox` and `lifecycle.stop`. | ||
| 82 | + | ||
| 83 | +## Check that it works | ||
| 84 | + | ||
| 85 | +- Ask Codex to write a file, e.g. "Write `notes/hello.md` with a greeting". The file appears in the agent's **Files** tab (📂) and in `/Users/me/agents/codex-acp/workspace` on this computer. | ||
| 86 | +- When Codex asks for permission to change a file or run a command, Sidekicks shows the request and waits for your answer. | ||
| 87 | +- **An authentication error** in the **Log** tab: the credentials are not stored in sbx, or were stored after the sandbox was created. Store them again, then **🗑 Remove the sandbox** and start the agent. | ||
| 88 | + | ||
| 89 | +## See also | ||
| 90 | + | ||
| 91 | +- [How to add a Claude agent in an sbx sandbox](add-a-claude-agent-in-a-sandbox.md) | ||
| 92 | +- [How to run an agent in an sbx sandbox](run-an-agent-in-a-sandbox.md) | ||
| 93 | +- [How to add an agent](add-an-agent.md) | ||
added
docs/en/how-to/add-a-gemini-agent-in-a-sandbox.md +99 -0 | new file mode 100644 | ||
| @@ -0,0 +1,99 @@ | ||
| 1 | +# How to add a Gemini agent in an sbx sandbox | |
| 2 | + | |
| 3 | +This guide shows how to add Gemini (Google's Gemini CLI, which speaks ACP itself with `gemini --acp`) as a Sidekicks agent that runs inside a Docker sandbox (`sbx`). Gemini then works in its own folder, isolated from the rest of your computer, and Sidekicks shows its files and a terminal like for any other agent. It assumes `sbx` is installed and that you have a Gemini API key. It follows the same steps as [How to add a Claude agent in an sbx sandbox](add-a-claude-agent-in-a-sandbox.md). | |
| 4 | + | |
| 5 | +A ready-made example is in the repository: [`agents/snippets/gemini-acp`](../../../agents/snippets/gemini-acp/README.md). | |
| 6 | + | |
| 7 | +## A kit provided by a third party | |
| 8 | + | |
| 9 | +The sandbox is built from the `docker.io/sbx/gemini-kit` kit. This kit is provided by a third party, **not by Sidekicks**: what it contains (Gemini CLI, at its latest version), its updates (the sandbox pulls `latest` each time it is created) and whether it stays available depend on that third party. Sidekicks only creates the sandbox from the `sbxenv.yaml` that names it and starts `gemini --acp` inside it. If the kit changes or disappears, the sandbox may no longer be created, or Gemini may no longer start: the **Log** tab then shows what sbx said. | |
| 10 | + | |
| 11 | +## What you need | |
| 12 | + | |
| 13 | +| | Role | | |
| 14 | +| --- | --- | | |
| 15 | +| A folder for the agent, e.g. `/Users/me/agents/gemini-acp` | holds the sandbox's `sbxenv.yaml` and the `workspace/` folder Gemini works in. | | |
| 16 | +| The `docker.io/sbx/gemini-kit` kit | the sandbox's image, with the latest Gemini CLI. Docker marks this kit as deprecated in favour of its `antigravity` kit: it may disappear one day. | | |
| 17 | +| Your Gemini API key, stored in sbx | sbx adds it to Gemini's requests to Google: it is written neither in the sandbox nor in Sidekicks' configuration. | | |
| 18 | + | |
| 19 | +## With the assistant | |
| 20 | + | |
| 21 | +1. **Prepare the folder**: copy [`agents/snippets/gemini-acp`](../../../agents/snippets/gemini-acp/) (its `sbxenv.yaml` and `workspace/`) to where the agent will live, e.g. `/Users/me/agents/gemini-acp`. Change `name:` in the `sbxenv.yaml` if you want another sandbox name. | |
| 22 | +2. **Give your Gemini API key to sbx**, under the name `google` (the `bindings` of the `sbxenv.yaml`): | |
| 23 | + | |
| 24 | + ```bash | |
| 25 | + sbx secret set google | |
| 26 | + ``` | |
| 27 | + | |
| 28 | + The key is kept by sbx, on this computer, never in a file of the folder. | |
| 29 | +3. In the **Agents** panel, click **+ Add an agent**. Fill in **Name shown** (`Gemini`) and, if you like, an icon (📘). | |
| 30 | +4. **Where does it run?** Choose **In an sbx sandbox**, then drop the `sbxenv.yaml` on **Recreate the sandbox when it is gone (optional)** (or click **Choose an sbxenv.yaml…**). The sandbox, the agent's folder (`…/workspace`) and the `sbx env` commands are filled in from it. | |
| 31 | +5. **Program**: choose `gemini --acp` in the list (it is offered in an sbx sandbox only). Leave **Arguments** empty. With an older Gemini CLI, type `gemini --experimental-acp`. | |
| 32 | +6. Click **Add the agent**, then start Gemini from the **Agents** panel (▶), or write to it. The first time, the **Log** tab shows `sandbox gemini-acp not found: creating it`, then the kit being pulled — this can take a minute or two. | |
| 33 | + | |
| 34 | +## By hand | |
| 35 | + | |
| 36 | +The `sbxenv.yaml` of the example: | |
| 37 | + | |
| 38 | +```yaml | |
| 39 | +schemaVersion: "1" | |
| 40 | + | |
| 41 | +name: gemini-acp | |
| 42 | +agent: gemini | |
| 43 | + | |
| 44 | +# Répertoire du projet, relatif à ce fichier. | |
| 45 | +workspace: ./workspace | |
| 46 | + | |
| 47 | +# Gemini CLI parle ACP lui-même (gemini --acp) : pas d'adaptateur. | |
| 48 | +kits: | |
| 49 | + - docker.io/sbx/gemini-kit:latest | |
| 50 | + | |
| 51 | +# Autorise l’injection de la clé Gemini (sbx secret set google) pour ces domaines. | |
| 52 | +bindings: | |
| 53 | + google: | |
| 54 | + apiKey: | |
| 55 | + domains: | |
| 56 | + - generativelanguage.googleapis.com | |
| 57 | + - aiplatform.googleapis.com | |
| 58 | + - vertexai.googleapis.com | |
| 59 | + oauth: | |
| 60 | + domains: | |
| 61 | + - accounts.google.com | |
| 62 | + - oauth2.googleapis.com | |
| 63 | + | |
| 64 | +sandboxOptions: | |
| 65 | + pullPolicy: always | |
| 66 | +``` | |
| 67 | + | |
| 68 | +And the agent's entry, under `agents:` in **Settings**: | |
| 69 | + | |
| 70 | +```yaml | |
| 71 | + - name: gemini | |
| 72 | + title: Gemini | |
| 73 | + icon: "📘" | |
| 74 | + command: sbx | |
| 75 | + args: [exec, -i, gemini-acp, gemini, --acp] | |
| 76 | + workspace: /Users/me/agents/gemini-acp/workspace | |
| 77 | + runtime: | |
| 78 | + type: sbx | |
| 79 | + sandbox: gemini-acp | |
| 80 | + lifecycle: | |
| 81 | + folder: /Users/me/agents/gemini-acp | |
| 82 | + create: [sbx, env, create, --force] | |
| 83 | + stop: [sbx, stop, gemini-acp] | |
| 84 | + remove: [sbx, env, rm, --force] | |
| 85 | +``` | |
| 86 | + | |
| 87 | +`workspace` is the folder Gemini works in, on this computer; sbx shares it with the sandbox at the same path. `lifecycle.folder` is the folder of the `sbxenv.yaml`, where the `sbx env` commands run. The sandbox name must be the same in `name:`, `args`, `runtime.sandbox` and `lifecycle.stop`. | |
| 88 | + | |
| 89 | +## Check that it works | |
| 90 | + | |
| 91 | +- Ask Gemini to write a file, e.g. "Write `notes/hello.md` with a greeting". The file appears in the agent's **Files** tab (📂) and in `/Users/me/agents/gemini-acp/workspace` on this computer. | |
| 92 | +- When Gemini asks for permission to change a file or run a command, Sidekicks shows the request and waits for your answer. | |
| 93 | +- **An authentication error** in the **Log** tab: the key is not stored in sbx under the name `google`. Store it again, then **🗑 Remove the sandbox** and start the agent. | |
| 94 | + | |
| 95 | +## See also | |
| 96 | + | |
| 97 | +- [How to add a Claude agent in an sbx sandbox](add-a-claude-agent-in-a-sandbox.md) | |
| 98 | +- [How to run an agent in an sbx sandbox](run-an-agent-in-a-sandbox.md) | |
| 99 | +- [How to add an agent](add-an-agent.md) | |
| new file mode 100644 | |||
| @@ -0,0 +1,99 @@ | |||
| 1 | +# How to add a Gemini agent in an sbx sandbox | ||
| 2 | + | ||
| 3 | +This guide shows how to add Gemini (Google's Gemini CLI, which speaks ACP itself with `gemini --acp`) as a Sidekicks agent that runs inside a Docker sandbox (`sbx`). Gemini then works in its own folder, isolated from the rest of your computer, and Sidekicks shows its files and a terminal like for any other agent. It assumes `sbx` is installed and that you have a Gemini API key. It follows the same steps as [How to add a Claude agent in an sbx sandbox](add-a-claude-agent-in-a-sandbox.md). | ||
| 4 | + | ||
| 5 | +A ready-made example is in the repository: [`agents/snippets/gemini-acp`](../../../agents/snippets/gemini-acp/README.md). | ||
| 6 | + | ||
| 7 | +## A kit provided by a third party | ||
| 8 | + | ||
| 9 | +The sandbox is built from the `docker.io/sbx/gemini-kit` kit. This kit is provided by a third party, **not by Sidekicks**: what it contains (Gemini CLI, at its latest version), its updates (the sandbox pulls `latest` each time it is created) and whether it stays available depend on that third party. Sidekicks only creates the sandbox from the `sbxenv.yaml` that names it and starts `gemini --acp` inside it. If the kit changes or disappears, the sandbox may no longer be created, or Gemini may no longer start: the **Log** tab then shows what sbx said. | ||
| 10 | + | ||
| 11 | +## What you need | ||
| 12 | + | ||
| 13 | +| | Role | | ||
| 14 | +| --- | --- | | ||
| 15 | +| A folder for the agent, e.g. `/Users/me/agents/gemini-acp` | holds the sandbox's `sbxenv.yaml` and the `workspace/` folder Gemini works in. | | ||
| 16 | +| The `docker.io/sbx/gemini-kit` kit | the sandbox's image, with the latest Gemini CLI. Docker marks this kit as deprecated in favour of its `antigravity` kit: it may disappear one day. | | ||
| 17 | +| Your Gemini API key, stored in sbx | sbx adds it to Gemini's requests to Google: it is written neither in the sandbox nor in Sidekicks' configuration. | | ||
| 18 | + | ||
| 19 | +## With the assistant | ||
| 20 | + | ||
| 21 | +1. **Prepare the folder**: copy [`agents/snippets/gemini-acp`](../../../agents/snippets/gemini-acp/) (its `sbxenv.yaml` and `workspace/`) to where the agent will live, e.g. `/Users/me/agents/gemini-acp`. Change `name:` in the `sbxenv.yaml` if you want another sandbox name. | ||
| 22 | +2. **Give your Gemini API key to sbx**, under the name `google` (the `bindings` of the `sbxenv.yaml`): | ||
| 23 | + | ||
| 24 | + ```bash | ||
| 25 | + sbx secret set google | ||
| 26 | + ``` | ||
| 27 | + | ||
| 28 | + The key is kept by sbx, on this computer, never in a file of the folder. | ||
| 29 | +3. In the **Agents** panel, click **+ Add an agent**. Fill in **Name shown** (`Gemini`) and, if you like, an icon (📘). | ||
| 30 | +4. **Where does it run?** Choose **In an sbx sandbox**, then drop the `sbxenv.yaml` on **Recreate the sandbox when it is gone (optional)** (or click **Choose an sbxenv.yaml…**). The sandbox, the agent's folder (`…/workspace`) and the `sbx env` commands are filled in from it. | ||
| 31 | +5. **Program**: choose `gemini --acp` in the list (it is offered in an sbx sandbox only). Leave **Arguments** empty. With an older Gemini CLI, type `gemini --experimental-acp`. | ||
| 32 | +6. Click **Add the agent**, then start Gemini from the **Agents** panel (▶), or write to it. The first time, the **Log** tab shows `sandbox gemini-acp not found: creating it`, then the kit being pulled — this can take a minute or two. | ||
| 33 | + | ||
| 34 | +## By hand | ||
| 35 | + | ||
| 36 | +The `sbxenv.yaml` of the example: | ||
| 37 | + | ||
| 38 | +```yaml | ||
| 39 | +schemaVersion: "1" | ||
| 40 | + | ||
| 41 | +name: gemini-acp | ||
| 42 | +agent: gemini | ||
| 43 | + | ||
| 44 | +# Répertoire du projet, relatif à ce fichier. | ||
| 45 | +workspace: ./workspace | ||
| 46 | + | ||
| 47 | +# Gemini CLI parle ACP lui-même (gemini --acp) : pas d'adaptateur. | ||
| 48 | +kits: | ||
| 49 | + - docker.io/sbx/gemini-kit:latest | ||
| 50 | + | ||
| 51 | +# Autorise l’injection de la clé Gemini (sbx secret set google) pour ces domaines. | ||
| 52 | +bindings: | ||
| 53 | + google: | ||
| 54 | + apiKey: | ||
| 55 | + domains: | ||
| 56 | + - generativelanguage.googleapis.com | ||
| 57 | + - aiplatform.googleapis.com | ||
| 58 | + - vertexai.googleapis.com | ||
| 59 | + oauth: | ||
| 60 | + domains: | ||
| 61 | + - accounts.google.com | ||
| 62 | + - oauth2.googleapis.com | ||
| 63 | + | ||
| 64 | +sandboxOptions: | ||
| 65 | + pullPolicy: always | ||
| 66 | +``` | ||
| 67 | + | ||
| 68 | +And the agent's entry, under `agents:` in **Settings**: | ||
| 69 | + | ||
| 70 | +```yaml | ||
| 71 | + - name: gemini | ||
| 72 | + title: Gemini | ||
| 73 | + icon: "📘" | ||
| 74 | + command: sbx | ||
| 75 | + args: [exec, -i, gemini-acp, gemini, --acp] | ||
| 76 | + workspace: /Users/me/agents/gemini-acp/workspace | ||
| 77 | + runtime: | ||
| 78 | + type: sbx | ||
| 79 | + sandbox: gemini-acp | ||
| 80 | + lifecycle: | ||
| 81 | + folder: /Users/me/agents/gemini-acp | ||
| 82 | + create: [sbx, env, create, --force] | ||
| 83 | + stop: [sbx, stop, gemini-acp] | ||
| 84 | + remove: [sbx, env, rm, --force] | ||
| 85 | +``` | ||
| 86 | + | ||
| 87 | +`workspace` is the folder Gemini works in, on this computer; sbx shares it with the sandbox at the same path. `lifecycle.folder` is the folder of the `sbxenv.yaml`, where the `sbx env` commands run. The sandbox name must be the same in `name:`, `args`, `runtime.sandbox` and `lifecycle.stop`. | ||
| 88 | + | ||
| 89 | +## Check that it works | ||
| 90 | + | ||
| 91 | +- Ask Gemini to write a file, e.g. "Write `notes/hello.md` with a greeting". The file appears in the agent's **Files** tab (📂) and in `/Users/me/agents/gemini-acp/workspace` on this computer. | ||
| 92 | +- When Gemini asks for permission to change a file or run a command, Sidekicks shows the request and waits for your answer. | ||
| 93 | +- **An authentication error** in the **Log** tab: the key is not stored in sbx under the name `google`. Store it again, then **🗑 Remove the sandbox** and start the agent. | ||
| 94 | + | ||
| 95 | +## See also | ||
| 96 | + | ||
| 97 | +- [How to add a Claude agent in an sbx sandbox](add-a-claude-agent-in-a-sandbox.md) | ||
| 98 | +- [How to run an agent in an sbx sandbox](run-an-agent-in-a-sandbox.md) | ||
| 99 | +- [How to add an agent](add-an-agent.md) | ||
modified
docs/en/how-to/add-an-agent.md +2 -1 | @@ -7,7 +7,7 @@ This guide shows how to add an agent from the Sidekicks window, with the "Add an | ||
| 7 | 7 | 1. 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). |
| 8 | 8 | 2. **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. |
| 9 | 9 | 3. **Where does it run?** Choose the environment, then fill in what it asks for (see below). |
| 10 | -4. **How is it started?** Fill in **Program** (choose `mm`, `docker-agent` or `docker agent` in the list — plus `claude-agent-acp` in 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. | |
| 10 | +4. **How is it started?** Fill in **Program** (choose `mm`, `docker-agent` or `docker agent` in the list — plus `claude-agent-acp`, `/home/agent/.local/bin/codex-acp` and `gemini --acp` in 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. | |
| 11 | 11 | 5. Click **Add the agent**. Its direct conversation opens once the configuration is reloaded. |
| 12 | 12 | |
| 13 | 13 | When the agent cannot be added (a name already used, for instance), the assistant says why and writes nothing. |
| @@ -19,6 +19,7 @@ When the agent cannot be added (a name already used, for instance), the assistan | ||
| 19 | 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 | 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). |
| 21 | 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), then choose the program `claude-agent-acp`, 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 `/home/agent/.local/bin/codex-acp` (kit `docker.io/sbx/codex-acp-kit`) or `gemini --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 | 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 | 24 | |
| 24 | 25 | ## See also |
| @@ -7,7 +7,7 @@ This guide shows how to add an agent from the Sidekicks window, with the "Add an | |||
| 7 | 1. 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). | 7 | 1. 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). |
| 8 | 2. **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. | 8 | 2. **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. |
| 9 | 3. **Where does it run?** Choose the environment, then fill in what it asks for (see below). | 9 | 3. **Where does it run?** Choose the environment, then fill in what it asks for (see below). |
| 10 | -4. **How is it started?** Fill in **Program** (choose `mm`, `docker-agent` or `docker agent` in the list — plus `claude-agent-acp` in 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. | 10 | +4. **How is it started?** Fill in **Program** (choose `mm`, `docker-agent` or `docker agent` in the list — plus `claude-agent-acp`, `/home/agent/.local/bin/codex-acp` and `gemini --acp` in 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. |
| 11 | 5. Click **Add the agent**. Its direct conversation opens once the configuration is reloaded. | 11 | 5. Click **Add the agent**. Its direct conversation opens once the configuration is reloaded. |
| 12 | 12 | ||
| 13 | When the agent cannot be added (a name already used, for instance), the assistant says why and writes nothing. | 13 | When the agent cannot be added (a name already used, for instance), the assistant says why and writes nothing. |
| @@ -19,6 +19,7 @@ When the agent cannot be added (a name already used, for instance), the assistan | |||
| 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). |
| 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), then choose the program `claude-agent-acp`, 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), then choose the program `claude-agent-acp`, 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 `/home/agent/.local/bin/codex-acp` (kit `docker.io/sbx/codex-acp-kit`) or `gemini --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 | - **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**. |
| 23 | 24 | ||
| 24 | ## See also | 25 | ## See also |
modified
docs/en/how-to/run-an-agent-in-a-sandbox.md +1 -1 | @@ -64,7 +64,7 @@ The **■ Stop the sandbox** and **🗑 Remove the sandbox** buttons appear in t | ||
| 64 | 64 | - **The sandbox name is not the `name:` of the sbxenv.yaml**: after `create`, Sidekicks still finds no sandbox and says so. Make `sandbox` and `name:` the same. |
| 65 | 65 | - **Sidekicks opened from the Finder**: it may not find `sbx` in its short `PATH`. Write its full path (`command: /usr/local/bin/sbx`, see `which sbx`) or add `env: {PATH: "…"}` to the agent. |
| 66 | 66 | - **The model server runs on this computer**: from inside the sandbox, reach it through `host.docker.internal`, as from a container. |
| 67 | -- **Another program than mm** (docker-agent, for instance): only `args` change, e.g. `[exec, -i, my-sandbox, docker-agent, serve, acp, /path/to/agent.yaml]`. For Claude, see [How to add a Claude agent in an sbx sandbox](add-a-claude-agent-in-a-sandbox.md). | |
| 67 | +- **Another program than mm** (docker-agent, for instance): only `args` change, e.g. `[exec, -i, my-sandbox, docker-agent, serve, acp, /path/to/agent.yaml]`. For Claude, Codex or Gemini, see [How to add a Claude agent in an sbx sandbox](add-a-claude-agent-in-a-sandbox.md), [a Codex agent](add-a-codex-agent-in-a-sandbox.md) or [a Gemini agent](add-a-gemini-agent-in-a-sandbox.md). | |
| 68 | 68 | - **Check without Sidekicks**: `sbx exec -it <sandbox> bash` opens the same kind of shell as the Terminal tab. |
| 69 | 69 | |
| 70 | 70 | ## See also |
| @@ -64,7 +64,7 @@ The **■ Stop the sandbox** and **🗑 Remove the sandbox** buttons appear in t | |||
| 64 | - **The sandbox name is not the `name:` of the sbxenv.yaml**: after `create`, Sidekicks still finds no sandbox and says so. Make `sandbox` and `name:` the same. | 64 | - **The sandbox name is not the `name:` of the sbxenv.yaml**: after `create`, Sidekicks still finds no sandbox and says so. Make `sandbox` and `name:` the same. |
| 65 | - **Sidekicks opened from the Finder**: it may not find `sbx` in its short `PATH`. Write its full path (`command: /usr/local/bin/sbx`, see `which sbx`) or add `env: {PATH: "…"}` to the agent. | 65 | - **Sidekicks opened from the Finder**: it may not find `sbx` in its short `PATH`. Write its full path (`command: /usr/local/bin/sbx`, see `which sbx`) or add `env: {PATH: "…"}` to the agent. |
| 66 | - **The model server runs on this computer**: from inside the sandbox, reach it through `host.docker.internal`, as from a container. | 66 | - **The model server runs on this computer**: from inside the sandbox, reach it through `host.docker.internal`, as from a container. |
| 67 | -- **Another program than mm** (docker-agent, for instance): only `args` change, e.g. `[exec, -i, my-sandbox, docker-agent, serve, acp, /path/to/agent.yaml]`. For Claude, see [How to add a Claude agent in an sbx sandbox](add-a-claude-agent-in-a-sandbox.md). | 67 | +- **Another program than mm** (docker-agent, for instance): only `args` change, e.g. `[exec, -i, my-sandbox, docker-agent, serve, acp, /path/to/agent.yaml]`. For Claude, Codex or Gemini, see [How to add a Claude agent in an sbx sandbox](add-a-claude-agent-in-a-sandbox.md), [a Codex agent](add-a-codex-agent-in-a-sandbox.md) or [a Gemini agent](add-a-gemini-agent-in-a-sandbox.md). |
| 68 | - **Check without Sidekicks**: `sbx exec -it <sandbox> bash` opens the same kind of shell as the Terminal tab. | 68 | - **Check without Sidekicks**: `sbx exec -it <sandbox> bash` opens the same kind of shell as the Terminal tab. |
| 69 | 69 | ||
| 70 | ## See also | 70 | ## See also |
modified
docs/fr/README.md +1 -1 | @@ -7,7 +7,7 @@ Cette documentation suit la méthode [Diátaxis](https://diataxis.fr) : choisiss | ||
| 7 | 7 | | Vous voulez… | Section | Pages | |
| 8 | 8 | | --- | --- | --- | |
| 9 | 9 | | **apprendre** en pratiquant | Tutoriels | [Votre premier agent, sans écrire de configuration](tutorials/premier-agent.md) · [Un channel avec deux agents](tutorials/premier-channel.md) · [Votre première conversation avec un agent](tutorials/premiere-conversation.md) · [Votre premier lancement de Sidekicks](tutorials/premier-lancement.md) · [Votre premier échange ACP avec un agent de test](tutorials/premier-echange-acp.md) | |
| 10 | -| **réaliser** une tâche précise | Guides pratiques | [Installer Sidekicks](how-to/installer-sidekicks.md) · [Ajouter un agent](how-to/ajouter-un-agent.md) · [Travailler avec les fichiers et le terminal d'un agent](how-to/fichiers-et-terminal-d-un-agent.md) · [Lancer un agent dans un conteneur Docker](how-to/lancer-un-agent-dans-docker.md) · [Lancer un agent dans une sandbox sbx](how-to/lancer-un-agent-dans-une-sandbox.md) · [Ajouter un agent Claude dans une sandbox sbx](how-to/ajouter-un-agent-claude-dans-une-sandbox.md) · [Joindre des fichiers à un message](how-to/joindre-des-fichiers-a-un-message.md) · [Gérer les channels et leurs agents](how-to/gerer-les-channels.md) · [Modifier ou changer la configuration](how-to/modifier-ou-changer-la-configuration.md) · [Repartir de zéro](how-to/repartir-de-zero.md) · [Surveiller la pression mémoire](how-to/surveiller-la-pression-memoire.md) · [Développer l'application](how-to/developper-l-application.md) · [Lancer les tests](how-to/lancer-les-tests.md) · [Vérifier une modification avant de la fusionner](how-to/verifier-avant-de-fusionner.md) · [Lancer un agent de test](how-to/lancer-un-agent-de-test.md) · [Dérouler les scénarios de bout en bout (v0.1)](how-to/derouler-les-scenarios-de-bout-en-bout.md) · [Définir la version](how-to/definir-la-version.md) · [Tester la CI locale (temporaire)](how-to/tester-la-ci-locale.md) · [Publier une release](how-to/publier-une-release.md) · [Signer et notariser pour macOS](how-to/signer-et-notariser-sous-macos.md) · [Tester l'issue #52 sous macOS](how-to/tester-l-issue-52-sous-macos.md) · [Tester les issues #49 et #50 sous macOS](how-to/tester-les-issues-49-et-50-sous-macos.md) · [Tester l'issue #47 sous macOS](how-to/tester-l-issue-47-sous-macos.md) · [Tester la milestone M4 sous macOS](how-to/tester-la-milestone-m4-sous-macos.md) · [Tester la milestone M3 sous macOS](how-to/tester-la-milestone-m3-sous-macos.md) · [Tester la milestone M2 sous macOS](how-to/tester-la-milestone-m2-sous-macos.md) · [Tester la milestone M1 sous macOS](how-to/tester-la-milestone-m1-sous-macos.md) · [Tester la milestone Initialize sous macOS](how-to/tester-la-milestone-initialize-sous-macos.md) | | |
| 10 | +| **réaliser** une tâche précise | Guides pratiques | [Installer Sidekicks](how-to/installer-sidekicks.md) · [Ajouter un agent](how-to/ajouter-un-agent.md) · [Travailler avec les fichiers et le terminal d'un agent](how-to/fichiers-et-terminal-d-un-agent.md) · [Lancer un agent dans un conteneur Docker](how-to/lancer-un-agent-dans-docker.md) · [Lancer un agent dans une sandbox sbx](how-to/lancer-un-agent-dans-une-sandbox.md) · [Ajouter un agent Claude dans une sandbox sbx](how-to/ajouter-un-agent-claude-dans-une-sandbox.md) · [Ajouter un agent Codex dans une sandbox sbx](how-to/ajouter-un-agent-codex-dans-une-sandbox.md) · [Ajouter un agent Gemini dans une sandbox sbx](how-to/ajouter-un-agent-gemini-dans-une-sandbox.md) · [Joindre des fichiers à un message](how-to/joindre-des-fichiers-a-un-message.md) · [Gérer les channels et leurs agents](how-to/gerer-les-channels.md) · [Modifier ou changer la configuration](how-to/modifier-ou-changer-la-configuration.md) · [Repartir de zéro](how-to/repartir-de-zero.md) · [Surveiller la pression mémoire](how-to/surveiller-la-pression-memoire.md) · [Développer l'application](how-to/developper-l-application.md) · [Lancer les tests](how-to/lancer-les-tests.md) · [Vérifier une modification avant de la fusionner](how-to/verifier-avant-de-fusionner.md) · [Lancer un agent de test](how-to/lancer-un-agent-de-test.md) · [Dérouler les scénarios de bout en bout (v0.1)](how-to/derouler-les-scenarios-de-bout-en-bout.md) · [Définir la version](how-to/definir-la-version.md) · [Tester la CI locale (temporaire)](how-to/tester-la-ci-locale.md) · [Publier une release](how-to/publier-une-release.md) · [Signer et notariser pour macOS](how-to/signer-et-notariser-sous-macos.md) · [Tester l'issue #52 sous macOS](how-to/tester-l-issue-52-sous-macos.md) · [Tester les issues #49 et #50 sous macOS](how-to/tester-les-issues-49-et-50-sous-macos.md) · [Tester l'issue #47 sous macOS](how-to/tester-l-issue-47-sous-macos.md) · [Tester la milestone M4 sous macOS](how-to/tester-la-milestone-m4-sous-macos.md) · [Tester la milestone M3 sous macOS](how-to/tester-la-milestone-m3-sous-macos.md) · [Tester la milestone M2 sous macOS](how-to/tester-la-milestone-m2-sous-macos.md) · [Tester la milestone M1 sous macOS](how-to/tester-la-milestone-m1-sous-macos.md) · [Tester la milestone Initialize sous macOS](how-to/tester-la-milestone-initialize-sous-macos.md) | | |
| 11 | 11 | | **consulter** un détail exact | Référence | [Le fichier de configuration](reference/configuration.md) · [Raccourcis clavier](reference/raccourcis-clavier.md) · [Agents, channels et événements](reference/agents-et-evenements.md) · [Commandes](reference/commandes.md) · [scripts/agents.sh](reference/script-agents.md) | |
| 12 | 12 | | **comprendre** le pourquoi | Explications | [Workspaces et terminaux](explanation/workspaces-et-terminaux.md) · [Les channels et ce que sait chaque agent](explanation/channels-et-contexte.md) · [Permissions et confiance](explanation/permissions-et-confiance.md) · [Pourquoi ACP](explanation/pourquoi-acp.md) · [La stack de l'interface](explanation/stack-interface.md) · [Architecture](explanation/architecture.md) · [Mémoire et modèles locaux](explanation/memoire-et-modeles-locaux.md) | |
| 13 | 13 | |
| @@ -7,7 +7,7 @@ Cette documentation suit la méthode [Diátaxis](https://diataxis.fr) : choisiss | |||
| 7 | | Vous voulez… | Section | Pages | | 7 | | Vous voulez… | Section | Pages | |
| 8 | | --- | --- | --- | | 8 | | --- | --- | --- | |
| 9 | | **apprendre** en pratiquant | Tutoriels | [Votre premier agent, sans écrire de configuration](tutorials/premier-agent.md) · [Un channel avec deux agents](tutorials/premier-channel.md) · [Votre première conversation avec un agent](tutorials/premiere-conversation.md) · [Votre premier lancement de Sidekicks](tutorials/premier-lancement.md) · [Votre premier échange ACP avec un agent de test](tutorials/premier-echange-acp.md) | | 9 | | **apprendre** en pratiquant | Tutoriels | [Votre premier agent, sans écrire de configuration](tutorials/premier-agent.md) · [Un channel avec deux agents](tutorials/premier-channel.md) · [Votre première conversation avec un agent](tutorials/premiere-conversation.md) · [Votre premier lancement de Sidekicks](tutorials/premier-lancement.md) · [Votre premier échange ACP avec un agent de test](tutorials/premier-echange-acp.md) | |
| 10 | -| **réaliser** une tâche précise | Guides pratiques | [Installer Sidekicks](how-to/installer-sidekicks.md) · [Ajouter un agent](how-to/ajouter-un-agent.md) · [Travailler avec les fichiers et le terminal d'un agent](how-to/fichiers-et-terminal-d-un-agent.md) · [Lancer un agent dans un conteneur Docker](how-to/lancer-un-agent-dans-docker.md) · [Lancer un agent dans une sandbox sbx](how-to/lancer-un-agent-dans-une-sandbox.md) · [Ajouter un agent Claude dans une sandbox sbx](how-to/ajouter-un-agent-claude-dans-une-sandbox.md) · [Joindre des fichiers à un message](how-to/joindre-des-fichiers-a-un-message.md) · [Gérer les channels et leurs agents](how-to/gerer-les-channels.md) · [Modifier ou changer la configuration](how-to/modifier-ou-changer-la-configuration.md) · [Repartir de zéro](how-to/repartir-de-zero.md) · [Surveiller la pression mémoire](how-to/surveiller-la-pression-memoire.md) · [Développer l'application](how-to/developper-l-application.md) · [Lancer les tests](how-to/lancer-les-tests.md) · [Vérifier une modification avant de la fusionner](how-to/verifier-avant-de-fusionner.md) · [Lancer un agent de test](how-to/lancer-un-agent-de-test.md) · [Dérouler les scénarios de bout en bout (v0.1)](how-to/derouler-les-scenarios-de-bout-en-bout.md) · [Définir la version](how-to/definir-la-version.md) · [Tester la CI locale (temporaire)](how-to/tester-la-ci-locale.md) · [Publier une release](how-to/publier-une-release.md) · [Signer et notariser pour macOS](how-to/signer-et-notariser-sous-macos.md) · [Tester l'issue #52 sous macOS](how-to/tester-l-issue-52-sous-macos.md) · [Tester les issues #49 et #50 sous macOS](how-to/tester-les-issues-49-et-50-sous-macos.md) · [Tester l'issue #47 sous macOS](how-to/tester-l-issue-47-sous-macos.md) · [Tester la milestone M4 sous macOS](how-to/tester-la-milestone-m4-sous-macos.md) · [Tester la milestone M3 sous macOS](how-to/tester-la-milestone-m3-sous-macos.md) · [Tester la milestone M2 sous macOS](how-to/tester-la-milestone-m2-sous-macos.md) · [Tester la milestone M1 sous macOS](how-to/tester-la-milestone-m1-sous-macos.md) · [Tester la milestone Initialize sous macOS](how-to/tester-la-milestone-initialize-sous-macos.md) | | 10 | +| **réaliser** une tâche précise | Guides pratiques | [Installer Sidekicks](how-to/installer-sidekicks.md) · [Ajouter un agent](how-to/ajouter-un-agent.md) · [Travailler avec les fichiers et le terminal d'un agent](how-to/fichiers-et-terminal-d-un-agent.md) · [Lancer un agent dans un conteneur Docker](how-to/lancer-un-agent-dans-docker.md) · [Lancer un agent dans une sandbox sbx](how-to/lancer-un-agent-dans-une-sandbox.md) · [Ajouter un agent Claude dans une sandbox sbx](how-to/ajouter-un-agent-claude-dans-une-sandbox.md) · [Ajouter un agent Codex dans une sandbox sbx](how-to/ajouter-un-agent-codex-dans-une-sandbox.md) · [Ajouter un agent Gemini dans une sandbox sbx](how-to/ajouter-un-agent-gemini-dans-une-sandbox.md) · [Joindre des fichiers à un message](how-to/joindre-des-fichiers-a-un-message.md) · [Gérer les channels et leurs agents](how-to/gerer-les-channels.md) · [Modifier ou changer la configuration](how-to/modifier-ou-changer-la-configuration.md) · [Repartir de zéro](how-to/repartir-de-zero.md) · [Surveiller la pression mémoire](how-to/surveiller-la-pression-memoire.md) · [Développer l'application](how-to/developper-l-application.md) · [Lancer les tests](how-to/lancer-les-tests.md) · [Vérifier une modification avant de la fusionner](how-to/verifier-avant-de-fusionner.md) · [Lancer un agent de test](how-to/lancer-un-agent-de-test.md) · [Dérouler les scénarios de bout en bout (v0.1)](how-to/derouler-les-scenarios-de-bout-en-bout.md) · [Définir la version](how-to/definir-la-version.md) · [Tester la CI locale (temporaire)](how-to/tester-la-ci-locale.md) · [Publier une release](how-to/publier-une-release.md) · [Signer et notariser pour macOS](how-to/signer-et-notariser-sous-macos.md) · [Tester l'issue #52 sous macOS](how-to/tester-l-issue-52-sous-macos.md) · [Tester les issues #49 et #50 sous macOS](how-to/tester-les-issues-49-et-50-sous-macos.md) · [Tester l'issue #47 sous macOS](how-to/tester-l-issue-47-sous-macos.md) · [Tester la milestone M4 sous macOS](how-to/tester-la-milestone-m4-sous-macos.md) · [Tester la milestone M3 sous macOS](how-to/tester-la-milestone-m3-sous-macos.md) · [Tester la milestone M2 sous macOS](how-to/tester-la-milestone-m2-sous-macos.md) · [Tester la milestone M1 sous macOS](how-to/tester-la-milestone-m1-sous-macos.md) · [Tester la milestone Initialize sous macOS](how-to/tester-la-milestone-initialize-sous-macos.md) | |
| 11 | | **consulter** un détail exact | Référence | [Le fichier de configuration](reference/configuration.md) · [Raccourcis clavier](reference/raccourcis-clavier.md) · [Agents, channels et événements](reference/agents-et-evenements.md) · [Commandes](reference/commandes.md) · [scripts/agents.sh](reference/script-agents.md) | | 11 | | **consulter** un détail exact | Référence | [Le fichier de configuration](reference/configuration.md) · [Raccourcis clavier](reference/raccourcis-clavier.md) · [Agents, channels et événements](reference/agents-et-evenements.md) · [Commandes](reference/commandes.md) · [scripts/agents.sh](reference/script-agents.md) | |
| 12 | | **comprendre** le pourquoi | Explications | [Workspaces et terminaux](explanation/workspaces-et-terminaux.md) · [Les channels et ce que sait chaque agent](explanation/channels-et-contexte.md) · [Permissions et confiance](explanation/permissions-et-confiance.md) · [Pourquoi ACP](explanation/pourquoi-acp.md) · [La stack de l'interface](explanation/stack-interface.md) · [Architecture](explanation/architecture.md) · [Mémoire et modèles locaux](explanation/memoire-et-modeles-locaux.md) | | 12 | | **comprendre** le pourquoi | Explications | [Workspaces et terminaux](explanation/workspaces-et-terminaux.md) · [Les channels et ce que sait chaque agent](explanation/channels-et-contexte.md) · [Permissions et confiance](explanation/permissions-et-confiance.md) · [Pourquoi ACP](explanation/pourquoi-acp.md) · [La stack de l'interface](explanation/stack-interface.md) · [Architecture](explanation/architecture.md) · [Mémoire et modèles locaux](explanation/memoire-et-modeles-locaux.md) | |
| 13 | 13 | ||
added
docs/fr/how-to/ajouter-un-agent-codex-dans-une-sandbox.md +93 -0 | new file mode 100644 | ||
| @@ -0,0 +1,93 @@ | ||
| 1 | +# Ajouter un agent Codex dans une sandbox sbx | |
| 2 | + | |
| 3 | +Ce guide montre comment ajouter Codex (l'agent de code d'OpenAI, via son adaptateur ACP `codex-acp`) comme agent de Sidekicks, dans une sandbox Docker (`sbx`). Codex travaille alors dans son propre dossier, isolé du reste de votre ordinateur, et Sidekicks montre ses fichiers et un terminal comme pour tout autre agent. Il suppose que `sbx` est installé et que vous avez un compte ChatGPT ou une clé d'API OpenAI. Il suit les mêmes étapes que [Ajouter un agent Claude dans une sandbox sbx](ajouter-un-agent-claude-dans-une-sandbox.md). | |
| 4 | + | |
| 5 | +Un exemple prêt à l'emploi est dans le dépôt : [`agents/snippets/codex-acp`](../../../agents/snippets/codex-acp/README.md). | |
| 6 | + | |
| 7 | +## Un kit fourni par un tiers | |
| 8 | + | |
| 9 | +La sandbox est construite à partir du kit `docker.io/sbx/codex-acp-kit`. Ce kit est fourni par un tiers, **pas par Sidekicks** : son contenu (Codex, `codex-acp`), ses mises à jour (la sandbox télécharge `latest` à chaque création) et sa disponibilité dépendent de ce tiers. Sidekicks se contente de créer la sandbox à partir du `sbxenv.yaml` qui le nomme et de lancer `/home/agent/.local/bin/codex-acp` dedans. Si le kit change ou disparaît, la sandbox peut ne plus pouvoir être créée, ou Codex ne plus démarrer : l'onglet **Log** montre alors ce que sbx a répondu. | |
| 10 | + | |
| 11 | +## Ce qu'il faut | |
| 12 | + | |
| 13 | +| | Rôle | | |
| 14 | +| --- | --- | | |
| 15 | +| Un dossier pour l'agent, par exemple `/Users/moi/agents/codex-acp` | contient le `sbxenv.yaml` de la sandbox et le dossier `workspace/` où Codex travaille. | | |
| 16 | +| Le kit `docker.io/sbx/codex-acp-kit` | l'image de la sandbox, avec Codex installé et `codex-acp` dans `/home/agent/.local/bin` (hors du `PATH` : c'est pourquoi le programme est écrit avec son dossier). | | |
| 17 | +| Vos identifiants OpenAI, enregistrés dans sbx | sbx les ajoute aux requêtes de Codex vers OpenAI : ils ne sont écrits ni dans la sandbox, ni dans la configuration de Sidekicks. | | |
| 18 | + | |
| 19 | +## Avec l'assistant | |
| 20 | + | |
| 21 | +1. **Préparez le dossier** : copiez [`agents/snippets/codex-acp`](../../../agents/snippets/codex-acp/) (son `sbxenv.yaml` et `workspace/`) là où vivra l'agent, par exemple `/Users/moi/agents/codex-acp`. Changez `name:` dans le `sbxenv.yaml` si vous voulez un autre nom de sandbox. | |
| 22 | +2. **Donnez vos identifiants OpenAI à sbx**, avant la création de la sandbox : le kit `codex` les lit quand la sandbox est créée. | |
| 23 | + | |
| 24 | + ```bash | |
| 25 | + sbx secret set -g openai --oauth # connexion avec votre compte ChatGPT | |
| 26 | + echo "$OPENAI_API_KEY" | sbx secret set -g openai # ou : une clé d'API | |
| 27 | + ``` | |
| 28 | + | |
| 29 | + Si vous les enregistrez alors que la sandbox existe déjà, cliquez sur **🗑 Supprimer la sandbox** dans l'en-tête de l'agent, puis redémarrez l'agent. | |
| 30 | +3. Dans le panneau **Agents**, cliquez sur **+ Ajouter un agent**. Remplissez **Nom affiché** (`Codex`) et, si vous voulez, une icône (📗). | |
| 31 | +4. **Où tourne-t-il ?** Choisissez **Dans une sandbox sbx**, puis déposez le `sbxenv.yaml` sur **Recréer la sandbox si elle a disparu (facultatif)** (ou cliquez sur **Choisir un sbxenv.yaml…**). La sandbox, le dossier de l'agent (`…/workspace`) et les commandes `sbx env` sont remplis à partir de lui. | |
| 32 | +5. **Programme** : choisissez `/home/agent/.local/bin/codex-acp` dans la liste (il n'est proposé que dans une sandbox sbx ; `codex-acp` seul est reconnu aussi, si le kit le met dans le `PATH`). Laissez **Arguments** vide. | |
| 33 | +6. Cliquez sur **Ajouter l'agent**, puis démarrez Codex depuis le panneau **Agents** (▶), ou écrivez-lui. La première fois, l'onglet **Log** montre `sandbox codex-acp not found: creating it`, puis le téléchargement du kit — cela peut prendre une minute ou deux. | |
| 34 | + | |
| 35 | +## À la main | |
| 36 | + | |
| 37 | +Le `sbxenv.yaml` de l'exemple : | |
| 38 | + | |
| 39 | +```yaml | |
| 40 | +schemaVersion: "1" | |
| 41 | + | |
| 42 | +name: codex-acp | |
| 43 | +agent: codex | |
| 44 | + | |
| 45 | +workspace: ./workspace | |
| 46 | + | |
| 47 | +kits: | |
| 48 | + - docker.io/sbx/codex-acp-kit:latest | |
| 49 | + | |
| 50 | +bindings: | |
| 51 | + openai: | |
| 52 | + apiKey: | |
| 53 | + domains: | |
| 54 | + - api.openai.com | |
| 55 | + - openai.com | |
| 56 | + oauth: | |
| 57 | + domains: | |
| 58 | + - auth.openai.com | |
| 59 | + - chatgpt.com | |
| 60 | +``` | |
| 61 | + | |
| 62 | +Et l'entrée de l'agent, sous `agents:` dans **Settings** : | |
| 63 | + | |
| 64 | +```yaml | |
| 65 | + - name: codex | |
| 66 | + title: Codex | |
| 67 | + icon: "📗" | |
| 68 | + command: sbx | |
| 69 | + args: [exec, -i, codex-acp, /home/agent/.local/bin/codex-acp] | |
| 70 | + workspace: /Users/moi/agents/codex-acp/workspace | |
| 71 | + runtime: | |
| 72 | + type: sbx | |
| 73 | + sandbox: codex-acp | |
| 74 | + lifecycle: | |
| 75 | + folder: /Users/moi/agents/codex-acp | |
| 76 | + create: [sbx, env, create, --force] | |
| 77 | + stop: [sbx, stop, codex-acp] | |
| 78 | + remove: [sbx, env, rm, --force] | |
| 79 | +``` | |
| 80 | + | |
| 81 | +`workspace` est le dossier où Codex travaille, sur cet ordinateur ; sbx le partage avec la sandbox au même chemin. `lifecycle.folder` est le dossier du `sbxenv.yaml`, où les commandes `sbx env` sont lancées. Le nom de la sandbox doit être le même dans `name:`, `args`, `runtime.sandbox` et `lifecycle.stop`. | |
| 82 | + | |
| 83 | +## Vérifier que ça marche | |
| 84 | + | |
| 85 | +- Demandez à Codex d'écrire un fichier, par exemple « Écris `notes/bonjour.md` avec un mot d'accueil ». Le fichier apparaît dans l'onglet **Files** de l'agent (📂) et dans `/Users/moi/agents/codex-acp/workspace` sur cet ordinateur. | |
| 86 | +- Quand Codex demande l'autorisation de modifier un fichier ou de lancer une commande, Sidekicks affiche la demande et attend votre réponse. | |
| 87 | +- **Une erreur d'authentification** dans l'onglet **Log** : les identifiants ne sont pas enregistrés dans sbx, ou l'ont été après la création de la sandbox. Enregistrez-les de nouveau, puis **🗑 Supprimer la sandbox** et démarrez l'agent. | |
| 88 | + | |
| 89 | +## Voir aussi | |
| 90 | + | |
| 91 | +- [Ajouter un agent Claude dans une sandbox sbx](ajouter-un-agent-claude-dans-une-sandbox.md) | |
| 92 | +- [Lancer un agent dans une sandbox sbx](lancer-un-agent-dans-une-sandbox.md) | |
| 93 | +- [Ajouter un agent](ajouter-un-agent.md) | |
| new file mode 100644 | |||
| @@ -0,0 +1,93 @@ | |||
| 1 | +# Ajouter un agent Codex dans une sandbox sbx | ||
| 2 | + | ||
| 3 | +Ce guide montre comment ajouter Codex (l'agent de code d'OpenAI, via son adaptateur ACP `codex-acp`) comme agent de Sidekicks, dans une sandbox Docker (`sbx`). Codex travaille alors dans son propre dossier, isolé du reste de votre ordinateur, et Sidekicks montre ses fichiers et un terminal comme pour tout autre agent. Il suppose que `sbx` est installé et que vous avez un compte ChatGPT ou une clé d'API OpenAI. Il suit les mêmes étapes que [Ajouter un agent Claude dans une sandbox sbx](ajouter-un-agent-claude-dans-une-sandbox.md). | ||
| 4 | + | ||
| 5 | +Un exemple prêt à l'emploi est dans le dépôt : [`agents/snippets/codex-acp`](../../../agents/snippets/codex-acp/README.md). | ||
| 6 | + | ||
| 7 | +## Un kit fourni par un tiers | ||
| 8 | + | ||
| 9 | +La sandbox est construite à partir du kit `docker.io/sbx/codex-acp-kit`. Ce kit est fourni par un tiers, **pas par Sidekicks** : son contenu (Codex, `codex-acp`), ses mises à jour (la sandbox télécharge `latest` à chaque création) et sa disponibilité dépendent de ce tiers. Sidekicks se contente de créer la sandbox à partir du `sbxenv.yaml` qui le nomme et de lancer `/home/agent/.local/bin/codex-acp` dedans. Si le kit change ou disparaît, la sandbox peut ne plus pouvoir être créée, ou Codex ne plus démarrer : l'onglet **Log** montre alors ce que sbx a répondu. | ||
| 10 | + | ||
| 11 | +## Ce qu'il faut | ||
| 12 | + | ||
| 13 | +| | Rôle | | ||
| 14 | +| --- | --- | | ||
| 15 | +| Un dossier pour l'agent, par exemple `/Users/moi/agents/codex-acp` | contient le `sbxenv.yaml` de la sandbox et le dossier `workspace/` où Codex travaille. | | ||
| 16 | +| Le kit `docker.io/sbx/codex-acp-kit` | l'image de la sandbox, avec Codex installé et `codex-acp` dans `/home/agent/.local/bin` (hors du `PATH` : c'est pourquoi le programme est écrit avec son dossier). | | ||
| 17 | +| Vos identifiants OpenAI, enregistrés dans sbx | sbx les ajoute aux requêtes de Codex vers OpenAI : ils ne sont écrits ni dans la sandbox, ni dans la configuration de Sidekicks. | | ||
| 18 | + | ||
| 19 | +## Avec l'assistant | ||
| 20 | + | ||
| 21 | +1. **Préparez le dossier** : copiez [`agents/snippets/codex-acp`](../../../agents/snippets/codex-acp/) (son `sbxenv.yaml` et `workspace/`) là où vivra l'agent, par exemple `/Users/moi/agents/codex-acp`. Changez `name:` dans le `sbxenv.yaml` si vous voulez un autre nom de sandbox. | ||
| 22 | +2. **Donnez vos identifiants OpenAI à sbx**, avant la création de la sandbox : le kit `codex` les lit quand la sandbox est créée. | ||
| 23 | + | ||
| 24 | + ```bash | ||
| 25 | + sbx secret set -g openai --oauth # connexion avec votre compte ChatGPT | ||
| 26 | + echo "$OPENAI_API_KEY" | sbx secret set -g openai # ou : une clé d'API | ||
| 27 | + ``` | ||
| 28 | + | ||
| 29 | + Si vous les enregistrez alors que la sandbox existe déjà, cliquez sur **🗑 Supprimer la sandbox** dans l'en-tête de l'agent, puis redémarrez l'agent. | ||
| 30 | +3. Dans le panneau **Agents**, cliquez sur **+ Ajouter un agent**. Remplissez **Nom affiché** (`Codex`) et, si vous voulez, une icône (📗). | ||
| 31 | +4. **Où tourne-t-il ?** Choisissez **Dans une sandbox sbx**, puis déposez le `sbxenv.yaml` sur **Recréer la sandbox si elle a disparu (facultatif)** (ou cliquez sur **Choisir un sbxenv.yaml…**). La sandbox, le dossier de l'agent (`…/workspace`) et les commandes `sbx env` sont remplis à partir de lui. | ||
| 32 | +5. **Programme** : choisissez `/home/agent/.local/bin/codex-acp` dans la liste (il n'est proposé que dans une sandbox sbx ; `codex-acp` seul est reconnu aussi, si le kit le met dans le `PATH`). Laissez **Arguments** vide. | ||
| 33 | +6. Cliquez sur **Ajouter l'agent**, puis démarrez Codex depuis le panneau **Agents** (▶), ou écrivez-lui. La première fois, l'onglet **Log** montre `sandbox codex-acp not found: creating it`, puis le téléchargement du kit — cela peut prendre une minute ou deux. | ||
| 34 | + | ||
| 35 | +## À la main | ||
| 36 | + | ||
| 37 | +Le `sbxenv.yaml` de l'exemple : | ||
| 38 | + | ||
| 39 | +```yaml | ||
| 40 | +schemaVersion: "1" | ||
| 41 | + | ||
| 42 | +name: codex-acp | ||
| 43 | +agent: codex | ||
| 44 | + | ||
| 45 | +workspace: ./workspace | ||
| 46 | + | ||
| 47 | +kits: | ||
| 48 | + - docker.io/sbx/codex-acp-kit:latest | ||
| 49 | + | ||
| 50 | +bindings: | ||
| 51 | + openai: | ||
| 52 | + apiKey: | ||
| 53 | + domains: | ||
| 54 | + - api.openai.com | ||
| 55 | + - openai.com | ||
| 56 | + oauth: | ||
| 57 | + domains: | ||
| 58 | + - auth.openai.com | ||
| 59 | + - chatgpt.com | ||
| 60 | +``` | ||
| 61 | + | ||
| 62 | +Et l'entrée de l'agent, sous `agents:` dans **Settings** : | ||
| 63 | + | ||
| 64 | +```yaml | ||
| 65 | + - name: codex | ||
| 66 | + title: Codex | ||
| 67 | + icon: "📗" | ||
| 68 | + command: sbx | ||
| 69 | + args: [exec, -i, codex-acp, /home/agent/.local/bin/codex-acp] | ||
| 70 | + workspace: /Users/moi/agents/codex-acp/workspace | ||
| 71 | + runtime: | ||
| 72 | + type: sbx | ||
| 73 | + sandbox: codex-acp | ||
| 74 | + lifecycle: | ||
| 75 | + folder: /Users/moi/agents/codex-acp | ||
| 76 | + create: [sbx, env, create, --force] | ||
| 77 | + stop: [sbx, stop, codex-acp] | ||
| 78 | + remove: [sbx, env, rm, --force] | ||
| 79 | +``` | ||
| 80 | + | ||
| 81 | +`workspace` est le dossier où Codex travaille, sur cet ordinateur ; sbx le partage avec la sandbox au même chemin. `lifecycle.folder` est le dossier du `sbxenv.yaml`, où les commandes `sbx env` sont lancées. Le nom de la sandbox doit être le même dans `name:`, `args`, `runtime.sandbox` et `lifecycle.stop`. | ||
| 82 | + | ||
| 83 | +## Vérifier que ça marche | ||
| 84 | + | ||
| 85 | +- Demandez à Codex d'écrire un fichier, par exemple « Écris `notes/bonjour.md` avec un mot d'accueil ». Le fichier apparaît dans l'onglet **Files** de l'agent (📂) et dans `/Users/moi/agents/codex-acp/workspace` sur cet ordinateur. | ||
| 86 | +- Quand Codex demande l'autorisation de modifier un fichier ou de lancer une commande, Sidekicks affiche la demande et attend votre réponse. | ||
| 87 | +- **Une erreur d'authentification** dans l'onglet **Log** : les identifiants ne sont pas enregistrés dans sbx, ou l'ont été après la création de la sandbox. Enregistrez-les de nouveau, puis **🗑 Supprimer la sandbox** et démarrez l'agent. | ||
| 88 | + | ||
| 89 | +## Voir aussi | ||
| 90 | + | ||
| 91 | +- [Ajouter un agent Claude dans une sandbox sbx](ajouter-un-agent-claude-dans-une-sandbox.md) | ||
| 92 | +- [Lancer un agent dans une sandbox sbx](lancer-un-agent-dans-une-sandbox.md) | ||
| 93 | +- [Ajouter un agent](ajouter-un-agent.md) | ||
added
docs/fr/how-to/ajouter-un-agent-gemini-dans-une-sandbox.md +99 -0 | new file mode 100644 | ||
| @@ -0,0 +1,99 @@ | ||
| 1 | +# Ajouter un agent Gemini dans une sandbox sbx | |
| 2 | + | |
| 3 | +Ce guide montre comment ajouter Gemini (Gemini CLI de Google, qui parle ACP lui-même avec `gemini --acp`) comme agent de Sidekicks, dans une sandbox Docker (`sbx`). Gemini travaille alors dans son propre dossier, isolé du reste de votre ordinateur, et Sidekicks montre ses fichiers et un terminal comme pour tout autre agent. Il suppose que `sbx` est installé et que vous avez une clé d'API Gemini. Il suit les mêmes étapes que [Ajouter un agent Claude dans une sandbox sbx](ajouter-un-agent-claude-dans-une-sandbox.md). | |
| 4 | + | |
| 5 | +Un exemple prêt à l'emploi est dans le dépôt : [`agents/snippets/gemini-acp`](../../../agents/snippets/gemini-acp/README.md). | |
| 6 | + | |
| 7 | +## Un kit fourni par un tiers | |
| 8 | + | |
| 9 | +La sandbox est construite à partir du kit `docker.io/sbx/gemini-kit`. Ce kit est fourni par un tiers, **pas par Sidekicks** : son contenu (Gemini CLI, dans sa dernière version), ses mises à jour (la sandbox télécharge `latest` à chaque création) et sa disponibilité dépendent de ce tiers. Sidekicks se contente de créer la sandbox à partir du `sbxenv.yaml` qui le nomme et de lancer `gemini --acp` dedans. Si le kit change ou disparaît, la sandbox peut ne plus pouvoir être créée, ou Gemini ne plus démarrer : l'onglet **Log** montre alors ce que sbx a répondu. | |
| 10 | + | |
| 11 | +## Ce qu'il faut | |
| 12 | + | |
| 13 | +| | Rôle | | |
| 14 | +| --- | --- | | |
| 15 | +| Un dossier pour l'agent, par exemple `/Users/moi/agents/gemini-acp` | contient le `sbxenv.yaml` de la sandbox et le dossier `workspace/` où Gemini travaille. | | |
| 16 | +| Le kit `docker.io/sbx/gemini-kit` | l'image de la sandbox, avec la dernière version de Gemini CLI. Docker indique ce kit comme déprécié au profit de son kit `antigravity` : il peut disparaître un jour. | | |
| 17 | +| Votre clé d'API Gemini, enregistrée dans sbx | sbx l'ajoute aux requêtes de Gemini vers Google : elle n'est écrite ni dans la sandbox, ni dans la configuration de Sidekicks. | | |
| 18 | + | |
| 19 | +## Avec l'assistant | |
| 20 | + | |
| 21 | +1. **Préparez le dossier** : copiez [`agents/snippets/gemini-acp`](../../../agents/snippets/gemini-acp/) (son `sbxenv.yaml` et `workspace/`) là où vivra l'agent, par exemple `/Users/moi/agents/gemini-acp`. Changez `name:` dans le `sbxenv.yaml` si vous voulez un autre nom de sandbox. | |
| 22 | +2. **Donnez votre clé d'API Gemini à sbx**, sous le nom `google` (les `bindings` du `sbxenv.yaml`) : | |
| 23 | + | |
| 24 | + ```bash | |
| 25 | + sbx secret set google | |
| 26 | + ``` | |
| 27 | + | |
| 28 | + La clé est gardée par sbx, sur cet ordinateur, jamais dans un fichier du dossier. | |
| 29 | +3. Dans le panneau **Agents**, cliquez sur **+ Ajouter un agent**. Remplissez **Nom affiché** (`Gemini`) et, si vous voulez, une icône (📘). | |
| 30 | +4. **Où tourne-t-il ?** Choisissez **Dans une sandbox sbx**, puis déposez le `sbxenv.yaml` sur **Recréer la sandbox si elle a disparu (facultatif)** (ou cliquez sur **Choisir un sbxenv.yaml…**). La sandbox, le dossier de l'agent (`…/workspace`) et les commandes `sbx env` sont remplis à partir de lui. | |
| 31 | +5. **Programme** : choisissez `gemini --acp` dans la liste (il n'est proposé que dans une sandbox sbx). Laissez **Arguments** vide. Avec une ancienne version de Gemini CLI, tapez `gemini --experimental-acp`. | |
| 32 | +6. Cliquez sur **Ajouter l'agent**, puis démarrez Gemini depuis le panneau **Agents** (▶), ou écrivez-lui. La première fois, l'onglet **Log** montre `sandbox gemini-acp not found: creating it`, puis le téléchargement du kit — cela peut prendre une minute ou deux. | |
| 33 | + | |
| 34 | +## À la main | |
| 35 | + | |
| 36 | +Le `sbxenv.yaml` de l'exemple : | |
| 37 | + | |
| 38 | +```yaml | |
| 39 | +schemaVersion: "1" | |
| 40 | + | |
| 41 | +name: gemini-acp | |
| 42 | +agent: gemini | |
| 43 | + | |
| 44 | +# Répertoire du projet, relatif à ce fichier. | |
| 45 | +workspace: ./workspace | |
| 46 | + | |
| 47 | +# Gemini CLI parle ACP lui-même (gemini --acp) : pas d'adaptateur. | |
| 48 | +kits: | |
| 49 | + - docker.io/sbx/gemini-kit:latest | |
| 50 | + | |
| 51 | +# Autorise l’injection de la clé Gemini (sbx secret set google) pour ces domaines. | |
| 52 | +bindings: | |
| 53 | + google: | |
| 54 | + apiKey: | |
| 55 | + domains: | |
| 56 | + - generativelanguage.googleapis.com | |
| 57 | + - aiplatform.googleapis.com | |
| 58 | + - vertexai.googleapis.com | |
| 59 | + oauth: | |
| 60 | + domains: | |
| 61 | + - accounts.google.com | |
| 62 | + - oauth2.googleapis.com | |
| 63 | + | |
| 64 | +sandboxOptions: | |
| 65 | + pullPolicy: always | |
| 66 | +``` | |
| 67 | + | |
| 68 | +Et l'entrée de l'agent, sous `agents:` dans **Settings** : | |
| 69 | + | |
| 70 | +```yaml | |
| 71 | + - name: gemini | |
| 72 | + title: Gemini | |
| 73 | + icon: "📘" | |
| 74 | + command: sbx | |
| 75 | + args: [exec, -i, gemini-acp, gemini, --acp] | |
| 76 | + workspace: /Users/moi/agents/gemini-acp/workspace | |
| 77 | + runtime: | |
| 78 | + type: sbx | |
| 79 | + sandbox: gemini-acp | |
| 80 | + lifecycle: | |
| 81 | + folder: /Users/moi/agents/gemini-acp | |
| 82 | + create: [sbx, env, create, --force] | |
| 83 | + stop: [sbx, stop, gemini-acp] | |
| 84 | + remove: [sbx, env, rm, --force] | |
| 85 | +``` | |
| 86 | + | |
| 87 | +`workspace` est le dossier où Gemini travaille, sur cet ordinateur ; sbx le partage avec la sandbox au même chemin. `lifecycle.folder` est le dossier du `sbxenv.yaml`, où les commandes `sbx env` sont lancées. Le nom de la sandbox doit être le même dans `name:`, `args`, `runtime.sandbox` et `lifecycle.stop`. | |
| 88 | + | |
| 89 | +## Vérifier que ça marche | |
| 90 | + | |
| 91 | +- Demandez à Gemini d'écrire un fichier, par exemple « Écris `notes/bonjour.md` avec un mot d'accueil ». Le fichier apparaît dans l'onglet **Files** de l'agent (📂) et dans `/Users/moi/agents/gemini-acp/workspace` sur cet ordinateur. | |
| 92 | +- Quand Gemini demande l'autorisation de modifier un fichier ou de lancer une commande, Sidekicks affiche la demande et attend votre réponse. | |
| 93 | +- **Une erreur d'authentification** dans l'onglet **Log** : la clé n'est pas enregistrée dans sbx sous le nom `google`. Enregistrez-la de nouveau, puis **🗑 Supprimer la sandbox** et démarrez l'agent. | |
| 94 | + | |
| 95 | +## Voir aussi | |
| 96 | + | |
| 97 | +- [Ajouter un agent Claude dans une sandbox sbx](ajouter-un-agent-claude-dans-une-sandbox.md) | |
| 98 | +- [Lancer un agent dans une sandbox sbx](lancer-un-agent-dans-une-sandbox.md) | |
| 99 | +- [Ajouter un agent](ajouter-un-agent.md) | |
| new file mode 100644 | |||
| @@ -0,0 +1,99 @@ | |||
| 1 | +# Ajouter un agent Gemini dans une sandbox sbx | ||
| 2 | + | ||
| 3 | +Ce guide montre comment ajouter Gemini (Gemini CLI de Google, qui parle ACP lui-même avec `gemini --acp`) comme agent de Sidekicks, dans une sandbox Docker (`sbx`). Gemini travaille alors dans son propre dossier, isolé du reste de votre ordinateur, et Sidekicks montre ses fichiers et un terminal comme pour tout autre agent. Il suppose que `sbx` est installé et que vous avez une clé d'API Gemini. Il suit les mêmes étapes que [Ajouter un agent Claude dans une sandbox sbx](ajouter-un-agent-claude-dans-une-sandbox.md). | ||
| 4 | + | ||
| 5 | +Un exemple prêt à l'emploi est dans le dépôt : [`agents/snippets/gemini-acp`](../../../agents/snippets/gemini-acp/README.md). | ||
| 6 | + | ||
| 7 | +## Un kit fourni par un tiers | ||
| 8 | + | ||
| 9 | +La sandbox est construite à partir du kit `docker.io/sbx/gemini-kit`. Ce kit est fourni par un tiers, **pas par Sidekicks** : son contenu (Gemini CLI, dans sa dernière version), ses mises à jour (la sandbox télécharge `latest` à chaque création) et sa disponibilité dépendent de ce tiers. Sidekicks se contente de créer la sandbox à partir du `sbxenv.yaml` qui le nomme et de lancer `gemini --acp` dedans. Si le kit change ou disparaît, la sandbox peut ne plus pouvoir être créée, ou Gemini ne plus démarrer : l'onglet **Log** montre alors ce que sbx a répondu. | ||
| 10 | + | ||
| 11 | +## Ce qu'il faut | ||
| 12 | + | ||
| 13 | +| | Rôle | | ||
| 14 | +| --- | --- | | ||
| 15 | +| Un dossier pour l'agent, par exemple `/Users/moi/agents/gemini-acp` | contient le `sbxenv.yaml` de la sandbox et le dossier `workspace/` où Gemini travaille. | | ||
| 16 | +| Le kit `docker.io/sbx/gemini-kit` | l'image de la sandbox, avec la dernière version de Gemini CLI. Docker indique ce kit comme déprécié au profit de son kit `antigravity` : il peut disparaître un jour. | | ||
| 17 | +| Votre clé d'API Gemini, enregistrée dans sbx | sbx l'ajoute aux requêtes de Gemini vers Google : elle n'est écrite ni dans la sandbox, ni dans la configuration de Sidekicks. | | ||
| 18 | + | ||
| 19 | +## Avec l'assistant | ||
| 20 | + | ||
| 21 | +1. **Préparez le dossier** : copiez [`agents/snippets/gemini-acp`](../../../agents/snippets/gemini-acp/) (son `sbxenv.yaml` et `workspace/`) là où vivra l'agent, par exemple `/Users/moi/agents/gemini-acp`. Changez `name:` dans le `sbxenv.yaml` si vous voulez un autre nom de sandbox. | ||
| 22 | +2. **Donnez votre clé d'API Gemini à sbx**, sous le nom `google` (les `bindings` du `sbxenv.yaml`) : | ||
| 23 | + | ||
| 24 | + ```bash | ||
| 25 | + sbx secret set google | ||
| 26 | + ``` | ||
| 27 | + | ||
| 28 | + La clé est gardée par sbx, sur cet ordinateur, jamais dans un fichier du dossier. | ||
| 29 | +3. Dans le panneau **Agents**, cliquez sur **+ Ajouter un agent**. Remplissez **Nom affiché** (`Gemini`) et, si vous voulez, une icône (📘). | ||
| 30 | +4. **Où tourne-t-il ?** Choisissez **Dans une sandbox sbx**, puis déposez le `sbxenv.yaml` sur **Recréer la sandbox si elle a disparu (facultatif)** (ou cliquez sur **Choisir un sbxenv.yaml…**). La sandbox, le dossier de l'agent (`…/workspace`) et les commandes `sbx env` sont remplis à partir de lui. | ||
| 31 | +5. **Programme** : choisissez `gemini --acp` dans la liste (il n'est proposé que dans une sandbox sbx). Laissez **Arguments** vide. Avec une ancienne version de Gemini CLI, tapez `gemini --experimental-acp`. | ||
| 32 | +6. Cliquez sur **Ajouter l'agent**, puis démarrez Gemini depuis le panneau **Agents** (▶), ou écrivez-lui. La première fois, l'onglet **Log** montre `sandbox gemini-acp not found: creating it`, puis le téléchargement du kit — cela peut prendre une minute ou deux. | ||
| 33 | + | ||
| 34 | +## À la main | ||
| 35 | + | ||
| 36 | +Le `sbxenv.yaml` de l'exemple : | ||
| 37 | + | ||
| 38 | +```yaml | ||
| 39 | +schemaVersion: "1" | ||
| 40 | + | ||
| 41 | +name: gemini-acp | ||
| 42 | +agent: gemini | ||
| 43 | + | ||
| 44 | +# Répertoire du projet, relatif à ce fichier. | ||
| 45 | +workspace: ./workspace | ||
| 46 | + | ||
| 47 | +# Gemini CLI parle ACP lui-même (gemini --acp) : pas d'adaptateur. | ||
| 48 | +kits: | ||
| 49 | + - docker.io/sbx/gemini-kit:latest | ||
| 50 | + | ||
| 51 | +# Autorise l’injection de la clé Gemini (sbx secret set google) pour ces domaines. | ||
| 52 | +bindings: | ||
| 53 | + google: | ||
| 54 | + apiKey: | ||
| 55 | + domains: | ||
| 56 | + - generativelanguage.googleapis.com | ||
| 57 | + - aiplatform.googleapis.com | ||
| 58 | + - vertexai.googleapis.com | ||
| 59 | + oauth: | ||
| 60 | + domains: | ||
| 61 | + - accounts.google.com | ||
| 62 | + - oauth2.googleapis.com | ||
| 63 | + | ||
| 64 | +sandboxOptions: | ||
| 65 | + pullPolicy: always | ||
| 66 | +``` | ||
| 67 | + | ||
| 68 | +Et l'entrée de l'agent, sous `agents:` dans **Settings** : | ||
| 69 | + | ||
| 70 | +```yaml | ||
| 71 | + - name: gemini | ||
| 72 | + title: Gemini | ||
| 73 | + icon: "📘" | ||
| 74 | + command: sbx | ||
| 75 | + args: [exec, -i, gemini-acp, gemini, --acp] | ||
| 76 | + workspace: /Users/moi/agents/gemini-acp/workspace | ||
| 77 | + runtime: | ||
| 78 | + type: sbx | ||
| 79 | + sandbox: gemini-acp | ||
| 80 | + lifecycle: | ||
| 81 | + folder: /Users/moi/agents/gemini-acp | ||
| 82 | + create: [sbx, env, create, --force] | ||
| 83 | + stop: [sbx, stop, gemini-acp] | ||
| 84 | + remove: [sbx, env, rm, --force] | ||
| 85 | +``` | ||
| 86 | + | ||
| 87 | +`workspace` est le dossier où Gemini travaille, sur cet ordinateur ; sbx le partage avec la sandbox au même chemin. `lifecycle.folder` est le dossier du `sbxenv.yaml`, où les commandes `sbx env` sont lancées. Le nom de la sandbox doit être le même dans `name:`, `args`, `runtime.sandbox` et `lifecycle.stop`. | ||
| 88 | + | ||
| 89 | +## Vérifier que ça marche | ||
| 90 | + | ||
| 91 | +- Demandez à Gemini d'écrire un fichier, par exemple « Écris `notes/bonjour.md` avec un mot d'accueil ». Le fichier apparaît dans l'onglet **Files** de l'agent (📂) et dans `/Users/moi/agents/gemini-acp/workspace` sur cet ordinateur. | ||
| 92 | +- Quand Gemini demande l'autorisation de modifier un fichier ou de lancer une commande, Sidekicks affiche la demande et attend votre réponse. | ||
| 93 | +- **Une erreur d'authentification** dans l'onglet **Log** : la clé n'est pas enregistrée dans sbx sous le nom `google`. Enregistrez-la de nouveau, puis **🗑 Supprimer la sandbox** et démarrez l'agent. | ||
| 94 | + | ||
| 95 | +## Voir aussi | ||
| 96 | + | ||
| 97 | +- [Ajouter un agent Claude dans une sandbox sbx](ajouter-un-agent-claude-dans-une-sandbox.md) | ||
| 98 | +- [Lancer un agent dans une sandbox sbx](lancer-un-agent-dans-une-sandbox.md) | ||
| 99 | +- [Ajouter un agent](ajouter-un-agent.md) | ||
modified
docs/fr/how-to/ajouter-un-agent.md +2 -1 | @@ -7,7 +7,7 @@ Ce guide montre comment ajouter un agent depuis la fenêtre de Sidekicks, avec l | ||
| 7 | 7 | 1. Ouvrez l'assistant : **+ Ajouter mon premier agent** sur l'écran d'accueil, **+ Ajouter un agent** sous la liste des agents, ou **⇧⌘N** (Ctrl+Maj+N sous Linux et Windows). |
| 8 | 8 | 2. **Qui est-ce ?** Remplissez **Nom affiché** (par exemple `Garfield (traducteur)`). **Nom utilisé avec @** le suit ; changez-le si vous en voulez un plus court (minuscules, chiffres, `-` et `_`, en commençant par une lettre). L'icône et la description sont facultatives : l'icône est un emoji, ou une lettre affichée dans un rond coloré ; laissée vide, le rond contient la première lettre du nom affiché. |
| 9 | 9 | 3. **Où tourne-t-il ?** Choisissez l'environnement, puis remplissez ce qu'il demande (voir plus bas). |
| 10 | -4. **Comment le démarrer ?** Remplissez **Programme** (choisissez `mm`, `docker-agent` ou `docker agent` dans la liste — plus `claude-agent-acp` dans une sandbox sbx — ou tapez-en un autre), **Arguments** (sur une ligne, comme dans un terminal ; les guillemets regroupent des mots) et **Dossier de l'agent**. Le dossier est créé s'il n'existe pas. | |
| 10 | +4. **Comment le démarrer ?** Remplissez **Programme** (choisissez `mm`, `docker-agent` ou `docker agent` dans la liste — plus `claude-agent-acp`, `/home/agent/.local/bin/codex-acp` et `gemini --acp` dans une sandbox sbx — ou tapez-en un autre), **Arguments** (sur une ligne, comme dans un terminal ; les guillemets regroupent des mots) et **Dossier de l'agent**. Le dossier est créé s'il n'existe pas. | |
| 11 | 11 | 5. Cliquez sur **Ajouter l'agent**. Sa conversation directe s'ouvre dès que la configuration est rechargée. |
| 12 | 12 | |
| 13 | 13 | Quand l'agent ne peut pas être ajouté (un nom déjà pris, par exemple), l'assistant dit pourquoi et n'écrit rien. |
| @@ -19,6 +19,7 @@ Quand l'agent ne peut pas être ajouté (un nom déjà pris, par exemple), l'ass | ||
| 19 | 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 | 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). |
| 21 | 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), puis choisissez le programme `claude-agent-acp`, 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 `/home/agent/.local/bin/codex-acp` (kit `docker.io/sbx/codex-acp-kit`) ou `gemini --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 | 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 | 24 | |
| 24 | 25 | ## Voir aussi |
| @@ -7,7 +7,7 @@ Ce guide montre comment ajouter un agent depuis la fenêtre de Sidekicks, avec l | |||
| 7 | 1. Ouvrez l'assistant : **+ Ajouter mon premier agent** sur l'écran d'accueil, **+ Ajouter un agent** sous la liste des agents, ou **⇧⌘N** (Ctrl+Maj+N sous Linux et Windows). | 7 | 1. Ouvrez l'assistant : **+ Ajouter mon premier agent** sur l'écran d'accueil, **+ Ajouter un agent** sous la liste des agents, ou **⇧⌘N** (Ctrl+Maj+N sous Linux et Windows). |
| 8 | 2. **Qui est-ce ?** Remplissez **Nom affiché** (par exemple `Garfield (traducteur)`). **Nom utilisé avec @** le suit ; changez-le si vous en voulez un plus court (minuscules, chiffres, `-` et `_`, en commençant par une lettre). L'icône et la description sont facultatives : l'icône est un emoji, ou une lettre affichée dans un rond coloré ; laissée vide, le rond contient la première lettre du nom affiché. | 8 | 2. **Qui est-ce ?** Remplissez **Nom affiché** (par exemple `Garfield (traducteur)`). **Nom utilisé avec @** le suit ; changez-le si vous en voulez un plus court (minuscules, chiffres, `-` et `_`, en commençant par une lettre). L'icône et la description sont facultatives : l'icône est un emoji, ou une lettre affichée dans un rond coloré ; laissée vide, le rond contient la première lettre du nom affiché. |
| 9 | 3. **Où tourne-t-il ?** Choisissez l'environnement, puis remplissez ce qu'il demande (voir plus bas). | 9 | 3. **Où tourne-t-il ?** Choisissez l'environnement, puis remplissez ce qu'il demande (voir plus bas). |
| 10 | -4. **Comment le démarrer ?** Remplissez **Programme** (choisissez `mm`, `docker-agent` ou `docker agent` dans la liste — plus `claude-agent-acp` dans une sandbox sbx — ou tapez-en un autre), **Arguments** (sur une ligne, comme dans un terminal ; les guillemets regroupent des mots) et **Dossier de l'agent**. Le dossier est créé s'il n'existe pas. | 10 | +4. **Comment le démarrer ?** Remplissez **Programme** (choisissez `mm`, `docker-agent` ou `docker agent` dans la liste — plus `claude-agent-acp`, `/home/agent/.local/bin/codex-acp` et `gemini --acp` dans une sandbox sbx — ou tapez-en un autre), **Arguments** (sur une ligne, comme dans un terminal ; les guillemets regroupent des mots) et **Dossier de l'agent**. Le dossier est créé s'il n'existe pas. |
| 11 | 5. Cliquez sur **Ajouter l'agent**. Sa conversation directe s'ouvre dès que la configuration est rechargée. | 11 | 5. Cliquez sur **Ajouter l'agent**. Sa conversation directe s'ouvre dès que la configuration est rechargée. |
| 12 | 12 | ||
| 13 | Quand l'agent ne peut pas être ajouté (un nom déjà pris, par exemple), l'assistant dit pourquoi et n'écrit rien. | 13 | Quand l'agent ne peut pas être ajouté (un nom déjà pris, par exemple), l'assistant dit pourquoi et n'écrit rien. |
| @@ -19,6 +19,7 @@ Quand l'agent ne peut pas être ajouté (un nom déjà pris, par exemple), l'ass | |||
| 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). |
| 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), puis choisissez le programme `claude-agent-acp`, 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), puis choisissez le programme `claude-agent-acp`, 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 `/home/agent/.local/bin/codex-acp` (kit `docker.io/sbx/codex-acp-kit`) ou `gemini --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 | - **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**. |
| 23 | 24 | ||
| 24 | ## Voir aussi | 25 | ## Voir aussi |
modified
docs/fr/how-to/lancer-un-agent-dans-une-sandbox.md +1 -1 | @@ -64,7 +64,7 @@ Les boutons **■ Arrêter la sandbox** et **🗑 Supprimer la sandbox** apparai | ||
| 64 | 64 | - **Le nom de la sandbox n'est pas le `name:` du sbxenv.yaml** : après `create`, Sidekicks ne trouve toujours pas de sandbox et le dit. Donnez la même valeur à `sandbox` et à `name:`. |
| 65 | 65 | - **Sidekicks lancé depuis le Finder** : il peut ne pas trouver `sbx` dans son `PATH` réduit. Écrivez son chemin complet (`command: /usr/local/bin/sbx`, voir `which sbx`) ou ajoutez `env: {PATH: "…"}` à l'agent. |
| 66 | 66 | - **Le serveur de modèles tourne sur cet ordinateur** : depuis la sandbox, atteignez-le par `host.docker.internal`, comme depuis un conteneur. |
| 67 | -- **Un autre programme que mm** (docker-agent, par exemple) : seuls les `args` changent, par exemple `[exec, -i, ma-sandbox, docker-agent, serve, acp, /chemin/vers/agent.yaml]`. Pour Claude, voir [Ajouter un agent Claude dans une sandbox sbx](ajouter-un-agent-claude-dans-une-sandbox.md). | |
| 67 | +- **Un autre programme que mm** (docker-agent, par exemple) : seuls les `args` changent, par exemple `[exec, -i, ma-sandbox, docker-agent, serve, acp, /chemin/vers/agent.yaml]`. Pour Claude, Codex ou Gemini, voir [Ajouter un agent Claude dans une sandbox sbx](ajouter-un-agent-claude-dans-une-sandbox.md), [un agent Codex](ajouter-un-agent-codex-dans-une-sandbox.md) ou [un agent Gemini](ajouter-un-agent-gemini-dans-une-sandbox.md). | |
| 68 | 68 | - **Vérifier sans Sidekicks** : `sbx exec -it <sandbox> bash` ouvre le même genre de shell que l'onglet Terminal. |
| 69 | 69 | |
| 70 | 70 | ## Voir aussi |
| @@ -64,7 +64,7 @@ Les boutons **■ Arrêter la sandbox** et **🗑 Supprimer la sandbox** apparai | |||
| 64 | - **Le nom de la sandbox n'est pas le `name:` du sbxenv.yaml** : après `create`, Sidekicks ne trouve toujours pas de sandbox et le dit. Donnez la même valeur à `sandbox` et à `name:`. | 64 | - **Le nom de la sandbox n'est pas le `name:` du sbxenv.yaml** : après `create`, Sidekicks ne trouve toujours pas de sandbox et le dit. Donnez la même valeur à `sandbox` et à `name:`. |
| 65 | - **Sidekicks lancé depuis le Finder** : il peut ne pas trouver `sbx` dans son `PATH` réduit. Écrivez son chemin complet (`command: /usr/local/bin/sbx`, voir `which sbx`) ou ajoutez `env: {PATH: "…"}` à l'agent. | 65 | - **Sidekicks lancé depuis le Finder** : il peut ne pas trouver `sbx` dans son `PATH` réduit. Écrivez son chemin complet (`command: /usr/local/bin/sbx`, voir `which sbx`) ou ajoutez `env: {PATH: "…"}` à l'agent. |
| 66 | - **Le serveur de modèles tourne sur cet ordinateur** : depuis la sandbox, atteignez-le par `host.docker.internal`, comme depuis un conteneur. | 66 | - **Le serveur de modèles tourne sur cet ordinateur** : depuis la sandbox, atteignez-le par `host.docker.internal`, comme depuis un conteneur. |
| 67 | -- **Un autre programme que mm** (docker-agent, par exemple) : seuls les `args` changent, par exemple `[exec, -i, ma-sandbox, docker-agent, serve, acp, /chemin/vers/agent.yaml]`. Pour Claude, voir [Ajouter un agent Claude dans une sandbox sbx](ajouter-un-agent-claude-dans-une-sandbox.md). | 67 | +- **Un autre programme que mm** (docker-agent, par exemple) : seuls les `args` changent, par exemple `[exec, -i, ma-sandbox, docker-agent, serve, acp, /chemin/vers/agent.yaml]`. Pour Claude, Codex ou Gemini, voir [Ajouter un agent Claude dans une sandbox sbx](ajouter-un-agent-claude-dans-une-sandbox.md), [un agent Codex](ajouter-un-agent-codex-dans-une-sandbox.md) ou [un agent Gemini](ajouter-un-agent-gemini-dans-une-sandbox.md). |
| 68 | - **Vérifier sans Sidekicks** : `sbx exec -it <sandbox> bash` ouvre le même genre de shell que l'onglet Terminal. | 68 | - **Vérifier sans Sidekicks** : `sbx exec -it <sandbox> bash` ouvre le même genre de shell que l'onglet Terminal. |
| 69 | 69 | ||
| 70 | ## Voir aussi | 70 | ## Voir aussi |
modified
frontend/src/lib/agent/AddAgentForm.svelte +8 -8 | @@ -7,7 +7,7 @@ | ||
| 7 | 7 | import { ConfigService } from '../../../bindings/git.rickub.com/bots-garden/sidekicks/internal/app' |
| 8 | 8 | import type { FilesDroppedPayload } from '../../../bindings/git.rickub.com/bots-garden/sidekicks/internal/events' |
| 9 | 9 | import { FilesDropped } from '../../../bindings/events' |
| 10 | - import { argumentsFor, emptyForm, isClaudeSandbox, nameFromTitle, problemsOf, programsFor, withAgentConfig, withComposeService, withSandboxEnv, type ComposeServiceValues, type Environment, type Missing } from '../agentform' | |
| 10 | + import { argumentsFor, emptyForm, nameFromTitle, sbxAgentOf, problemsOf, programsFor, withAgentConfig, withComposeService, withSandboxEnv, type ComposeServiceValues, type Environment, type Missing } from '../agentform' | |
| 11 | 11 | import { subscribe } from '../events' |
| 12 | 12 | import AgentAvatar from './AgentAvatar.svelte' |
| 13 | 13 | import { agentAdded, appState } from '../state.svelte' |
| @@ -100,9 +100,9 @@ | ||
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | |
| 103 | - // Claude in an sbx sandbox (issue #81): its sbxenv.yaml, dropped above, | |
| 104 | - // gives the sandbox; claude-agent-acp needs no configuration file. | |
| 105 | - const claude = $derived(isClaudeSandbox(form)) | |
| 103 | + // Claude, Codex or Gemini in an sbx sandbox (issues #81, #82, #84): its | |
| 104 | + // sbxenv.yaml, dropped above, gives the sandbox; it needs no configuration file. | |
| 105 | + const sbxAgent = $derived(sbxAgentOf(form)) | |
| 106 | 106 | |
| 107 | 107 | function useAgentConfig(path: string) { |
| 108 | 108 | if (!/\.ya?ml$/i.test(path)) { |
| @@ -266,14 +266,14 @@ | ||
| 266 | 266 | </datalist> |
| 267 | 267 | <small id="program-hint" class:problem={has('program')}>{has('program') ? t('assistant.missing.program') : form.environment === 'sbx' ? t('assistant.programHintSbx') : t('assistant.programHint')}</small> |
| 268 | 268 | </label> |
| 269 | - {#if claude} | |
| 270 | - <small class="note">{t('assistant.claudeNote')}</small> | |
| 269 | + {#if sbxAgent} | |
| 270 | + <small class="note">{t(`assistant.${sbxAgent}Note`)}</small> | |
| 271 | 271 | {/if} |
| 272 | 272 | <!-- Wherever the agent runs: sbx mounts the shared host folders at the |
| 273 | 273 | same path, and so must the container (as with docker exec today), so |
| 274 | 274 | the file's path on this computer is also its path there. --> |
| 275 | - <!-- claude-agent-acp has no configuration file to give. --> | |
| 276 | - <div id={configTarget} class="dropzone" class:hidden={claude} data-file-drop-target> | |
| 275 | + <!-- Claude, Codex and Gemini have no configuration file to give. --> | |
| 276 | + <div id={configTarget} class="dropzone" class:hidden={sbxAgent !== undefined} data-file-drop-target> | |
| 277 | 277 | <div class="row centered"> |
| 278 | 278 | <p class="grow"> |
| 279 | 279 | <strong>{t('assistant.agentConfig.title')}</strong> |
| @@ -7,7 +7,7 @@ | |||
| 7 | import { ConfigService } from '../../../bindings/git.rickub.com/bots-garden/sidekicks/internal/app' | 7 | import { ConfigService } from '../../../bindings/git.rickub.com/bots-garden/sidekicks/internal/app' |
| 8 | import type { FilesDroppedPayload } from '../../../bindings/git.rickub.com/bots-garden/sidekicks/internal/events' | 8 | import type { FilesDroppedPayload } from '../../../bindings/git.rickub.com/bots-garden/sidekicks/internal/events' |
| 9 | import { FilesDropped } from '../../../bindings/events' | 9 | import { FilesDropped } from '../../../bindings/events' |
| 10 | - import { argumentsFor, emptyForm, isClaudeSandbox, nameFromTitle, problemsOf, programsFor, withAgentConfig, withComposeService, withSandboxEnv, type ComposeServiceValues, type Environment, type Missing } from '../agentform' | 10 | + import { argumentsFor, emptyForm, nameFromTitle, sbxAgentOf, problemsOf, programsFor, withAgentConfig, withComposeService, withSandboxEnv, type ComposeServiceValues, type Environment, type Missing } from '../agentform' |
| 11 | import { subscribe } from '../events' | 11 | import { subscribe } from '../events' |
| 12 | import AgentAvatar from './AgentAvatar.svelte' | 12 | import AgentAvatar from './AgentAvatar.svelte' |
| 13 | import { agentAdded, appState } from '../state.svelte' | 13 | import { agentAdded, appState } from '../state.svelte' |
| @@ -100,9 +100,9 @@ | |||
| 100 | } | 100 | } |
| 101 | 101 | ||
| 102 | 102 | ||
| 103 | - // Claude in an sbx sandbox (issue #81): its sbxenv.yaml, dropped above, | 103 | + // Claude, Codex or Gemini in an sbx sandbox (issues #81, #82, #84): its |
| 104 | - // gives the sandbox; claude-agent-acp needs no configuration file. | 104 | + // sbxenv.yaml, dropped above, gives the sandbox; it needs no configuration file. |
| 105 | - const claude = $derived(isClaudeSandbox(form)) | 105 | + const sbxAgent = $derived(sbxAgentOf(form)) |
| 106 | 106 | ||
| 107 | function useAgentConfig(path: string) { | 107 | function useAgentConfig(path: string) { |
| 108 | if (!/\.ya?ml$/i.test(path)) { | 108 | if (!/\.ya?ml$/i.test(path)) { |
| @@ -266,14 +266,14 @@ | |||
| 266 | </datalist> | 266 | </datalist> |
| 267 | <small id="program-hint" class:problem={has('program')}>{has('program') ? t('assistant.missing.program') : form.environment === 'sbx' ? t('assistant.programHintSbx') : t('assistant.programHint')}</small> | 267 | <small id="program-hint" class:problem={has('program')}>{has('program') ? t('assistant.missing.program') : form.environment === 'sbx' ? t('assistant.programHintSbx') : t('assistant.programHint')}</small> |
| 268 | </label> | 268 | </label> |
| 269 | - {#if claude} | 269 | + {#if sbxAgent} |
| 270 | - <small class="note">{t('assistant.claudeNote')}</small> | 270 | + <small class="note">{t(`assistant.${sbxAgent}Note`)}</small> |
| 271 | {/if} | 271 | {/if} |
| 272 | <!-- Wherever the agent runs: sbx mounts the shared host folders at the | 272 | <!-- Wherever the agent runs: sbx mounts the shared host folders at the |
| 273 | same path, and so must the container (as with docker exec today), so | 273 | same path, and so must the container (as with docker exec today), so |
| 274 | the file's path on this computer is also its path there. --> | 274 | the file's path on this computer is also its path there. --> |
| 275 | - <!-- claude-agent-acp has no configuration file to give. --> | 275 | + <!-- Claude, Codex and Gemini have no configuration file to give. --> |
| 276 | - <div id={configTarget} class="dropzone" class:hidden={claude} data-file-drop-target> | 276 | + <div id={configTarget} class="dropzone" class:hidden={sbxAgent !== undefined} data-file-drop-target> |
| 277 | <div class="row centered"> | 277 | <div class="row centered"> |
| 278 | <p class="grow"> | 278 | <p class="grow"> |
| 279 | <strong>{t('assistant.agentConfig.title')}</strong> | 279 | <strong>{t('assistant.agentConfig.title')}</strong> |
modified
frontend/src/lib/agentform.test.ts +19 -1 | @@ -1,7 +1,7 @@ | ||
| 1 | 1 | // Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE |
| 2 | 2 | |
| 3 | 3 | import { describe, expect, it } from 'vitest' |
| 4 | -import { argumentsFor, emptyForm, folderOf, isClaudeSandbox, nameFromTitle, problemsOf, programsFor, quoteArgument, withAgentConfig, withComposeService, withSandboxEnv } from './agentform' | |
| 4 | +import { argumentsFor, emptyForm, folderOf, isClaudeSandbox, sbxAgentOf, nameFromTitle, problemsOf, programsFor, quoteArgument, withAgentConfig, withComposeService, withSandboxEnv } from './agentform' | |
| 5 | 5 | |
| 6 | 6 | describe('nameFromTitle', () => { |
| 7 | 7 | it('folds accents, lowercases and joins words', () => { |
| @@ -111,3 +111,21 @@ describe('Claude in an sbx sandbox (issue #81)', () => { | ||
| 111 | 111 | expect(isClaudeSandbox({ ...emptyForm(), environment: 'local', program: 'claude-agent-acp' })).toBe(false) |
| 112 | 112 | }) |
| 113 | 113 | }) |
| 114 | + | |
| 115 | +describe('Codex and Gemini in an sbx sandbox (issues #82, #84)', () => { | |
| 116 | + it('offers their programs in a sandbox only', () => { | |
| 117 | + expect(programsFor('sbx')).toEqual(expect.arrayContaining(['/home/agent/.local/bin/codex-acp', 'gemini --acp'])) | |
| 118 | + expect(programsFor('local')).not.toContain('gemini --acp') | |
| 119 | + }) | |
| 120 | + | |
| 121 | + it('recognises which agent the form describes', () => { | |
| 122 | + const sbx = { ...emptyForm(), environment: 'sbx' as const } | |
| 123 | + expect(sbxAgentOf({ ...sbx, program: '/home/agent/.local/bin/codex-acp' })).toBe('codex') | |
| 124 | + expect(sbxAgentOf({ ...sbx, program: 'codex-acp' })).toBe('codex') | |
| 125 | + expect(sbxAgentOf({ ...sbx, program: ' gemini --acp ' })).toBe('gemini') | |
| 126 | + expect(sbxAgentOf({ ...sbx, program: 'gemini --experimental-acp' })).toBe('gemini') | |
| 127 | + expect(sbxAgentOf({ ...sbx, program: 'claude-agent-acp' })).toBe('claude') | |
| 128 | + expect(sbxAgentOf({ ...sbx, program: 'mm' })).toBeUndefined() | |
| 129 | + expect(sbxAgentOf({ ...emptyForm(), environment: 'local', program: 'gemini --acp' })).toBeUndefined() | |
| 130 | + }) | |
| 131 | +}) | |
| @@ -1,7 +1,7 @@ | |||
| 1 | // Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE | 1 | // 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, nameFromTitle, problemsOf, programsFor, quoteArgument, withAgentConfig, withComposeService, withSandboxEnv } from './agentform' | 4 | +import { argumentsFor, emptyForm, folderOf, isClaudeSandbox, sbxAgentOf, 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', () => { |
| @@ -111,3 +111,21 @@ describe('Claude in an sbx sandbox (issue #81)', () => { | |||
| 111 | expect(isClaudeSandbox({ ...emptyForm(), environment: 'local', program: 'claude-agent-acp' })).toBe(false) | 111 | expect(isClaudeSandbox({ ...emptyForm(), environment: 'local', program: 'claude-agent-acp' })).toBe(false) |
| 112 | }) | 112 | }) |
| 113 | }) | 113 | }) |
| 114 | + | ||
| 115 | +describe('Codex and Gemini in an sbx sandbox (issues #82, #84)', () => { | ||
| 116 | + it('offers their programs in a sandbox only', () => { | ||
| 117 | + expect(programsFor('sbx')).toEqual(expect.arrayContaining(['/home/agent/.local/bin/codex-acp', 'gemini --acp'])) | ||
| 118 | + expect(programsFor('local')).not.toContain('gemini --acp') | ||
| 119 | + }) | ||
| 120 | + | ||
| 121 | + it('recognises which agent the form describes', () => { | ||
| 122 | + const sbx = { ...emptyForm(), environment: 'sbx' as const } | ||
| 123 | + expect(sbxAgentOf({ ...sbx, program: '/home/agent/.local/bin/codex-acp' })).toBe('codex') | ||
| 124 | + expect(sbxAgentOf({ ...sbx, program: 'codex-acp' })).toBe('codex') | ||
| 125 | + expect(sbxAgentOf({ ...sbx, program: ' gemini --acp ' })).toBe('gemini') | ||
| 126 | + expect(sbxAgentOf({ ...sbx, program: 'gemini --experimental-acp' })).toBe('gemini') | ||
| 127 | + expect(sbxAgentOf({ ...sbx, program: 'claude-agent-acp' })).toBe('claude') | ||
| 128 | + expect(sbxAgentOf({ ...sbx, program: 'mm' })).toBeUndefined() | ||
| 129 | + expect(sbxAgentOf({ ...emptyForm(), environment: 'local', program: 'gemini --acp' })).toBeUndefined() | ||
| 130 | + }) | ||
| 131 | +}) | ||
modified
frontend/src/lib/agentform.ts +39 -7 | @@ -110,24 +110,56 @@ export function problemsOf(form: AgentFormValues): Missing[] { | ||
| 110 | 110 | */ |
| 111 | 111 | export const knownPrograms = ['mm', 'docker-agent', 'docker agent'] as const |
| 112 | 112 | |
| 113 | +/** The coding agents a third-party sbx kit runs over ACP (issues #81, #82, #84). */ | |
| 114 | +export type SbxAgent = 'claude' | 'codex' | 'gemini' | |
| 115 | + | |
| 116 | +/** | |
| 117 | + * The program of each of them inside its sandbox, as the "Program" field | |
| 118 | + * offers it in an sbx sandbox only: Claude Code's and Codex's ACP adapters | |
| 119 | + * (the docker.io/sbx/claude-acp and docker.io/sbx/codex-acp-kit kits; the | |
| 120 | + * latter installs codex-acp outside the PATH), and Gemini CLI, which speaks | |
| 121 | + * ACP itself (docker.io/sbx/gemini-kit). | |
| 122 | + */ | |
| 123 | +export const sbxPrograms: Record<SbxAgent, string> = { | |
| 124 | + claude: 'claude-agent-acp', | |
| 125 | + codex: '/home/agent/.local/bin/codex-acp', | |
| 126 | + gemini: 'gemini --acp', | |
| 127 | +} | |
| 128 | + | |
| 113 | 129 | /** Claude Code's ACP adapter, offered in an sbx sandbox only (issue #81). */ |
| 114 | -export const claudeProgram = 'claude-agent-acp' | |
| 130 | +export const claudeProgram = sbxPrograms.claude | |
| 115 | 131 | |
| 116 | 132 | /** |
| 117 | 133 | * The programs the "Program" field offers where the agent runs: in an sbx |
| 118 | - * sandbox, also claude-agent-acp (Claude Code's ACP adapter, in the | |
| 119 | - * docker.io/sbx/claude-acp kit). | |
| 134 | + * sandbox, also the coding agents of sbxPrograms. | |
| 120 | 135 | * |
| 121 | 136 | * @example |
| 122 | - * programsFor('sbx') // ['mm', 'docker-agent', 'docker agent', 'claude-agent-acp'] | |
| 137 | + * programsFor('sbx') // ['mm', 'docker-agent', 'docker agent', 'claude-agent-acp', '/home/agent/.local/bin/codex-acp', 'gemini --acp'] | |
| 123 | 138 | */ |
| 124 | 139 | export function programsFor(environment: Environment): string[] { |
| 125 | - return environment === 'sbx' ? [...knownPrograms, claudeProgram] : [...knownPrograms] | |
| 140 | + return environment === 'sbx' ? [...knownPrograms, ...Object.values(sbxPrograms)] : [...knownPrograms] | |
| 141 | +} | |
| 142 | + | |
| 143 | +/** | |
| 144 | + * Which coding agent of sbxPrograms the form describes, in an sbx sandbox: | |
| 145 | + * its sbxenv.yaml gives the rest, it takes no configuration file. Codex is | |
| 146 | + * recognised by its program's name alone, with or without its folder. | |
| 147 | + * | |
| 148 | + * @example | |
| 149 | + * sbxAgentOf({ ...form, environment: 'sbx', program: 'codex-acp' }) // 'codex' | |
| 150 | + */ | |
| 151 | +export function sbxAgentOf(form: AgentFormValues): SbxAgent | undefined { | |
| 152 | + if (form.environment !== 'sbx') return undefined | |
| 153 | + const program = form.program.trim().replace(/\s+/g, ' ') | |
| 154 | + if (program === sbxPrograms.claude) return 'claude' | |
| 155 | + if (program === sbxPrograms.codex || program === 'codex-acp') return 'codex' | |
| 156 | + if (program === sbxPrograms.gemini || program === 'gemini --experimental-acp') return 'gemini' | |
| 157 | + return undefined | |
| 126 | 158 | } |
| 127 | 159 | |
| 128 | -/** Whether the form describes Claude in an sbx sandbox: its sbxenv.yaml gives the rest, it takes no configuration file. */ | |
| 160 | +/** Whether the form describes Claude in an sbx sandbox. */ | |
| 129 | 161 | export function isClaudeSandbox(form: AgentFormValues): boolean { |
| 130 | - return form.environment === 'sbx' && form.program.trim() === claudeProgram | |
| 162 | + return sbxAgentOf(form) === 'claude' | |
| 131 | 163 | } |
| 132 | 164 | |
| 133 | 165 | /** |
| @@ -110,24 +110,56 @@ export function problemsOf(form: AgentFormValues): Missing[] { | |||
| 110 | */ | 110 | */ |
| 111 | export const knownPrograms = ['mm', 'docker-agent', 'docker agent'] as const | 111 | export const knownPrograms = ['mm', 'docker-agent', 'docker agent'] as const |
| 112 | 112 | ||
| 113 | +/** The coding agents a third-party sbx kit runs over ACP (issues #81, #82, #84). */ | ||
| 114 | +export type SbxAgent = 'claude' | 'codex' | 'gemini' | ||
| 115 | + | ||
| 116 | +/** | ||
| 117 | + * The program of each of them inside its sandbox, as the "Program" field | ||
| 118 | + * offers it in an sbx sandbox only: Claude Code's and Codex's ACP adapters | ||
| 119 | + * (the docker.io/sbx/claude-acp and docker.io/sbx/codex-acp-kit kits; the | ||
| 120 | + * latter installs codex-acp outside the PATH), and Gemini CLI, which speaks | ||
| 121 | + * ACP itself (docker.io/sbx/gemini-kit). | ||
| 122 | + */ | ||
| 123 | +export const sbxPrograms: Record<SbxAgent, string> = { | ||
| 124 | + claude: 'claude-agent-acp', | ||
| 125 | + codex: '/home/agent/.local/bin/codex-acp', | ||
| 126 | + gemini: 'gemini --acp', | ||
| 127 | +} | ||
| 128 | + | ||
| 113 | /** Claude Code's ACP adapter, offered in an sbx sandbox only (issue #81). */ | 129 | /** Claude Code's ACP adapter, offered in an sbx sandbox only (issue #81). */ |
| 114 | -export const claudeProgram = 'claude-agent-acp' | 130 | +export const claudeProgram = sbxPrograms.claude |
| 115 | 131 | ||
| 116 | /** | 132 | /** |
| 117 | * The programs the "Program" field offers where the agent runs: in an sbx | 133 | * The programs the "Program" field offers where the agent runs: in an sbx |
| 118 | - * sandbox, also claude-agent-acp (Claude Code's ACP adapter, in the | 134 | + * sandbox, also the coding agents of sbxPrograms. |
| 119 | - * docker.io/sbx/claude-acp kit). | ||
| 120 | * | 135 | * |
| 121 | * @example | 136 | * @example |
| 122 | - * programsFor('sbx') // ['mm', 'docker-agent', 'docker agent', 'claude-agent-acp'] | 137 | + * programsFor('sbx') // ['mm', 'docker-agent', 'docker agent', 'claude-agent-acp', '/home/agent/.local/bin/codex-acp', 'gemini --acp'] |
| 123 | */ | 138 | */ |
| 124 | export function programsFor(environment: Environment): string[] { | 139 | export function programsFor(environment: Environment): string[] { |
| 125 | - return environment === 'sbx' ? [...knownPrograms, claudeProgram] : [...knownPrograms] | 140 | + return environment === 'sbx' ? [...knownPrograms, ...Object.values(sbxPrograms)] : [...knownPrograms] |
| 141 | +} | ||
| 142 | + | ||
| 143 | +/** | ||
| 144 | + * Which coding agent of sbxPrograms the form describes, in an sbx sandbox: | ||
| 145 | + * its sbxenv.yaml gives the rest, it takes no configuration file. Codex is | ||
| 146 | + * recognised by its program's name alone, with or without its folder. | ||
| 147 | + * | ||
| 148 | + * @example | ||
| 149 | + * sbxAgentOf({ ...form, environment: 'sbx', program: 'codex-acp' }) // 'codex' | ||
| 150 | + */ | ||
| 151 | +export function sbxAgentOf(form: AgentFormValues): SbxAgent | undefined { | ||
| 152 | + if (form.environment !== 'sbx') return undefined | ||
| 153 | + const program = form.program.trim().replace(/\s+/g, ' ') | ||
| 154 | + if (program === sbxPrograms.claude) return 'claude' | ||
| 155 | + if (program === sbxPrograms.codex || program === 'codex-acp') return 'codex' | ||
| 156 | + if (program === sbxPrograms.gemini || program === 'gemini --experimental-acp') return 'gemini' | ||
| 157 | + return undefined | ||
| 126 | } | 158 | } |
| 127 | 159 | ||
| 128 | -/** Whether the form describes Claude in an sbx sandbox: its sbxenv.yaml gives the rest, it takes no configuration file. */ | 160 | +/** Whether the form describes Claude in an sbx sandbox. */ |
| 129 | export function isClaudeSandbox(form: AgentFormValues): boolean { | 161 | export function isClaudeSandbox(form: AgentFormValues): boolean { |
| 130 | - return form.environment === 'sbx' && form.program.trim() === claudeProgram | 162 | + return sbxAgentOf(form) === 'claude' |
| 131 | } | 163 | } |
| 132 | 164 | ||
| 133 | /** | 165 | /** |
modified
frontend/src/lib/i18n/messages.ts +6 -2 | @@ -358,8 +358,10 @@ export const en = { | ||
| 358 | 358 | 'assistant.program': 'Program', |
| 359 | 359 | 'assistant.programPlaceholder': 'mm', |
| 360 | 360 | 'assistant.programHint': 'The agent\'s program, as you would type it in a terminal: choose one in the list or type another. It must speak ACP.', |
| 361 | - 'assistant.programHintSbx': 'The agent\'s program inside the sandbox, as you would type it in a terminal: choose one in the list or type another. It must speak ACP. claude-agent-acp: Claude, with the sbxenv.yaml of its sandbox dropped above.', | |
| 361 | + 'assistant.programHintSbx': 'The agent\'s program inside the sandbox, as you would type it in a terminal: choose one in the list or type another. It must speak ACP. claude-agent-acp, codex-acp, gemini --acp: Claude, Codex or Gemini, with the sbxenv.yaml of its sandbox dropped above.', | |
| 362 | 362 | 'assistant.claudeNote': 'Claude runs from the docker.io/sbx/claude-acp kit named in the sbxenv.yaml: a third party provides it, not Sidekicks. Store your Anthropic API key in sbx before starting it: see the guide "Add a Claude agent in an sbx sandbox".', |
| 363 | + 'assistant.codexNote': 'Codex runs from the docker.io/sbx/codex-acp-kit kit named in the sbxenv.yaml: a third party provides it, not Sidekicks. Sign in to ChatGPT or store your OpenAI API key in sbx before starting it: see the guide "Add a Codex agent in an sbx sandbox".', | |
| 364 | + 'assistant.geminiNote': 'Gemini runs from the docker.io/sbx/gemini-kit kit named in the sbxenv.yaml: a third party provides it, not Sidekicks. Store your Gemini API key in sbx before starting it: see the guide "Add a Gemini agent in an sbx sandbox".', | |
| 363 | 365 | 'assistant.arguments': 'Arguments', |
| 364 | 366 | 'assistant.argumentsPlaceholder': '--acp --config agent.yaml', |
| 365 | 367 | 'assistant.workspace': 'Agent\'s folder', |
| @@ -745,8 +747,10 @@ export const fr: Record<MessageKey, string> = { | ||
| 745 | 747 | 'assistant.program': 'Programme', |
| 746 | 748 | 'assistant.programPlaceholder': 'mm', |
| 747 | 749 | 'assistant.programHint': "Le programme de l'agent, tel que vous le taperiez dans un terminal : choisissez-en un dans la liste ou tapez-en un autre. Il doit parler ACP.", |
| 748 | - 'assistant.programHintSbx': "Le programme de l'agent dans la sandbox, tel que vous le taperiez dans un terminal : choisissez-en un dans la liste ou tapez-en un autre. Il doit parler ACP. claude-agent-acp : Claude, avec le sbxenv.yaml de sa sandbox déposé plus haut.", | |
| 750 | + 'assistant.programHintSbx': "Le programme de l'agent dans la sandbox, tel que vous le taperiez dans un terminal : choisissez-en un dans la liste ou tapez-en un autre. Il doit parler ACP. claude-agent-acp, codex-acp, gemini --acp : Claude, Codex ou Gemini, avec le sbxenv.yaml de sa sandbox déposé plus haut.", | |
| 749 | 751 | 'assistant.claudeNote': "Claude tourne grâce au kit docker.io/sbx/claude-acp nommé dans le sbxenv.yaml : il est fourni par un tiers, pas par Sidekicks. Enregistrez votre clé d'API Anthropic dans sbx avant de le démarrer : voir le guide « Ajouter un agent Claude dans une sandbox sbx ».", |
| 752 | + 'assistant.codexNote': "Codex tourne grâce au kit docker.io/sbx/codex-acp-kit nommé dans le sbxenv.yaml : il est fourni par un tiers, pas par Sidekicks. Connectez-vous à ChatGPT ou enregistrez votre clé d'API OpenAI dans sbx avant de le démarrer : voir le guide « Ajouter un agent Codex dans une sandbox sbx ».", | |
| 753 | + 'assistant.geminiNote': "Gemini tourne grâce au kit docker.io/sbx/gemini-kit nommé dans le sbxenv.yaml : il est fourni par un tiers, pas par Sidekicks. Enregistrez votre clé d'API Gemini dans sbx avant de le démarrer : voir le guide « Ajouter un agent Gemini dans une sandbox sbx ».", | |
| 750 | 754 | 'assistant.arguments': 'Arguments', |
| 751 | 755 | 'assistant.argumentsPlaceholder': '--acp --config agent.yaml', |
| 752 | 756 | 'assistant.workspace': "Dossier de l'agent", |
| @@ -358,8 +358,10 @@ export const en = { | |||
| 358 | 'assistant.program': 'Program', | 358 | 'assistant.program': 'Program', |
| 359 | 'assistant.programPlaceholder': 'mm', | 359 | 'assistant.programPlaceholder': 'mm', |
| 360 | 'assistant.programHint': 'The agent\'s program, as you would type it in a terminal: choose one in the list or type another. It must speak ACP.', | 360 | 'assistant.programHint': 'The agent\'s program, as you would type it in a terminal: choose one in the list or type another. It must speak ACP.', |
| 361 | - 'assistant.programHintSbx': 'The agent\'s program inside the sandbox, as you would type it in a terminal: choose one in the list or type another. It must speak ACP. claude-agent-acp: Claude, with the sbxenv.yaml of its sandbox dropped above.', | 361 | + 'assistant.programHintSbx': 'The agent\'s program inside the sandbox, as you would type it in a terminal: choose one in the list or type another. It must speak ACP. claude-agent-acp, codex-acp, gemini --acp: Claude, Codex or Gemini, with the sbxenv.yaml of its sandbox dropped above.', |
| 362 | 'assistant.claudeNote': 'Claude runs from the docker.io/sbx/claude-acp kit named in the sbxenv.yaml: a third party provides it, not Sidekicks. Store your Anthropic API key in sbx before starting it: see the guide "Add a Claude agent in an sbx sandbox".', | 362 | 'assistant.claudeNote': 'Claude runs from the docker.io/sbx/claude-acp kit named in the sbxenv.yaml: a third party provides it, not Sidekicks. Store your Anthropic API key in sbx before starting it: see the guide "Add a Claude agent in an sbx sandbox".', |
| 363 | + 'assistant.codexNote': 'Codex runs from the docker.io/sbx/codex-acp-kit kit named in the sbxenv.yaml: a third party provides it, not Sidekicks. Sign in to ChatGPT or store your OpenAI API key in sbx before starting it: see the guide "Add a Codex agent in an sbx sandbox".', | ||
| 364 | + 'assistant.geminiNote': 'Gemini runs from the docker.io/sbx/gemini-kit kit named in the sbxenv.yaml: a third party provides it, not Sidekicks. Store your Gemini API key in sbx before starting it: see the guide "Add a Gemini agent in an sbx sandbox".', | ||
| 363 | 'assistant.arguments': 'Arguments', | 365 | 'assistant.arguments': 'Arguments', |
| 364 | 'assistant.argumentsPlaceholder': '--acp --config agent.yaml', | 366 | 'assistant.argumentsPlaceholder': '--acp --config agent.yaml', |
| 365 | 'assistant.workspace': 'Agent\'s folder', | 367 | 'assistant.workspace': 'Agent\'s folder', |
| @@ -745,8 +747,10 @@ export const fr: Record<MessageKey, string> = { | |||
| 745 | 'assistant.program': 'Programme', | 747 | 'assistant.program': 'Programme', |
| 746 | 'assistant.programPlaceholder': 'mm', | 748 | 'assistant.programPlaceholder': 'mm', |
| 747 | 'assistant.programHint': "Le programme de l'agent, tel que vous le taperiez dans un terminal : choisissez-en un dans la liste ou tapez-en un autre. Il doit parler ACP.", | 749 | 'assistant.programHint': "Le programme de l'agent, tel que vous le taperiez dans un terminal : choisissez-en un dans la liste ou tapez-en un autre. Il doit parler ACP.", |
| 748 | - 'assistant.programHintSbx': "Le programme de l'agent dans la sandbox, tel que vous le taperiez dans un terminal : choisissez-en un dans la liste ou tapez-en un autre. Il doit parler ACP. claude-agent-acp : Claude, avec le sbxenv.yaml de sa sandbox déposé plus haut.", | 750 | + 'assistant.programHintSbx': "Le programme de l'agent dans la sandbox, tel que vous le taperiez dans un terminal : choisissez-en un dans la liste ou tapez-en un autre. Il doit parler ACP. claude-agent-acp, codex-acp, gemini --acp : Claude, Codex ou Gemini, avec le sbxenv.yaml de sa sandbox déposé plus haut.", |
| 749 | 'assistant.claudeNote': "Claude tourne grâce au kit docker.io/sbx/claude-acp nommé dans le sbxenv.yaml : il est fourni par un tiers, pas par Sidekicks. Enregistrez votre clé d'API Anthropic dans sbx avant de le démarrer : voir le guide « Ajouter un agent Claude dans une sandbox sbx ».", | 751 | 'assistant.claudeNote': "Claude tourne grâce au kit docker.io/sbx/claude-acp nommé dans le sbxenv.yaml : il est fourni par un tiers, pas par Sidekicks. Enregistrez votre clé d'API Anthropic dans sbx avant de le démarrer : voir le guide « Ajouter un agent Claude dans une sandbox sbx ».", |
| 752 | + 'assistant.codexNote': "Codex tourne grâce au kit docker.io/sbx/codex-acp-kit nommé dans le sbxenv.yaml : il est fourni par un tiers, pas par Sidekicks. Connectez-vous à ChatGPT ou enregistrez votre clé d'API OpenAI dans sbx avant de le démarrer : voir le guide « Ajouter un agent Codex dans une sandbox sbx ».", | ||
| 753 | + 'assistant.geminiNote': "Gemini tourne grâce au kit docker.io/sbx/gemini-kit nommé dans le sbxenv.yaml : il est fourni par un tiers, pas par Sidekicks. Enregistrez votre clé d'API Gemini dans sbx avant de le démarrer : voir le guide « Ajouter un agent Gemini dans une sandbox sbx ».", | ||
| 750 | 'assistant.arguments': 'Arguments', | 754 | 'assistant.arguments': 'Arguments', |
| 751 | 'assistant.argumentsPlaceholder': '--acp --config agent.yaml', | 755 | 'assistant.argumentsPlaceholder': '--acp --config agent.yaml', |
| 752 | 'assistant.workspace': "Dossier de l'agent", | 756 | 'assistant.workspace': "Dossier de l'agent", |
modified
internal/lifecycle/sbxenv_test.go +16 -0 | @@ -75,3 +75,19 @@ func TestReadSbxEnvRefusesOtherFiles(t *testing.T) { | ||
| 75 | 75 | t.Fatal("a missing file is an error") |
| 76 | 76 | } |
| 77 | 77 | } |
| 78 | + | |
| 79 | +// The examples of agents/snippets (issues #81, #82, #84) are read as the | |
| 80 | +// assistant reads a dropped sbxenv.yaml. | |
| 81 | +func TestTheSnippetsSandboxesAreRead(t *testing.T) { | |
| 82 | + paths, err := filepath.Glob("../../agents/snippets/*/sbxenv.yaml") | |
| 83 | + if err != nil || len(paths) == 0 { | |
| 84 | + t.Fatalf("no snippet: %v", err) | |
| 85 | + } | |
| 86 | + for _, path := range paths { | |
| 87 | + env, err := lifecycle.ReadSbxEnv(path) | |
| 88 | + folder := filepath.Base(filepath.Dir(path)) | |
| 89 | + if err != nil || env.Name != folder || filepath.Base(env.Workspace) != "workspace" { | |
| 90 | + t.Errorf("%s: %+v, %v", path, env, err) | |
| 91 | + } | |
| 92 | + } | |
| 93 | +} | |
| @@ -75,3 +75,19 @@ func TestReadSbxEnvRefusesOtherFiles(t *testing.T) { | |||
| 75 | t.Fatal("a missing file is an error") | 75 | t.Fatal("a missing file is an error") |
| 76 | } | 76 | } |
| 77 | } | 77 | } |
| 78 | + | ||
| 79 | +// The examples of agents/snippets (issues #81, #82, #84) are read as the | ||
| 80 | +// assistant reads a dropped sbxenv.yaml. | ||
| 81 | +func TestTheSnippetsSandboxesAreRead(t *testing.T) { | ||
| 82 | + paths, err := filepath.Glob("../../agents/snippets/*/sbxenv.yaml") | ||
| 83 | + if err != nil || len(paths) == 0 { | ||
| 84 | + t.Fatalf("no snippet: %v", err) | ||
| 85 | + } | ||
| 86 | + for _, path := range paths { | ||
| 87 | + env, err := lifecycle.ReadSbxEnv(path) | ||
| 88 | + folder := filepath.Base(filepath.Dir(path)) | ||
| 89 | + if err != nil || env.Name != folder || filepath.Base(env.Workspace) != "workspace" { | ||
| 90 | + t.Errorf("%s: %+v, %v", path, env, err) | ||
| 91 | + } | ||
| 92 | + } | ||
| 93 | +} | ||