ar-loop
Skill này làm gì
Skill này thiết lập một vòng lặp định kỳ giữ cho thí nghiệm autoresearch chạy theo bộ hẹn giờ. Skill dành cho những ai muốn thí nghiệm chạy nền, ví dụ qua đêm hoặc hằng tuần.
Khi nào nên dùng
- ✓Khi bạn muốn một thí nghiệm tiếp tục chạy nền theo lịch.
- ✓Khi bạn muốn chạy tối ưu qua đêm và xem kết quả vào buổi sáng.
- ✓Khi bạn muốn dừng một thí nghiệm định kỳ đang chạy.
Liên kết skill
https://github.com/alirezarezvani/claude-skills/blob/main/engineering/autoresearch-agent/skills/ar-loop/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Chạy thí nghiệm api-speed mỗi giờ và dừng khi tôi nói.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent xác định thí nghiệm, hỏi khoảng thời gian nếu bạn chưa đưa, rồi tạo một công việc định kỳ với lịch tương ứng. Bạn cũng có thể dừng một vòng lặp đang chạy bằng cách nêu tên thí nghiệm.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
/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}).
Câu hỏi thường gặp
Có những khoảng thời gian nào?
Mỗi 10 phút, mỗi giờ, hằng ngày lúc 9 giờ sáng, hằng tuần vào thứ Hai và hằng tháng vào ngày 1.
Điều gì xảy ra nếu tôi không đưa khoảng thời gian?
Agent hiển thị một danh sách lựa chọn và yêu cầu bạn chọn một.
Làm sao để dừng vòng lặp?
Dùng tùy chọn dừng kèm tên thí nghiệm.
Chi tiết
Mô tả gốc của tác giả
Use for /ar-loop, or to run an autoresearch experiment on a schedule (10 min to monthly) with CronCreate.
Độ phổ biến
- Sao GitHub
- 29k
- Vị trí xếp hạng
- #9536
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-launcher-orchestrator
29kGiúp agent của bạn lên kế hoạch, xây dựng, kiểm thử và lên lịch một Claude managed agent trong tài khoản riêng, từng bước một, bắt đầu từ một mục tiêu rõ ràng.
grade-iterate
29kCho phép agent của bạn chấm kết quả một managed AI agent theo bảng tiêu chí và cải thiện qua số vòng cố định, nên không bao giờ lặp vô tận.
interview
29kCho phép agent của bạn phỏng vấn bạn về ý tưởng agent AI và biến câu trả lời thành một kế hoạch xây dựng đơn giản trước khi khởi chạy bất cứ điều gì.
run-without-you
29kGiúp agent của bạn thiết lập một managed AI agent chạy theo lịch hoặc khi có sự kiện xảy ra, với thời gian cron được kiểm tra trước khi khởi chạy.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.