codex

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

1|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/kaminocorp/hermes-alpha-hunter --skill codex-kaminocorp
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: codex
Source: https://github.com/kaminocorp/hermes-alpha-hunter/tree/main/skills/autonomous-ai-agents/codex
Command: npx skills add https://github.com/kaminocorp/hermes-alpha-hunter --skill codex-kaminocorp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @openai/codex.

What problem does it solve? Delegating 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 running OpenAI Codex CLI on features, refactors, PR reviews, and batch issue fixes without trial and error. ## Core Features & Use Cases - One-Shot Task Execution: Run codex exec commands for features, refactors, and scratch prototypes with correct PTY and git repo setup. - Background & Parallel Workflows: Launch long-running Codex sessions in the background, monitor with process polling, and run parallel issue fixes using git worktrees. - PR Review Automation: Clone repos to temp directories, check out pull requests, and run codex review or batch diff-based reviews across multiple PRs. - Use Case: You have two open bug issues. Create two git worktrees, launch a Codex agent in each with --yolo exec, monitor both sessions, then push branches and open PRs automatically. ## Quick Start Ask the agent to run codex exec with your task description inside a git repository, using pty=true and background mode for long tasks.

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 followed by your prompt in quotes, run inside a git repository with pty=true in the terminal call. Codex executes 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, submit input if Codex asks questions, and 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 and 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 the sandbox and all approvals, 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 sessions for each PR diff. Post the resulting reviews back with gh pr comment.