feat: add Gemini CLI as second opinion backend for /codex#560
Open
agi-bootstrap wants to merge 1 commit intogarrytan:mainfrom
Open
feat: add Gemini CLI as second opinion backend for /codex#560agi-bootstrap wants to merge 1 commit intogarrytan:mainfrom
agi-bootstrap wants to merge 1 commit intogarrytan:mainfrom
Conversation
The /codex skill now supports both OpenAI Codex CLI and Google Gemini CLI as the second opinion provider. Backend is auto-detected at runtime (codex first, then gemini) or explicitly configured via: gstack-config set second_opinion_backend gemini|codex|auto New bin/gstack-second-opinion dispatcher centralizes all CLI-specific logic so resolvers and templates stay backend-agnostic. Supports exec, review, resume, detect, and name subcommands. All resolvers (review.ts, design.ts, constants.ts) and the codex/SKILL.md.tmpl updated to use the dispatcher. Generated SKILL.md files regenerated. Follow-up: autoplan/SKILL.md.tmpl still has inline codex exec calls for dual-voice sections that need separate migration. Co-Authored-By: Claude Opus 4.6 (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
/codexsecond opinion skillbin/gstack-second-opiniondispatcher script auto-detects which CLI is installed (codex or gemini) and routes commands through the right onegstack-config set second_opinion_backend gemini|codex|autoreview.ts,design.ts,constants.ts) and the/codexskill template updated to use the dispatcher instead of hardcodedcodexcommands/codex review,/codex challenge, and/codex consultMotivation
Codex CLI requires an OpenAI subscription. Gemini CLI is free with a Google account. Many gstack users can't use the second opinion feature today. This PR makes it work for everyone.
What changed
bin/gstack-second-opinionscripts/resolvers/constants.tssecondOpinionErrorHandling(),secondOpinionDetection()scripts/resolvers/review.tsscripts/resolvers/design.tscodex/SKILL.md.tmplbun run gen:skill-docsKnown limitations
autoplan/SKILL.md.tmplstill has inlinecodex execcalls for dual-voice sections (follow-up PR)[codex thinking]) are simplified to plain text output for both backendsmodel_reasoning_effortor--enable web_search_cached(silently ignored)Test plan
gstack-config set second_opinion_backend geminithen/codex reviewuses Geminigstack-config set second_opinion_backend codexthen/codex reviewuses Codexgstack-config set second_opinion_backend autouses whichever is installedbun run gen:skill-docssucceeds🤖 Generated with Claude Code