diet

by Darsh Kejriwal · ★ 0 · updated 11 days ago

PanesCommandsvalidates

0

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.

install diet

Install

/plugin marketplace add darshk07/claude-mods
/plugin install diet@claude-mods

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startcommand.runsession.appendui.render
API calls
$.clock.now$.command.register$.env.get$.fs.write$.state.get$.state.set$.store.get$.store.set$.ui.open$.ui.resolve$.ui.toast
Draws
Pane
Reach
level 2 of 3 writes filesreads env varsreads mod statepersists statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/darshk07/claude-mods
Path in repo
diet
Source commit
61164ad the exact code the scan read
Author
Darsh Kejriwal @darshk07
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from darshk07/claude-mods

anchor

darshk07/claude-mods

Anchor: pin facts, decisions and rules that are re-sent every turn, so /compact can never lose them. Per-project pinboard with a panel.

★ 0PanesCommandsPrompt

pulse

darshk07/claude-mods

A slim live banner above the prompt: context-window donut, token mix, cache hit rate, burn forecast, rate limits and cost.

★ 0BandsCommands