ask_codex
Get software engineering reasoning from OpenAI's Codex: analyze code structure, flow, architecture, and design trade-offs. Provide snippets or file paths in context for read-only, single-turn answers.
Instructions
Ask OpenAI's model (GPT-5.6 Sol, via the local codex CLI in non-interactive codex exec mode) — on its own, independent of Fable — to reason about the SOFTWARE/ENGINEERING work you're doing: code structure, functionality, data/control flow, module and function relationships, routing, architecture, and design trade-offs. Broad and conceptual engineering questions (including brainstorming/ideas for future code) are fine — add a snippet or file path in context when the question is about existing code. Runs hermetically and read-only (it can't see or touch your repo — put the code it needs in context). Single-turn. Requires the codex CLI installed and logged in on the server (reported as binary_missing otherwise). Direct offensive-security asks (exploit development, attack tooling) and non-software domain knowledge (biology/medicine refused; neuroscience, cognitive science, AI/ML, and CS are in-scope) are refused. Use ask for Fable, ask_m3 for MiniMax, ask_gemini for Gemini, ask_glm for GLM, or ask_council to ask several and get a synthesized answer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | Optional code snippets, file paths, or structural context. | |
| question | Yes | A specific software/engineering question to ask Codex (GPT-5.6 Sol) on its own. | |
| context_ref | No | Key(s) of context saved with `context_write` to pull in and prepend to `context` — paste a big context ONCE, reference it by key here. Missing keys are reported, not fatal. |