TheGreenCedar/codex-autoresearch

A codex plugin for running optimization loops inside a codebase. It is useful when you have a measurable target and many possible changes to try: test runtime, build speed, bundle size, model loss, Lighthouse scores, memory use, query latency, or any other metric you can print from a script.

What it solves

Codex Autoresearch automates the process of improving local code through repeatable experiments. It eliminates the manual trial-and-error cycle of making small code changes and measuring their impact on specific performance or resource metrics, such as runtime, memory usage, or build speed.

How it works

Users provide a "contract" consisting of a workload (benchmark), correctness checks (tests), an edit boundary (scope), and a time/attempt budget. The tool then executes a loop: it establishes a baseline measurement, proposes and evaluates small changes, and logs the results. If a change improves the primary metric without breaking correctness checks, it is kept; otherwise, it is discarded. The process concludes with a reviewable patch and an evidence receipt showing the results of the experiments.

Who it’s for

Developers who need to optimize specific parts of their codebase for performance or resource efficiency and have a stable, measurable benchmark to test against.

Highlights

  • Contract-based execution: Requires explicit approval of goals, metrics, and boundaries before running.
  • Automated iteration: Handles the setup, measurement, and logging of multiple candidates automatically.
  • Evidence-based results: Provides a final patch backed by a detailed record of measurements and outcomes.
  • Integrated Dashboard: Offers a read-only visual readout of improvements, passes, and blockers.
  • Git integration: Manages state within the repository and can create commits for successful changes.

Related

  • Project
  • Project
  • Project
  • Project
  • Project