You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR URL --> fetch_pr.py --clone --> cloned repo + context.json
|
run_review.py
|
+----------------+----------------+----------------+----------------+
| | | | |
Codex CLI Claude Code Gemini CLI OpenCode
(default) (--claude) (--gemini) (--opencode)
| | | |
codex_review claude_review gemini_review opencode_review
.md/.html/.json .md/.html/.json .md/.html/.json .md/.html/.json
+----------------+----------------+----------------+----------------+
|
Consolidation Phase
(Codex Spark validates by default
with xhigh reasoning effort,
use --consolidation-model to change,
including codex-spark and opencode)
|
final_report.md/html/json
AI Tool Initialization
When using --init, the system generates context files for each AI tool:
Tool
Config File
Method
Purpose
Claude Code
CLAUDE.md
Native /init command
Project instructions, coding style
Gemini CLI
GEMINI.md
Prompt-based (non-interactive)
Project context, conventions
Codex CLI
AGENTS.md
Prompt-based (non-interactive)
Agent behavior, project overview
OpenCode
AGENTS.md
Prompt-based (non-interactive)
Shared project rules and agent behavior
Note: Claude Code has a built-in /init slash command that works non-interactively. Gemini and Codex have /init commands but they only work in interactive TUI mode (Gemini #5435, Codex #4219). OpenCode also uses AGENTS.md, so run_review.py --init generates that file via a non-interactive prompt path when needed. For automation, we use prompts to generate the context files.
Output Files
review-output/
├── review_prompt.md # Prompt sent to AI reviewers
├── claude_output.txt # Claude raw output
├── claude_review.md/html/json # Claude individual report
├── gemini_output.txt # Gemini raw output (if enabled)
├── gemini_review.md/html/json # Gemini individual report
├── codex_output.txt # Codex raw output (if enabled)
├── codex_review.md/html/json # Codex individual report
├── opencode_output.txt # OpenCode raw output (if enabled)
├── opencode_review.md/html/json # OpenCode individual report
├── consolidation_prompt.md # Consolidation prompt
├── consolidation_output.txt # Consolidation raw output
└── final_report.md/html/json # Final consolidated report
opencode run --dangerously-skip-permissions "<prompt>"
--dangerously-skip-permissions
Note: Codex reads the prompt from stdin via -. Gemini, Claude, and OpenCode run headlessly by receiving the prompt as a CLI argument. Codex now bypasses its internal sandbox by default; pass --codex-use-sandbox to restore the older --full-auto mode. run_review.py now defaults --codex-reasoning-effort to xhigh, and consolidation defaults to --consolidation-model codex-spark, which maps to gpt-5.3-codex-spark. The review flow is constrained to the local checkout and should not need remote PR pages or web search.