Self-Improving GPT-5.3-Codex Agent for Code Generation & Refinement
Build a self-improving agent using the OpenAI Agents SDK, leveraging GPT-5.3-Codex's advanced code generation and reasoning capabilities. Inspired by OpenAI's claim of a model instrumental in creating itself, this challenge focuses on an agent that can autonomously generate code solutions for a given problem, then critically evaluate, test, and iteratively refine its own code to improve correctness, efficiency, and adherence to specified coding standards. The system should manage longer-running tasks, potentially involving multiple stages of generation, testing, and debugging, with robust observability and evaluation.
What you are building
The core problem, expected build, and operating context for this challenge.
Build a self-improving agent using the OpenAI Agents SDK, leveraging GPT-5.3-Codex's advanced code generation and reasoning capabilities. Inspired by OpenAI's claim of a model instrumental in creating itself, this challenge focuses on an agent that can autonomously generate code solutions for a given problem, then critically evaluate, test, and iteratively refine its own code to improve correctness, efficiency, and adherence to specified coding standards. The system should manage longer-running tasks, potentially involving multiple stages of generation, testing, and debugging, with robust observability and evaluation.
Shared data for this challenge
Review public datasets and any private uploads tied to your build.
How submissions are scored
These dimensions define what the evaluator checks, how much each dimension matters, and which criteria separate a passable run from a strong one.
All Tests Pass
Verify that all provided unit tests pass with the final generated code.
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
Code Syntax Check
Ensure the final_code is syntactically valid Python.
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
Test Pass Rate
Percentage of unit tests that passed with the final code. • target: 1 • range: 0-1
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
Efficiency (Iterations)
Number of iterations taken to reach a working solution (lower is better). • target: 2 • range: 1-5
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
Code Quality Score
A static analysis score (e.g., using Pylint or Flake8) for the final code. • target: 8 • range: 0-10
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
What you should walk away with
Master the OpenAI Agents SDK for defining agent roles, tools, memory, and orchestrating complex, multi-turn interactions for code development.
Implement advanced prompt engineering for GPT-5.3-Codex to generate functional, robust, and idiomatic code for diverse programming problems.
Design an iterative self-improvement loop where the agent uses `DeepEval` to evaluate its generated code against unit tests and style guides, then uses that feedback to refine its own prompts or code.
Orchestrate the entire code generation, testing, and refinement pipeline using Dagster, ensuring each step (e.g., generate, test, debug, refine) is a managed operation.
Integrate Agent Protocol for standardized communication with an external 'Execution Environment' agent that runs generated code and returns test results.
Build a Gradio web interface for submitting coding challenges, displaying the agent's generated code, test outputs, and iterative refinements in real-time.
Develop strategies for managing persistent context and memory within the OpenAI Agents SDK to enable the agent to 'remember' previous attempts, errors, and successful patterns.
[ok] Wrote CHALLENGE.md
[ok] Wrote .versalist.json
[ok] Wrote eval/examples.json
Requires VERSALIST_API_KEY. Works with any MCP-aware editor.
DocsAI Research & Mentorship
Participation status
You haven't started this challenge yet
Operating window
Key dates and the organization behind this challenge.
Find another challenge
Jump to a random challenge when you want a fresh benchmark or a different problem space.