codex

Delegate coding tasks to OpenAI Codex CLI through terminal sessions.

5|2|Updated May 26, 2026
One-click install
npx skills add https://github.com/perasyudha/Nyxora --skill codex-perasyudha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codex
Source: https://github.com/perasyudha/Nyxora/tree/main/packages/core/playbooks/autonomous-ai-agents/codex
Command: npx skills add https://github.com/perasyudha/Nyxora --skill codex-perasyudha

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @openai/codex.

What problem does it solve? It removes the need to manually write, refactor, and review code by delegating those tasks to OpenAI's Codex autonomous coding agent from within the Nyxora terminal. ## Core Features & Use Cases - One-Shot Task Execution: Run single coding prompts with codex exec that complete and exit cleanly. - Background Long-Running Tasks: Launch refactors or feature builds in the background and monitor progress with process polling and logging. - Parallel Workflows: Use git worktrees to fix multiple issues or review multiple PRs concurrently. - Use Case: You have two open bug issues. Create two git worktrees, launch a Codex process in each with the issue description, monitor both, then push branches and open pull requests automatically. ## Quick Start Ask the agent to run Codex in your project directory 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 a one-shot coding task with Codex CLI?

Use codex exec followed by your prompt in quotes, run inside a git repository with a PTY-enabled terminal. The command executes the task and exits when finished, for example codex exec 'Add dark mode toggle to settings'.

How do I run Codex 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, send input with submit if Codex asks a question, and kill the session if needed.

Why does Codex fail with sandbox permission errors?

When invoked from a gateway or service context, Codex workspace-write sandboxing can fail with bubblewrap user-namespace errors like 'setting up uid map: Permission denied'. Use codex exec --sandbox danger-full-access and rely on process boundaries and git review for safety.

Does Codex work outside a git repository?

No, Codex refuses to run outside a git repository. For scratch work, create a temporary directory and initialize git first with mktemp -d followed by git init before running Codex.

How do I fix multiple issues in parallel with Codex?

Create separate git worktrees for each issue, then launch a Codex process in each worktree with background mode. After completion, push each branch, create pull requests with gh, and remove the worktrees.