Autonomous Experiment Loop
Starts an autonomous experiment loop that runs a single autoresearch iteration on a schedule (10 minutes to monthly) using cron jobs. It resolves the experiment, sets the interval, creates the recurring job, stores metadata, and confirms to the user, with support for stopping loops.
✨ What it does
- Resolves the experiment if not specified.
- Prompts for interval selection if not provided as argument.
- Creates a cron job with a detailed prompt for one experiment iteration.
- Stores loop metadata in loop.json.
- Supports stopping loops via CronDelete.
- Enforces one change per experiment and never modifies the evaluator.
🎯 When to use it
- When the user runs /ar:loop or asks to run an autoresearch experiment continuously on a schedule.
- When you want to automate iterative experimentation without manual intervention.
- When you need to run overnight or long-running experiments at a fixed interval.
- When you want to stop an active loop with /ar:loop stop.
🚀 How to use
Trigger: /ar:loop
Trigger with the slash command /ar:loop followed by the experiment path and optionally an interval shorthand (10m, 1h, daily, weekly, monthly). If no interval is given, you'll be prompted to choose. To stop, use /ar:loop stop . Example prompts:
/ar:loop engineering/api-speed
/ar:loop engineering/api-speed 1h
/ar:loop stop engineering/api-speed
📄 Output: A scheduled cron job that runs autonomous experiments, plus a loop.json metadata file and a confirmation message.
📦 Add this skill to Claude Code
# 1. Get the skills repo
git clone --depth 1 https://github.com/alirezarezvani/claude-skills /tmp/claude-skills
# 2. Copy this skill into your project (or ~/.claude/skills for all projects)
mkdir -p .claude/skills
cp -r /tmp/claude-skills/engineering/autoresearch-agent/skills/loop .claude/skills/loopSkill source: engineering/autoresearch-agent/skills/loop/SKILL.md
⚠️ Good to know
Cron jobs auto-expire after 3 days, so longer experiments require re-running /ar:loop; only one loop per experiment is allowed.
❓ FAQ
What happens if the cron job expires?
CronCreate jobs expire after 3 days; you must re-run /ar:loop to restart, and results persist so the new loop picks up where the old one left off.
Can I run multiple loops at the same time?
Yes, multiple experiments can loop simultaneously as long as they are on different git branches, which is the default.
How do I stop a loop?
Run /ar:loop stop <experiment>; the skill reads loop.json to get the cron ID, deletes the cron job, and removes loop.json.
🤖 Overview, features, install steps and FAQ were generated from the project's SKILL.md on Sep 4, 2026. Always check the original source before running commands.