behavioral-loop-detection
Installation
SKILL.md
Behavioral Loop Detection
Overview
Detects when an agent is stuck in a repetitive action loop by maintaining a rolling 20-action history window. Compares recent actions using normalized similarity scoring and applies escalating interventions before the agent wastes tokens or blocks progress.
Designed for any agentic context — browser automation, file editing, API calls, or multi-step orchestration — not tied to any specific tool type.
When to Use
Invoke this skill when:
- An agent task has been running for more than 10 steps without clear progress
- The same tool is being called repeatedly with similar arguments
- A task appears stalled with no
TaskUpdate(completed)after a long sequence - You want proactive loop-prevention in a custom orchestrator