ClaudeCodeMod

All shelves / Mods / Usage

cmd-diet

By VedantAndhale

cmd-diet is a Claude Code usage mod by VedantAndhale.

Adds quiet flags to noisy shell commands before they run, so Claude reads the short output, and counts the quieted commands on the status line.

Draws

Install

The marketplace name is claude-pro-kit.

In Claude Code
/plugin marketplace add VedantAndhale/claude-pro-kit
/plugin install cmd-diet@claude-pro-kit
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.1.0
License
MIT
Repo stars
10
Last change
2026-10-08

What it can reach

  • Draws in the session
  • Sees tool calls

Before a Bash or PowerShell command runs, a known noisy command gets its own quiet flags: git status, pytest, cargo, npm install, curl, mvn, wget, and docker pull. Errors, test failures, and warnings stay. Each step of a chain is handled on its own. A step that pipes, redirects, or substitutes is left alone, and so is a command that already sets its output level. If a tool rejects a flag, that rule stops for the session and the retry runs as typed. The status line counts them. The author measured one headless run, git status and pytest on 41 test files with one failure, at 41,535 tokens without it and 40,571 with it, by the API's usage.

One plugin from VedantAndhale/claude-pro-kit. The root README says prompt-polish is the only mod in that kit that makes a model call, and cmd-diet makes none. The plugin folder has no README. These lines are the repository README. output-diet trims what Claude reads from a long shell, search, or subagent result, saves the full text, and counts the savings on the status line. This one adds the quiet flags before the command runs, so the short output is what gets printed.

Demo

The cmd-diet section of the kit README: quiet flags added before a Bash or PowerShell command runs, and a table of git status, pytest, cargo, and npm install with the output each one saves.
Screenshot of the author's GitHub page.

What it hooks into

  • tool.callAround a tool call, where it can hold one

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Files

The author's source, 3 files. They load when you open them.

Facts

Author
VedantAndhale
Category
Usage
Marketplace
claude-pro-kit
Repo
VedantAndhale/claude-pro-kit
Folder
plugins/cmd-diet
Version
0.1.0
License
MIT
Repo stars
10
Last change
2026-10-08
Language
TypeScript
Files
5

Other mods in Usage

read-capVedantAndhaleHolds a commandRefuses a whole-file read over 1,000 lines once, points Claude at an outline of that file, and counts the reads it capped.reread-guardVedantAndhaleHolds a commandSkips a repeat read of a file that has not changed, tells Claude to use the copy it has, and counts the re-reads it skipped.tool-dietVedantAndhaleLists tools unused lately by name only, so their descriptions leave every request, and counts how many are on demand.write-guardVedantAndhaleHolds a commandLets the first full rewrite of an existing file through, holds the next one so Claude uses Edit, and counts the rewrites it held.usage-hudronanworksDraws model, effort, context, and the 5-hour and weekly limits in a panel, and a pixel crab above the prompt that acts out the tool.cache-maxxervayaan-labsDraws the prompt-cache time left and hit rate above the input, says why the cache was rebuilt, and can send a short request to keep it warm.session-hudofeklevy11Draws four cards above the prompt: context left, the 5-hour limit, prompt clocks, and what the session cost.token-pilotDigital-ThreadsHolds a commandFor Token Pilot, which cuts what Claude reads from code, draws tokens saved and the 5-hour and 7-day limits above the prompt, and outlines a big file Read.laya-routermarcreichelRoutes the session once from its first prompt to a model and effort, and draws that route on the status line.cache-clockray-amjadDraws a line above the prompt with the time until the prompt cache goes cold, the context fill, and a subagent clock, and has Claude write a handoff first.antiburnantiburnDraws the five-hour and weekly limits above the prompt with reset times and even-pace markers, in the terminal and the desktop Code tab.context-metermidudevDraws how full the context window is at the right end of the band above the prompt: gray, then yellow from 50 percent, then red from 75.
All 183 in Usage