continuous-agent-loop

Orchestrates autonomous agent loops with quality gates, evals, and recovery controls.

Updated Mar 25, 2026
One-click install
npx skills add https://github.com/Femad-6/my-skills --skill continuous-agent-loop-femad-6
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: continuous-agent-loop
Source: https://github.com/Femad-6/my-skills/tree/main/.github/skills/continuous-agent-loop
Command: npx skills add https://github.com/Femad-6/my-skills --skill continuous-agent-loop-femad-6

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Running autonomous AI agents in continuous loops often leads to churn without progress, repeated failures on the same root cause, stalled merge queues, and uncontrolled cost escalation. This Skill provides structured patterns for selecting, combining, and recovering agent loops so long-running automation stays measurable and controllable. ## Core Features & Use Cases - Loop Selection Flow: Routes work to the right loop pattern based on need: continuous-pr for strict CI/PR control, rfc-dag for RFC decomposition, infinite for exploratory parallel generation, or sequential as the default. - Combined Production Stack: Recommends a layered pipeline of RFC decomposition, quality gates, an eval harness, and session persistence for production-grade autonomy. - Failure Recovery: Defines concrete recovery steps such as freezing the loop, running a harness audit, reducing scope to the failing unit, and replaying with explicit acceptance criteria. - Use Case: A team running an overnight coding agent notices it retrying the same failing test for hours. They apply the recovery pattern: freeze the loop, audit the harness, narrow scope to the failing unit, and replay with clear acceptance criteria. ## Quick Start Ask the agent to set up a continuous agent loop with quality gates and an eval harness for your current coding task.

Frequently Asked Questions about continuous-agent-loop

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

FAQPage Schema
How do I run an autonomous AI agent in a continuous loop?

Choose a loop pattern based on your goal: sequential as the default, continuous-pr for strict CI/PR control, rfc-dag for RFC decomposition, or infinite for exploratory parallel generation. Then layer in quality gates and an eval harness to keep progress measurable.

What is the recommended stack for production agent loops?

The recommended production stack combines four layers: RFC decomposition for task breakdown, quality gates for code checks, an eval loop for measurable progress, and session persistence so state survives across iterations.

How do I stop an AI agent loop that keeps failing?

Freeze the loop first, then run a harness audit to find the root cause. Reduce scope to the failing unit and replay with explicit acceptance criteria instead of letting the loop retry the same approach.

When should I use sequential vs parallel agent loops?

Use the sequential loop as the default for ordered, dependent work. Choose the infinite pattern only when you need exploratory parallel generation, and prefer continuous-pr when strict CI and pull request control is required.

What are common failure modes of autonomous agent loops?

Common failure modes include loop churn without measurable progress, repeated retries on the same root cause, merge queue stalls, and cost drift from unbounded escalation. Each is addressed by freezing, auditing, and scoping down the loop.