
Autonomous loops
Patterns for running Claude Code autonomously in loops, from simple pipelines
Autonomous loops is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 66
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Autonomous loops
This skill is a reference guide for designing autonomous Claude Code workflows that run without a human in the loop. It walks through a spectrum of loop architectures, starting with sequential chains of non-interactive claude -p calls, moving to a persistent session REPL, parallel sub-agent generation driven by a specification file, a continuous pull-request loop that waits on CI and merges, and an RFC-driven orchestration that splits a spec into a dependency graph with tiered quality stages and a merge queue.
The guide explains practical concerns such as keeping state between iterations with a shared notes file, capturing failure context instead of blindly retrying, adding a separate cleanup pass rather than negative instructions, and setting exit conditions through run limits, cost caps, time limits or completion signals. It includes example shell scripts, command templates and a decision matrix for picking a pattern.
The skill is marked as retained for compatibility only. Its frontmatter points readers to continuous-agent-loop for new loop guidance. It contains no bundled scripts; the examples are illustrative and depend on the Claude Code CLI and, for some patterns, GitHub CLI or external tools.
When your agent uses it
Patterns and architectures for autonomous Claude Code loops — from simple sequential pipelines to RFC-driven multi-agent DAG systems. Retained for compatibility only: when new autonomous loop guidance is needed, use continuous-agent-loop instead.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 2 files (25 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the rea-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add smartworldarafath/REA_Skill
/plugin install rea-skills@smartworldarafathOr copy only this skill to ~/.claude/skills/autonomous-loops:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/autonomous-loops &&
cp -R "$tmp/.agents/skills/autonomous-loops" ~/.claude/skills/autonomous-loops &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/autonomous-loops inside it instead.
Copy the skill folder to ~/.agents/skills/autonomous-loops to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/autonomous-loops &&
cp -R "$tmp/.agents/skills/autonomous-loops" ~/.agents/skills/autonomous-loops &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/autonomous-loops inside it instead.
Copy the skill folder to ~/.cursor/skills/autonomous-loops to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/autonomous-loops &&
cp -R "$tmp/.agents/skills/autonomous-loops" ~/.cursor/skills/autonomous-loops &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/autonomous-loops inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/smartworldarafath/REA_Skill.git --path .agents/skills/autonomous-loopsOr copy the folder to ~/.gemini/skills/autonomous-loops yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/autonomous-loops:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/autonomous-loops &&
cp -R "$tmp/.agents/skills/autonomous-loops" ~/.copilot/skills/autonomous-loops &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/autonomous-loops inside it instead.
Get the folder:
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.gitThen copy REA_Skill/.agents/skills/autonomous-loops into your agent's skills folder as autonomous-loops. Agents that support SKILL.md read one folder per skill.
What it does
- Loop architecture spectrum
- Compares simple sequential pipelines, interactive sessions, parallel generation and DAG orchestration so you can match a loop to the task.
- Sequential claude -p pipelines
- Shows how to chain non-interactive Claude Code calls in a shell script with fail-fast exit handling and model routing.
- Cross-iteration context notes
- Describes keeping a shared progress file between independent agent runs so each iteration picks up where the last stopped.
- De-sloppify cleanup pass
- Explains adding a separate review step that removes low-value tests and redundant checks after an implementation step.
- Continuous PR and CI loop
- Covers creating branches and pull requests, waiting for checks, retrying CI failures and merging, with cost and time limits.
- RFC-driven DAG orchestration
- Outlines decomposing a spec into work units, tiered quality pipelines per unit and a merge queue with conflict eviction.
Good for
- Set up a nightly script that implements a feature, cleans up, runs checks and commits
- Run repeated improvement iterations on a repo with a cost or time cap
- Split a written RFC into parallel work units and land them through a merge queue
- Generate many spec-driven variations in parallel with separate sub-agents
- Choose between a simple pipeline and a multi-agent workflow for a given project
Autonomous loops FAQ
Is Autonomous loops still the recommended one for new loop guidance?
No. The skill notes that it is retained for one release for compatibility, and new loop guidance should go to continuous-agent-loop.
Does Autonomous loops install scripts or tools for me?
No bundled scripts are included. The examples call the Claude Code CLI and some reference external tools such as continuous-claude, gh and jj, which must be installed separately.
Which clients does Autonomous loops work with?
The content is written for Claude Code, so it is tied to that client's CLI and workflows.
How do I install Autonomous loops in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/autonomous-loops to use it in all your projects, or to .claude/skills/autonomous-loops in one project. Or install the rea-skills plugin, which includes it: /plugin marketplace add smartworldarafath/REA_Skill, then /plugin install rea-skills@smartworldarafath.
Does Autonomous loops run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Autonomous loops?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Autonomous loops?
The closest alternatives to Autonomous loops are Continuous agent loop, Orchestration, Agentic os, Autonomous agent harness and Patterns.
Where this comes from
- Description: from the skill's own SKILL.md.
More from smartworldarafath/REA_Skill

Guides building and auditing UI to WCAG 2.2 AA across web, iOS and Android
- Open source
- 66 GitHub stars
- Developer tools

Diagnoses agent and LLM stacks for hidden failures and ranks the fixes by severity
- Open source
- 66 GitHub stars
- Developer tools

Compare coding agents head-to-head on your own tasks by pass rate, cost and time
- Open source
- 66 GitHub stars
- Developer tools

Guides an agent to design tool sets, observations and error recovery for better completion
- Open source
- 66 GitHub stars
- Developer tools

Gives an agent a structured capture-diagnose-recover loop for failing runs
- Open source
- 66 GitHub stars
- Developer tools

Lets an AI agent make x402 payments within per-task budgets and spending policies
- Open source
- 66 GitHub stars
- Finance and payments


