Run

alirezarezvani/claude-skills/engineering/autoresearch-agent/skills/run

by alirezarezvani19392f7a08264ed00486a251f5b2098321771f94No license27K starsListed Oct 9, 2026Updated Oct 9, 2026Repository updated 5 weeks ago

Run a single experiment iteration. Edit the target file, evaluate, keep or discard. Use when the user runs /ar:run or asks for one manual autoresearch iteration.

Instructions onlyAI & Agents
AI-generated overview

Runs one manual autoresearch experiment iteration: review history, make one change, commit, evaluate, keep or discard.

What it does
This skill executes a single iteration of an automated research loop. It resolves an experiment, loads its config, strategy notes and results history, checks out the experiment branch, decides on one change, edits the target file, commits it, and runs an evaluation script. It then reports whether the result was kept, discarded or crashed, and periodically updates the strategy section of the program notes.
When to use it
Use it when the user invokes /ar:run or asks for one manual autoresearch iteration. It fits workflows that iterate on a target file against an evaluator and track results over many runs.
Requirements
Requires git and Python, plus an existing .autoresearch experiment directory with config.cfg, program.md and results.tsv. It references scripts setup_experiment.py and run_experiment.py, but the skill itself ships no scripts and is instructions only.

/ar:run — Single Experiment Iteration

Run exactly ONE experiment iteration: review history, decide a change, edit, commit, evaluate.

Usage

/ar:run engineering/api-speed              # Run one iteration/ar:run                                     # List experiments, let user pick

What It Does

Step 1: Resolve experiment

If no experiment specified, run python {skill_path}/scripts/setup_experiment.py --list and ask the user to pick.

Step 2: Load context

bash
# Read experiment configcat .autoresearch/{domain}/{name}/config.cfg
# Read strategy and constraintscat .autoresearch/{domain}/{name}/program.md
# Read experiment historycat .autoresearch/{domain}/{name}/results.tsv
# Checkout the experiment branchgit checkout autoresearch/{domain}/{name}

Step 3: Decide what to try

Review results.tsv:

  • What changes were kept? What pattern do they share?
  • What was discarded? Avoid repeating those approaches.
  • What crashed? Understand why.
  • How many runs so far? (Escalate strategy accordingly)

Strategy escalation:

  • Runs 1-5: Low-hanging fruit (obvious improvements)
  • Runs 6-15: Systematic exploration (vary one parameter)
  • Runs 16-30: Structural changes (algorithm swaps)
  • Runs 30+: Radical experiments (completely different approaches)

Step 4: Make ONE change

Edit only the target file specified in config.cfg. Change one thing. Keep it simple.

Step 5: Commit and evaluate

bash
git add {target}git commit -m "experiment: {short description of what changed}"
python {skill_path}/scripts/run_experiment.py \  --experiment {domain}/{name} --single

Step 6: Report result

Read the script output. Tell the user:

  • KEEP: "Improvement! {metric}: {value} ({delta} from previous best)"
  • DISCARD: "No improvement. {metric}: {value} vs best {best}. Reverted."
  • CRASH: "Evaluation failed: {reason}. Reverted."

Step 7: Self-improvement check

After every 10th experiment (check results.tsv line count), update the Strategy section of program.md with patterns learned.

Rules

  • ONE change per iteration. Don't change 5 things at once.
  • NEVER modify the evaluator (evaluate.py). It's ground truth.
  • Simplicity wins. Equal performance with simpler code is an improvement.
  • No new dependencies.

Source and attribution

Source:alirezarezvani/claude-skillsinengineering/autoresearch-agent/skills/runat commit19392f7

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal