# Continuous agent loop

> Continuous agent loop is an open-source agent skill for developer tools. Guides an agent through autonomous loops that self-check, gate on evals and recover from. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/smartworldarafath/REA_Skill/tree/main/.agents/skills/continuous-agent-loop
- **Repository:** https://github.com/smartworldarafath/rea_skill
- **GitHub stars:** 66
- **License:** MIT
- **Skill name:** continuous-agent-loop
- **Collection:** https://github.com/smartworldarafath/REA_Skill
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill sets out patterns for running an agent in a continuous loop rather than a single pass. It describes a selection flow that picks between a strict CI and pull request loop, an RFC decomposition loop, an exploratory parallel loop, and a default sequential loop, so the agent can match the loop shape to the task.

The skill also lays out a combined production stack that chains RFC decomposition, quality gates, an eval loop and session persistence, with each stage named by the other skills and commands it relies on. It lists common failure modes such as churn without measurable progress, repeated retries on the same root cause, merge queue stalls and cost drift from unbounded escalation.

For recovery, it suggests freezing the loop, running a harness audit, narrowing scope to the failing unit and replaying with explicit acceptance criteria. The skill is written as guidance and includes no scripts; it expects the agent to have access to the companion skills it references.

## When your agent uses it

> Patterns for continuous autonomous agent loops with quality gates, evals, and recovery controls. Use when running an agent loop that must self-check, gate on evals, and recover from failures.

## What it can access

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

- [Instructions only, no scripts](https://github.com/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/continuous-agent-loop)
- [License: MIT](https://github.com/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/continuous-agent-loop)

## Features

- **Loop selection flow:** A decision path that chooses between sequential, CI-gated, RFC-driven and parallel exploratory loops.
- **Combined production stack:** A recommended chain of decomposition, quality gates, evals and session persistence.
- **Failure mode catalogue:** A list of common loop problems such as churn, repeated retries and merge queue stalls.
- **Recovery procedure:** Steps to freeze a loop, audit the harness, narrow scope and replay with clear criteria.

## Good for

- Set up an agent loop that gates each change on evals before continuing
- Pick the right loop style for a CI-driven pull request workflow
- Recover an autonomous run that is repeating the same failing fix
- Break a large RFC into units an agent can implement one by one

## Install

### Claude Code

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

```sh
/plugin marketplace add smartworldarafath/REA_Skill
/plugin install rea-skills@smartworldarafath
```

Or copy only this skill to `~/.claude/skills/continuous-agent-loop`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/continuous-agent-loop &&
cp -R "$tmp/.agents/skills/continuous-agent-loop" ~/.claude/skills/continuous-agent-loop &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/continuous-agent-loop` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/continuous-agent-loop` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/continuous-agent-loop &&
cp -R "$tmp/.agents/skills/continuous-agent-loop" ~/.agents/skills/continuous-agent-loop &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/continuous-agent-loop` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/continuous-agent-loop` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/continuous-agent-loop &&
cp -R "$tmp/.agents/skills/continuous-agent-loop" ~/.cursor/skills/continuous-agent-loop &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/continuous-agent-loop` 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/smartworldarafath/REA_Skill.git --path .agents/skills/continuous-agent-loop
```

Or copy the folder to `~/.gemini/skills/continuous-agent-loop` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/continuous-agent-loop &&
cp -R "$tmp/.agents/skills/continuous-agent-loop" ~/.copilot/skills/continuous-agent-loop &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/continuous-agent-loop` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git
```

Then copy `REA_Skill/.agents/skills/continuous-agent-loop` into your agent's skills folder as `continuous-agent-loop`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Continuous agent loop need any scripts or external tools installed?

The skill includes no scripts and does not set allowed tools. It refers to other skills and commands such as eval-harness, plankton-code-quality and harness-audit, which must be available separately.

### When does Continuous agent loop trigger?

It is meant for running an agent loop that must self-check, gate on evals and recover from failures, as stated in its description.

### Is this a replacement for the autonomous-loops skill?

The skill says it is the v1.8+ canonical name and supersedes autonomous-loops, which remains supported for one release for compatibility.

### How do I install Continuous agent loop in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/continuous-agent-loop to use it in all your projects, or to .claude/skills/continuous-agent-loop 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 Continuous agent loop 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 Continuous agent loop?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Continuous agent loop?

The closest alternatives to Continuous agent loop are Autonomous loops, Agent introspection debugging, Orchestration, Enterprise agent ops and Agent harness construction.

## 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.
- [Agent introspection debugging](https://ai-powered.com/skills/agent-introspection-debugging): Agent introspection debugging 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.
- [Enterprise agent ops](https://ai-powered.com/skills/enterprise-agent-ops): Enterprise agent ops is an open-source agent skill for developer tools.
- [Agent harness construction](https://ai-powered.com/skills/agent-harness-construction): Agent harness construction is an open-source agent skill for developer tools.
- [Agentic engineering](https://ai-powered.com/skills/agentic-engineering): Agentic engineering is an open-source agent skill for developer tools.
- [Ecc workflow](https://ai-powered.com/skills/ecc-workflow): Ecc workflow is an open-source agent skill for developer tools.
- [Dispatching parallel agents](https://ai-powered.com/skills/dispatching-parallel-agents): Dispatching parallel agents is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/continuous-agent-loop
