codex

Delegates coding tasks to the OpenAI Codex CLI for features, refactoring, and PR reviews.

1|Updated Jun 19, 2026
One-click install
npx skills add https://github.com/Lento47/arcana-community --skill codex-lento47
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: codex
Source: https://github.com/Lento47/arcana-community/tree/main/skills/autonomous-ai-agents/codex
Command: npx skills add https://github.com/Lento47/arcana-community --skill codex-lento47

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @openai/codex.

What problem does it solve? Delegating autonomous coding work to OpenAI's Codex CLI requires knowing its interactive terminal behavior, sandbox modes, and git repository constraints. This Skill provides the exact invocation patterns, flags, and monitoring workflows to run Codex reliably from an agent terminal. ## Core Features & Use Cases - One-Shot and Background Execution: Run codex exec for single tasks or launch long-running jobs in background mode and monitor them with process polling and logging. - PR Reviews and Batch Issue Fixing: Clone repositories to temp directories for safe reviews, and use git worktrees to fix multiple issues in parallel with separate Codex processes. - Sandbox and Gateway Handling: Choose between --full-auto, --yolo, and --sandbox danger-full-access modes, including workarounds for bubblewrap failures in gateway/service contexts. - Use Case: You need to fix issues #78 and #99 simultaneously. Create two git worktrees, launch a background Codex process in each with a targeted prompt, monitor progress, then push branches and open PRs with gh. ## Quick Start Ask the agent to run Codex in one-shot mode inside your git repository, for example by requesting it to execute codex exec with a prompt like adding a dark mode toggle to the settings page.

Frequently Asked Questions about codex

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run OpenAI Codex CLI for a one-shot coding task?▼

Use codex exec with your prompt inside a git repository, for example codex exec 'Add dark mode toggle to settings'. Always run it with a PTY-enabled terminal since Codex is an interactive app that hangs without one.

How do I run Codex CLI in the background for long tasks?▼

Launch codex exec with background=true and pty=true, which returns a session ID. Monitor progress with process poll and log actions, send input with submit if Codex asks a question, and kill the session if needed.

Why does Codex CLI fail with sandbox permission errors?▼

In gateway or service contexts, Codex's workspace-write sandbox can fail with bubblewrap user-namespace errors like 'setting up uid map: Permission denied'. Use codex exec --sandbox danger-full-access and rely on process boundaries, clean git state, and diff review for safety.

Can Codex CLI run outside a git repository?▼

No, Codex refuses to run outside a git repository. For scratch work, create a temporary directory and initialize git first with cd $(mktemp -d) && git init before invoking codex exec.

How do I review multiple pull requests with Codex in parallel?▼

Fetch all PR refs with git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*', then launch separate background codex exec processes for each PR diff. Post the resulting reviews with gh pr comment.