codex

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

Updated Jul 7, 2026
One-click install
npx skills add https://github.com/jamsdoescode/Erik-s-Portfolio --skill codex-jamsdoescode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codex
Source: https://github.com/jamsdoescode/Erik-s-Portfolio/tree/main/openclicky/AppResources/OpenClicky/OpenClickyBundledSkills/codex
Command: npx skills add https://github.com/jamsdoescode/Erik-s-Portfolio --skill codex-jamsdoescode

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @openai/codex.

What problem does it solve? It removes the need to manually run and supervise the OpenAI Codex CLI by letting you launch, monitor, and manage autonomous coding tasks directly from OpenClicky terminal sessions. ## Core Features & Use Cases - One-Shot Task Execution: Run codex exec commands for features, refactors, and quick builds with automatic exit on completion. - Background Long-Running Tasks: Start Codex in background mode with PTY, then poll logs, submit answers, or kill sessions via the process tool. - PR Reviews and Parallel Issue Fixing: Clone repos into temp directories for safe reviews, and use git worktrees to fix multiple issues in parallel before pushing branches and opening PRs. - Use Case: You have two open bug reports. Create two git worktrees, launch a Codex process in each with --yolo, monitor both with the process tool, then push the branches and create pull requests with gh. ## Quick Start Ask the agent to run Codex in your project to add a dark mode toggle to the settings page, using a PTY terminal session inside your git repository.

Frequently Asked Questions about codex

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a one-shot coding task with Codex CLI?

Use `codex exec "your prompt"` inside a git repository with a PTY-enabled terminal. The command runs the task autonomously and exits when finished, making it suitable for single features or fixes.

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

Launch the command with background=true and pty=true, which returns a session ID. Monitor progress with the process tool's poll and log actions, submit input if Codex asks questions, or kill the session when needed.

Why does Codex CLI hang or fail to start in 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 initialize one with git init or use a temp directory for scratch work.

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

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 pull requests safely without touching my repo?

Yes. Clone the repository into a temporary directory, check out the PR with gh pr checkout, then run codex review against the base branch. This isolates the review from your working copy.

What authentication does the Codex CLI require?

Codex needs either an OPENAI_API_KEY environment variable or OAuth credentials from the Codex CLI login flow, typically stored under ~/.codex/auth.json. A missing API key alone does not mean authentication is absent.