Ruya-AI

Ruya-AI / cozempic

Public

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

115
3
100% credibility
Found Feb 12, 2026 at 17 stars 7x -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Python
AI Summary

Cozempic cleans bloated conversation logs in Claude Code to optimize context usage and safeguard multi-agent team coordination from loss.

How It Works

1
😩 Bloated Chats Slow You Down

Your AI helper's conversations pile up with extra noise, making it forget important details like team plans.

2
🔍 Discover the Cleanup Helper

You find Cozempic, a simple tool that trims the junk from chats while keeping what matters.

3
⚙️ Quick Setup in Your Folder

From your project spot, you turn on the helper with one easy command—it wires in safely.

4
🧹 Slim Down a Chat Log

Choose a full chat, preview the cleanup, then apply it to save space and refresh everything.

5
🛡️ Start Background Watch

Switch on the protector to automatically tidy chats and save team memories as they grow.

Smart Sessions Forever

Your AI stays sharp, teams coordinate perfectly, and no more forgotten work or slowdowns.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 17 to 115 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is cozempic?

Cozempic is a Python CLI for context aware data cleaning in Claude Code sessions, pruning bloat like progress ticks, duplicate file snapshots, oversized tool outputs, and metadata to reclaim 15-25% tokens without losing conversation flow. It solves context overflow that wastes budgets and orphans Agent Teams during auto-compaction, using prescriptions like gentle or aggressive via `cozempic treat`. One `cozempic init` wires hooks, a guard daemon, and `/cozempic` slash command for hands-off protection.

Why is it gaining traction?

Zero deps (stdlib only), daemon guard with sub-second reactive pruning on overflow, and team state checkpoints from config.json + JSONL stand out—no babysitting sessions. Prescriptions dry-run by default with backups, plus reload auto-resumes Claude post-prune. Hooks fire on Task spawns or PreCompact, fitting Claude's github context workflow like actions or copilot without invalid access errors.

Who should use this?

Claude Code power users building Agent Teams for multi-step coding, like context engineering hubs or github workflow templates with repeated tool calls. Suited for devs optimizing ozempic-like context payloads in long sessions, avoiding ref variable bloat or stale reads.

Verdict

Worth pip-installing for Claude Code regulars—the CLI and docs punch above 15 stars, but 1.0% credibility flags beta risks like edge-case prunes. Backup sessions; it'll mature fast if adoption hits.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.