continuous-agent-loop

Orchestrate autonomous agent loops with quality gates and recovery controls.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps prevent uncontrolled or low-quality autonomous agent loops by adding quality gates, evaluation, and recovery controls so work progresses reliably.

Core Features & Use Cases

  • Loop selection and orchestration: Chooses the appropriate loop pattern (sequential, continuous CI/PR control, RFC decomposition DAG, or exploratory parallel generation) based on your constraints.
  • Quality gates and evaluation loop: Integrates code-quality checks and an eval harness to verify outcomes before continuing.
  • Failure mode handling and recovery: Detects loop churn, repeated retries, merge-queue stalls, and cost drift, then applies recovery steps like freezing and replaying with tighter acceptance criteria.

Quick Start

Ask your agent to run the continuous-agent-loop using RFC decomposition plus quality gates, then execute the eval-harness and apply recovery controls if progress stalls.

Frequently Asked Questions about continuous-agent-loop

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

FAQPage Schema
How do I prevent autonomous agent loops from churning and stalling merges in CI?

Autonomous agent loop churn and stalled merges are prevented by applying quality gates and an evaluation harness that verifies outcomes before continuing the loop. Freeze-and-replay recovery is applied when failure modes are detected.

What is the best way to run an RFC decomposition pipeline using autonomous agents?

Running an RFC decomposition pipeline with autonomous agents is best handled by selecting the RFC decomposition DAG loop mode, which breaks down constraints into structured tasks. The loop integrates quality checks and session persistence to maintain state across iterations.

How do you handle failure modes and repeated retries in continuous agent loops?

Failure modes and repeated retries in continuous agent loops are handled by detecting cost drift and merge-queue stalls, then applying freeze-and-replay recovery with tighter acceptance criteria. This prevents uncontrolled loops from degrading quality.

Does this continuous agent loop support exploratory parallel generation?

Yes, exploratory parallel generation is supported as a distinct loop mode alongside sequential, CI/PR control, and RFC decomposition DAG patterns. The loop selection mechanism chooses the appropriate pattern based on your constraints.

Can I use session persistence to maintain state during iterative production execution?

Yes, you can use session persistence to maintain state during iterative production execution. The continuous agent loop persists session state across iterations, enabling reliable recovery and continued progress without losing prior work.