#929929th of 997 in Skills, plugins and prompts

cozempic

Prunes bloated Claude Code session files and guards against context loss

Stars
429
License
MIT
Last commit
Jul 2026
Last release
Jul 2026
Language
Python
Stars, last 29 weeks+145
10 May 2026: 284 stars17 May 2026: 295 stars24 May 2026: 310 stars31 May 2026: 315 stars7 Jun 2026: 322 stars14 Jun 2026: 328 stars21 Jun 2026: 333 stars28 Jun 2026: 336 stars5 Jul 2026: 339 stars12 Jul 2026: 344 stars19 Jul 2026: 346 stars26 Jul 2026: 353 stars2 Aug 2026: 356 stars9 Aug 2026: 361 stars16 Aug 2026: 363 stars23 Aug 2026: 369 stars30 Aug 2026: 371 stars6 Sept 2026: 374 stars13 Sept 2026: 408 stars20 Sept 2026: 412 stars27 Sept 2026: 416 stars4 Oct 2026: 416 stars11 Oct 2026: 422 stars18 Oct 2026: 424 stars25 Oct 2026: 425 stars1 Nov 2026: 426 stars8 Nov 2026: 428 stars15 Nov 2026: 428 stars22 Nov 2026: 429 stars29 Nov 2026: 429 stars

284 on 10 May 2026429 on 29 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Cozempic is a Python CLI that shrinks Claude Code session JSONL files using 18 composable pruning strategies, grouped into gentle, standard and aggressive prescriptions. A guard daemon, started by a SessionStart hook, prunes at 25/55/80/90% context thresholds and can reload the session. It also checkpoints Agent Teams state, saves user corrections to Claude Code's memory, and runs doctor checks for session corruption.

Who it is for: Heavy Claude Code users hitting context limits or losing Agent Teams state

Strengths

  • Dry-run by default, with automatic .jsonl.bak backups and atomic writes
  • Python 3.10+ stdlib only, no external dependencies
  • Installs via uv, pipx, pip, npm, Homebrew or Nix, plus a Claude Code plugin
  • Guard defers reload while a subagent, agent team or open tool call is running

Weaknesses

  • Auto-updates from PyPI by default; pinning or disabling needs environment variables
  • Wires global hooks on first use unless COZEMPIC_NO_GLOBAL_INIT=1 is set
  • Guard reload terminates and resumes the Claude process, interrupting the session
  • Works only with Claude Code session files, not other coding agents

What it needs

  • no GPU
  • Needs Python 3.10+, Claude Code
  • Models: Claude Code (200K and 1M context windows)

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Also in Skills, plugins and prompts

See all 997
Also in Skills, plugins and prompts
RankProjectScore
#927claude-code-promptsMarkdown prompt templates for coding agents, modeled on Claude Code patterns1.2k starsMIT30 out of 100
#928megamemoryMCP server that stores a persistent concept graph of your project for coding agents925 stars+73 (+8.6%) in 30 daysMIT30 out of 100
#930project-butlerClaude Code skill that keeps project memory in Markdown files across sessions379 starsMIT30 out of 100
#931fixing-smartass-opus-5System prompt file that makes Opus 5 terse and scope-bound in coding agents377 starsMIT30 out of 100
#932claude-paperAgent skills that turn research PDFs into study notes, demo code and a web viewer360 starsMIT30 out of 100