autoresearch-agent
What it does
This skill runs an automated experiment loop on one file, keeping changes that improve a metric and discarding the rest. It is for people who want measured gains instead of hand-tuning by guesswork.
When to use it
- βWhen you want to make a file faster, smaller or more accurate, measured by a number.
- βWhen you want to improve headlines, copy or prompts against a score.
- βWhen you want experiments to run for hours while you are away.
Skill link
https://github.com/alirezarezvani/claude-skills/blob/main/engineering/autoresearch-agent/skills/autoresearch-agent/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βMake our search API faster. Measure p50 latency after each change and keep only the changes that help.β
5 new skills a week. 1 minute to read.
How it works
You name a target file and a way to measure it. The agent then edits the file, runs the fixed evaluation, keeps improvements, resets failed changes in git and repeats. A git repository and an eval command are needed.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Autoresearch Agent
You sleep. The agent experiments. You wake up to results.
Autonomous experiment loop inspired by Karpathy's autoresearch. The agent edits one file, runs a fixed evaluation, keeps improvements, discards failures, and loops indefinitely.
Not one guess β fifty measured attempts, compounding.
Slash Commands
| Command | What it does |
|---|---|
/autoresearch-agent:setup |
Set up a new experiment interactively |
/ar-run |
Run a single experiment iteration |
/ar-loop |
Start autonomous loop with configurable interval (10m, 1h, daily, weekly, monthly) |
/ar-status |
Show dashboard and results |
/ar-resume |
Resume a paused experiment |
When This Skill Activates
Recognize these patterns from the user:
- "Make this faster / smaller / better"
- "Optimize [file] for [metric]"
- "Improve my [headlines / copy / prompts]"
- "Run experiments overnight"
- "I want to get [metric] from X to Y"
- Any request involving: optimize, benchmark, improve, experiment loop, autoresearch
If the user describes a target file + a way to measure success β this skill applies.
Setup
First Time β Create the Experiment
Run the setup script. The user decides where experiments live:
Project-level (inside repo, git-tracked, shareable with team):
python scripts/setup_experiment.py \
--domain engineering \
--name api-speed \
--target src/api/search.py \
--eval "pytest bench.py --tb=no -q" \
--metric p50_ms \
--direction lower \
--scope project
User-level (personal, in ~/.autoresearch/):
python scripts/setup_experiment.py \
--domain marketing \
--name medium-ctr \
--target content/titles.md \
--eval "python evaluate.py" \
--metric ctr_score \
--direction higher \
--evaluator llm_judge_content \
--scope user
The --scope flag determines where .autoresearch/ lives:
project(default) β.autoresearch/in the repo root. Experiment definitions are git-tracked. Results are gitignored.userβ~/.autoresearch/in the home directory. Everything is personal.
What Setup Creates
.autoresearch/
βββ config.yaml β Global settings
βββ .gitignore β Ignores results.tsv, *.log
βββ {domain}/{experiment-name}/
βββ program.md β Objectives, constraints, strategy
βββ config.cfg β Target, eval cmd, metric, direction
βββ results.tsv β Experiment log (gitignored)
βββ evaluate.py β Evaluation script (if --evaluator used)
results.tsv columns: commit | metric | status | description
commitβ short git hashmetricβ float value or "N/A" for crashesstatusβ keep | discard | crashdescriptionβ what changed or why it crashed
Domains
| Domain | Use Cases |
|---|---|
engineering |
Code speed, memory, bundle size, test pass rate, build time |
marketing |
Headlines, social copy, email subjects, ad copy, engagement |
content |
Article structure, SEO descriptions, readability, CTR |
prompts |
System prompts, chatbot tone, agent instructions |
custom |
Anything else with a measurable metric |
If program.md Already Exists
The user may have written their own program.md. If found in the experiment directory, read it. It overrides the template. Only ask for what's missing.
Agent Protocol
You are the loop. The scripts handle setup and evaluation β you handle the creative work.
Before Starting
- Read
.autoresearch/{domain}/{name}/config.cfgto get:targetβ the file you editevaluate_cmdβ the command that measures your changesmetricβ the metric name to look for in eval outputmetric_directionβ "lower" or "higher" is bettertime_budget_minutesβ max time per evaluation
- Read
program.mdfor strategy, constraints, and what you can/cannot change - Read
results.tsvfor experiment history (columns: commit, metric, status, description) - Checkout the experiment branch:
git checkout autoresearch/{domain}/{name}
Each Iteration
- Review results.tsv β what worked? What failed? What hasn't been tried?
- Decide ONE change to the target file. One variable per experiment.
- Edit the target file
- Commit:
git add {target} && git commit -m "experiment: {description}" - Evaluate: `python scripts/run_exp
FAQ
What do I need before starting?
A target file, an evaluation command that outputs a number and a git repository.
Does it change files other than the target?
It edits only the one target file set up for the experiment.
How does it record results?
Each run is logged so you can see which changes were kept and which were discarded.
Details
Original description by the author
Use when a file should be improved against a measurable metric (speed, bundle size, pass rate, prompt or headline score), before hand-tuning it. Loops edit, run_experiment.py, keep or git reset on a fixed evaluator; needs an eval command and a git repo.
Popularity
- GitHub stars
- 29k
- Ranking position
- #9540
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
agent-launcher-orchestrator
29kHelps your agent plan, build, test and schedule a Claude managed agent in your own account, step by step, starting from one clear goal.
grade-iterate
29kLets your agent grade a managed AI agent's work against a rubric and improve it in a fixed number of rounds, so it never loops forever.
interview
29kLets your agent interview you about an AI agent idea and turn your answers into a simple build plan before anything is launched.
run-without-you
29kHelps your agent set up a managed AI agent to run on a schedule or when an event happens, with the cron timing checked before launch.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.