Ruya-AI/cozempic

322 stars · Last commit 2026-05-30

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

README preview

# Cozempic

![Downloads](https://img.shields.io/badge/downloads-50k%2B-brightgreen) ![Version](https://img.shields.io/badge/version-1.8.18-blue) ![License](https://img.shields.io/badge/license-MIT-lightgrey)

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

Context cleaning for [Claude Code](https://claude.ai/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
- **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

View full repository on GitHub →