treat — Prescription-based Session Pruning
Prescribes a pruning pass over a bloated Claude Code session, stripping progress ticks, stale reads and duplicate content for 40–95% token savings.
UtilitiesIntermediate★ 379⑂ 36AI score 9/10Last updated: Jul 3, 2026
What it does
- Diagnoses the live session with
cozempic current --diagnoseso you can see what is eating your context window. - Applies one of three prescriptions —
gentle,standard,aggressive— to collapse progress ticks, thinking blocks, tool output, stale file reads, duplicate documents and system reminders. - Always dry-runs first, reporting both byte and token savings, and only applies changes after an explicit AskUserQuestion confirmation.
- Creates timestamped
.bakbackups automatically and never rewrites uuid/parentUuid, so the conversation DAG stays intact.
Who it's for
- Developers who hit context-limit warnings during long refactor or debugging sessions.
- Anyone trying to cut token spend while keeping their conversation history alive.
- tmux / multi-pane users who need to stay in the current window instead of exiting.
Examples
/treat— no argument, defaults tostandard: diagnose, dry-run, confirm, prune./treat aggressive— squeeze a session full of hundreds of file reads and mega tool outputs down by 70–95%./treat gentle— keep the reasoning trail, drop only progress ticks, duplicate file history and metadata for 40–55% savings.
Tip: if you want prune + auto-resume in a single step, use the repo's
reloadskill instead.
· · · 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/treat/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/treat folder from the GitHub repo Ruya-AI/cozempic into my ~/.claude/skills/treat/. 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 && mkdir -p ~/.claude/skills && cp -r cozempic/plugin/skills/treat ~/.claude/skills/treat⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and clone the repo:
git clone https://github.com/Ruya-AI/cozempic.git cd cozempicand install thecozempicCLI following the README — the skill cannot run without it.- Verify the binary is on your PATH with
cozempic --help. - Copy the skill into place:
mkdir -p ~/.claude/skills && cp -r plugin/skills/treat ~/.claude/skills/treat - Restart Claude Code and run
/treator/treat aggressive. - Review the dry-run token savings before confirming; afterwards resume the pruned session with
claude --resume.
View source on GitHub ↗License: MIT