codex

Delegate coding tasks to the OpenAI Codex CLI from Hermes terminal sessions.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @openai/codex.

What problem does it solve? Offloading feature builds, refactors, and PR reviews to an autonomous coding agent requires knowing the right CLI flags, sandbox modes, and terminal settings, and mistakes like missing PTY or running outside a git repo cause silent failures. ## Core Features & Use Cases - One-Shot Task Execution: Run codex exec with prompts for features, refactors, and scratch prototypes, including git-repo bootstrapping for temporary work. - Background and 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 into temp directories, check out pull requests, and run codex review or batch diff-based reviews across multiple PRs. - Use Case: Assign two open GitHub issues to separate git worktrees, run Codex in each with --sandbox workspace-write, then push branches and open PRs with gh once the agents finish. ## Quick Start Ask the agent to run Codex in one-shot mode on your repository, for example by requesting it to execute a task like adding a dark mode toggle to the settings page inside your project directory.

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 a PTY-enabled terminal. The command runs the task autonomously and exits when finished, making it suitable for scripted delegation.

How to run Codex CLI in the background for long tasks?▼

Launch Codex with background execution enabled and a PTY, 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 CLI fail with sandbox permission errors?▼

When invoked from a gateway or service context, bubblewrap user-namespace setup can fail with errors like "setting up uid map: Permission denied". Use `--sandbox danger-full-access` in that context and rely on process boundaries, clean git state, and diff review for safety.

Can Codex CLI run outside a git repository?▼

No, Codex refuses to run outside a git repository. For scratch work, create a temporary directory and run `git init` before invoking Codex, then build your prototype there.

How do I review multiple pull requests with Codex in parallel?▼

Fetch all PR refs with `git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*'`, then launch separate background Codex sessions that diff each PR against main. Post the resulting reviews with `gh pr comment`.