Skip to content
Skillpedia
Agents280k · #161

continuous-agent-loop

Helps your agent self-check and recover from failures. It's useful for ensuring the agent runs reliably and continuously.

What it does

This agent helps create a work cycle that self-checks and corrects itself. It ensures work continues autonomously, with quality checks and the ability to recover from errors.

When to use it

  • ✓When you need a task to repeat without constant intervention.
  • ✓When developing a system that needs to check its own work quality.
  • ✓To create a process that can automatically recover from failures.

Example of what to ask your AI

“Create an autonomous work loop to review code, with quality checks and error recovery.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/affaan-m/ECC/blob/main/skills/continuous-agent-loop/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/affaan-m/ECC/blob/main/skills/continuous-agent-loop/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

It works by defining a workflow with clear steps. If a step fails, it tries to recover or stops the process to prevent bigger issues.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add affaan-m/ECC --skill continuous-agent-loop

Or download just the file:

curl -L https://raw.githubusercontent.com/affaan-m/ECC/main/skills/continuous-agent-loop/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Continuous Agent Loop

This is the v1.8+ canonical loop skill name. It supersedes autonomous-loops while keeping compatibility for one release.

Loop Selection Flow

Start
  |
  +-- Need strict CI/PR control? -- yes --> continuous-pr
  |
  +-- Need RFC decomposition? -- yes --> rfc-dag
  |
  +-- Need exploratory parallel generation? -- yes --> infinite
  |
  +-- default --> sequential

Combined Pattern

Recommended production stack:

  1. RFC decomposition (ralphinho-rfc-pipeline)
  2. quality gates (plankton-code-quality + /quality-gate)
  3. eval loop (eval-harness)
  4. session persistence (nanoclaw-repl)

Failure Modes

  • loop churn without measurable progress
  • repeated retries with same root cause
  • merge queue stalls
  • cost drift from unbounded escalation

Recovery

  • freeze loop
  • run /harness-audit
  • reduce scope to failing unit
  • replay with explicit acceptance criteria
FAQ

What are 'quality gates'?

These are checkpoints that ensure the work meets a certain quality standard before proceeding.

What does 'recovery controls' mean?

These are mechanisms that allow the agent to recover from errors or failures, by trying to fix the problem or stopping the process safely.

What's the difference from 'autonomous-loops'?

This is the newer, recommended name, superseding the old 'autonomous-loops', but it's still compatible for a while.

Details

Original description by the author

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.

repo: affaan-m/ECC

Popularity

GitHub stars
280k
Ranking position
#161
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills