Repository navigation
Allow the Gemini role to use an alternative gemini-compatible CLI (env override) #439
Closed
eliasprunaire
started this conversation in
Ideas
Replies: 1 comment
|
For those who will read this Idea, it may be linked to PR #456
Thanks to @nyldn 👍 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi! First of all, a big thank-you for Octopus. I use it every day and it adds real value for me (honestly surprised it isn't more widely known) 🙏
I'd like to float a small change request and get your take.
Request: let the Gemini role point at an alternative, gemini-compatible CLI (e.g. antigravity CLI) without a PATH shim.
Why: the Gemini provider is currently hardcoded to the literal
geminibinary:command -v gemini(scripts/mcp-provider-detection.sh)gemini -m "$model" "$@"(scripts/helpers/gemini-exec.sh)gemini "$prompt"(scripts/lib/parallel.sh)gemini --version(scripts/lib/doctor.sh,lib/smoke.sh)The only way to redirect that role to a drop-in compatible CLI (a wrapper, a pinned build, or another Gemini-backed agent) is to shadow
geminion$PATH, which leaks to every other tool in the shell and is easy to get wrong.There's also a forward-looking angle: Google seems to be steering toward Antigravity as its main agent surface, so gemini-cli's long-term future feels a bit uncertain. An override would make Octopus resilient to whatever CLI ends up being the canonical one.
Proposal (small, backward-compatible): honor an env override, defaulting to today's behavior:
and use "$GEMINI_BIN" at the call sites above (and in the command -v detection). Unset = identical to today, so zero impact on existing users.
Bonus: the same pattern would generalize nicely to the other CLI providers (CODEX_BIN, etc.) for anyone running custom wrappers or pinned binaries.
Happy to send a PR if you're open to the approach. Thanks again!
All reactions