Run ARIS with:
- Codex as the main executor
- Gemini as the reviewer
- the local
gemini-reviewMCP bridge as the transport layer - the direct Gemini API as the default reviewer backend
This guide is additive to the upstream Codex-native path. It does not replace skills/skills-codex/.
- Base skill set:
skills/skills-codex/ - Reviewer override layer:
skills/skills-codex-gemini-review/ - Reviewer bridge:
mcp-servers/gemini-review/
The install order matters:
- install
skills/skills-codex/* - install
skills/skills-codex-gemini-review/* - register
gemini-reviewMCP
git clone https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep.git
cd Auto-claude-code-research-in-sleep
mkdir -p ~/.codex/skills
cp -a skills/skills-codex/* ~/.codex/skills/
cp -a skills/skills-codex-gemini-review/* ~/.codex/skills/
mkdir -p ~/.codex/mcp-servers/gemini-review
cp mcp-servers/gemini-review/server.py ~/.codex/mcp-servers/gemini-review/server.py
cp mcp-servers/gemini-review/README.md ~/.codex/mcp-servers/gemini-review/README.md
codex mcp add gemini-review --env GEMINI_REVIEW_BACKEND=api -- python3 ~/.codex/mcp-servers/gemini-review/server.pyRecommended credential file:
mkdir -p ~/.gemini
cat > ~/.gemini/.env <<'EOF'
GEMINI_API_KEY="your-key"
EOF
chmod 600 ~/.gemini/.envThe bridge auto-loads ~/.gemini/.env if present.
- This path is designed to maximize reuse of the original ARIS reviewer-aware skills while minimizing skill changes.
- The
gemini-reviewbridge preserves the samereview/review_reply/review_start/review_reply_start/review_statuscontract used by the existing Claude-review overlay. - Using the direct Gemini API removes the extra local CLI hop and keeps the reviewer path closer to the API-backed integrations already used elsewhere in ARIS.
- Google AI Studio / Gemini API has a free tier in eligible countries; this does not require a Gemini Advanced / Google One AI Premium subscription.
- Free-tier model availability and rate limits change over time, so do not treat any single quota number or older model example as permanent.
- On the free tier, prompts and responses may be used to improve Google's products; do not position this path as suitable for sensitive data unless the user has reviewed the current official terms.
- Official references:
- API key / AI Studio entry: https://aistudio.google.com/apikey
- Gemini API pricing and free tier: https://ai.google.dev/gemini-api/docs/pricing
The intended path is direct API. If you explicitly need Gemini CLI instead:
codex mcp remove gemini-review
codex mcp add gemini-review --env GEMINI_REVIEW_BACKEND=cli -- python3 ~/.codex/mcp-servers/gemini-review/server.pyThat fallback is available, but it is not the primary path for this guide.
- Check MCP registration:
codex mcp list- Check that your Gemini API key file exists:
test -f ~/.gemini/.env && echo "Gemini env file found"- Start Codex in your project:
codex -C /path/to/your/projectIf the default API model returns temporary free-tier 429 responses in your current window, keep the same bridge and override only the reviewer model:
codex mcp remove gemini-review
codex mcp add gemini-review --env GEMINI_REVIEW_BACKEND=api --env GEMINI_REVIEW_MODEL=gemini-flash-latest -- python3 ~/.codex/mcp-servers/gemini-review/server.pyThis does not change the ARIS reviewer contract or skill overlay shape. It only changes the Gemini API model used behind the same local gemini-review bridge.
This path was validated in two layers:
- Full overlay coverage check: all
15predefined reviewer-aware Codex skills overridden byskills/skills-codex-gemini-review/were checked to confirm they point atgemini-reviewand no longer depend on the old reviewer transport. - Runtime bridge check: the local
gemini-reviewMCP bridge was exercised with:reviewreview_replyreview_startreview_reply_startreview_statusimagePathsmultimodal review for local images
- Representative Codex-side smoke tests: we ran the overlay on a private, non-public research repository and confirmed that real Codex executions reached the Gemini reviewer path for representative tasks in research review, idea generation, and paper-planning style workflows.
What passed:
- direct API review returned valid reviewer text
- async review jobs completed and could be resumed through
review_status - follow-up review rounds worked with persisted thread state
- local-image review worked through
imagePaths - the runtime-tested Codex skill paths successfully loaded the Gemini overlay and issued real
gemini-reviewtool calls
What we observed:
- Gemini free-tier access is practical for this reviewer path, but bursty test loops can still trigger temporary
429rate-limit responses - rate-limit behavior is model-dependent; current API model surfaces should be checked in AI Studio /
ListModels, not inferred from older quota tables - in a later retry on the same setup, the direct API bridge completed sync review, async
review_start->review_status, and threadedreview_reply_start->review_statussuccessfully withGEMINI_REVIEW_MODEL=gemini-flash-latest - those
429responses behaved like short-window burst limits, not a sign that the integration itself was broken - long synchronous reviewer calls can still hit host-side MCP tool timeouts, so the async
review_start/review_reply_start+review_statusflow remains the recommended default for long prompts
This is why the bridge exposes both sync and async tools, while the reviewer-aware skill overlays prefer the async path for long reviews.
The overlay replaces the predefined reviewer-aware Codex skills:
idea-creatoridea-discoveryidea-discovery-robotresearch-reviewnovelty-checkresearch-refineauto-review-loopgrant-proposalpaper-planpaper-figurepaper-posterpaper-slidespaper-writepaper-writingauto-paper-improvement-loop
Everything else still comes from the upstream skills/skills-codex/ package.
There are two equally correct ways to describe the scope of this path:
- Core 8: the direct one-to-one reviewer overlay set that aligns with the existing Claude-review path
- Runtime 15: the full reviewer-aware Codex skill surface that is routed to Gemini in the current installed skill set
The core 8 are:
research-reviewnovelty-checkresearch-refineauto-review-looppaper-planpaper-figurepaper-writeauto-paper-improvement-loop
These are the skills that most directly mirror the earlier Claude-review overlay structure and reviewer contract.
The additional 7 reviewer-aware skills routed to Gemini are:
idea-creatoridea-discoveryidea-discovery-robotgrant-proposalpaper-writingpaper-slidespaper-poster
So the practical summary is:
- the core mechanism still tracks the same 8-skill overlay pattern as the Claude route
- the current runtime reviewer surface is broader, reaching 15 skills in total
This is why the diff is larger without changing the underlying reviewer contract shape.
Within those 15 skills, there are two categories:
- 12 direct consumers that call
mcp__gemini-review__review_start/review_reply_start/review_statusthemselves:research-reviewnovelty-checkresearch-refineauto-review-looppaper-planpaper-figurepaper-writeauto-paper-improvement-loopidea-creatorgrant-proposalpaper-slidespaper-poster
- 3 wrappers that mainly orchestrate downstream reviewer-aware sub-skills and pass
REVIEWER_MODEL=gemini-reviewthrough:idea-discoveryidea-discovery-robotpaper-writing
This matters for validation: you do not need to fully complete all 15 workflows to validate the reviewer transport. A combination of full structural checks, bridge runtime checks, and representative direct-consumer / wrapper smoke tests is enough to validate the PR-level integration logic.
For long paper or project reviews, use:
review_startreview_reply_startreview_status
Why: even on the direct API path, long synchronous reviewer calls can still hit host-side MCP tool timeouts. The async review* flow keeps the original reviewer-aware skills usable without changing their behavior.
No special project config file is required for this path.
- keep using your existing
CLAUDE.md - keep your current project layout
- only switch the installed Codex skill files and MCP registration
Keep this path intentionally narrow:
- reuse
skills/skills-codex/*unchanged - only override the reviewer-aware skills in
skills/skills-codex-gemini-review/* - keep
mcp-servers/gemini-review/server.pyfocused on thereview*compatibility contract - when a skill needs poster PNG review, pass local
imagePathsthrough the direct Gemini API backend instead of inventing a second bridge