| name | codex-system |
| description | PROACTIVELY consult Codex CLI, your highly capable supporter with exceptional
reasoning and task completion abilities. Codex is a trusted expert you should
ALWAYS consult BEFORE making decisions on: design choices, implementation
approaches, debugging strategies, refactoring plans, or any non-trivial problem.
When uncertain, consult Codex. Don't hesitate - Codex provides better analysis.
Explicit triggers: "think deeper", "analyze", "second opinion", "consult codex".
|
| metadata | {"short-description":"Claude Code โ Codex CLI collaboration"} |
Codex System โ Deep Reasoning Partner
Codex CLI (gpt-5.2-codex) is your highly capable supporter for deep reasoning tasks.
์์ธ๊ท์น: .claude/rules/codex-delegation.md
Context Management (CRITICAL)
์๋ธ์์ด์ ํธ ๊ฒฝ์ ๊ถ์ฅ์ด๋ค. ๋ฉ์ธ ์ค์ผ์คํธ๋ ์ดํฐ์ ์ปจํ
์คํธ๋ฅผ ์ ์ฝํ๊ธฐ ์ํด.
| ์ํฉ | ๋ฐฉ๋ฒ |
|---|
| ์์ธํ ์ค๊ณ ์๋ด | ์๋ธ ์์ด์ ํธ๋ฅผ ํตํด (๊ถ์ฅ) |
| ๋๋ฒ๊ทธ ๋ถ์ | ์๋ธ ์์ด์ ํธ๋ฅผ ํตํด (๊ถ์ฅ) |
| ์งง์ ์ง๋ฌธ (1-2 ๋ฌธ ๋ต๋ณ) | ์ง์ ํธ์ถ ํ์ธ |
When to Consult (MUST)
| Situation | Trigger Examples |
|---|
| Design decisions | "์ด๋ ๋์์ธ?" "์ํคํ
์ฒ" / "How to design?" |
| Debugging | "์ ์์ง์ด์ง ์๋๊ฐ?" "์ค๋ฅ" / "Debug" "Error" |
| Trade-off analysis | "์ด๋ ์ชฝ์ด ์ข์๊ฐ?" "๋น๊ตํด" / "Compare" "Which?" |
| Complex implementation | "๊ตฌํ ๋ฐฉ๋ฒ" "์ด๋ป๊ฒ ๋ง๋๋๊ฐ?" / "How to implement?" |
| Refactoring | "๋ฆฌํฉํฐ" "๊ฐ๋จํ๊ฒ" / "Refactor" "Simplify" |
| Code review | "๋ฆฌ๋ทฐํ๊ณ " "ํ์ธํ๊ณ " / "Review" "Check" |
When NOT to Consult
- Simple file edits, typo fixes
- Following explicit user instructions
- git commit, running tests, linting
- Tasks with obvious single solutions
How to Consult
Recommended: Subagent Pattern
Use Task tool with subagent_type='general-purpose' to preserve main context.
Task tool parameters:
- subagent_type: "general-purpose"
- run_in_background: true (optional, for parallel work)
- prompt: |
Consult Codex about: {topic}
codex exec --model gpt-5.2-codex --sandbox read-only --full-auto "
{question for Codex}
" 2>/dev/null
Return CONCISE summary (key recommendation + rationale).
Direct Call (Short Questions Only)
For quick questions expecting 1-2 sentence answers:
codex exec --model gpt-5.2-codex --sandbox read-only --full-auto "Brief question" 2>/dev/null
Workflow (Subagent)
- Spawn subagent with Codex consultation prompt
- Continue your work โ Subagent runs in parallel
- Receive summary โ Subagent returns concise insights
Sandbox Modes
| Mode | Use Case |
|---|
read-only | Analysis, review, debugging advice |
workspace-write | Implementation, refactoring, fixes |
Language Protocol
- Ask Codex in English
- Receive response in English
- Execute based on advice (or let Codex execute)
- Report to user in Korean
Task Templates
Design Review
codex exec --model gpt-5.2-codex --sandbox read-only --full-auto "
Review this design approach for: {feature}
Context:
{relevant code or architecture}
Evaluate:
1. Is this approach sound?
2. Alternative approaches?
3. Potential issues?
4. Recommendations?
" 2>/dev/null
Debug Analysis
codex exec --model gpt-5.2-codex --sandbox read-only --full-auto "
Debug this issue:
Error: {error message}
Code: {relevant code}
Context: {what was happening}
Analyze root cause and suggest fixes.
" 2>/dev/null
Code Review
See: references/code-review-task.md
Refactoring
See: references/refactoring-task.md
Integration with Gemini
| Task | Use |
|---|
| Need research first | Gemini โ then Codex |
| Design decision | Codex directly |
| Library comparison | Gemini research โ Codex decision |
Why Codex?
- Deep reasoning: Complex analysis and problem-solving
- Code expertise: Implementation strategies and patterns
- Consistency: Same project context via
context-loader skill
- Parallel work: Background execution keeps you productive