Codex Worker Skill — Delegation Criteria
When to Delegate to Codex
Delegate to the codex-worker agent when the task meets ANY of these conditions:
- •Large-scale refactoring: 10+ files need consistent changes
- •Boilerplate generation: Repetitive code across multiple files
- •Framework migration: Moving between frameworks or major versions
- •Multi-file implementation: 50+ lines across multiple files
- •Long context tasks: Context exceeds 150K+ tokens
When NOT to Delegate
Keep the task in Claude Code when:
- •Test design / TDD: Test strategy and design require orchestrator-level thinking
- •Architecture design: System design decisions need holistic understanding
- •Security review: Security-sensitive code needs careful review
- •Small changes: Less than 20 lines of simple modifications
- •Interactive debugging: Tasks requiring back-and-forth investigation
Usage
Single-Turn (simple implementation)
code
mcp__codex__codex( prompt: "Create utility module...", model: "gpt-5.3-codex", approval-policy: "never", # 必須: Claude Code が elicitation 未対応のため sandbox: "workspace-write" )
Multi-Turn (complex implementation)
- •Start with
mcp__codex__codexfor the initial task - •Use
mcp__codex__codex-replywith the threadId to continue the conversation - •Iterate until the implementation is complete
Division of Labor
| Role | Responsibility |
|---|---|
| Claude Code | Design, test, review, orchestration |
| Codex MCP | Implementation, refactoring, boilerplate |