/cozempic:guardfrom cozempic
Runs a background daemon that monitors Claude Code session size and auto-prunes before compaction hits. Essential for agent teams to prevent context overflow and loss of team state.
Ships in cozempic. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Start the cozempic guard daemon for continuous session protection.
cozempic guard --daemon --threshold 50 -rx standard --interval 30
This runs in the background and:
Guard mode is essential for sessions running agent teams. Without it, auto-compaction triggers and the lead agent loses team state (TeamCreate, SendMessage, tasks are discarded).
--threshold N — hard threshold in MB (default: 50)--soft-threshold N — soft threshold in MB (default: 60% of hard)--threshold-tokens N — hard threshold in tokens (fires whichever hits first)--no-reload — prune without restarting Claude--no-reactive — disable kqueue/polling file watcher-rx NAME — prescription at hard threshold (default: standard)The daemon writes to /tmp/cozempic_guard_*.log. Check with:
ls /tmp/cozempic_guard_*.pid 2>/dev/null # is it running?
tail -20 /tmp/cozempic_guard_*.log 2>/dev/null # recent activity
kill "$(cat /tmp/cozempic_guard_*.pid)" # stop it
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
context-management, session-protection, cozempic, daemon, pruning
npx claudepluginhub ruya-ai/cozempic --plugin cozempic5 skills in this plugin
/cozempic-doctorRun health checks on Claude Code configuration and sessions. Use when troubleshooting Claude Code issues. (cozempic — does not shadow Claude Code's built-in /doctor)/diagnoseAnalyze 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./reloadTreat the current session and auto-resume in a new terminal window./treatPrune bloated session with a prescription. Removes progress ticks, stale reads, duplicate content, and more.Other plugins' skills for the same job