Claude Code mod
polite-compaction
Shows context tokens and session cost in a gray line above the prompt. At a token threshold, asks the agent to flush notes, then compacts when it says it is ready.
Install
/plugin marketplace add dtinth/claude-code-mods
/plugin install polite-compaction@dtinth-modsMods install like plugins. Run /reload-plugins or start a new session to load it.
What it can access
- Reach
- L2Writes or runs: drives Claude, reads mod state, draws
- Draws in
AbovePrompt- Hooks
session.startsession.measureturn.completeui.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.
Details
- Repository
- dtinth/claude-code-mods
- Folder
polite-compaction- Marketplace
dtinth-mods- Author
- dtinth
- Last updated
- 3 October 2026
- Listed in
- awesome-claude-code-mods
FAQ
What is polite-compaction?
Shows context tokens and session cost in a gray line above the prompt. At a token threshold, asks the agent to flush notes, then compacts when it says it is ready. It is a mod for Claude Code, from dtinth/claude-code-mods on GitHub.
What can the polite-compaction mod access?
Its widest reach is "writes or runs" (drives Claude, reads mod state, draws). It draws in AbovePrompt. Like any mod, it runs with your permissions.
How do I install polite-compaction?
Inside Claude Code (v2.1.287 or later), run /plugin marketplace add dtinth/claude-code-mods and then /plugin install polite-compaction@dtinth-mods.
More context & usage mods
polimento-visual
DiogoHSM/claude-mods
Pill de contexto sob o prompt, borda laranja nas suas mensagens e ícones coloridos por tipo de execução
power-bottom
brianSchanbacher/power-bottom
A cross-platform Claude Code status line inspired by Trail of Bits' statusline script: model, folder, branch, context bar, cost, time, cache hits, live agents
plugin-xray
kanumuri9593/plugin-xray
Checks every plugin and MCP server before you trust it: what it can do on your machine, what it costs in tokens each turn, what it overlaps with, and what changed in each update.
powerup
betobetico/powerup
/powerups: las lecciones de Claude Code en un panel con botones, en el terminal y en la app de escritorio. Sin tokens: el plugin responde a cada clic sin pasar por el modelo. Las lecciones se descargan con tu clave de acceso y se renuevan cada semana. Mod (function hooks); Claude Code 2.1.284 o posterior.
plan-usage
potterdigital/plan-usage-mod
Shows your Claude plan's session and weekly limits above the prompt, gives Claude a plan_usage tool to check them without a model call, and can pause a long-running session before the session limit and continue after it resets.
pro-limits
rodbegbie/rod-claude-mods
Gauges for the 5-hour and weekly Claude usage limits above the prompt, toggled with /pro-limits
Browse the most popular Claude Code mods, all context & usage mods, or the skills and MCP server directories.