Codex Autoresearch
FreeCodex Autoresearch Skill — A self-directed iterative system for Codex that continuously cycles through: modify, verify, retain or discard, and repeat indefinitely. Inspired by Karpathy’s autoresearch concept.
About Codex Autoresearch
Codex Autoresearch is a self-directed iterative system for Codex (OpenAI's code generation model) that automates experimentation to achieve measurable goals. It continuously cycles through: modify, verify, retain or discard, and repeat indefinitely until a target metric is reached. The skill works with any outcome a command can measure, such as test failures, code coverage, type errors, warnings, latency, binary size, and security findings. Users specify a numeric target and a metric command. Codex inspects the repository, confirms the experiment, makes one focused change, verifies the impact, and either keeps the improvement or reverts failures. The process runs in foreground (current Codex task) or background (detached controller). Artifacts are stored in an 'autoresearch-results' directory with immutable configuration, append-only event log, and full logs. Inspired by Karpathy's autoresearch concept, this open-source tool (MIT license) integrates directly with Codex without requiring configuration changes or special prompt syntax.
Key Features
Pros & Cons
- Fully automated iterative improvement driven by user-defined metrics
- Integrates seamlessly with Codex without extra configuration
- Transparent audit trail with event logs and run artifacts
- Supports foreground interactive mode and background batch runs
- Open-source and free to use (MIT license)
- Works with any measurable outcome that a command can produce
- Requires a clean Git repository and a named branch for each run
- Limited to a single repository per experiment
- Depends on Codex (OpenAI's model) and the skill installer
- May not handle complex multi-variable changes (only one change per iteration)
- No built-in UI; results viewed via file artifacts