claudemods

All Claude Code modsdrkokorev/context-diet

context-diet

A Claude Code mod in drkokorev/context-diet

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

review UI rewrite

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

Install hint

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

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 files, reads mod state, persists state, draws

Validation

Passed on Claude Code 2.1.302

View the source on GitHub Back to the list

What the scan recorded

Observed events
every tool call
Hooks
session.start, tool.call, session.append {door=tool-result}, command.run {command=diet}, ui.close {id=context-diet}, ui.render {component=Pane, requestId=context-diet}
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
Validation on 2.1.302
Passed
Scanned revision
1988532e2951
Marketplace passed
context-diet
UI rewrite review
UI hook source contains control-character strings. Review any values passed to next() as rewritten props.text; the scanner does not trace whether these strings reach that call. plugins/context-diet/hooks/text.ts:26

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. How the scan works.

Badge for your README

Reach badge for context-diet Validation badge for context-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/drkokorev--context-diet--context-diet-reach.svg)](https://mods.aidojo.si/mods/drkokorev--context-diet--context-diet/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/drkokorev--context-diet--context-diet-validates.svg)](https://mods.aidojo.si/mods/drkokorev--context-diet--context-diet/)