/ask-codex:ask-codexfrom ask-codex
Delegates coding tasks to the local Codex CLI for code generation, debugging, second opinions, and automated edits.
Ships in ask-codex. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Executes the local codex CLI to get coding assistance.
Note: This skill requires the codex CLI to be installed and available in your system's PATH.
Run a single query with codex exec:
codex exec "Your question or task here"
| Option | Description |
|---|---|
-m MODEL | Specify model |
-C DIR | Set working directory |
--full-auto | Enable automatic execution with workspace-write sandbox |
For all available options, run
codex exec --help
Use exec resume --last to continue the most recent session with a follow-up prompt:
codex exec resume --last "Your follow-up prompt"
Note:
exec-level flags such as-Cand--full-autoare not accepted byexec resume— the resumed session inherits the original session's working directory. To adjust the sandbox on resume, use-c sandbox_mode="workspace-write";-m MODELremains available.
Ask a coding question:
codex exec "How do I implement a binary search in Python?"
Analyze code in a specific directory:
codex exec -C /path/to/project "Explain the architecture of this codebase"
Use a specific model:
codex exec -m <model> "Write a function that validates email addresses"
Let Codex make changes automatically:
codex exec --full-auto "Add error handling to all API endpoints"
exec subcommand--full-auto for automatic execution within sandbox constraints-C is specifiedWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub hiroro-work/claude-plugins --plugin ask-codexOther plugins' skills for the same job