What problem does it solve?
Large or corrupted Claude Code sessions and misconfigured local installations can cause hangs, 400/403 API errors, orphaned agent state, and silent hook failures that waste tokens and break Agent Teams coordination. This Skill provides focused health checks to identify the root causes of session instability and configuration problems so you can repair state before compaction or data loss occurs.
Core Features & Use Cases
- Comprehensive integrity checks for trust dialog entries, hook acceptance flags, spawned agent model inheritance, and session JSON structure to detect corruption and race-write issues.
- Tool and artifact diagnosis that finds corrupted tool_use/tool_result blocks, oversized sessions that trigger compaction, orphaned results, stale backups, and disk usage hot spots.
- Recovery and remediation with an optional --fix mode to automatically clean or repair common issues and preserve Agent Teams by checkpointing state.
- Use Case: When an Agent Team becomes unresponsive after a session compaction or a spawned subagent starts returning 403 errors, run the doctor checks to locate model mismatches, corrupted files, or missing hooks and recover the team state.
Quick Start
Run the cozempic doctor health checks and apply automatic fixes for any detected issues.