turboreview
Cross-agent CTO-review executor that repeatedly runs $cto-review through the opposite CLI and auto-executes all current plan suggestions until no suggestions remain (Codex host uses Claude CLI; Claude host uses Codex CLI). Use when the user wants fully automatic simplify-and-apply loops instead of manual accept/decline selection.
TurboReview
Run cto-review fast by delegating to the opposite agent CLI in a loop until no actionable suggestions remain.
Routing Rule
- If the current agent is Codex, invoke Claude CLI (
claude -p ...). - If the current agent is Claude, invoke Codex CLI (
codex exec ...).
Non-Negotiables
- Preserve literal
$cto-reviewin prompts (single-quote prompt text or use a prompt file). - Do not pause for manual accept/decline selection.
- Treat all current
PLAN.mdsuggestions as accepted and execute all of them. - Execute across all plan phases, not just one subgroup.
- Wait for each delegate run to finish completely.
- Require a final marker line from delegate agent:
HAS_MORE_CTO_SUGGESTIONSNO_MORE_CTO_SUGGESTIONS
- Continue looping only on
HAS_MORE_CTO_SUGGESTIONS. - Stop immediately on
NO_MORE_CTO_SUGGESTIONS.
Delegate Prompt Template
Use this exact template for each iteration:
Use $cto-review.
Autonomously execute the skill end-to-end now.
Do NOT ask for user accept/decline selection.
Treat all currently proposed suggestions as accepted and execute all of them now.
Do not execute just one subgroup; execute every actionable suggestion in the current plan.
If PLAN.md is stale or missing, regenerate it first via $cto-review.
Apply edits, run required formatting, run targeted validation, and update PLAN.md/state as needed.
After applying everything, rerun $cto-review planning once on the updated tree to determine whether any actionable suggestions remain.
At the very end, print exactly one marker on its own final line:
- NO_MORE_CTO_SUGGESTIONS
- HAS_MORE_CTO_SUGGESTIONS
Codex Host Mode (call Claude CLI)
Recommended run settings for Claude CLI:
--model opus--effort high- no budget cap unless the user explicitly asks for one
Example loop:
PROMPT_FILE=$(mktemp)
cat > "$PROMPT_FILE" <<'EOF'
Use $cto-review.
Autonomously execute the skill end-to-end now.
Do NOT ask for user accept/decline selection.
Treat all currently proposed suggestions as accepted and execute all of them now.
Do not execute just one subgroup; execute every actionable suggestion in the current plan.
If PLAN.md is stale or missing, regenerate it first via $cto-review.
Apply edits, run required formatting, run targeted validation, and update PLAN.md/state as needed.
After applying everything, rerun $cto-review planning once on the updated tree to determine whether any actionable suggestions remain.
At the very end, print exactly one marker on its own final line:
- NO_MORE_CTO_SUGGESTIONS
- HAS_MORE_CTO_SUGGESTIONS
EOF
while true; do
OUT=$(claude -p --model opus --effort high \
--permission-mode bypassPermissions --dangerously-skip-permissions \
--output-format json "$(cat "$PROMPT_FILE")")
MARKER=$(printf '%s' "$OUT" | jq -r '.result // ""' | awk 'NF{last=$0} END{print last}')
if [ "$MARKER" = "NO_MORE_CTO_SUGGESTIONS" ]; then
break
fi
if [ "$MARKER" != "HAS_MORE_CTO_SUGGESTIONS" ]; then
echo "Unexpected marker: $MARKER" >&2
exit 1
fi
done
Claude Host Mode (call Codex CLI)
Use non-interactive codex exec and parse the last message marker.
Example loop:
PROMPT_FILE=$(mktemp)
LAST_MSG=$(mktemp)
cat > "$PROMPT_FILE" <<'EOF'
Use $cto-review.
Autonomously execute the skill end-to-end now.
Do NOT ask for user accept/decline selection.
Treat all currently proposed suggestions as accepted and execute all of them now.
Do not execute just one subgroup; execute every actionable suggestion in the current plan.
If PLAN.md is stale or missing, regenerate it first via $cto-review.
Apply edits, run required formatting, run targeted validation, and update PLAN.md/state as needed.
After applying everything, rerun $cto-review planning once on the updated tree to determine whether any actionable suggestions remain.
At the very end, print exactly one marker on its own final line:
- NO_MORE_CTO_SUGGESTIONS
- HAS_MORE_CTO_SUGGESTIONS
EOF
while true; do
codex exec --sandbox danger-full-access --dangerously-bypass-approvals-and-sandbox \
-o "$LAST_MSG" "$(cat "$PROMPT_FILE")"
MARKER=$(awk 'NF{last=$0} END{print last}' "$LAST_MSG")
if [ "$MARKER" = "NO_MORE_CTO_SUGGESTIONS" ]; then
break
fi
if [ "$MARKER" != "HAS_MORE_CTO_SUGGESTIONS" ]; then
echo "Unexpected marker: $MARKER" >&2
exit 1
fi
done
Reporting Contract
After loop completion, report:
- Number of delegate iterations executed.
- Final marker value.
- Whether any new edits were made in the final iteration.
- Validation failures encountered and how they were resolved.
Files of this skill
This skill has no supporting files.