Agent Self-Debugging & Introspection

0•

Implements a structured four-phase workflow to diagnose and recover from AI agent failures, loops, and context drift.

This skill provides a systematic framework for AI agents to debug their own performance when tasks go off-track. Instead of retrying blindly, it guides the agent through Failure Capture, Root-Cause Diagnosis, Contained Recovery, and Introspection Reporting. It is specifically designed to handle common agent-specific issues like infinite tool loops, context window saturation, and environment state mismatches, ensuring more reliable autonomous task execution and reduced token waste.

主要功能

01Structured failure capture for precise state recording
02Detailed introspection reports for human-readable audit trails
030 GitHub stars
04Root-cause diagnosis for agent patterns like loop-limits and context overflow
05Contained recovery heuristics to minimize risk and token burn
06Integration hooks with verification loops and workspace audits

使用场景

01Resolving infinite loops where the agent repeats the same unsuccessful tool call
02Diagnosing environment mismatches between agent assumptions and actual filesystem state
03Managing context pressure and prompt drift during complex, multi-step development tasks