Skip to content

feat: add Gemini CLI support for spawn backends#32

Merged
tjb-tech merged 1 commit intoHKUDS:mainfrom
he-yufeng:feat/gemini-cli-support
Mar 19, 2026
Merged

feat: add Gemini CLI support for spawn backends#32
tjb-tech merged 1 commit intoHKUDS:mainfrom
he-yufeng:feat/gemini-cli-support

Conversation

@he-yufeng
Copy link
Copy Markdown
Contributor

Summary

Adds first-class support for Google's Gemini CLI (gemini) as a spawn target, alongside Claude, Codex, and Nanobot. Closes #23.

Changes

Both backends (tmux_backend.py, subprocess_backend.py):

  • _is_gemini_command() — detects gemini binary (with full path support)
  • Permission skipping via --yolo flag (Gemini's equivalent of Claude's --dangerously-skip-permissions)
  • Prompt injection via -p flag

Tmux backend additionally:

  • Workspace trust confirmation for Gemini's "Trust folder" dialog
  • _is_interactive_cli() updated to include Gemini
  • Generic send-keys fallback skips Gemini (prompt already baked into command)

Tests: 3 new tests covering tmux spawn, subprocess spawn, and workspace trust detection. All 152 tests pass.

Usage

# team config
[agents.researcher]
command = ["gemini"]
clawteam spawn researcher --skip-permissions --prompt "analyze this repo"
# → gemini --yolo -p 'analyze this repo'

Test plan

  • pytest tests/test_spawn_backends.py — 14/14 pass
  • pytest (full suite) — 152/152 pass
  • ruff check — clean

Adds first-class support for Google's Gemini CLI as a spawn target
alongside Claude, Codex, and Nanobot. Closes HKUDS#23.

Both tmux and subprocess backends now handle:
- Command detection (`gemini` binary)
- Permission skipping via `--yolo` flag
- Prompt injection via `-p` flag
- Workspace trust confirmation for Gemini's trusted folders

3 new tests, 152 total passing.
@tjb-tech tjb-tech merged commit 36bfec1 into HKUDS:main Mar 19, 2026
7 checks passed
a24ibrah pushed a commit to a24ibrah/ClawTeam that referenced this pull request Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Does it support gemini cli

2 participants