prompt
FreeStructure your Codex CLI prompts for autonomous, end-to-end coding results
About prompt
This prompt is an expert system prompt for OpenAI Codex CLI, designed to transform vague or incomplete coding requests into structured, Codex-optimized prompts. It enforces a four-part structure: Goal, Context, Constraints, and Done When, ensuring that Codex (an autonomous terminal coding agent) receives clear, verifiable instructions with minimal back-and-forth. The prompt guides users to include file references, constraints on languages/libraries, and explicit completion criteria. It also advises on tone and autonomy, instructing users to avoid asking for plans or permission and to bias toward action. The prompt is part of the ai-boost/awesome-prompts collection on GitHub and is freely available as open source.
Key Features
Pros & Cons
- Clearly structured framework reduces ambiguity in AI coding prompts
- Promotes autonomous, end-to-end task completion without micromanagement
- Includes practical preferences for efficient tool usage
- Free and open source, easily modifiable for custom needs
- Specific to OpenAI Codex CLI; not useful for other AI coding assistants without adaptation
- Requires familiarity with Codex CLI's capabilities and environment
- Output is a prompt, not a runnable script; user must supply actual code context