codex-autoresearch

codex-autoresearch is a skill for Codex from leo-lilinxiao/codex-autoresearch. It costs 39 tokens per session (506 once invoked), scanned A, original, MIT.

A controlled experiment loop for a Git repository: change one hypothesis, measure a numeric result, and keep or undo the change.

In plain words
What is it for?
It helps inspect a repository, run repeated experiments, verify metrics, retain successful changes, revert unsuccessful ones, and track the run with its supplied scripts.
Why use it?
It helps reach a measurable target without losing track of which code change caused an improvement or failure.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit It helps inspect a repository, run repeated experiments, verify metrics, retain successful changes, revert unsuccessful ones, and track the run with its supplied scripts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/leo-lilinxiao/codex-autoresearch/codex-autoresearch
About the project

Codex Autoresearch is an autonomous experimentation system for Codex that repeatedly changes a repository, measures the result, and keeps or reverts each change. It is for optimizing measurable outcomes such as test failures, coverage, type errors, warnings, latency, binary size, or reproducible security findings. The catalogue entry provides the Codex skill that runs and manages these experiment loops.

leo-lilinxiao/codex-autoresearch · 3,040 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add leo-lilinxiao/codex-autoresearch --skill codex-autoresearch
Clone the repo
git clone --depth 1 https://github.com/leo-lilinxiao/codex-autoresearch

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for codex-autoresearch

README.md
[![agentmods](https://agentmods.dev/badge/skills/leo-lilinxiao/codex-autoresearch/codex-autoresearch/github.svg)](https://agentmods.dev/skills/leo-lilinxiao/codex-autoresearch/codex-autoresearch)
Your own site
<a href="https://agentmods.dev/skills/leo-lilinxiao/codex-autoresearch/codex-autoresearch"><img src="https://agentmods.dev/badge/skills/leo-lilinxiao/codex-autoresearch/codex-autoresearch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for codex-autoresearch

Your own site · 80×15
<a href="https://agentmods.dev/skills/leo-lilinxiao/codex-autoresearch/codex-autoresearch"><img src="https://agentmods.dev/badge/skills/leo-lilinxiao/codex-autoresearch/codex-autoresearch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 506 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.00506
Opus 5.5 $0.00016 $0.00202
Sonnet 5.5 $0.00008 $0.00101
Haiku 4.5 $0.00004 $0.00051

Measured 1mo ago against content hash eb8a3453edfd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codex-autoresearch scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/autoresearch_core.py, scripts/autoresearch_report.py, scripts/autoresearch.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

SKILL.md · 46 lines

How it starts

The opening of the file, as written. The whole thing — 46 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Codex Autoresearch

Improve a repository through repeated, reversible experiments:

hypothesize -> change -> measure -> learn -> keep or revert -> repeat

Codex chooses hypotheses and makes code changes. The control script owns measurement, commits, rollback, and the event history.

Respond To The Request

Resolve <control> to this skill's own scripts/autoresearch.py; do not assume it is installed in the target repository.

For a status or results request, run the corresponding command directly:

Request Command
Status python3 <control> status --repo <repo>
History python3 <control> history --repo <repo>
TSV export python3 <control> history --repo <repo> --format tsv
HTML report python3 <control> report --repo <repo>

Report the requested result without starting or resuming experiments. Return the generated path for an HTML report.

Before starting or resuming an experiment, read the applicable workflow unless it is already in context:

  • Workflow: starting, continuing, resuming, or changing an experiment.
  • Background: launching or controlling a detached run.

Experiment Boundary

  • One run owns one Git repository, one numeric metric, one confirmed target, and approved path scopes.
  • For a new foreground run, initialize successfully before creating its Goal; the Goal identifies the returned run id. If initialization reports complete, no Goal is needed.
  • Use finish to finalize each coherent experiment. Do not manually commit, revert, or edit run artifacts during an active run.
  • Only a verified target can mean complete; an iteration limit, error, or external blocker has its own status.
  • Validate state through the control script on entry or resume. Use recorded experiments rather than guessing from conversation.
  • Surface command and state errors with their diagnostic paths. Never bypass validation, fabricate metrics, or reconstruct missing events.

Read the full file on GitHub · 46 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -86 lines · -41 tokens per session eb8a3453edfd
  2. 1mo ago First seen · 132 lines · 80 tokens per session scan A 9bf0d6936d50

Subscribe to this mod's changes

codex-autoresearch is a skill published in the GitHub repository leo-lilinxiao/codex-autoresearch (3,040 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 506 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.