loop-detection-prevention

Installation
SKILL.md

Loop Detection and Prevention

Overview

Monitor agent execution for repetitive patterns and stuck states. Detect when identical tool calls are repeated without progress, and trigger intervention strategies.

Core Principles

  1. Monitor tool call patterns: Track identical tool calls with same arguments
  2. Track progress metrics: Files edited, tests run, errors fixed
  3. Recognize stuck states: No progress in 5 minutes, 10+ identical calls
  4. Intervene when needed: Skip step, try alternative, or ask for help

Detection Patterns

Identical Tool Calls

Installs
9
GitHub Stars
2
First Seen
Mar 18, 2026
loop-detection-prevention — pmarashian/cursor-agent-skills