Agent Introspection Debugging

0•

Implements a structured self-debugging workflow to diagnose and recover from AI agent failures and token-wasting loops.

Agent Introspection Debugging provides a systematic framework for Claude to identify why an agentic process is stalling, looping, or drifting from its objective. Instead of blindly retrying failing commands, this skill guides the agent through a four-phase process: capturing the failure state, diagnosing root causes like context overflow or environment mismatches, applying safe recovery actions, and generating detailed reports. It is specifically designed to manage complex tasks where token consumption and context growth threaten completion, ensuring the agent remains focused, efficient, and capable of self-correction before escalating to a human.

Key Features

01Four-phase debugging loop: Capture, Diagnose, Recover, and Report
02Automated introspection reports for clear human-readable audit trails
03Contained recovery heuristics to minimize risk during troubleshooting
04Pattern matching for common AI failures like 'retry storms' and context drift
05Structured failure capture templates for environment and state verification
060 GitHub stars

Use Cases

01Diagnosing environment mismatches such as hidden file-system states or service timeouts
02Breaking out of infinite tool-call loops that consume tokens without forward progress
03Recovering from prompt drift when the agent loses track of the primary objective