codex

Delegates coding tasks to the OpenAI Codex CLI via terminal commands.

Updated Sep 10, 2026
One-click install
npx skills add https://github.com/loteiron/ZeusAgent --skill codex-loteiron
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: codex
Source: https://github.com/loteiron/ZeusAgent/tree/main/skills/autonomous-ai-agents/codex
Command: npx skills add https://github.com/loteiron/ZeusAgent --skill codex-loteiron

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @openai/codex.

What problem does it solve? Offloading feature builds, refactors, and PR reviews to an autonomous coding agent requires knowing the right CLI flags, sandbox modes, and terminal settings. This Skill provides tested invocation patterns for running the OpenAI Codex CLI from ZeusAgent without hangs or sandbox failures. ## Core Features & Use Cases - One-Shot Execution: Run codex exec with PTY enabled for tasks that complete and exit cleanly. - Background Long Tasks: Launch Codex in background mode and monitor with process poll, log, submit, and kill actions. - Parallel Workflows: Use git worktrees to fix multiple issues or review multiple PRs concurrently. - Use Case: You need to fix issues #78 and #99 simultaneously. Create two git worktrees, launch a background Codex process in each with workspace-write sandboxing, monitor progress, then push branches and open PRs with gh. ## Quick Start Ask the agent to run codex exec with pty enabled inside your git repository to implement a small feature such as adding a dark mode toggle to settings.

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 one-shot coding tasks?▼

Run codex exec with your prompt inside a git repository, using pty=true in the terminal call. Codex is an interactive terminal app and hangs without a PTY. For scratch work, create a temp directory and run git init first.

How to run Codex CLI in 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 sandbox fail with permission denied errors?▼

The workspace-write sandbox can fail in gateway or service contexts with bubblewrap user-namespace errors like setting up uid map: Permission denied. Use --sandbox danger-full-access instead and rely on process boundaries, clean git status, and diff review for safety.

Does Codex CLI work outside a git repository?▼

No, Codex refuses to run outside a git repository. For scratch work, create a temporary directory with mktemp -d and run git init before invoking codex exec with your task prompt.

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

Fetch all PR refs with git fetch, then launch separate background codex exec processes for each PR diff. After reviews complete, post the results as comments using gh pr comment for each pull request number.