Back to prompt library
Initial Agent Design for Code Generation
Linked challenge: Self-Improving GPT-5.3-Codex Agent for Code Generation & Refinement
Prompt source
planning1 lines1 sectionsNo variables0 checklist items
Outline the architecture of your self-improving code generation agent using the OpenAI Agents SDK. Define the primary agent's role (e.g., 'Code Master') and its interaction loop, which should include steps like: `Understand Problem -> Generate Code -> Execute Tests -> Analyze Feedback -> Refine Code`. Describe how GPT-5.3-Codex will be leveraged in each of these steps, especially for generating initial code and then for debugging based on test feedback. Provide a conceptual Python class or function structure for your agent using `openai.beta.assistants`.