Skip to content
Skillpedia
Agents29k Β· #9540

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.md

Copy 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

Use this skill to help me: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/autoresearch-agent/skills/autoresearch-agent/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

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 hash
  • metric β€” float value or "N/A" for crashes
  • status β€” keep | discard | crash
  • description β€” 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

  1. Read .autoresearch/{domain}/{name}/config.cfg to get:
    • target β€” the file you edit
    • evaluate_cmd β€” the command that measures your changes
    • metric β€” the metric name to look for in eval output
    • metric_direction β€” "lower" or "higher" is better
    • time_budget_minutes β€” max time per evaluation
  2. Read program.md for strategy, constraints, and what you can/cannot change
  3. Read results.tsv for experiment history (columns: commit, metric, status, description)
  4. Checkout the experiment branch: git checkout autoresearch/{domain}/{name}

Each Iteration

  1. Review results.tsv β€” what worked? What failed? What hasn't been tried?
  2. Decide ONE change to the target file. One variable per experiment.
  3. Edit the target file
  4. Commit: git add {target} && git commit -m "experiment: {description}"
  5. 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.

repo: alirezarezvani/claude-skills

Popularity

GitHub stars
29k
Ranking position
#9540
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills