Run

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

作者 alirezarezvani19392f7a08264ed00486a251f5b2098321771f94无许可证27K 个星标收录于 2026年10月9日更新于 2026年10月9日仓库5周前更新

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.

仅含说明AI & Agents
AI 生成的概览

执行一次手动自动研究实验迭代:查看历史、做一处修改、提交、评估,并保留或丢弃结果。

功能
该技能执行自动化研究循环中的单次迭代。它会解析实验、加载配置、策略说明与结果历史,切换到实验分支,决定一处改动,编辑目标文件并提交,然后运行评估脚本。随后报告结果是保留、丢弃还是崩溃,并定期更新程序说明中的策略部分。
适用场景
当用户运行 /ar:run 或要求进行一次手动自动研究迭代时使用。它适合针对评估器反复迭代目标文件并跨多次运行跟踪结果的工作流程。
运行要求
需要 git 和 Python,以及已存在的 .autoresearch 实验目录,其中包含 config.cfg、program.md 和 results.tsv。它会引用 setup_experiment.py 和 run_experiment.py 脚本,但该技能本身不附带脚本,仅为说明文档。

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

来源与署名

来源:alirezarezvani/claude-skills位于engineering/autoresearch-agent/skills/run提交19392f7

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架