Claude Code mod

smart-compact

Compacts at the right moment: after a commit or green tests, a minute before the prompt cache expires, or when Claude asks for it with its own request_compact tool.

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

Install

Inside Claude Code
/plugin marketplace add hellosverre/smart-compact
/plugin install smart-compact@smart-compact

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

What it can access

Reach
L2Writes or runs: runs processes, drives Claude, reads mod state, draws
Sees
mcp__smart-compact__request_compact calls, Bash calls, PowerShell calls, every prompt, classic hooks
Draws in
PaneAbovePrompt
Hooks
session.starttool.callprompt.submitturn.completeclassic.PreCompactui.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
.
Marketplace
smart-compact
Author
hellosverre
License
MIT
Last updated
20 October 2026

FAQ

What is smart-compact?

Compacts at the right moment: after a commit or green tests, a minute before the prompt cache expires, or when Claude asks for it with its own request_compact tool. It is a mod for Claude Code, from hellosverre/smart-compact on GitHub.

What can the smart-compact mod access?

Its widest reach is "writes or runs" (runs processes, drives Claude, reads mod state, draws). It sees mcp__smart-compact__request_compact calls, Bash calls, PowerShell calls, every prompt, classic hooks. It draws in Pane, AbovePrompt. Like any mod, it runs with your permissions.

How do I install smart-compact?

Inside Claude Code (v2.1.287 or later), run /plugin marketplace add hellosverre/smart-compact and then /plugin install smart-compact@smart-compact.

Is smart-compact popular?

hellosverre/smart-compact has 4 GitHub stars and 0 forks, and is included in 1 curated Claude Code list. It was last updated on 20 October 2026.

More context & usage mods

session-info

4

dougcunha/claude-mods

Session pane: context, cost and turns, the prompt cache with the time until it expires, keep warm and a guard that holds a prompt that would write an expired cache again, the last turn's tokens, cache, tools and refused calls, a task list Claude keeps with a switch that keeps Claude working while tasks remain open, an autopick switch that answers a question left unanswered with its recommended option, the skills in use, GitHub Actions runs, mentioned Jira issues, live plan usage bars, running agents with their model and effort, the shell commands Claude runs in the background, the last build and test run, background runs included, with a prompt that asks Claude to fix a failure and a switch that skips a build or test run when nothing changed since the same command passed, the Git state of the repository and its submodules with a treeview of its changed files, and a treeview of the files this session created, modified or deleted.

Context & usage mods/plugin install

statusbar

4

ian-exnodes/statusbar

Colored two-row status line below the prompt: model, folder, git branch and changes, context fill, 5h and 7d quota left, tokens, cost, session time

Context & usage mods/plugin install

observe

4

Hula-Hoop-AI/supermods

An /observe pane with a tab per provider: Docker and Modal containers with each one's live logs and GPU, CPU and RAM use (and Modal's cost), and Render and Vercel deploys (Vercel grouped by app under its production URL) with the current git branch highlighted. `/observe docker|modal|render|vercel` opens it on that tab

Context & usage mods/plugin install

typing-speed

4

borabiricik/claude-mods

A live typing speedometer above the prompt, offline spell check in your system language, a result card after each prompt (WPM, CPM, accuracy, typos, personal bests) and a /typing stats pane

Context & usage mods/plugin install

noctis

4

synex1437/noctis

Runs long Claude Code jobs overnight within your usage limits: pauses just before the 5-hour or weekly limit, resumes the same session after the reset (or relaunches it days later) and works through a list of jobs you hand it with /noctis:start <file>. Also runs in Codex CLI, Antigravity CLI, Droid and Copilot CLI.

Context & usage mods/plugin install

usage-bar

4

abyigiter/claude-usage-bar

See your Claude Code session at a glance: context left, cost, today's and month-to-date spend, rate limits, git diff and PR status, right above the prompt. Set /budget limits and get a toast before you go over. Open the detail panel for context breakdown, turns, cache hit rate and top tools. Works in the CLI and the desktop Code tab.

Context & usage mods/plugin install

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