cozempic-doctor
Cozempic-doctor runs diagnostic checks on Claude Code configurations and sessions to identify common issues including trust dialog hangs, hooks failures, model mismatches, corrupted JSON files, malformed tool blocks, and orphaned session data. Use this tool when troubleshooting Claude Code errors or unexpected behavior, with the optional `--fix` flag to automatically resolve detected problems.
git clone --depth 1 https://github.com/Ruya-AI/cozempic /tmp/cozempic-doctor && cp -r /tmp/cozempic-doctor/plugin/skills/cozempic-doctor ~/.claude/skills/cozempic-doctorSKILL.md
Run cozempic health checks: ```bash cozempic doctor ``` Checks for: - **Trust dialog hang** — Windows resume bug where `.claude.json` trust entry causes hangs - **Hooks trust flag** — missing `hasTrustDialogHooksAccepted` causing hooks to silently fail (v2.1.51+ bug) - **Agent model mismatch** — spawned subagents not inheriting team lead's model causing 403 errors - **Claude.json corruption** — truncated or invalid `.claude.json` from concurrent write races - **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 `.bak` files consuming disk space - **Disk usage** — total Claude Code storage footprint To auto-fix detected issues: ```bash cozempic doctor --fix ```
Diagnose and prune bloated Claude Code context. Run to slim down the current session before compacting or resuming.
Analyze Claude Code session bloat — shows token count, context usage %, and bloat breakdown. Use when the user asks about session size, context usage, or when you notice the context window is getting full.
>
Treat the current session and auto-resume in a new terminal window.
Prune bloated session with a prescription. Removes progress ticks, stale reads, duplicate content, and more.