cmd-diet

Reviewed at commit 39277ab

Adds quiet flags to noisy shell commands before they run (git status, pytest, cargo, npm install, mvn, curl, wget, docker pull), so Claude reads short output…

Made by
Vedant Andhale
What we checked

Adds quiet flags to plain shell commands before they run, such as git status --short, pytest -q, cargo -q, npm --no-audit --no-fund, mvn batch mode, docker pull -q, curl -sS and wget -nv, so Claude reads less output. Commands with pipes, redirects or your own output flags are left alone. It shows a count of quieted commands.

Review details

Static review of the source at the pinned commit; not run. Single tool.call hook for Bash and PowerShell. A small quote-aware splitter breaks the command at &&, ||, ; and newlines and rewrites only segments with no pipes, redirects, backticks or $( ) that match one of eight fixed rules; flags are inserted right after the command name and skipped when the person already used a conflicting or equal flag. curl and wget rules apply only to Bash. If the command fails with an error message naming an added flag, that rule is switched off for the session so the retry runs as typed. Calls $.ui.status with the count. No file, network, process or model calls of its own, no storage. The rewritten command runs in place of what Claude wrote, so permission rules written for the exact original text may see the changed text.

What it uses
  • Reads your prompts: no
  • Sees tool calls: yes
  • Blocks or changes tool calls: yes
  • Reads or writes files: no
  • Runs programs on your machine: no
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: no
  • Shows something on screen: yes
Hooked events
Screenshot of cmd-diet

Adds quiet flags to noisy shell commands before they run (git status, pytest, cargo, npm install, mvn, curl, wget, docker pull), so Claude reads short output from the start; errors, failures and warnings stay in full.

Made this mod? Add a badge to your README

modsforClaude badge for cmd-diet

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/cmd-diet.svg)](https://modsforclaude.com/mods/cmd-diet/)

← All mods