Agent Introspection Debugging
Diagnoses and resolves AI agent execution failures through structured capture, root-cause analysis, and contained recovery workflows.
Agent Introspection Debugging equips Claude Code with a systematic self-debugging methodology to diagnose and recover from agent execution failures instead of blindly retrying commands. It activates during infinite tool loops, context degradation, timeout spikes, or task drift, guiding the agent through a four-phase loop: failure capture, root-cause diagnosis against known agent failure patterns, contained minimal-action recovery, and structured introspection reporting. By enforcing direct state verification and prompt trimming, this skill eliminates runaway token consumption and leaves clear diagnostic audit trails for human operators.