Agent skill · software engineering · affaan-m
autonomous-loops
Patterns and architectures for autonomous Claude Code loops — from simple sequential pipelines to RFC-driven multi-agent DAG systems. Retained for compatibility only: when new autonomous loop guidance is needed, use continuous-agent-loop instead.
Why this skill is useful
Adds executable scripts for autonomous Claude Code loops, enabling complex multi-agent workflows that the AI cannot generate on its own.
What it needs
Requires claude installed locally. About 11k tokens when loaded. Last updated 2026-08-06. 238,342 stars on the source repository.
What this skill does
Autonomous Loops Skill Compatibility note (v1.8.0): autonomous-loops is retained for one release. The canonical skill name is now continuous-agent-loop. New loop guidance should be authored there, while this skill remains available to avoid breaking existing workflows. Patterns, architectures, and reference implementations for running Claude Code autonomously in loops. Covers everything from simple claude -p pipelines to full RFC-driven multi-agent DAG orchestration. When to Use Setting up autonomous development workflows that run without human intervention Choosing the right loop architecture for your problem (simple vs complex) Building CI/CD-style continuous development pipelines Running parallel agents with merge coordination Implementing context persistence across loop iterations Adding quality gates and cleanup passes to autonomous workflows Loop Pattern Spectrum From simplest to most sophisticated: Pattern Complexity Best For --------- ----------- ---------- Sequential Pipeline Low Daily dev steps, scripted workflows NanoClaw REPL Low Interactive persistent sessions Infinite Agentic Loop Medium Parallel content generation, spec-driven work Continuous Claude PR Loop Medium Multi-day iterative projects with CI gates De-Sloppify Pattern Add-on Quality cleanup after any Implementer step Ralphinho / RFC-Driven DAG High Large features, multi-unit parallel work with merge queue --- 1. Sequential Pipeline (claude -p) The simplest loop. Break daily development into a sequence of non-interactive claude -p calls. Each call is a focused step with a clear prompt. Core Insight If you can't figure out a loop like this, it means you can't even drive the LLM to fix your code in interactive mode. The claude -p flag runs Claude Code non-interactively with a prompt, exits when done. Chain calls to build a pipeline: Key Design Principles 1. Each step is isolated — A fresh context window per claude -p call means no context bleed between steps. 2. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills affaan-m/autonomous-loops--3b26ca