Skip to content
Back to skills

Autoresearch Run

ASecurity

Runs exactly one autoresearch experiment iteration: review history, choose a change, edit the target file, commit, evaluate, then keep or discard. Use when the user runs /ar:run or wants a single manual step instead of an autonomous loop.

  • 14 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 28, 2026
ai-agentspythongobashgitapiperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 28, 2026

npx -y skills add mouadja02/skills --skill autoresearch-run --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Autoresearch Run?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Autoresearch Run
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mouadja02-autoresearch-run/badge)](https://www.skillsdirectory.com/skills/mouadja02-autoresearch-run)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "autoresearch-run"
description: >-
  Runs exactly one autoresearch experiment iteration: review history, choose a change, edit the target
  file, commit, evaluate, then keep or discard. Use when the user runs /ar:run or wants a single
  manual step instead of an autonomous loop.
command: /ar:run
license: MIT
source: "https://github.com/alirezarezvani/claude-skills"
attribution: "alirezarezvani/claude-skills by Alireza Rezvani"
---

> **Attribution:** Sourced from [alirezarezvani/claude-skills](https://github.com/alirezarezvani/claude-skills) by [Alireza Rezvani](https://github.com/alirezarezvani), licensed MIT. Modified for this collection.

# /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 config
cat .autoresearch/{domain}/{name}/config.cfg

# Read strategy and constraints
cat .autoresearch/{domain}/{name}/program.md

# Read experiment history
cat .autoresearch/{domain}/{name}/results.tsv

# Checkout the experiment branch
git 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 --expected-commit {commit_sha} --expected-parent {parent_sha}
```

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

For automatic rollback, pass `--expected-commit <full-commit-sha> --expected-parent <full-parent-sha>` for the experiment commit. The runner checks the experiment branch, exact parent, target-only change and clean tracked worktree before creating a revert commit. Without these checks rollback is left for manual review.

Files in this skill

  • LICENSE1 KB
  • SKILL.md3.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.