context-diet

by drkokorev · ★ 8 · updated 7 days ago

PanesStatus lineGuardsCommandsvalidates

0

Trims huge tool outputs (logs, JSON, diffs, grep, file lists) before they reach Claude's context, and saves the full text to a file Claude can read

install context-diet

Install

/plugin marketplace add drkokorev/context-diet
/plugin install context-diet@context-diet

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.starttool.callsession.appendcommand.runui.closeui.render
API calls
$.clock.now$.command.register$.fs.exists$.fs.read$.fs.write$.session.cwd$.state.get$.state.set$.store.get$.store.set$.ui.invalidate$.ui.open$.ui.resolve$.ui.status$.ui.toast
Draws
Pane
Can see
every tool call
Reach
level 2 of 3 writes filesreads filesreads 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/drkokorev/context-diet
Path in repo
plugins/context-diet
Source commit
1988532 the exact code the scan read
Author
@drkokorev
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.