autonomous-loops

Implements autonomous Claude Code loop architectures from sequential pipelines to multi-agent DAG orchestration.

1|Updated Oct 11, 2025
One-click install
npx skills add https://github.com/ibytechaos/claude --skill autonomous-loops-ibytechaos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: autonomous-loops
Source: https://github.com/ibytechaos/claude/tree/main/plugins/everything-claude-code/skills/autonomous-loops
Command: npx skills add https://github.com/ibytechaos/claude --skill autonomous-loops-ibytechaos

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Running Claude Code autonomously over long tasks requires choosing the right loop architecture, bridging context between iterations, and coordinating parallel agents without merge conflicts or quality degradation. ## Core Features & Use Cases - Loop Pattern Spectrum: Six patterns from simple claude -p sequential pipelines and the NanoClaw REPL to the Infinite Agentic Loop, Continuous Claude PR loop, and RFC-driven DAG orchestration (Ralphinho). - Quality & Recovery Mechanisms: De-sloppify cleanup passes, tiered quality pipelines, CI failure auto-recovery, merge queues with eviction context, and completion signals to prevent runaway loops. - Use Case: You have a written RFC for a large feature. Decompose it into a dependency DAG of work units, run each through research/plan/implement/test/review stages in isolated worktrees, and land them via an automated merge queue. ## Quick Start Ask the AI to set up a sequential claude -p pipeline that implements a feature with TDD, runs a de-sloppify cleanup pass, verifies the build, and commits the result.

Frequently Asked Questions about autonomous-loops

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Claude Code autonomously in a loop?

Chain non-interactive claude -p calls in a shell script, one per focused step such as implement, cleanup, verify, and commit. Each call gets a fresh context window, and set -e stops the pipeline on failure.

What is the difference between a sequential pipeline and the Continuous Claude PR loop?

A sequential pipeline runs fixed claude -p steps locally with no git automation. The Continuous Claude loop creates branches, opens PRs, waits for CI checks, auto-fixes failures, and merges, with limits via max-runs, max-cost, or max-duration.

How do I keep context between autonomous Claude iterations?

Use a SHARED_TASK_NOTES.md file that Claude reads at the start of each iteration and updates at the end. This bridges the gap between independent claude -p invocations that otherwise start with fresh context.

Why use a separate de-sloppify pass instead of negative instructions?

Negative instructions like "don't test type systems" make the model hesitant about all testing and degrade quality unpredictably. A separate cleanup pass removes redundant tests and over-defensive checks while preserving business logic coverage.

When should I use RFC-driven DAG orchestration instead of simpler loops?

Use it when a written spec decomposes into multiple interdependent work units needing parallel implementation with merge coordination. For single focused changes or quick iteration, a sequential pipeline or NanoClaw REPL is sufficient.

How do I prevent infinite autonomous loops from running forever?

Always set an exit condition: --max-runs for iteration count, --max-cost for spending, --max-duration for elapsed time, or a completion signal phrase that stops the loop after consecutive signals indicate the work is done.