ar-run – Agents & Automation skill for AI agents
Run a single experiment iteration. Edit the target file, evaluate, keep or discard. Use when the user runs /ar:ar-run or asks for one manual autoresearch iteration.
Install the ar-run skill with one command
Pick the tool you use, copy the command and paste it in your terminal. The skill lands in that tool's skills folder and is ready in your next session.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/ar-run-4dff6.tgz | tar xz -C ~/.claude/skills
Call it in Claude Code: /ar-run – then describe the task you want done.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/ar-run-4dff6.tgz | tar xz -C ~/.codex/skills
Call it in Codex: $ar-run – then describe the task you want done.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/ar-run-4dff6.tgz | tar xz -C ~/.hermes/skills
Call it in Hermes Agent: /ar-run – then describe the task you want done.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/ar-run-4dff6.tgz | tar xz -C ~/.deepcode/skills
Call it in DeepSeek: /ar-run – then describe the task you want done.
SKILL.md content
/ar:ar-run — Single Experiment Iteration
Run exactly ONE experiment iteration: review history, decide a change, edit, commit, evaluate.
Usage
/ar:ar-run engineering/api-speed # Run one iteration
/ar:ar-run # List experiments, let user pickWhat 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
# 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
git add {target}
git commit -m "experiment: {short description of what changed}"
python {skill_path}/scripts/run_experiment.py \
--experiment {domain}/{name} --singleStep 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.
Related skills
- ai-dev-jobs-mcp – Search indexed AI and ML jobs, inspect listings and employers, match roles, and view…
- ai-engineer – Build production-ready LLM applications, advanced RAG systems, and intelligent agents…
- changelog-automation – Automate changelog generation from commits, PRs, and releases following Keep a Changelog…
- ar-status – Show experiment dashboard with results, active loops, and progress. Use when the user…
- autoresearch-agent – Autonomous experiment loop that optimizes any file by a measurable metric. Inspired by…
- migrate-to-codex – Migrate supported instruction files, skills, agents, and MCP config into Codex project…
- ai-pipeline-orchestration – Orchestrate AI/ML pipelines for data ingestion, model training, batch inference, and RAG…
- ai-prompt-regression-testing – Use when comparing prompt changes against a fixed evaluation set: record actual model…