$npx -y skills add vibeeval/vibecosystem --skill codex-orchestrationOpenAI Codex CLI + Claude Code (Hizir) birlikte kullanim rehberi. Is dagitim pattern'leri, GitHub Actions workflow ornekleri, review dongusu ve iki AI yazilim asistaninin guclu yanlarini birlestiren orchestration stratejileri.
| 1 | # Codex + Claude Code Orchestration |
| 2 | |
| 3 | ## Guc Dagilimi Matrisi |
| 4 | |
| 5 | | Yetenek | Codex CLI | Claude Code (Hizir) | Kazanan | |
| 6 | |---------|-----------|---------------------|---------| |
| 7 | | Hiz | Hizli (o4-mini) | Orta (opus) | Codex | |
| 8 | | Maliyet | Ucuz (~$1.10/1M input) | Pahalı (opus pricing) | Codex | |
| 9 | | Context window | Sinirli | 1M token | Claude Code | |
| 10 | | Multi-agent | YOK (tek agent) | 134+ agent swarm | Claude Code | |
| 11 | | Hook/self-learning | YOK | Tam destek (74 hook) | Claude Code | |
| 12 | | Memory/state | Stateless (her cagri bagimsiz) | Persistent memory | Claude Code | |
| 13 | | Code review | Basit lint | Derinlemesine + security | Claude Code | |
| 14 | | Bulk refactoring | Cok iyi (hiz+ucuz) | Iyi ama pahali | Codex | |
| 15 | | Mimari karar | Zayif | Guclu (architect agent) | Claude Code | |
| 16 | | Test yazma | Iyi | Iyi + TDD workflow | Esit | |
| 17 | | Security audit | Basit | 3-katman (SAST + review + manual) | Claude Code | |
| 18 | | CI/CD entegrasyonu | GitHub native | GitHub Actions + webhook | Esit | |
| 19 | |
| 20 | --- |
| 21 | |
| 22 | ## Kullanim Senaryolari |
| 23 | |
| 24 | ### Senaryo 1: Codex Implement, Claude Code Review |
| 25 | |
| 26 | **En yaygin ve etkili pattern.** |
| 27 | |
| 28 | ``` |
| 29 | 1. Claude Code → plan.md olusturur (architect agent) |
| 30 | 2. Codex → plan.md'ye gore implement eder (full-auto mode) |
| 31 | 3. Codex → PR acar |
| 32 | 4. Claude Code → PR review eder (code-reviewer + security-reviewer) |
| 33 | 5. Codex → Review bulgularini fix eder |
| 34 | 6. Claude Code → Final verify + merge onay |
| 35 | ``` |
| 36 | |
| 37 | **GitHub Actions Workflow:** |
| 38 | |
| 39 | ```yaml |
| 40 | # .github/workflows/codex-implement-claude-review.yml |
| 41 | name: Codex + Claude Code Pipeline |
| 42 | |
| 43 | on: |
| 44 | issues: |
| 45 | types: [labeled] |
| 46 | |
| 47 | jobs: |
| 48 | codex-implement: |
| 49 | if: contains(github.event.label.name, 'codex-task') |
| 50 | runs-on: ubuntu-latest |
| 51 | steps: |
| 52 | - uses: actions/checkout@v4 |
| 53 | - name: Codex Implementation |
| 54 | env: |
| 55 | OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} |
| 56 | run: | |
| 57 | npx codex --approval-mode full-auto \ |
| 58 | --quiet \ |
| 59 | -q "Implement the task described in issue #${{ github.event.issue.number }}. Follow the plan if provided." |
| 60 | - name: Create PR |
| 61 | env: |
| 62 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 63 | run: | |
| 64 | git checkout -b codex/issue-${{ github.event.issue.number }} |
| 65 | git add -A |
| 66 | git commit -m "feat: implement issue #${{ github.event.issue.number }} [codex]" |
| 67 | git push -u origin codex/issue-${{ github.event.issue.number }} |
| 68 | gh pr create --title "Codex: Issue #${{ github.event.issue.number }}" \ |
| 69 | --body "Automated implementation by Codex CLI. Awaiting Claude Code review." |
| 70 | |
| 71 | claude-review: |
| 72 | needs: codex-implement |
| 73 | runs-on: ubuntu-latest |
| 74 | steps: |
| 75 | - uses: actions/checkout@v4 |
| 76 | - name: Claude Code Review |
| 77 | env: |
| 78 | ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} |
| 79 | run: | |
| 80 | # claude-review workflow zaten mevcut |
| 81 | claude -p "Review the PR changes. Run code-reviewer + security-reviewer. Report findings." |
| 82 | ``` |
| 83 | |
| 84 | ### Senaryo 2: Dual Review (Codex Hizli + Claude Code Derin) |
| 85 | |
| 86 | ```yaml |
| 87 | # .github/workflows/dual-review.yml |
| 88 | name: Dual AI Review |
| 89 | |
| 90 | on: |
| 91 | pull_request: |
| 92 | types: [opened, synchronize] |
| 93 | |
| 94 | jobs: |
| 95 | codex-quick-review: |
| 96 | runs-on: ubuntu-latest |
| 97 | steps: |
| 98 | - uses: actions/checkout@v4 |
| 99 | - name: Codex Quick Lint Review |
| 100 | run: | |
| 101 | npx codex --approval-mode full-auto -q \ |
| 102 | "Review the diff for obvious issues: lint errors, typos, missing imports, type errors. Be brief." |
| 103 | |
| 104 | claude-deep-review: |
| 105 | runs-on: ubuntu-latest |
| 106 | steps: |
| 107 | - uses: actions/checkout@v4 |
| 108 | - name: Claude Code Deep Review |
| 109 | run: | |
| 110 | claude -p "Deep review: architecture, security, performance, edge cases. Use code-reviewer + security-reviewer agents." |
| 111 | ``` |
| 112 | |
| 113 | ### Senaryo 3: Codex Batch Task Dispatch |
| 114 | |
| 115 | Birden fazla kuuk task'i Codex'e dagit, Claude Code koordine etsin. |
| 116 | |
| 117 | ```bash |
| 118 | #!/bin/bash |
| 119 | # batch-codex-tasks.sh |
| 120 | |
| 121 | TASKS=( |
| 122 | "Add input validation to all API endpoints in src/api/" |
| 123 | "Convert all var declarations to const/let in src/utils/" |
| 124 | "Add JSDoc comments to all exported functions in src/lib/" |
| 125 | "Fix all TypeScript strict mode errors in src/models/" |
| 126 | ) |
| 127 | |
| 128 | for i in "${!TASKS[@]}"; do |
| 129 | echo "Task $((i+1)): ${TASKS[$i]}" |
| 130 | npx codex --approval-mode full-auto --quiet -q "${TASKS[$i]}" & |
| 131 | done |
| 132 | |
| 133 | wait |
| 134 | echo "All Codex tasks complete. Running Claude Code verification..." |
| 135 | claude -p "Verify all changes: build, test, lint. Report issues." |
| 136 | ``` |
| 137 | |
| 138 | --- |
| 139 | |
| 140 | ## Review Dongusu Pattern (5 Faz) |
| 141 | |
| 142 | ``` |
| 143 | PHASE 1: PLAN (Claude Code) |
| 144 | ├── architect agent ile plan olustur |
| 145 | ├── Task'lari tanimla |
| 146 | ├── Kabul kriterleri belirle |
| 147 | └── plan.md veya GitHub issue olustur |
| 148 | |
| 149 | PHASE 2: IMPLEMENT (Codex) |
| 150 | ├── codex --approval-mode full-auto |
| 151 | ├── Her task icin ayri branch |
| 152 | ├── PR ac |
| 153 | └── Codex kendi testlerini de yazabilir |
| 154 | |
| 155 | PHA |