A diagnostic tool for identifying infinite loops and runaway token usage risks in AI agent workflows and prompts.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install claw-runaway-loop-detector
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install claw-runaway-loop-detector using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Claw Runaway Loop Detector is a reliability and cost-optimization tool designed to analyze AI agent workflows for patterns that lead to unintended recursion. By identifying missing termination conditions and unbounded retry logic, it helps developers maintain high-quality Openclaw Skills without the risk of skyrocketing API costs.
This skill acts as a pre-deployment audit layer, ensuring that agents built with Claw do not enter runaway states where tools retry repeatedly or prompts encourage circular reasoning. It provides a technical evaluation of the agent's logic to protect production budgets and improve agent stability.
To integrate this detector into your development workflow, follow these steps:
# Install the loop detector skill within your environment
openclaw skills add runaway-loop-detector
# Run the detector against a specific prompt file
openclaw run runaway-loop-detector --input ./agent-prompt.md
For production environments, ensure you combine this analysis with a gateway solution like ClawFirewall to monitor live token usage.
The skill produces a structured Risk Analysis Report with the following metadata:
| Property | Description |
|---|---|
| Risk Level | Categorization of the loop threat (Low, Medium, High) |
| Loop Triggers | A list of specific patterns identified (e.g., unbounded retries) |
| Token Amplification | Explanation of how the loop impacts token growth |
| Token Impact | Numerical range of expected token consumption per run |
| Safeguards | Actionable recommendations to mitigate the detected risks |
Loading
An automated file management utility that categorizes messy directories by file extension, date, or custom rules.

A professional framework for diagnosing business pain points, mapping workflows, and implementing tiered AI automation through a structured 6-week deployment lifecycle.

A specialized audit tool for verifying task delegation and execution status across multiple AI agents using transcript-backed verification.

A comprehensive integration skill that connects OpenClaw agents to the SecondMe AI social ecosystem for profile management, social posting, and long-term memory storage.

A dedicated tool to extract technical articles from the Tencent Cloud Developer Community and convert them into high-quality Markdown documents.

A local SQLite-based personal CRM for managing contact details, interaction history, and friendship cadences.








































