Agent Introspection Debugging

•
10
•

Resolves autonomous agent failures and execution loops through a structured four-phase capture, diagnosis, containment, and reporting workflow.

Agent Introspection Debugging provides a systematic self-debugging framework for AI coding agents that encounter execution loops, token bloat, tool call limits, or context drift. Rather than blindly retrying failed actions or prematurely escalating to human operators, this skill guides agents through a disciplined four-phase recovery cycle: capturing exact failure states, diagnosing root causes against recognized operational failure patterns (such as quota exhaustion, environment desynchronization, or circular tool loops), applying minimal reversible containment actions, and producing structured introspection reports.

Key Features

01Executes a four-phase self-debugging loop: failure capture, diagnosis, containment, and reporting
02Generates structured, human-readable post-incident self-debugging reports
03Applies minimal, safe, and reversible containment actions to break unproductive retry cycles
04Enforces strict evidence verification before altering execution plans or claiming fixes
0510 GitHub stars
06Detects common AI failure patterns including tool call loops, context drift, and state mismatch

Use Cases

01Diagnosing subtle environment and workspace mismatches such as branch drift, path errors, and dropped connections
02Breaking out of circular tool invocation loops and runaway token consumption during autonomous tasks
03Producing comprehensive incident documentation with clear evidence when human escalation is required