From a6f923514ffb3fa9a923b94f25d3e042beeba7d8 Mon Sep 17 00:00:00 2001 From: JPeetz <[email protected]> Date: Tue, 4 Aug 2026 12:33:59 +0100 Subject: [PATCH] feat(desktop): add Gemini CLI as a tier-2 preset harness MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds Gemini CLI to the built-in preset harness catalog. Gemini exposes a native ACP mode via 'gemini --acp' — no adapter needed, no vendor CLI underlying_cli linkage required. Ships against the existing preset infrastructure (PresetHarness struct + discovery/presets.rs module extracted in #3225). Zero refactor surface — a single 9-line additive entry into PRESET_HARNESSES. Signed-off-by: JPeetz <[email protected]> --- .../src-tauri/src/managed_agents/discovery/presets.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/desktop/src-tauri/src/managed_agents/discovery/presets.rs b/desktop/src-tauri/src/managed_agents/discovery/presets.rs index bcc4288005..1766760ac6 100644 --- a/desktop/src-tauri/src/managed_agents/discovery/presets.rs +++ b/desktop/src-tauri/src/managed_agents/discovery/presets.rs @@ -174,6 +174,15 @@ pub(super) const PRESET_HARNESSES: &[PresetHarness] = &[ Gateway's own environment separately.", underlying_cli: None, }, + PresetHarness { + id: "gemini", + label: "Gemini CLI", + command: "gemini", + args: &["--acp"], + install_instructions_url: "https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/acp-mode.md", + install_hint: "Buzz talks to Gemini CLI through its native ACP mode (gemini --acp).", + underlying_cli: None, + }, ]; /// Return preset definitions for the spawn/readiness registry.