Cozempic doctor
Run health checks on Claude Code configuration and sessions. Use when troubleshooting Claude Code issues.
install
source · Clone the upstream repo
git clone https://github.com/Ruya-AI/cozempic
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/Ruya-AI/cozempic "$T" && mkdir -p ~/.claude/skills && cp -r "$T/plugin/skills/doctor" ~/.claude/skills/ruya-ai-cozempic-doctor && rm -rf "$T"
manifest:
plugin/skills/doctor/SKILL.mdsource content
Run cozempic health checks:
cozempic doctor
Checks for:
- Trust dialog hang — Windows resume bug where
trust entry causes hangs.claude.json - Hooks trust flag — missing
causing hooks to silently fail (v2.1.51+ bug)hasTrustDialogHooksAccepted - Agent model mismatch — spawned subagents not inheriting team lead's model causing 403 errors
- Claude.json corruption — truncated or invalid
from concurrent write races.claude.json - Corrupted tool_use — tool blocks with names >200 chars causing 400 API errors
- Orphaned tool_results — tool_result blocks missing matching tool_use causing 400 API errors
- Zombie teams — stale agent team directories accumulating on disk
- Oversized sessions — sessions that may trigger compaction issues
- Stale backups — old
files consuming disk space.bak - Disk usage — total Claude Code storage footprint
To auto-fix detected issues:
cozempic doctor --fix