/ Каталог / Песочница / claude-gpt-workflow
● Сообщество longranger2 ⚡ Сразу

claude-gpt-workflow

автор longranger2 · longranger2/claude-gpt-workflow

Delegates code execution to Codex CLI while Claude orchestrates — adversarial plan review and iterative refinement between two AI models.

Three skills that split roles: Claude orchestrates strategy, Codex executes. codex delegates coding tasks to Codex CLI. /plan-review has Codex adversarially critique Claude's plan before implementation. /plan-execute runs the approved plan with back-and-forth review loops until quality passes. Three feedback loops — plan refinement, review/fix, batch execution.

Зачем использовать

Ключевые функции

Живое демо

Как выглядит на практике

claude-gpt-workflow-skill.replay ▶ готово
0/0

Установка

Репозиторий автора · Официальная документация Claude Skills

Сценарии использования

Реальные сценарии: claude-gpt-workflow

Stress-test a plan by having another model attack it

👤 Engineers doing high-stakes refactors ⏱ ~45 min intermediate

Когда использовать: Before touching code on a migration or risky refactor, you want a second model to poke holes.

Поток
  1. Draft a plan with Claude
    Write a plan.md for migrating our auth module from JWT to session cookies.✓ Скопировано
    → Step-by-step plan written to plan.md
  2. Trigger adversarial review
    /plan-review plan.md✓ Скопировано
    → Codex returns critique with risks Claude missed
  3. Iterate until both agree
    Incorporate Codex's critique, re-submit, repeat until clean.✓ Скопировано
    → Plan reaches stable state

Итог: A plan that has survived real adversarial review, not just self-grading.

Подводные камни
  • Endless review loops — Cap at 3 rounds — diminishing returns after
Сочетать с: filesystem · git

Delegate a batch refactor to Codex with Claude reviewing

👤 Teams doing mechanical multi-file changes ⏱ ~60 min intermediate

Когда использовать: A rename / signature change across 50+ files.

Поток
  1. Plan and approve
    Plan + review a rename of <old> to <new> across the codebase.✓ Скопировано
    → Approved plan.md
  2. Execute
    /plan-execute plan.md — Codex does the edits, Claude reviews each batch.✓ Скопировано
    → Files change in batches, each passes Claude's review

Итог: A clean multi-file change with two sets of eyes on every batch.

Подводные камни
  • Codex does something Claude would have rejected — The /plan-execute loop catches it — but only if quality criteria in the plan are explicit
Сочетать с: git

Implement a feature with iterative quality refinement

👤 Devs who've seen one-shot AI code fall over on edge cases ⏱ ~90 min advanced

Когда использовать: A feature complex enough that a single generation won't get it right.

Поток
  1. Write plan with acceptance criteria
    Plan a feature with explicit acceptance tests, then /plan-execute.✓ Скопировано
    → Plan with testable criteria
  2. Watch the loop
    Let the review/fix loop run — summarize each iteration.✓ Скопировано
    → Iterations converge to passing criteria

Итог: A feature that passes explicit acceptance, not just a commit that compiles.

Комбинации

Сочетайте с другими MCP — эффект x10

claude-gpt-workflow-skill + git

Commit after each loop iteration so you can revert if the loop diverges

Before each /plan-execute iteration, create a git tag.✓ Скопировано
claude-gpt-workflow-skill + filesystem

Plan and critiques live in the repo

Write plan.md and review-notes.md to docs/ and keep them in git.✓ Скопировано

Инструменты

Что предоставляет этот MCP

ИнструментВходные данныеКогда вызыватьСтоимость
ask_codex.sh request string Delegate a coding task Codex API tokens
/plan-review plan file path Before execution Codex API tokens
/plan-execute approved plan path After /plan-review passes Codex tokens per iteration

Стоимость и лимиты

Во что обходится

Квота API
Codex API tokens — potentially 2–5x a single-model workflow since both models run
Токенов на вызов
High — plan + review + execute
Деньги
Two API subscriptions (Claude + OpenAI)
Совет
Reserve this for risky work; don't use it for small one-file edits

Безопасность

Права, секреты, радиус поражения

Хранение учётных данных: OPENAI_API_KEY in env for Codex CLI
Исходящий трафик: Code leaves your machine to both providers — check corporate policy

Устранение неполадок

Частые ошибки и исправления

ask_codex.sh: command not found

Codex CLI not on PATH or not installed

Проверить: which codex
Plan-execute loops forever

Acceptance criteria too vague — tighten the plan or cap iterations

Models disagree and plan never stabilizes

Force a tiebreaker round with a shorter scope

Альтернативы

claude-gpt-workflow в сравнении

АльтернативаКогда использоватьКомпромисс
Single-model Claude CodeThe task isn't risky enough to justify two-model overheadFewer adversarial signals
agent-skill-tddDiscipline comes from tests, not from another model's critiqueNo cross-model review

Ещё

Ресурсы

📖 Читать официальный README на GitHub

🐙 Открытые задачи

🔍 Все 400+ MCP-серверов и Skills