This gives you a clear readout of your Claude Code session's token usage and what's eating up space. Run it when things feel sluggish or you're curious how close you are to the context limit. You get actual token counts, a visual percentage bar against the 200K or 1M window, and a breakdown of what's bloating things (progress ticks, file snapshots, thinking content, old tool results). The top 10 largest messages list is surprisingly useful for spotting that one massive paste or API response killing your session. It also estimates what you'd save with different cleanup levels, which takes the guesswork out of deciding whether to run a trim.

GitHub stars
332
last updated
Jun 11, 2026

Install

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

Installs into .claude/skills of the current project.

Files

Run a diagnosis on the current session:

cozempic current --diagnose

The output includes:

  • Weight: total session size in bytes and message count
  • Tokens: exact token count (from usage data) or heuristic estimate
  • Context bar: visual bar showing % of the detected context window (200K or 1M)
  • Vital signs: progress ticks, file history snapshots, system reminders, thinking content, signatures, tool results
  • Message type breakdown: bytes per message type
  • Top 10 largest messages: biggest bloat contributors
  • Estimated savings by prescription: what gentle/standard/aggressive would save

Always surface the token count and context % to the user. If context is above 60%, suggest running /cozempic:treat with a prescription recommendation:

  • Under 5MB: gentle
  • 5-20MB: standard
  • Over 20MB: aggressive

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
1sickn33 avatarapi-fuzzing-bug-bountysickn33/antigravity-awesome-skillsapi fuzzing for bug bounty0skills.sh installs
2spencermarx avatarAgentDB Performance Optimizationspencermarx/open-code-reviewOptimize AgentDB performance with quantization (4-32x memory reduction), HNSW indexing (150x faster search), caching, and batch operations. Use when optimizing 0skills.sh installs
3spencermarx avatarV3 Performance Optimizationspencermarx/open-code-reviewAchieve aggressive v3 performance targets: 2.49x-7.47x Flash Attention speedup, 150x-12,500x search improvements, 50-75% memory reduction. Comprehensive benchma0skills.sh installs
4spences10 avatarerror-handling-patternsspences10/devhub-crmSvelte 5 error handling. Use for error boundaries, async await expressions, loading states, and form errors.0skills.sh installs
5mattpocock avatardiagnosing-bugsmattpocock/skillsDiagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.913.3Kskills.sh installs
6microsoft avatarazure-diagnosticsmicrosoft/azure-skillsDebug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe triage. WHEN: debug production issues, troubleshoot app service, 662.5Kskills.sh installs