# Autonomous loops

> Autonomous loops is an open-source agent skill for developer tools. Patterns for running Claude Code in autonomous loops, from simple pipelines to multi-agent. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/AbdullayevTemurmalik/ECC/tree/master/.kiro/skills/autonomous-loops
- **Repository:** https://github.com/abdullayevtemurmalik/ecc
- **GitHub stars:** 7
- **License:** MIT
- **Skill name:** autonomous-loops
- **Collection:** https://github.com/AbdullayevTemurmalik/ECC
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill is a reference guide for designing autonomous Claude Code workflows that run without a person in the loop. It compares loop architectures ranging from sequential shell pipelines of non-interactive claude -p calls to continuous PR loops and RFC-driven multi-agent orchestration, and explains when each fits a given problem.

The guide walks through concrete examples: chaining focused prompts in a script, passing state between iterations through a shared notes file, adding a separate cleanup pass after implementation, and gating runs with limits on iterations, cost, or duration. It also covers separating implementer and reviewer into different agent contexts, routing tasks to different models, and restricting tools per step.

The skill is mostly conceptual and includes shell snippets and a few configuration examples. It assumes the Claude Code CLI and, for some patterns, the gh GitHub CLI and git worktrees. It notes that it is retained for compatibility and that newer loop guidance lives in a continuous-agent-loop skill.

## When your agent uses it

> Patterns and architectures for autonomous Claude Code loops — from simple sequential pipelines to RFC-driven multi-agent DAG systems.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/AbdullayevTemurmalik/ECC/tree/HEAD/.kiro/skills/autonomous-loops)
- [License: MIT](https://github.com/AbdullayevTemurmalik/ECC/tree/HEAD/.kiro/skills/autonomous-loops)

## Features

- **Loop architecture comparison:** A ranked table of loop patterns by complexity and the kind of work each one suits.
- **Sequential claude -p pipelines:** Example scripts that chain isolated non-interactive steps for implement, verify and commit.
- **Cross-iteration context notes:** A shared progress file that carries state between independent agent runs.
- **De-sloppify cleanup pass:** A separate review step that removes low-value tests and checks after implementation.
- **Run limits and exit conditions:** Guidance on capping loops by runs, spend, time or a completion signal.
- **DAG-based parallel orchestration:** An RFC-to-work-units model with tiered pipelines and a merge queue with eviction.

## Good for

- Set up a nightly script that implements, tests and commits a feature in steps
- Choose between a simple pipeline and a multi-agent workflow for a large spec
- Add a cleanup pass that trims redundant tests after an agent writes code
- Keep a progress file so repeated Claude runs pick up where the last one stopped
- Cap an unattended coding loop by number of runs, cost or duration

## Install

### Claude Code

This skill ships in the `ecc` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add AbdullayevTemurmalik/ECC
/plugin install ecc@ecc
```

Or copy only this skill to `~/.claude/skills/autonomous-loops`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/AbdullayevTemurmalik/ECC.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/autonomous-loops &&
cp -R "$tmp/.kiro/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.

### Codex

Copy the skill folder to `~/.agents/skills/autonomous-loops` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/AbdullayevTemurmalik/ECC.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/autonomous-loops &&
cp -R "$tmp/.kiro/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.

### Cursor

Copy the skill folder to `~/.cursor/skills/autonomous-loops` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/AbdullayevTemurmalik/ECC.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/autonomous-loops &&
cp -R "$tmp/.kiro/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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/AbdullayevTemurmalik/ECC.git --path .kiro/skills/autonomous-loops
```

Or copy the folder to `~/.gemini/skills/autonomous-loops` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/autonomous-loops`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/AbdullayevTemurmalik/ECC.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/autonomous-loops &&
cp -R "$tmp/.kiro/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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/AbdullayevTemurmalik/ECC.git
```

Then copy `ECC/.kiro/skills/autonomous-loops` into your agent's skills folder as `autonomous-loops`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does the skill install anything or run scripts?

No. It contains no scripts. It is a set of patterns and example commands that show how to drive the Claude Code CLI.

### Is Autonomous loops still the recommended one for loop guidance?

The skill notes that it is kept for one release for compatibility, and that new loop guidance is being written under the continuous-agent-loop name.

### Which tools does Autonomous loops assume?

The examples use the claude CLI with -p, --model and --allowedTools flags, and for some patterns the gh GitHub CLI and git worktrees.

### 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 ecc plugin, which includes it: /plugin marketplace add AbdullayevTemurmalik/ECC, then /plugin install ecc@ecc.

### 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 Autonomous loops, Continuous agent loop, Orchestration, Loop controller and Overnight loop.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Autonomous loops](https://ai-powered.com/skills/autonomous-loops): Autonomous loops is an open-source agent skill for developer tools.
- [Continuous agent loop](https://ai-powered.com/skills/continuous-agent-loop): Continuous agent loop is an open-source agent skill for developer tools.
- [Orchestration](https://ai-powered.com/skills/orchestration-xiaolai): Orchestration is an open-source agent skill for developer tools.
- [Loop controller](https://ai-powered.com/skills/loop-controller): Loop controller is an open-source agent skill for developer tools.
- [Overnight loop](https://ai-powered.com/skills/overnight-loop): Overnight loop is an open-source agent skill for developer tools.
- [Agentic os](https://ai-powered.com/skills/agentic-os-smartworldarafath): Agentic os is an open-source agent skill for developer tools.
- [Claude teams behavior](https://ai-powered.com/skills/claude-teams-behavior): Claude teams behavior is an open-source agent skill for developer tools.
- [Patterns](https://ai-powered.com/skills/patterns-xiaolai): Patterns is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/autonomous-loops-abdullayevtemurmalik
