bash-diet

bash-diet is a Claude Code mod by KilimcininKorOglu that shrinks each Bash result before the model reads it: per-command filters for git, test runners, linters, package managers, containers and file tools, the full output kept in a file.

Updated 2026-10-04

What is bash-diet?

bash-diet is a Claude Code mod by KilimcininKorOglu that shrinks each Bash result before the model reads it: per-command filters for git, test runners, linters, package managers, containers and file tools, the full output kept in a file. It is listed under Git & CI and has 11 GitHub stars.

TypeClaude code mod
AuthorKilimcininKorOglu
RepositoryKilimcininKorOglu/claude-code-mods
Popularity11 GitHub stars
CategoryGit & CI
SecurityReview before installing (64/100)
Rank#452 of 5,272 Claude Code mods; #18 in Git & CI
LicenseMIT
Last commit2026-10-04
Stars this week+3
Hooks4 events
Sees? calls, Bash calls, classic hooks
Draws onnothing

Is bash-diet safe to install?

bash-diet scores 64/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables. It passed 5 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 processes outside the sandboxReview
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.existsreads files
$.fs.listreads files
$.fs.readreads files
$.fs.statreads files
$.fs.writewrites files
$.process.runruns processes
$.process.spawn
$.session.id
$.session.model
$.session.root
$.session.usage
$.sidebar.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.tool.check
$.ui.logdraws interface
$.ui.statusdraws interface

How do I install bash-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/KilimcininKorOglu/claude-code-mods
    claude plugin validate ./claude-code-mods/plugins/bash-diet
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add KilimcininKorOglu/claude-code-mods && claude plugin install bash-diet@kilimcininkoroglu-mods

Or ask Claude to set it up

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

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

More from KilimcininKorOglu/claude-code-mods

This repository has at least 9 Claude Code mods on MCPMods.

  • action-pin: After an edit that adds a GitHub Actions step pinned to a tag or a branch, names the commit SHA to write instead, from t (Review before installing)
  • ask-autopick: Picks the recommended option of a question that waited unanswered for a set time, so a session you left does not stop. O (Low risk)
  • bg-tasks: Shows the background shell tasks of the session on the status line or in the shared sidebar, with the oldest one's age, (Low risk)
  • bughunt: Runs proof-driven bug hunt rounds with /bughunt: each round proves one bug with a failing command the mod runs itself, f (Review before installing)
  • cache-warm: Keeps the 1-hour prompt cache warm for a window you set, or with no end in every session under always, with one cache-sh (Review before installing)
  • commit-cadence: Names the uncommitted files to you at the end of each turn, and tells the model at the next prompt to commit each finish (Review before installing)
  • config-parse: Parses each JSON, YAML, TOML or .env file an Edit or Write touches, notes a parse error at once instead of at the next b (Review before installing)
  • context-restore: Hands a skill or command call the current text of its file when the file changed on disk after the session loaded it, an (Review before installing)