codex

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

14|5|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/MLT-OSS/hermes-agent-go --skill codex-mlt-oss
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codex
Source: https://github.com/MLT-OSS/hermes-agent-go/tree/main/skills/autonomous-ai-agents/codex
Command: npx skills add https://github.com/MLT-OSS/hermes-agent-go --skill codex-mlt-oss

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @openai/codex.

What problem does it solve? Delegating feature builds, refactors, and PR reviews to an autonomous coding agent requires knowing the correct Codex CLI invocation patterns, PTY requirements, and git repository constraints, which are easy to get wrong. ## Core Features & Use Cases - One-Shot Task Execution: Run codex exec commands for single tasks like adding features or building small projects, with automatic scratch-repo setup via mktemp and git init. - Background Long-Running Tasks: Launch Codex with --full-auto or --yolo in background mode and monitor progress using the process tool's poll, log, submit, and kill actions. - Parallel PR Reviews and Issue Fixing: Use git worktrees to run multiple Codex agents concurrently for batch issue fixes and batch PR reviews, then push branches and create PRs with gh. - Use Case: Assign two open GitHub issues to separate git worktrees, run Codex in --yolo mode on each in the background, then push the resulting branches and open pull requests automatically. ## Quick Start Ask the agent to run Codex on your repository, for example: use the codex skill 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 "your prompt"` inside a git repository with pty=true in the terminal call. The command runs the task and exits cleanly when finished, making it suitable for single delegated tasks.

How do I run Codex in the background for long tasks?

Launch Codex with background=true and pty=true, which returns a session_id. Monitor progress with the process tool's poll and log actions, send input with submit, and stop it with kill.

Why does Codex CLI hang or fail when run from a terminal?

Codex is an interactive terminal app and hangs without a PTY, 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?

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 review multiple pull requests in parallel?

Yes. Fetch all PR refs with git fetch, then launch separate background Codex processes running `codex exec 'Review PR #N. git diff origin/main...origin/pr/N'` for each PR, and post results with `gh pr comment`.