ruya-ai avatar

Cozempic Doctor

When Claude Code starts acting weird,hooks silently failing, subagents throwing 403s, or sessions hanging on Windows,this is your first stop. It runs diagnostics for ten specific failure modes including the infamous trust dialog hang bug, corrupted tool_use blocks that cause 400 errors, and orphaned tool results from concurrent writes. The --fix flag attempts automatic remediation. It's essentially a specialized linter for Claude Code's internal state, catching the kinds of gnarly edge cases that happen when an AI coding assistant manages its own configuration files and spawns child processes. Beats manually grepping through .claude.json trying to figure out why everything suddenly broke.

GitHub stars
332
last updated
Jun 11, 2026

Install

$ npx -y skills add ruya-ai/cozempic --skill cozempic-doctor --agent claude-code

Installs into .claude/skills of the current project.

Files

Run cozempic health checks:

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:

cozempic doctor --fix

Sponsors

Details

Repository
github.com/ruya-ai/cozempic
Category
Debugging
License
MIT
First seen
Jun 11, 2026

More from ruya-ai/cozempic

All 5

Recommended

More Debugging
1seo-skills avatarseo-auditseo-skills/seo-audit-skillAudit websites for SEO, technical, content, security, JS rendering, and AI readiness using SEOmator CLI. Returns LLM-optimized reports with health scores across0skills.sh installs
2spencermarx avatarV3 MCP Optimizationspencermarx/open-code-reviewMCP server optimization and transport layer enhancement for claude-flow v3. Implements connection pooling, load balancing, tool registry optimization, and perfo0skills.sh installs
3syahiidkamil avatarsupabase-postgres-best-practicessyahiidkamil/software-engineer-ai-agent-atlasPostgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or d0skills.sh installs
4telagod avatardeveloping-softwaretelagod/code-abyssSoftware development knowledge reference covering Python, Go, Rust, TypeScript, Java, C++, and Shell. Use when writing code, debugging, or following language-sp0skills.sh installs
5TencentCloudBase avatarmcp-attribution-worktreeTencentCloudBase/CloudBase-AI-ToolkitTriage, repair, and close MCP attribution issues from the local report API with evidence-driven decisions and isolated Worktrunk worktrees. Use this skill when 0skills.sh installs
6heygen-com avatarhyperframesheygen-com/hyperframesMandatory entry point: read this first for any request to make, create, edit, animate, or render a video, animation, or motion graphic, including a promo, expla1.5Mskills.sh installs