ar-loop
它能做什么
这项技能设置一个定时循环,让自动研究实验按计时器持续运行。适合希望实验在后台运行的人,例如通宵运行或每周运行。
适用场景
- ✓当你希望实验按计划在后台持续运行的时候。
- ✓当你想通宵运行优化、第二天早上查看结果时。
- ✓当你想停止一个已经在运行的定期实验的时候。
技能链接
https://github.com/alirezarezvani/claude-skills/blob/main/engineering/autoresearch-agent/skills/ar-loop/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请每小时运行一次 api-speed 实验,等我说停止时再停。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会确定实验,如果你没有给出间隔就询问间隔,然后创建一个带有相应计划的定期任务。你也可以通过指定实验名称来停止正在运行的循环。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
/ar-loop — Autonomous Experiment Loop
Start a recurring experiment loop that runs at a user-selected interval.
Usage
/ar-loop engineering/api-speed # Start loop (prompts for interval)
/ar-loop engineering/api-speed 10m # Every 10 minutes
/ar-loop engineering/api-speed 1h # Every hour
/ar-loop engineering/api-speed daily # Daily at ~9am
/ar-loop engineering/api-speed weekly # Weekly on Monday ~9am
/ar-loop engineering/api-speed monthly # Monthly on 1st ~9am
/ar-loop stop engineering/api-speed # Stop an active loop
What It Does
Step 1: Resolve experiment
If no experiment specified, list experiments and let user pick.
Step 2: Select interval
If interval not provided as argument, present options:
Select loop interval:
1. Every 10 minutes (rapid — stay and watch)
2. Every hour (background — check back later)
3. Daily at ~9am (overnight experiments)
4. Weekly on Monday (long-running experiments)
5. Monthly on 1st (slow experiments)
Map to cron expressions:
| Interval | Cron Expression | Shorthand |
|---|---|---|
| 10 minutes | */10 * * * * |
10m |
| 1 hour | 7 * * * * |
1h |
| Daily | 57 8 * * * |
daily |
| Weekly | 57 8 * * 1 |
weekly |
| Monthly | 57 8 1 * * |
monthly |
Step 3: Create the recurring job
Use CronCreate with this prompt (fill in the experiment details):
You are running autoresearch experiment "{domain}/{name}".
1. Read .autoresearch/{domain}/{name}/config.cfg for: target, evaluate_cmd, metric, metric_direction
2. Read .autoresearch/{domain}/{name}/program.md for strategy and constraints
3. Read .autoresearch/{domain}/{name}/results.tsv for experiment history
4. Run: git checkout autoresearch/{domain}/{name}
Then do exactly ONE iteration:
- Review results.tsv: what worked, what failed, what hasn't been tried
- Edit the target file with ONE change (strategy escalation based on run count)
- Commit: git add {target} && git commit -m "experiment: {description}"
- Evaluate: python {skill_path}/scripts/run_experiment.py --experiment {domain}/{name} --single
- Read the output (KEEP/DISCARD/CRASH)
Rules:
- ONE change per experiment
- NEVER modify the evaluator
- If 5 consecutive crashes in results.tsv, delete this cron job (CronDelete) and alert
- After every 10 experiments, update Strategy section of program.md
Current best metric: {read from results.tsv or "no baseline yet"}
Total experiments so far: {count from results.tsv}
Step 4: Store loop metadata
Write to .autoresearch/{domain}/{name}/loop.json:
{
"cron_id": "{id from CronCreate}",
"interval": "{user selection}",
"started": "{ISO timestamp}",
"experiment": "{domain}/{name}"
}
Step 5: Confirm to user
Loop started for {domain}/{name}
Interval: {interval description}
Cron ID: {id}
Auto-expires: 3 days (CronCreate limit)
To check progress: /ar-status
To stop the loop: /ar-loop stop {domain}/{name}
Note: Recurring jobs auto-expire after 3 days.
Run /ar-loop again to restart after expiry.
Stopping a Loop
When user runs /ar-loop stop {experiment}:
- Read
.autoresearch/{domain}/{name}/loop.jsonto get the cron ID - Call
CronDeletewith that ID - Delete
loop.json - Confirm: "Loop stopped for {experiment}. {n} experiments completed."
Important Limitations
- 3-day auto-expiry: CronCreate jobs expire after 3 days. For longer experiments, the user must re-run
/ar-loopto restart. Results persist — the new loop picks up where the old one left off. - One loop per experiment: Don't start multiple loops for the same experiment.
- Concurrent experiments: Multiple experiments can loop simultaneously ONLY if they're on different git branches (which they are by default — each experiment gets
autoresearch/{domain}/{name}).
常见问题
有哪些可用的间隔?
每 10 分钟、每小时、每天上午 9 点左右、每周一以及每月 1 日。
如果我不给间隔会怎样?
智能体会显示一个选项菜单,让你选择其中一个。
如何停止循环?
使用带有实验名称的停止选项。
详情
作者的原始描述
Use for /ar-loop, or to run an autoresearch experiment on a schedule (10 min to monthly) with CronCreate.
热度
- GitHub 星标
- 29k
- 排名
- #9536
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-launcher-orchestrator
29k帮你的智能体从一个清晰的目标出发,逐步规划、构建、测试并定时运行你自己账户中的 Claude 托管智能体。
grade-iterate
29k让你的智能体按评分标准为托管 AI 智能体的工作打分,并在固定的轮次内改进,因此它永远不会无限循环。
interview
29k让你的智能体就一个 AI 智能体的想法对你进行访谈,并在任何上线之前,把你的回答整理成一份简单的构建计划。
run-without-you
29k帮你的智能体设置托管 AI 智能体,使其按计划或在某个事件发生时运行,并在启动前检查定时设置。