About Cozempic
Cozempic is an MCP server published by Ruya-AI in the Developer Tools category: context cleaning for Claude Code — prune bloated sessions, protect Agent Teams from context loss, auto-guard with tiered pruning. Conduid read 5 tools from its source: diagnose_current, estimate_tokens, list_sessions, list_strategies and treat_session. It is published to PyPI as cozempic and runs with uvx.
The repository has 429 stars and 42 forks, is licensed MIT, and its last commit was on 3 Jul 2026. The latest release is v1.8.39 (3 Jul 2026): Fix (#168): guard now starts on Debian/Ubuntu. It follows v1.8.38 (29 Jun 2026), and the 5 most recent releases go back to v1.8.35 (24 Jun 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include agent-teams, cli, devtools, context-management, context and jsonl.
Install
uvx cozempicpip install cozempicgit clone https://github.com/Ruya-AI/cozempicTools (5)
diagnose_currentDiagnose the current Claude Code session for context bloat.estimate_tokensGet the current session's token count and context window usage percentage.list_sessionsList all Claude Code sessions with sizes and token estimates.list_strategiesList all available cleaning strategies and prescriptions.treat_sessionRun a pruning prescription on the current session.| Parameter | Type | Description |
|---|---|---|
| execute | boolean | If False (default), dry-run only. If True, apply changes with backup. |
| prescription | string | Prescription tier — 'gentle', 'standard', or 'aggressive'. |
Security checks
Static checks derived from the repository yesterday. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.1K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 42 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdioplugin/servers/cozempic_mcp.py:255
- Starts other programs
- 22 callsnpm/bin/cozempic.js:16, npm/install.js:52, npm/install.js:104
- Outbound network calls
- 8 callsnpm/install.js:65, src/cozempic/helpers.py:240, src/cozempic/helpers.py:249
- Writes or deletes files
- 53 callssrc/cozempic/cli.py:1513, src/cozempic/cli.py:1576, src/cozempic/dashboard/render.py:319
- Lockfile
- uv.lock
Pattern matches on the source text of 42 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 3.1K words, fetched yesterday. The original in the repository is authoritative.
Read full README