codex

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

1|Updated Aug 6, 2026
One-click install
npx skills add https://github.com/agtktID/indagis-agent --skill codex-agtktid
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: codex
Source: https://github.com/agtktID/indagis-agent/tree/main/skills/autonomous-ai-agents/codex
Command: npx skills add https://github.com/agtktID/indagis-agent --skill codex-agtktid

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @openai/codex.

What problem does it solve? Running autonomous coding agents like OpenAI Codex from an AI assistant requires handling PTY sessions, git repository constraints, sandbox flags, and long-running background processes, which is error-prone without clear operational guidance. ## Core Features & Use Cases - One-Shot Task Execution: Run Codex with codex exec for single tasks like adding features or building small apps, including scratch work in temporary git repositories. - Background and Parallel Workflows: Launch long-running Codex sessions in the background, monitor them with process polling, and run parallel issue fixes using git worktrees. - PR Reviews and Batch Operations: Clone repositories to temp directories for safe PR reviews and review multiple pull requests in parallel with diff-based prompts. - Use Case: You need to fix two GitHub issues simultaneously. Create two git worktrees, launch a background Codex process in each with a fix prompt, monitor progress, then push branches and open PRs with gh. ## Quick Start Ask the agent to run Codex in your project to add a dark mode toggle to the settings page using a PTY terminal session.

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 in a PTY terminal session, for example codex exec 'Add dark mode toggle to settings'. The exec subcommand runs the task and exits cleanly when finished.

How to 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.

Does Codex CLI require a git repository to run?▼

Yes, Codex refuses to run outside a git repository. For scratch work, create a temporary directory and run git init before invoking Codex.

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'. In that context, use --sandbox danger-full-access and rely on process boundaries for safety.

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

Fetch all PR refs with git fetch, then launch separate background Codex processes with prompts like 'Review PR #86. git diff origin/main...origin/pr/86'. Post the results back with gh pr comment.