affaan-m avatar

Continuous Agent Loop

This is the updated canonical pattern for autonomous agent loops that run until they hit quality gates or acceptance criteria. You get four loop strategies (strict PR control, RFC decomposition, parallel exploration, or sequential), plus the recommended production stack combines RFC pipelines, quality gates, eval harnesses, and session persistence. The honest take: this prevents the classic failure modes where agents spin in circles retrying the same broken approach or rack up costs without measurable progress. When things do stall, you freeze the loop, audit with the harness, narrow scope to the failing unit, and replay with explicit criteria. It replaced the old autonomous-loops skill but keeps backward compatibility for one release.

skills.sh installs
5.5K
GitHub stars
300.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add affaan-m/ecc --skill continuous-agent-loop --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/affaan-m/ecc
Categories
Code Review & Quality, AI & Agent Building
First seen
Jul 14, 2026

More from affaan-m/ecc

All 263
1samber avatarcopywriting-ctasamber/cc-skillsDesign end-of-article CTAs (calls-to-action placed at the bottom of blog posts, newsletters, essays, articles, or any long-form content). Use this skill wheneve5.5Kskills.sh installs
2forcedotcom avatarintegration-connectivity-generateforcedotcom/sf-skillsSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Serv5.5Kskills.sh installs
3grafana avataralerting-irmgrafana/skillsConfigure Grafana Alerting, Incident Response Management (IRM), and SLOs end-to-end — provisions Grafana-managed and data-source-managed alert rules, contact po5.5Kskills.sh installs
4affaan-m avataragent-sortaffaan-m/eccBuild an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel5.5Kskills.sh installs
5affaan-m avatarskill-stocktakeaffaan-m/eccUse when auditing Claude skills and commands for quality. Supports Quick Scan (changed skills only) and Full Stocktake modes with sequential subagent batch eval5.5Kskills.sh installs
6op7418 avatarguizang-social-card-skillop7418/guizang-social-card-skillGenerate Guizang-style social card image sets, Live Photo motion cards, material-first Live Photo puzzle layouts, triple Live Photo collages, long-video-to-Live5.5Kskills.sh installs