mcpField
A
ask-codex

ask-codex

github.com/hiroro-workAgent workflows4754 installsUpdated today
Repository

About ask-codex

A skill that runs the local `codex` CLI to answer coding questions or carry out coding tasks. It supports selecting a model and working directory, resuming the latest session, and optionally enabling automatic workspace edits.

Key features

  1. 01Run coding requests with `codex exec`
  2. 02Choose a model and working directory
  3. 03Resume the latest session
  4. 04Enable sandboxed automatic edits

Use cases

  1. 01Ask questions about code
  2. 02Analyze a project directory
  3. 03Request code changes
  4. 04Continue a previous coding session

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/hiroro-work/claude-plugins --skill ask-codex

After installing, type/ask-codexin Claude Code to confirm it loaded.

Bundled files.claude-plugin/plugin.json

Details

From the project README

Ask Codex

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.

Quick start

Run a single query with codex exec:

codex exec "Your question or task here"

Common options

OptionDescription
-m MODELSpecify model
-C DIRSet working directory
--full-autoEnable automatic execution with workspace-write sandbox

For all available options, run codex exec --help

Resume a session

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 -C and --full-auto are not accepted by exec resume — the resumed session inherits the original session's working directory. To adjust the sandbox on resume, use -c sandbox_mode="workspace-write"; -m MODEL remains available.

Examples

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"

Notes

  • Codex runs non-interactively with exec subcommand
  • By default, output goes to stdout and no files are modified without approval
  • Use --full-auto for automatic execution within sandbox constraints
  • The command inherits the current working directory unless -C is specified

Comments

Markdown supported