diet

diet is a Claude Code mod by darshk07 that context Diet: trims huge tool outputs (build logs, long test runs, big fetches) before they reach the context, keeps the full text on disk, and shows how many tokens it saved.

Updated 2026-10-11

What is diet?

diet is a Claude Code mod by darshk07 that context Diet: trims huge tool outputs (build logs, long test runs, big fetches) before they reach the context, keeps the full text on disk, and shows how many tokens it saved. It is listed under Cost & usage and has no public popularity data yet.

TypeClaude code mod
Authordarshk07
Repositorydarshk07/claude-mods
Popularityno public popularity data yet
CategoryCost & usage
SecurityReview before installing (76/100)
Rank#5,549 of 9,397 Claude Code mods; #1,000 in Cost & usage
LicenseMIT
Last commit2026-10-11
Hooks4 events
Seesonly the events it hooks
Draws onPane

Is diet safe to install?

diet scores 76/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; reads environment variables. It passed 6 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts no processesPass
Writes files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.now
$.command.register
$.env.getreads env vars
$.fs.writewrites files
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install diet?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/darshk07/claude-mods
    claude plugin validate ./claude-mods/diet
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add darshk07/claude-mods && claude plugin install diet@claude-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs diet for you:

Install the "diet" Claude Code mod from https://github.com/darshk07/claude-mods/tree/main/diet. Run claude plugin validate on it first and show me what it can access before you enable it.

More from darshk07/claude-mods

This repository has 3 Claude Code mods on MCPMods.

  • anchor: Anchor: pin facts, decisions and rules that are re-sent every turn, so /compact can never lose them. Per-project pinboar (Low risk)
  • pulse: A slim live banner above the prompt: context-window donut, token mix, cache hit rate, burn forecast, rate limits and cos (Low risk)