Agent Introspection Debugging
Implements a structured self-debugging workflow to help AI agents diagnose and recover from repeated failures, loops, and context drift.
Agent Introspection Debugging is a specialized workflow skill designed to prevent AI agents from consuming excessive tokens or getting stuck in infinite loops during complex tasks. It provides a systematic 4-phase framework—comprising Failure Capture, Root-Cause Diagnosis, Contained Recovery, and Introspection Reporting—that allows Claude to step back, analyze why a task is failing, and apply corrective measures before escalating to a human. This skill is essential for maintaining reasoning quality and efficiency in environments where state mismatches, tool failures, or prompt drift can stall progress.
주요 기능
01Pattern matching for common AI agent failures like tool loops and context overflow.
02Four-phase structured debugging loop: Capture, Diagnosis, Recovery, and Introspection.
030 GitHub stars
04Context management to prune low-signal logs and prevent reasoning degradation.
05Automated generation of human-readable self-debug reports for transparency.
06Heuristic-based recovery actions that favor direct observation over speculative retries.
사용 사례
01Managing high context pressure to prevent 'hallucinations' or logic failures during long-running tasks.
02Diagnosing environment state mismatches such as missing files, port conflicts, or stale git branches.
03Breaking out of infinite loops where the agent calls the same tool repeatedly without progress.