affaan-m avatar

Continuous Agent Loop

This is the canonical v1.8+ framework for running autonomous agent loops that don't spin their wheels forever. It gives you a decision tree for picking the right loop style (sequential, PR-gated, RFC-based, or exploratory parallel), then layers in quality gates, eval harnesses, and recovery patterns. The key insight here is that autonomous loops fail predictably: they churn without progress, retry the same broken thing, or rack up costs through unbounded escalation. The recovery protocol is practical: freeze the loop, audit with harness tools, reduce scope to the failing unit, and replay with explicit acceptance criteria. If you're building agents that need to run unsupervised for more than a few iterations, this gives you the control plane to keep them from going off the rails.

skills.sh installs
5K
GitHub stars
229.1K
last updated
Jul 14, 2026

Install

$ npx -y skills add affaan-m/everything-claude-code --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/everything-claude-code
Category
AI & Agent Building

More from affaan-m/everything-claude-code

All 256
1stablyai avataragent-slackstablyai/agent-slackSlack CLI for agents: read URLs/threads/history/unreads/later/canvases/workflows, create canvases from Markdown, search messages/files, download attachments, lo4.8Kskills.sh installs
2affaan-m avatarai-regression-testingaffaan-m/everything-claude-codeai regression testing4.8Kskills.sh installs
3affaan-m avatardata-scraper-agentaffaan-m/everything-claude-codedata scraper agent4.7Kskills.sh installs
4skillsh avataragent-toolsskillsh/skills4.7Kskills.sh installs
5jeffallan avataratlassian-mcpjeffallan/claude-skillsIntegrates with Atlassian products to manage project tracking and documentation via MCP protocol. Use when querying Jira issues with JQL filters, creating and u4.6Kskills.sh installs
6starchild-ai-agent avatarbrowser-previewstarchild-ai-agent/official-skillsPreview panel and iframe diagnostics: registry, ports, paths, blank screens. Use when a preview tab is broken or missing (e.g. white screen, tab disappeared, 404.6Kskills.sh installs