using-codex-cli

Orchestrates OpenAI Codex CLI for autonomous code execution, reviews, and multi-agent workflows.

1|Updated Sep 3, 2026
One-click install
npx skills add https://github.com/amanpal3/SKILLs --skill using-codex-cli-amanpal3
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: using-codex-cli
Source: https://github.com/amanpal3/SKILLs/tree/main/.agent/skills/using-codex-cli
Command: npx skills add https://github.com/amanpal3/SKILLs --skill using-codex-cli-amanpal3

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Running OpenAI's Codex CLI effectively requires knowing the right commands, sandbox modes, and approval policies, and integrating it with other AI agents like Antigravity or Claude Code adds further configuration complexity. This Skill provides the operational knowledge to execute Codex CLI non-interactively, delegate sub-tasks, and share skills across agent ecosystems. ## Core Features & Use Cases - Non-Interactive Execution: Run autonomous coding tasks with codex exec using controlled sandbox modes (read-only, workspace-write, danger-full-access) and approval policies. - Automated Code Review: Trigger codex review for uncommitted changes and apply generated patches with codex apply. - Cross-Agent Integration: Configure shared skill directories between Antigravity (.agent/skills) and Codex (~/.codex/skills), plus CODEX.md project instructions. - Use Case: From an Antigravity orchestrator session, delegate a background verification pass by running codex exec -s workspace-write --approve-for-me "Run unit tests and fix failing assertions" against a target repository. ## Quick Start Ask the agent to run a Codex CLI task such as executing codex exec with workspace-write access to implement a feature following a specific skill.

Frequently Asked Questions about using-codex-cli

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

FAQPage Schema
How do I run Codex CLI non-interactively?▼

Use codex exec with a sandbox flag such as -s workspace-write and the --approve-for-me option to run prompts headlessly. You can also specify a model with -m and enable live web search with --search.

How to run automated code review with Codex CLI?▼

Run codex review in your repository to automatically review uncommitted changes or branches. If a prior Codex session produced a patch, apply it with codex apply.

Can Codex CLI share skills with Antigravity?▼

Yes, both use a compatible SKILL.md format. Codex CLI scans ~/.codex/skills, .codex/skills, .agents/skills, and .agent/skills directories, so syncing skills globally makes them available to both agents.

What sandbox modes does Codex CLI support?▼

Codex CLI supports three sandbox modes: read-only, workspace-write, and danger-full-access. Choose workspace-write for typical coding tasks that need to modify files in the current project.

How do I troubleshoot Codex CLI installation issues?▼

Check the installation with codex --version and run codex doctor for a diagnostic health check. You can also list configured MCP servers with codex mcp list and plugins with codex plugin list.