1. Conduid
  2. Developer Tools
  3. Cozempic
MCP server · Developer Tools

Cozempic

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

67Good

Scored 22 hours ago · breakdown

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
uvx cozempic
pip
pip install cozempic
From source
git clone https://github.com/Ruya-AI/cozempic

Tools (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.
ParameterTypeDescription
executebooleanIf False (default), dry-run only. If True, apply changes with backup.
prescriptionstringPrescription 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

v1.8.39v1.8.39 — dash hook fix + task-list keying · 3 Jul 2026Highlights Fix (#168): guard now starts on Debian/Ubuntu. The SessionStart hook used a bash-only `${SESSION_ID:0:12}` substring expansion that errored `Bad substitution` under dash (`/bin/sh`), silently killing the guard-daemon spawn.…
v1.8.38v1.8.38 · 29 Jun 2026Three things, all hardening data-safety / reliability: Guard now starts on non-PATH installs (#158). On a `uvx`/non-PATH install the guard daemon silently never started (the hook couldn't find cozempic) yet still printed "guard active".…
v1.8.37v1.8.37 · 24 Jun 2026`cozempic uninstall` — the reverse of `cozempic init`, closing the feature request in #147. cozempic uninstall # global (~/.claude): remove hooks + slash command cozempic uninstall --project # this project cozempic uninstall…
v1.8.36v1.8.36 · 24 Jun 2026Hardening + automatic recovery for the #147 resume-corruption fix. Fixes a latent data-loss in 1.8.35: torn-line repair used `splitlines()`, which mis-split valid lines containing U+2028/U+2029/U+0085 (Claude emits these raw in JSON) and…
v1.8.35v1.8.35 · 24 Jun 2026Fix: resume-corruption data-loss (#147) A guard terminate-first reload could leave `claude --resume` unable to parse the transcript — *"Failed to resume session"*. Root cause: terminating Claude mid-write leaves a torn trailing JSON line,…

README

The repository's README runs to about 3.1K words, fetched yesterday. The original in the repository is authoritative.

Read full README
Questions

About Cozempic

How do I install Cozempic?

Run uvx cozempic, then add the server to your MCP client's configuration.

Is Cozempic safe to use with an AI agent?

Its trust score is 67 out of 100 (good). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Conduid's scan of 42 source files found that it serves MCP over stdio, starts other programs (22 calls), makes outbound network calls (8 calls) and writes or deletes files (53 calls). Its dependencies are pinned by uv.lock. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Cozempic still maintained?

Yes — the latest release is v1.8.39 (3 Jul 2026), and the last commit was 5 months ago. The repository has 429 stars and 19 open issues.

What tools does Cozempic provide?

Conduid read 5 tools from the source: diagnose_current, estimate_tokens, list_sessions, list_strategies and treat_session. 1 of them publish their parameters, listed under Tools above.

What license is Cozempic released under?

The repository declares the MIT license. That applies to the latest release, v1.8.39, as well.