Claude Code mod

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

12 starsContext & usage mods Plugin marketplaceValidates on Claude Code 2.1.316 Source

Install

Inside Claude Code
/plugin marketplace add drkokorev/context-diet
/plugin install context-diet@context-diet

Mods install like plugins. Run /reload-plugins or start a new session to load it.

What it can access

Reach
L2Writes or runs: writes files, reads files, reads mod state, persists state, draws
Sees
every tool call
Draws in
Pane
Hooks
session.starttool.callsession.appendcommand.runui.closeui.render

From a static scan of the mod's code by awesome-claude-code-mods. It shows what the code asks for, not a security review.

How Claude Code mods work

  • A mod is a plugin with a JavaScript or TypeScript module that runs inside Claude Code (version 2.1.287 or later). It can draw panes beside the transcript, a band above the prompt, buttons and toasts, restyle the spinner and tool rows, and watch or rewrite tool calls and prompts.
  • It installs like any plugin: add its marketplace with /plugin marketplace add owner/repo, then /plugin install name@marketplace.
  • Check what a mod can reach before installing: it runs with your permissions. Reach goes from drawing only, to reading files, to writing files or running processes, to the network. Run claude plugin validate on a clone to list its hooks and calls without running it.
  • Turn one off from the Installed tab in /plugin, or start Claude Code with --safe-mode to skip every customization for a session.
Claude Code docs

Details

Folder
plugins/context-diet
Marketplace
context-diet
Author
drkokorev
License
MIT
Last updated
11 October 2026

FAQ

What is 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 It is a mod for Claude Code, from drkokorev/context-diet on GitHub.

What can the context-diet mod access?

Its widest reach is "writes or runs" (writes files, reads files, reads mod state, persists state, draws). It sees every tool call. It draws in Pane. Like any mod, it runs with your permissions.

How do I install context-diet?

Inside Claude Code (v2.1.287 or later), run /plugin marketplace add drkokorev/context-diet and then /plugin install context-diet@context-diet.

Is context-diet popular?

drkokorev/context-diet has 12 GitHub stars and 0 forks, and is included in 1 curated Claude Code list. It was last updated on 11 October 2026.

More context & usage mods

cache-warm

12

KilimcininKorOglu/claude-code-mods

Keeps the 1-hour prompt cache warm for a window you set, or with no end in every session under always, with one cache-shared fork per idle stretch and one keep-warm message after a resume, arms a window for you after a paid cold write, and shows the cache state, the cold price and this session's cold writes.

Context & usage mods/plugin install

leaks

12

davekiss/mods

Find where your Claude Code week went and fix it: /leaks ranks the avoidable spend in your transcripts with one-press fixes, and a strip above the prompt flags a leak while it happens.

Context & usage mods/plugin install

agent-crew

12

bekir1184/agent-crew

Shows your subagents above the prompt as pixel-art Claude crew members: what each one is doing, how far along it is and how many tokens it used.

Context & usage mods/plugin install

agent-router

11

alexandernicholson/agent-router

Choose a model and effort for five agent roles and for agent team teammates with /agent-models, and inspect routing and usage. Requires Claude Code Mod function hooks enabled.

Context & usage mods/plugin install

agentpane

13

xuanji86/claude-agentpane

A side pane for Claude Code that lists the subagents a session runs, what each is doing and what it costs in tokens, with each one's conversation a click away.

Context & usage mods/plugin install

budget-guard

11

Arunjay4213/claude-mods

Stops a session before it runs past a budget. Three figures are guarded, each with a limit you set: the session cost in dollars, the 5-hour plan window and the 7-day plan window. It says nothing until a figure nears its limit, then pins a status line and warns once; past the limit it refuses tool calls and asks before sending another prompt. /guard shows the state and changes the limits.

Context & usage mods/plugin install

Browse the most popular Claude Code mods, all context & usage mods, or the skills and MCP server directories.