Session Diagnose
Diagnoses Claude Code session bloat — token count, context-window usage %, and what's eating your context.
What it does
Runs cozempic current --diagnose to profile your current Claude Code session:
- Weight: total session bytes and message count
- Tokens: exact token count from usage data, or a heuristic estimate
- Context bar: visual percentage of the detected 200K or 1M context window
- Vital signs: progress ticks, file-history snapshots, system reminders, thinking content, signatures, tool results
- Breakdown by message type plus the top 10 largest messages
- Estimated savings for each prescription: gentle / standard / aggressive
When context usage exceeds 60%, it recommends /cozempic:treat with a level matched to session size (under 5MB → gentle, 5–20MB → standard, over 20MB → aggressive).
Who it's for
- Claude Code users with long sessions that keep filling the context window
- Anyone tracking token consumption to control cost
- Anyone who wants to see what's bloating a session before compacting it
Examples
- Ask "how big is this session?" → get token count and context percentage immediately.
- Context hits 78% → the skill suggests
/cozempic:treat standard. - Responses feel sluggish → inspect the top 10 largest messages to find the offending tool output.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/Ruya-AI/cozempic/HEAD/plugin/skills/diagnose/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the plugin/skills/diagnose folder from the GitHub repo Ruya-AI/cozempic into my ~/.claude/skills/diagnose/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/Ruya-AI/cozempic.git && cp -r cozempic/plugin/skills/diagnose ~/.claude/skills/diagnose⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repository:
git clone https://github.com/Ruya-AI/cozempic.git - Copy the skill into your Claude Code skills folder:
cp -r cozempic/plugin/skills/diagnose ~/.claude/skills/diagnose - This skill depends on the
cozempicCLI — follow the repo README to install it, then verify withcozempic --version. - Restart Claude Code and try asking: "What's my current context usage?"