Loading...
Loading...
Hand off a task to Codex CLI for autonomous execution. Use when a task would benefit from a capable subagent to implement, fix, investigate, or review code. Codex has full codebase access and can make changes.
npx skill4agent add 0xbigboss/claude-code codex~/.claude/codex/${CLAUDE_SESSION_ID}/--model <model>gpt-5.2-codexgpt-5.2gpt-5-minio3--sandbox <mode>read-onlyworkspace-writedanger-full-accesspwd && git rev-parse --show-toplevel 2>/dev/null || echo "Not a git repo"
git branch --show-current 2>/dev/null && git status --short 2>/dev/null | head -20git diff --stat 2>/dev/null | tail -20
git log --oneline -5 --since="4 hours ago" 2>/dev/null<context>
Working directory: {cwd}
Repository: {repo_name}
Branch: {branch}
{git_status}
{recent_changes if medium/full}
{session_summary if full}
</context>
<task>
{task from arguments}
</task>
<constraints>
- Implement EXACTLY what is requested
- Read files before changing
- Run tests/linters to validate
- State interpretation if ambiguous
</constraints>
<output>
Summary (≤5 bullets):
- **What changed**: Files and changes
- **Where**: file:line references
- **Validation**: Tests/linters run
- **Risks**: Edge cases to watch
- **Next steps**: Follow-up or "None"
</output>mkdir -p ~/.claude/codex/${CLAUDE_SESSION_ID}
git rev-parse --show-toplevel 2>/dev/null && IN_GIT=true || IN_GIT=falsecodex exec --json \
-o ~/.claude/codex/${CLAUDE_SESSION_ID}/summary-{timestamp}.txt \
{--skip-git-repo-check if not in git} \
{--full-auto OR --sandbox <mode>} \
{-m <model> if requested} \
- <<'CODEX_PROMPT'
{prompt}
CODEX_PROMPT > ~/.claude/codex/${CLAUDE_SESSION_ID}/progress-{timestamp}.jsonl--skip-git-repo-check--full-auto--sandbox <mode>-m <model>run_in_background: truetask_idTaskOutput(task_id, block=true)cat ~/.claude/codex/${CLAUDE_SESSION_ID}/summary-*.txtTaskOutput(task_id, block=false)tail -n 3 ~/.claude/codex/${CLAUDE_SESSION_ID}/progress-*.jsonltail -fcat ~/.claude/codex/${CLAUDE_SESSION_ID}/summary-*.txt**Status:** {success/error/partial}
**Changed:** {files and changes}
**Validation:** {tests/linters}
**Risks:** {if any}
**Next:** {follow-up or "None"}# Simple fix
/codex fix the null pointer in utils/parser.ts line 42
# Feature work
/codex add rate limiting to the /api/submit endpoint
# Investigation (background)
/codex investigate why the CI build fails on arm64
# Model override
/codex --model o3 design a caching strategy
# Read-only
/codex --sandbox read-only review the auth implementation