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
Ready-to-paste message
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-loopOr download just the file:
curl -L https://raw.githubusercontent.com/affaan-m/ECC/main/skills/continuous-agent-loop/SKILL.md -o SKILL.mdTechnical 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:
- RFC decomposition (
ralphinho-rfc-pipeline) - quality gates (
plankton-code-quality+/quality-gate) - eval loop (
eval-harness) - 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
Comments
- …
More skills from this repository
accessibility
Helps your agent create interfaces that everyone can use. Ensures websites and apps work well for people with disabilities, like those who are blind or have reduced mobility.
affaan-m/ECC
agent-architecture-audit
Makes your agent check if everything is working correctly. It finds and fixes problems in AI systems, ensuring they perform as expected.
affaan-m/ECC
agent-eval
Helps your agent compare different AI coding tools. It measures which one is faster, cheaper, and more reliable for specific tasks.
affaan-m/ECC
agent-harness-construction
Makes your agent better understand how to perform tasks. It optimizes the tools and instructions the agent uses to increase its chances of success.
affaan-m/ECC
Similar skills
mcp-builder
Helps your agent create servers that connect LLMs to external services. Essential for integrating APIs and services using Python or Node/TypeScript.
anthropics/skills
prepare-mcp-integration
Prepares vendor (MCP) integrations through research and human approval. It follows a guided process for new integrations.
paperclipai/paperclip
first-task
Guides the agent on the user's first task. It interprets the initial answer, clarifies the goal, and proposes a plan or single task for approval.
paperclipai/paperclip