Delegate a task to Codex CLI via `codex exec`. Use for lightweight tasks (exploration, simple searches, file reads) that don't require heavy reasoning. Only available from Claude Code sessions.
التثبيت
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Delegate a task to Codex CLI via `codex exec`. Use for lightweight tasks (exploration, simple searches, file reads) that don't require heavy reasoning. Only available from Claude Code sessions.
Delegate a task to codex exec for non-interactive execution.
--sandbox workspace-write (short -s workspace-write) → grant write access to the workspace. codex exec is already non-interactive, so no approval prompts. (Replaces the removed --full-auto.)
-c "sandbox_workspace_write.network_access=true" → allow network access from within the workspace-write sandbox
-o .tmp/codex-output.txt → capture final agent message
-C <dir> → set working directory if different from current
Read .tmp/codex-output.txt for results.
Present results to user concisely.
Rules
NEVER pass destructive instructions (delete, force-push, reset) to codex exec.
NEVER use --dangerously-bypass-approvals-and-sandbox.
Always use --sandbox workspace-write -c "sandbox_workspace_write.network_access=true" for sandboxed execution.
Store output in .tmp/ — NEVER /tmp/.
If codex exec fails or times out, fall back to handling the task directly.