ruya-ai/cozempic/guard
Claude Code and agent skill by ruya-ai/cozempic
- community
Checking that the SKILL.md file is still in the repository.
Protect Claude Code sessions from context overflow by running a background daemon that monitors session size and auto-prunes before compaction hits. Use when the user says "guard", "protect session", "context getting long", "prevent compaction", "session management", or is running agent teams that need continuous context protection.
Install
npx vskill@latest install ruya-ai/cozempic/guardSKILL.md
Start the cozempic guard daemon for continuous session protection.
Default (recommended)
This runs in the background and:
- Checkpoints team state every 30 seconds
- At 60% of threshold (30MB): applies gentle prune, no reload
- At threshold (50MB): applies full prescription + auto-reload with team state preserved
For agent teams
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).
Options
--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)
Check status and stop
The daemon writes to /tmp/cozempic_guard_*.log. Check with:
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugin/skills/guard/SKILL.md
Popularity
- Repository stars
- 141
- Repository forks
- 5
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ruya-ai/cozempic/guard)