OpenAI Codex
Setup for Codex CLI
Connect AIWG to OpenAI Codex
Prompt-first procedure: Describe the outcome you want in your agent conversation. The agent should select and load the appropriate AIWG assets, explain material changes, request any needed approval, and report verification evidence. Exact commands and flags appear only in the CLI reference.
For the complete first-time journey, start with Install, Connect, and Verify.
Codex is the provider in this guide. Complete the safe Node.js setup first if needed.
From a terminal opened in the project’s main folder:
Use AIWG to complete this documented outcome: Connect AIWG to OpenAI Codex
Have it inspect the current state, explain the plan, ask before material
changes, and report the result with verification evidence.
Close and reopen Codex in that folder. In the Codex conversation, ask it to run the agent-owned context regeneration procedure, preview the project-tailored context, preserve your existing instructions, and apply the result. Then ask whether AIWG is active and request the project root, `AGENTS.md`/provider files, installed frameworks, and next action as evidence.
Success means Codex reports the intended project, follows the `AGENTS.md` bootstrap into `WORKSPACE.md` and `AIWG.md`, and can recommend one AIWG action. Agents can retrieve the Codex operational reference for advanced configuration.