Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude loads one when your task matches it, or you run it by name.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it runs programs; makes network requests; writes files; reads files; reads environment variables (CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC, DISABLE_AUTOUPDATER, DISABLE_UPDATES); reads your settings; changes your /config settings; calls a model on your account; sends prompts on its own.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
leansparkjoy counts a compaction 2^lean times cheaper in its question at a turn end: 1 counts it at half its cost, -1 at twice its cost, and 0 at its cost. Fractions work too, from -20 to 20. The floors stay as they are.
numberdefault 0
Modemode
on asks the session's model whether to compact at turn ends and in idle sessions, and compacts when it says to; classify asks and shows each verdict but never compacts; off asks nothing.
One of on, classify, off
stringdefault on
Floor at turn endsfloor
The context, in tokens, from which sparkjoy asks at a turn end: above the context after a compaction and below 1000000. Unset, it is the floor /sparkjoy report fitted, or 250000.
number
Floor in idle sessionsidle_floor
The context, in tokens, from which sparkjoy asks before an idle session's prompt cache lapses: below 1000000. Unset, it is the floor /sparkjoy report fitted, or 175000.
number
Instructionsinstructions
Your own guidance for the decision, added to sparkjoy's question.
string
To truly cherish the things that are important to you, you must first discard those that have outlived their purpose.
— Marie Kondo, The Life-Changing Magic of Tidying Up
sparkjoy is a Claude Code plugin that lets Claude decide when to compact, keeping the full 1M window available for work that needs it. Since Dec 1, Claude Code defaults to compacting once the context passes about 370k tokens, almost always while Claude is still working[^window]. Against that default, sparkjoy gets 20% more work done per dollar, though as my sessions ran it cost 8% more per request.
The ways a Claude Code session gets compacted, with and without sparkjoy:
| When it compacts | |
|---|---|
/compact | when you run it |
| Claude Code | at ~370k tokens (~965k with /autocompact 1M), usually mid-turn |
| Claude Code (idle) | from 200k, just before the 1-hour cache expires[^idle] |
| sparkjoy | at a turn end from 250k, if the model says to |
| sparkjoy (idle) | from 175k, just before the cache expires, if the model says to |
Context size over a session with sparkjoy, compared with what the same requests would have carried under Claude Code's 400K default and its full 1M window:
Every request reads the full context, so the area under each line is total tokens read. Over the whole session, the 400K default compacted mid-turn 24 times and sparkjoy never did. sparkjoy kept context past 370k while the model judged the work still needed it.
7-day copy clicks
npx claudepluginhub max-sixty/sparkjoy --plugin sparkjoyPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.