Ask Codex
codex_askRequest an independent read-only review of your code changes from OpenAI Codex. Get a thread ID to ask follow-up questions.
Instructions
Get an independent opinion from a different model (OpenAI Codex), e.g. a read-only review of changes you made. Returns a thread_id; keep it if you may want to ask follow-ups.
Codex runs as an agent in cwd and can read files and run read-only commands there itself, so name the files, diff range or question precisely instead of pasting large content. A run can take several minutes. Default sandbox is read-only; only use workspace-write when you explicitly want Codex to edit files. Returns JSON: { thread_id, answer, duration_sec, warnings[], activity?, answer_file?, error? }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Absolute path of the project directory Codex should work in. | |
| fast | No | Fast mode (faster responses). Uses roughly 2.5x the ChatGPT subscription usage limits, so leave it off unless the user explicitly asked for fast mode. | |
| model | No | Codex model id. Omit to use the configured default. | |
| effort | No | Reasoning effort. Omit to use the configured default. Checked against the levels the model supports (an unsupported level returns an error listing the supported ones). | |
| prompt | Yes | What to ask Codex. Be specific (files, commits, what to look for). | |
| sandbox | No | read-only (default): Codex cannot modify files. workspace-write: Codex may edit files in cwd. | |
| timeout_sec | No | Kill Codex after this many seconds (default 900, max 3600). | |
| skip_git_check | No | Allow running in a directory that is not a git repository (default false). |