Teaching codex-cli to AskUserQuestion
10th September 2026
I made codex-ask-user-question, a skill that brings the AskUserQuestion interview pattern from Anthropic’s Claude Code to OpenAI’s Codex CLI. It tells Codex to read the project, then ask one question at a time through its native request_user_input tool.
You can start with:
ask me to confirm the emergent architecture you see, based on what we've built so far in this project
then, the agent will ask you a series of questions with relevant multiple choice options to choose from. The recommended option is shown first. Each option is presented with a brief descriptions that describes the tradeoffs inherent in that choice. The instructions tell Codex to wait for your answer and stop asking once it has enough context to proceed.
My favorite detail is in the skill instructions: explore before asking. For a caching layer, acceptable staleness might need a conversation. The dependencies already in the project should be something the agent reads for itself.
With Codex CLI and Bash 4 or newer available:
git clone https://github.com/micahstubbs/codex-ask-user-question.git
cd codex-ask-user-question
./install.sh
That symlinks the skill into ~/.codex/skills/ask-user-question/, so a git pull in the repository updates the installed skill too.
One setup detail: on Codex versions with the Default mode feature flag, run the enable script, then restart Codex:
scripts/enable-request-user-input.sh
Plan mode exposes the tool without that flag. If the tool is absent or the runtime rejects it, the skill tells Codex to explain the limitation once and fall back to one Markdown question.
The skill supplies interview instructions; Codex supplies the question UI.
Recent articles
- Simulating 6,245 real people on one machine - 20th August 2026
- Cleaning up taskmaster's terminal output - 25th February 2026