.agents/skills/gepetto/references/external-review.md
This step sends claude-plan.md to external LLMs (Gemini and Codex) for independent review using CLI subagents.
Launch TWO parallel Bash commands to get external reviews:
Both reviewers receive the same plan and return their analysis.
Use this prompt for both reviewers:
You are a senior software architect reviewing an implementation plan.
The plan is self-contained - it includes all background, context, and requirements.
Identify:
- Potential footguns and edge cases
- Missing considerations
- Security vulnerabilities
- Performance issues
- Architectural problems
- Unclear or ambiguous requirements
- Anything else worth adding to the plan
Be specific and actionable. Reference specific sections. Give your honest, unconstrained assessment.
Here is the plan to review:
{PLAN_CONTENT}
plan_content=$(cat "<planning_dir>/claude-plan.md")
Use TWO Bash tool calls in a single message:
Gemini Review:
gemini -m gemini-3-pro-preview --approval-mode yolo "You are a senior software architect reviewing an implementation plan.
The plan is self-contained - it includes all background, context, and requirements.
Identify:
- Potential footguns and edge cases
- Missing considerations
- Security vulnerabilities
- Performance issues
- Architectural problems
- Unclear or ambiguous requirements
- Anything else worth adding to the plan
Be specific and actionable. Reference specific sections. Give your honest, unconstrained assessment.
Here is the plan to review:
$(cat '<planning_dir>/claude-plan.md')"
Codex Review:
echo "You are a senior software architect reviewing an implementation plan.
The plan is self-contained - it includes all background, context, and requirements.
Identify:
- Potential footguns and edge cases
- Missing considerations
- Security vulnerabilities
- Performance issues
- Architectural problems
- Unclear or ambiguous requirements
- Anything else worth adding to the plan
Be specific and actionable. Reference specific sections. Give your honest, unconstrained assessment.
Here is the plan to review:
$(cat '<planning_dir>/claude-plan.md')" | codex exec -m gpt-5.2 --sandbox read-only --skip-git-repo-check --full-auto 2>/dev/null
Create <planning_dir>/reviews/ directory and write:
gemini-review.md - Gemini's analysiscodex-review.md - Codex's analysisFormat each file:
# {Provider} Review
**Model:** {model_name}
**Generated:** {timestamp}
---
{review_content}
| Scenario | Action |
|---|---|
| Gemini fails, Codex succeeds | Write only codex-review.md, note Gemini failure |
| Codex fails, Gemini succeeds | Write only gemini-review.md, note Codex failure |
| Both fail | Ask user if they want to retry or skip external review |
| CLI not installed | Skip that reviewer, note in output |
--approval-mode yolo for non-interactive execution--full-auto and 2>/dev/null to suppress thinking tokens