codex

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

Updated May 4, 2026
One-click install
npx skills add https://github.com/Junkfooooood/hermes-governance --skill codex-junkfooooood
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codex
Source: https://github.com/Junkfooooood/hermes-governance/tree/main/skills/autonomous-ai-agents/codex
Command: npx skills add https://github.com/Junkfooooood/hermes-governance --skill codex-junkfooooood

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @openai/codex.

What problem does it solve? Delegating 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 commands. ## Core Features & Use Cases - One-Shot Task Execution: Run codex exec commands for features, refactors, and scratch prototypes with proper PTY and git repo setup. - Background & Parallel Workflows: Launch long-running Codex sessions in the background, monitor them with process polling, and run parallel issue fixes using git worktrees. - PR Review Automation: Clone repositories to temp directories and run codex review against base branches, including batch reviews of multiple PRs. - Use Case: Assign two open GitHub issues to separate Codex agents running in parallel worktrees, then push the resulting branches and open pull requests automatically. ## Quick Start Ask the agent to run Codex on your repository, for example: use Codex to add a dark mode toggle to the settings page of my project.

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 with git init for scratch work.

What is the difference between codex --full-auto and --yolo flags?

The --full-auto flag runs sandboxed while auto-approving 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 review GitHub pull requests automatically?

Yes, clone the repository to a temp directory, check out the PR with gh pr checkout, then run codex review --base origin/main. You can also batch-review multiple PRs in parallel using fetched PR refs.