codex

Delegate coding tasks to the OpenAI Codex CLI through terminal commands.

Updated May 13, 2026
One-click install
npx skills add https://github.com/superfhp/lumi-agent-body --skill codex-superfhp
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: codex
Source: https://github.com/superfhp/lumi-agent-body/tree/main/skills/autonomous-ai-agents/codex
Command: npx skills add https://github.com/superfhp/lumi-agent-body --skill codex-superfhp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @openai/codex.

What problem does it solve? Delegating feature development, refactoring, and PR reviews to an autonomous coding agent requires knowing the correct CLI flags, PTY handling, and git repository setup, which this Skill documents and operationalizes. ## Core Features & Use Cases - One-Shot Task Execution: Run codex exec commands for features, refactors, and scratch prototypes with automatic git repo initialization. - Background & Parallel Workflows: Launch long-running Codex sessions in the background, monitor them with process polling, and run parallel issue fixes using git worktrees. - PR Review Automation: Clone repositories to temp directories and run codex review against base branches, including batch reviews of multiple pull requests. - Use Case: Assign two open GitHub issues to separate Codex agents running in parallel worktrees, then push the resulting branches and open pull requests automatically. ## Quick Start Ask the agent to run Codex on your repository, for example: use Codex to add a dark mode toggle to the settings page of my project.

Frequently Asked Questions about codex

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

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

Use codex exec followed by your prompt in quotes, such as codex exec 'Add dark mode toggle to settings'. The command runs the task and exits when done, and it must be executed inside a git repository with pty=true in the terminal call.

How do I run Codex 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 refuse to run in my directory?▼

Codex refuses to run outside a git repository. Initialize one with git init, or for scratch work create a temp directory with mktemp -d, run git init inside it, and then execute Codex there.

What is the difference between Codex --full-auto and --yolo flags?▼

The --full-auto flag runs sandboxed but auto-approves file changes within the workspace. The --yolo flag removes both the sandbox and approvals entirely, making it the fastest but most dangerous option.

How do I review a GitHub pull request with Codex?▼

Clone the repository to a temp directory, check out the PR with gh pr checkout, then run codex review --base origin/main. For batch reviews, fetch all PR refs and run parallel codex exec commands diffing each PR against main.