Agent Introspection Debugging

0•

Implements a structured four-phase workflow to help AI agents diagnose and recover from repetitive failures, loops, and context degradation.

This skill provides a systematic framework for Claude to handle agent-specific failures like infinite loops, tool call limits, and context drift. By guiding the agent through dedicated phases of failure capture, root-cause diagnosis, and contained recovery, it prevents wasted tokens and blind retries. Instead of repeatedly attempting failing actions, the agent generates structured introspection reports that clarify the state of the environment and the reasoning behind recovery steps, making failures legible and actionable for both AI and human operators.

주요 기능

01Pattern matching for common agent failures like loop-limits and context overflow
02Standardized human-readable debug reports for better developer oversight
03Structured failure capture templates to preserve error state and environment assumptions
04Four-phase recovery loop including Capture, Diagnosis, Recovery, and Introspection
05Contained recovery heuristics that prioritize small, reversible actions over blind retries
060 GitHub stars

사용 사례

01Resolving 'maximum tool call' loops where the agent repeats the same failing command
02Recovering from context drift where the agent loses focus on the primary objective due to prompt growth
03Diagnosing environment mismatches where files are missing or services are unreachable