com um clique
doctor
// Run health checks on Claude Code configuration and sessions. Use when troubleshooting Claude Code issues.
// Run health checks on Claude Code configuration and sessions. Use when troubleshooting Claude Code issues.
| name | doctor |
| description | Run health checks on Claude Code configuration and sessions. Use when troubleshooting Claude Code issues. |
| allowed-tools | Bash(cozempic *) |
Run cozempic health checks:
cozempic doctor
Checks for:
.claude.json trust entry causes hangshasTrustDialogHooksAccepted causing hooks to silently fail (v2.1.51+ bug).claude.json from concurrent write races.bak files consuming disk spaceTo auto-fix detected issues:
cozempic doctor --fix
Prune bloated session with a prescription. Removes progress ticks, stale reads, duplicate content, and more.
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.
Protect Claude Code sessions from context overflow by running a background daemon that monitors session size and auto-prunes before compaction hits. Use when the user says "guard", "protect session", "context getting long", "prevent compaction", "session management", or is running agent teams that need continuous context protection.
Treat the current session and auto-resume in a new terminal window.