codex

Automate Codex CLI exec commands with model, reasoning, and sandbox flags.

Updated Jan 7, 2026
One-click install
npx skills add https://github.com/aimskr/aims-claude-toolkit --skill codex-aimskr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codex
Source: https://github.com/aimskr/aims-claude-toolkit/tree/main/skills/codex
Command: npx skills add https://github.com/aimskr/aims-claude-toolkit --skill codex-aimskr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Codex-based workflows require manual construction of codex exec commands, model selection, and session management. This skill automates those steps, enabling consistent and repeatable Codex runs.

Core Features & Use Cases

  • Automates model and reasoning effort selection for Codex tasks.
  • Builds codex exec commands with required options, session handling, and error suppression.
  • Guides users through interactive prompts and provides a resume workflow for ongoing sessions.

Quick Start

Ask the user which Codex model and reasoning effort to use, then run codex exec with the chosen options to start or resume a session.

Frequently Asked Questions about codex

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

FAQPage Schema
How do I automate codex exec commands for code analysis?

Automating codex exec commands involves constructing execution strings with specific flags for model selection, reasoning effort, and sandbox mode to run code analysis. This skill automatically builds and executes those commands while managing session state and suppressing error output.

Can I resume an ongoing Codex CLI session across different codebases?

Yes, resuming an ongoing Codex CLI session is supported using specific resume syntax within the codex exec command. This allows you to continue interactive workflows and apply automated edits across different codebases without losing previous context.

What is the best way to manage model selection and reasoning effort in Codex workflows?

Managing model selection and reasoning effort in Codex workflows is handled through interactive prompts that guide your configuration choices. The automation skill then applies these chosen parameters directly into the codex exec command for consistent and repeatable runs.

How does sandbox mode work when running automated edits with Codex?

Sandbox mode is applied as a command flag during codex exec execution to isolate automated edits and code analysis. This ensures the automated refactoring tasks run within a controlled environment while standard error output is suppressed.

Why does my codex exec command output show suppressed errors during automated execution?

Errors are suppressed during automated execution because the skill always appends the 2>/dev/null redirect to the codex exec command. This prevents error output from interrupting automated workflows and interactive session management.

Do I need to manually construct flags for sandbox and reasoning effort when using Codex CLI?

No, you do not need to manually construct flags for sandbox and reasoning effort when using this Codex CLI automation. The skill automatically builds the required command options based on your interactive prompts to ensure correct execution.