claudemods

All Claude Code modsdarshk07/claude-mods

diet

A Claude Code mod in darshk07/claude-mods

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.

diet reaches L2 (writes or runs) and passed claude plugin validate on Claude Code 2.1.308.

Install hint

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

From the repository's own marketplace. Confirm the plugin name in the repository's README before installing. Mods need Claude Code 2.1.287 or later.

Access

L2 Writes or runswrites files, reads env vars, reads mod state, persists state, draws

Validation

Passed on Claude Code 2.1.308

View the source on GitHub Back to the list

What the scan recorded

Observed events
Only what it hooks
Hooks
session.start, command.run {command=diet}, session.append {door=tool-result}, ui.render {component=Pane, requestId=diet}
API calls
$.clock.now, $.command.register, $.env.get, $.fs.write, $.state.get, $.state.set, $.store.get, $.store.set, $.ui.open, $.ui.resolve, $.ui.toast
Validation on 2.1.308
Passed
Scanned revision
61164ad16a24
Marketplace passed
claude-mods

These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. What a mod can access and how the scan works.

More from darshk07/claude-mods

Badge for your README

Reach badge for diet Validation badge for diet

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/darshk07--claude-mods--diet-reach.svg)](https://mods.aidojo.si/mods/darshk07--claude-mods--diet/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/darshk07--claude-mods--diet-validates.svg)](https://mods.aidojo.si/mods/darshk07--claude-mods--diet/)