Conversation
Adds Google's @google/gemini-cli as the fifth built-in agent, using the same registry + image + MCP injection pattern as the existing four. MCP config is written to ~/.gemini/settings.json via the new MCPConfigFormatGemini format, using `mcpServers.sandbox-tools.httpUrl` (HTTP streaming, matching what vmcp serves). The settings injector filters host-side settings.json to host-portable categories only — mcpServers, tools, hooks, security, advanced, and telemetry are intentionally excluded so host-only servers and host-coupled toggles never leak into the guest. Auth follows the codex/opencode pattern: first-run OAuth in the VM, persisted between sessions via CredentialPaths. The locked egress profile covers the Gemini Developer API, Vertex AI, Code Assist, and Google OAuth endpoints. Also restores hermes to image-push, which was missing from the prior Hermes change. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@google/gemini-clias the fifth built-in agent (bbox gemini), following the same registry + guest image + MCP injection pattern as Hermes / Codex / OpenCode.MCPConfigFormatGeminiwrites~/.gemini/settings.jsonwithmcpServers.sandbox-tools.httpUrl(HTTP-streaming, matching what vmcp serves at/mcp). Reuses the existingmergeJSONMapEntrieshelper — no new abstractions.CredentialPaths: [".gemini/"]. No host-side credential seeder in v1 (mirrors codex/opencode); a--seed-credentialsanalogue can be added later if needed.settings.jsonto host-portable categories only:general,ui,model,modelConfigs,context,agents,skills,useWriteTodos,experimental,output,privacy. Intentionally excluded:mcpServers,tools,hooks,security,advanced,telemetry,policyPaths,admin,ide— these reference host-only servers, host-side executables, or host-coupled redaction toggles that must not leak into the guest.hermestoimage-push(missing from the prior Hermes change).Test plan
task fmtcleantask lintclean (0 issues)task test— all gemini sub-tests pass (TestRegistry_Get_BuiltInAgent/gemini,TestInjectMCPConfig_Dispatch/gemini_writes_~/.gemini/settings.json,TestMCPConfigFilePermissions/gemini)task buildsucceedsbbox listshowsgeminialongside the other four agentstask image-base && task image-geminibuilds cleanly (npm install -g @google/gemini-cliadds 7 packages on the Wolfi base in 8s)bbox gemini -- --help, end-to-end OAuth, MCP tool listing inside the guest,bbox gemini --egress-profile lockedreachability check🤖 Generated with Claude Code