Claude Code plugin

Cozempic

Context cleaning for Claude Code — prune bloated sessions, protect Agent Teams from context loss, auto-guard with tiered pruning

427 stars 39 forksPlugins & marketplaces Plugin marketplace Source

Install

Inside Claude Code
/plugin marketplace add Ruya-AI/cozempic

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/Ruya-AI/cozempic.git

From the README

Cozempic

100,000+ power users trust Cozempic to keep their Claude Code sessions lean.

Context cleaning for Claude Code — remove the bloat, keep everything that matters, protect Agent Teams from context loss.

What It Does

Claude Code sessions fill up with dead weight: progress ticks, thinking blocks, stale file reads, duplicate CLAUDE.md injections, base64 screenshots, oversized tool outputs, and metadata bloat. A typical session carries 8-46MB — most of it noise that inflates every API call.

Cozempic removes it with 18 composable strategies across 3 prescription tiers, while your actual conversation, decisions, and working context stay untouched. The guard daemon runs automatically — install once, forget about it.

Key Features

- 18 pruning strategies — gentle (5), standard (11), aggressive (18)
- Guard daemon — auto-starts via SessionStart hook, monitors and prunes continuously
- Interactive "prune now?" nudge — a non-blocking heads-up at 25% / 55% / 80% context (once per tier) recommending cozempic reload, so interactive users get cozempic's higher-fidelity prune+resume on their own terms instead of falling back to lossy autocompact. Takes no action on its own; silence with COZEMPIC_NUDGE_OFF=1
- Interactive-safe reload — in interactive sessions the guard warns first and reloads only at an idle breakpoint (never mid-turn); headless sessions reload as before
- Safe-point protection — the guard never terminates-and-resumes through in-flight work: a running Workflow, a background subagent, an agent team, or an open tool call defers the reload so nothing is lost
- compact-summary-collapse — 85-95% savings by removing pre-compaction messages already in the summary
- Agent Teams protection — checkpoints team state through compaction, reactive overflow recovery
-…
Read the full README on GitHub

How plugins work

  • A plugin bundles slash commands, subagents, skills, hooks, MCP servers and status lines so they install together.
  • Add the marketplace inside Claude Code with /plugin marketplace add Ruya-AI/cozempic, then run /plugin to pick what to install.
  • You can turn a plugin off again from /plugin without deleting anything.
Claude Code docs

Details

Language
Python
License
MIT
Last updated
3 July 2026
Topics
agent-teamsclaude-codeclaude-skillsclicontextcontext-managementjsonlllm-toolspruningpythonsession-management

FAQ

What is Cozempic?

Context cleaning for Claude Code — prune bloated sessions, protect Agent Teams from context loss, auto-guard with tiered pruning It is a plugin for Claude Code, from Ruya-AI/cozempic on GitHub.

How do I install Cozempic?

Run /plugin marketplace add Ruya-AI/cozempic inside Claude Code, then follow the setup in the README.

Is Cozempic popular?

Ruya-AI/cozempic has 427 GitHub stars and 39 forks, and is included in 1 curated Claude Code list. It was last updated on 3 July 2026.

More plugins & marketplaces

Browse the most popular Claude Code mods, all plugins & marketplaces, or the skills and MCP server directories.