본문으로 건너뛰기
cccskills
무료GitHub에 공개

with-codex

Enables Claude Code to collaborate with OpenAI Codex CLI on Windows. Use this skill when the user wants to get a second opinion from Codex, compare approaches between Claude and Codex, or leverage both AI assistants for collaborative problem-solving. This skill supports both non-interactive mode (automatic response retrieval) and interactive mode (visual pane splitting with tmux).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구OpenAI
설치 방법 보기

포함된 파일(4)

  • SKILL.md3.6 KB
  • references/workflows.md4.9 KB
  • scripts/codex-exec.sh823 B
  • scripts/codex-manager.sh7.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

With Codex - Claude and Codex Collaboration

This skill enables collaboration between Claude Code and OpenAI Codex CLI for second opinions, validation, and collaborative problem-solving.

CRITICAL REQUIREMENT

Claude Code MUST be running inside a tmux session for this skill to work.

If not in tmux, inform the user: "このスキルを使用するには、tmuxセッション内でClaude Codeを起動する必要があります。以下のコマンドを実行してください:

tmux new-session -s claude
claude

"

Environment Requirements

  • WSL (Ubuntu) with tmux installed
  • OpenAI Codex CLI installed and authenticated in WSL
  • Claude Code running inside a tmux session
  • Skill scripts at: ~/.claude/skills/with-codex/scripts/

Standard Workflow (MUST FOLLOW)

When this skill is triggered, ALWAYS execute these steps in order:

Step 1: Setup - Split pane and start Codex

~/.claude/skills/with-codex/scripts/codex-manager.sh setup

This splits the current tmux pane:

  • Left pane: Claude Code (current)
  • Right pane: Codex CLI (newly created, with dark background)

Step 2: Claude performs its own analysis first

Analyze the user's request independently before querying Codex.

Step 3: Send the same prompt to Codex

~/.claude/skills/with-codex/scripts/codex-manager.sh send "YOUR_PROMPT_HERE"

Replace YOUR_PROMPT_HERE with the actual question/task from the user.

Step 4: Wait for Codex response

~/.claude/skills/with-codex/scripts/codex-manager.sh wait 60

Wait up to 60 seconds for Codex to complete its response.

Step 5: Capture Codex output

~/.claude/skills/with-codex/scripts/codex-manager.sh capture 200

Capture the last 200 lines of Codex's output.

Step 6: Present combined results

Present results in this format:

## Claude's Analysis
[Your independent analysis]

## Codex's Analysis
[Captured response from Codex]

## Synthesis
- **Agreement**: [Points where both AIs agree]
- **Differences**: [Alternative perspectives from Codex]
- **Recommendation**: [Best combined approach]

Step 7: Cleanup (when conversation ends or user requests)

~/.claude/skills/with-codex/scripts/codex-manager.sh cleanup

Available Commands

CommandDescription
setupSplit pane and start Codex on the right
send "prompt"Send prompt to Codex pane
capture [lines]Capture Codex output (default: 100 lines)
wait [timeout]Wait for response to stabilize (default: 60s)
cleanupClose the Codex pane
statusCheck pane status
focusSwitch focus to Codex pane

Error Handling

If setup fails with "Not running inside tmux":

  • Inform user they need to start Claude Code inside tmux
  • Provide the commands: tmux new-session -s claude then claude

Alternative: Non-Interactive Mode

Only use when tmux is unavailable or user explicitly requests:

codex exec "your prompt" 2>/dev/null

Best Practices

  1. ALWAYS use tmux interactive mode by default
  2. Let user see both AIs working side-by-side
  3. Wait adequate time (30-60s) for complex Codex queries
  4. Present both perspectives without bias
  5. Acknowledge both AIs can be wrong - user makes final decision

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

이 스킬의 문제 신고