feat: add Gemini CLI support for spawn backends#32
Merged
tjb-tech merged 1 commit intoHKUDS:mainfrom Mar 19, 2026
Merged
Conversation
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.
a24ibrah
pushed a commit
to a24ibrah/ClawTeam
that referenced
this pull request
Mar 30, 2026
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
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()— detectsgeminibinary (with full path support)--yoloflag (Gemini's equivalent of Claude's--dangerously-skip-permissions)-pflagTmux backend additionally:
_is_interactive_cli()updated to include GeminiTests: 3 new tests covering tmux spawn, subprocess spawn, and workspace trust detection. All 152 tests pass.
Usage
Test plan
pytest tests/test_spawn_backends.py— 14/14 passpytest(full suite) — 152/152 passruff check— clean