Agent Introspection & Debugging
Implements a structured self-debugging workflow for AI agents to diagnose and recover from execution failures, loops, and context drift.
This skill empowers AI agents with a systematic approach to self-correction, preventing repetitive tool-calling loops and inefficient token consumption. By guiding the agent through four specific phases—Failure Capture, Root Cause Diagnosis, Containment Recovery, and Introspection Reporting—it ensures that errors are not just retried blindly but are understood and resolved based on actual environment state and logic. It is an essential tool for maintaining agent autonomy and reliability when performing complex, multi-step tasks that may deviate from the intended path.
Key Features
01Four-phase debugging loop: Capture, Diagnose, Recover, and Report
02Seamless integration with verification loops and workspace auditing tools
0318 GitHub stars
04Pattern recognition for common agent failures like tool-call loops and context overflow
05Structured introspection reports for human review and handoff
06Containment strategies to minimize risk and reset agent state safely
Use Cases
01Reducing context bloat to restore reasoning performance during long-running tasks
02Diagnosing environment mismatches where the agent's internal state differs from the file system
03Breaking an agent out of infinite tool-calling loops or repetitive retry cycles