codex

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

Updated Jun 7, 2026
One-click install
npx skills add https://github.com/Chensihakniroth/ANAKOT-AGENT --skill codex-chensihakniroth
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: codex
Source: https://github.com/Chensihakniroth/ANAKOT-AGENT/tree/main/skills/autonomous-ai-agents/codex
Command: npx skills add https://github.com/Chensihakniroth/ANAKOT-AGENT --skill codex-chensihakniroth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @openai/codex.

What problem does it solve? Offloading coding work to an autonomous agent requires knowing the right CLI flags, terminal settings, and git workflows. This Skill provides ready-to-use patterns for delegating feature building, refactoring, PR reviews, and batch issue fixing to the OpenAI Codex CLI through the Anakot terminal. ## Core Features & Use Cases - One-Shot Task Execution: Run codex exec commands for single tasks like adding features or building small projects, with automatic git repo setup for scratch work. - Background Long-Running Tasks: Launch Codex with --full-auto in background mode and monitor progress via the process tool's poll, log, submit, and kill actions. - Parallel Workflows: Use git worktrees to fix multiple issues simultaneously and review batches of PRs in parallel, then push branches and create PRs with gh. - Use Case: You have two open bug issues. Create two git worktrees, launch a Codex process in each with --yolo exec, monitor both with process(action="list"), then push the fixes and open PRs automatically. ## Quick Start Ask the agent to run codex exec with a prompt like "Add dark mode toggle to settings" in your project directory using a PTY terminal.

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?▼

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 cleanly when done, and it must be executed inside a git repository with a PTY terminal.

How to run Codex CLI in background for long tasks?▼

Launch codex exec --full-auto 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, or kill the session if needed.

Why does Codex CLI hang or refuse to run in my terminal?▼

Codex hangs without a PTY because it is an interactive terminal app, so always set pty=true. It also refuses to run outside a git repository, so use mktemp -d && git init for scratch work.

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.

Can Codex CLI review multiple pull requests in parallel?▼

Yes, fetch all PR refs with git fetch, then launch separate background codex exec processes for each PR diff. Post the review results back to GitHub using gh pr comment for each pull request.