codex

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

Updated May 29, 2026
One-click install
npx skills add https://github.com/Reimonsk8/hermes-9router-model-balancing --skill codex-reimonsk8
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: codex
Source: https://github.com/Reimonsk8/hermes-9router-model-balancing/tree/main/scripts/skills/autonomous-ai-agents/codex
Command: npx skills add https://github.com/Reimonsk8/hermes-9router-model-balancing --skill codex-reimonsk8

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Offloading feature development, refactoring, and PR reviews to an autonomous coding agent requires knowing the correct CLI invocation patterns, PTY requirements, and git repository constraints, which this Skill codifies into ready-to-use terminal workflows. ## Core Features & Use Cases - One-Shot Task Execution: Run codex exec commands for single tasks like adding features or building prototypes, with automatic handling of git repository requirements. - Background Long-Running Tasks: Launch Codex in background mode with PTY support and monitor progress via process polling, logging, and interactive input. - Parallel Workflows: Use git worktrees to fix multiple issues or review multiple PRs concurrently with separate Codex processes. - Use Case: You need to fix issues #78 and #99 in parallel. Create two git worktrees, launch a Codex process in each with --yolo exec, monitor both with the process tool, then push branches and open PRs with gh. ## Quick Start Ask the agent to run codex exec with your task description inside your project directory, for example to add 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 "your task description"` inside a git repository with pty=true in the terminal call. The command runs the task and exits cleanly when finished, making it ideal for single features or fixes.

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

Launch 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 questions, and kill the session if needed.

Why does Codex CLI fail outside a git repository?▼

Codex refuses to run outside a git repository by design. For scratch work, create a temporary directory with `mktemp -d`, run `git init` inside it, then execute your Codex command 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.

Can I run multiple Codex CLI processes in parallel?▼

Yes, create separate git worktrees for each task and launch a Codex process in each one. Monitor all sessions with the process list action, then push branches and create PRs after completion.

Why does Codex CLI hang when run from an automated terminal?▼

Codex is an interactive terminal application and hangs without a pseudo-terminal. Always set pty=true in terminal calls so Codex receives a proper TTY session for its interactive interface.