context-diet

by Lauren Nodonly · ★ 0 · updated 3 days ago

GuardsCommandsAutomationvalidates

0

Removes escape codes, progress redraws and identical-line runs from Bash output (lossless), and lists the biggest items in context; shows the tokens saved above the prompt through modbar

install context-diet

Install

/plugin marketplace add lnodonly/claude-mods
/plugin install context-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
engine.createsession.startturn.completetool.callmodbar.blockscommand.run
API calls
$.command.register$.fs.read$.fs.write$.session.messages$.state.get$.state.set$.store.get$.store.set
Can see
Bash callsRead calls
Reach
level 2 of 3 writes filesreads filesreads the transcriptreads mod statepersists state

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/lnodonly/claude-mods
Path in repo
context-diet
Source commit
22069a7 the exact code the scan read
Author
Lauren Nodonly @lnodonly
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 lnodonly/claude-mods

context-bar

lnodonly/claude-mods

Shows the context window as a stacked bar (with its percentage) and a legend, drawn by modbar; hide or show with /modbar hide|show context-bar

★ 0Automation

handoff

lnodonly/claude-mods

A note per project folder for the next session: /handoff writes a full one, and with /handoff auto on exit saves a quick one when work happened; the next session gives Claude the note

★ 0ToastsGuardsCommands

modbar

lnodonly/claude-mods

Draws the area above the prompt for other mods: their blocks, packed into configurable rows

★ 0BandsCommands

rules-enforcer

lnodonly/claude-mods

Enforces a project's .claude/rules.json: required skills before edits, and doc updates in the same turn

★ 0Status lineGuardsCommands