All shelves / Mods / Usage
compactly
By swapnildahiphale
compactly is a Claude Code usage mod by swapnildahiphale.
Opens a cost and cache pane with each turn's cost and when the cache goes cold, and compacts at a natural break a Sonnet judge picks, with a handoff summary.
Draws
Install
The marketplace name is compactly.
/plugin marketplace add swapnildahiphale/compactly /plugin install compactly@compactly
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.1.0
- License
- Apache-2.0
- Repo stars
- 4
- Last change
- 2026-10-22
What it can reach
- Draws in the session
- Reads usage or context figures
- Sees tool calls
- Runs a command when you press
Requires Claude Code 2.1.295 or later. Start a new session afterwards. From a shell, the same install is claude plugin install compactly --marketplace swapnildahiphale/compactly. In the CLI, clicking the panel's buttons needs /tui fullscreen; the hotkeys work without it. mode is auto by default (suggest only notifies, off does nothing), judge is sonnet, haiku, or off, and minTokens is 150000. Compaction before the cache expires only runs while Claude Code stays open.
The marketplace name is compactly, and it holds only this plugin. Cost and compaction are why this page files it under usage. smart-compact, by hellosverre, offers /compact in a dialog after a commit, when tests go green, or before the cache expires. compact-adviser, by kunchenguid, draws a hint to run /compact when Jev calls the session a finished checkpoint. This one has Claude Sonnet, through Claude Code, judge whether your new prompt starts after a natural break; if so it holds the prompt back, compacts with a handoff summary, and then sends it. A band asks whether it was a natural break, and each no makes the judge more careful. After a commit, push, or PR with no prompt following, it compacts 5 minutes before the 1-hour cache expires. Saved by compacting tallies what compactions saved, with levels from Cache Rookie to Compaction Legend. The README says the plugin makes no network calls of its own.
Demo

What it hooks into
session.startWhen a session startscommand.runWhen you run its slash commandprompt.submitWhen you send a promptsession.measureWhen usage is measuredsession.compactWhen the context is compactedturn.startWhen Claude starts a turntool.callAround a tool call, where it can hold oneturn.completeWhen a turn endsui.renderDraws into the sessionAbovePromptSessionModePane
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- swapnildahiphale
- Category
- Usage
- Marketplace
- compactly
- Folder
- plugin/compactly
- Version
- 0.1.0
- License
- Apache-2.0
- Repo stars
- 4
- Last change
- 2026-10-22
- Language
- TypeScript
- Files
- 26