Agent Introspection Debugging

0•

Provides a structured workflow for AI agents to self-diagnose and recover from execution loops, tool failures, and context drift.

This skill empowers Claude to move beyond repetitive retries by implementing a rigorous four-phase debugging loop: failure capture, root-cause diagnosis, contained recovery, and introspection reporting. It is specifically designed to resolve 'maximum tool call' errors, environment mismatches, and token-heavy loops that occur during complex autonomous tasks. By systematically analyzing the state of the task and the environment before attempting a fix, the agent ensures efficient token usage and prevents drift from the original project objective, providing a clear audit trail of its reasoning.

Key Features

01Pattern-based diagnosis for common agent-specific failure modes
020 GitHub stars
03Detailed introspection reports for human-readable debugging summaries
04Structured failure capture for precise error and state recording
05Contained recovery actions to prevent destructive or repetitive retries
06Context management to trim low-signal data and reduce reasoning noise

Use Cases

01Breaking out of maximum tool call loops or repetitive command cycles
02Managing context overflow and reasoning drift in long-running development tasks
03Recovering from file-system or environment state mismatches during execution