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.
By jmcarthurv0.3.3MITIn 1 marketplace
Gives the model a tool to compact its own context, suggests compacting at boundaries, and keeps the prompt cache warm while background work runs.
Code that runs inside Claude Code on every session, as you, unsandboxed.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Cache lifetimecacheTtlMinutes
Prompt-cache lifetime in minutes, overriding the one tidy detects. Leave empty to detect it as Claude Code chooses it; set 5 if you usually draw extra usage, which drops the cache to five minutes. Tidy keeps a waiting session's cache warm by reading it just before this lifetime ends. 0 turns keep-alive off.
number
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; runs programs; reads files; reads environment variables (CLAUDE_CODE_PROMPT_CACHE_TTL, CLAUDE_CODE_USE_BEDROCK, CLAUDE_CODE_USE_FOUNDRY, CLAUDE_CODE_USE_VERTEX, CLAUDE_CONFIG_DIR, DISABLE_PROMPT_CACHING, ENABLE_PROMPT_CACHING_1H, ENABLE_PROMPT_CACHING_1H_BEDROCK, FORCE_PROMPT_CACHING_5M, HOME); reads your settings; calls a model on your account; reads or rewrites your prompts; 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.
Keep-alive budgetkeepaliveBudget
Spending cap for keep-alive in one wait, counted in full cache writes: once its cache reads would cost this many writes, tidy lets the cache expire. 0 turns keep-alive off.
numberdefault 1
Compaction reminder sizecompactNudgeTokens
Tidy suggests compacting at a boundary (after recorded work, or as a wait starts) when the context is at least this many tokens. 0 turns suggestions off. Autocompact still handles overflow.
numberdefault 300000
Tidy looks after a Claude Code session's context. It gives the model a tool to compact its own context, suggests compacting at natural boundaries, and keeps the prompt cache warm while the session waits on background work, so that the work's report does not pay to cache the whole context again.
claude plugin marketplace add jmcarthur/claude-plugins
claude plugin install tidy@jmcarthur
Then run /reload-plugins in each open session. Tidy needs no setup. The
top-level README covers updating.
mcp__tidy__compact, and the compaction runs when the turn
ends.Tidy never compacts on its own, so keep autocompact on as a backstop.
resume, tidy submits that prompt
after the compaction.keepaliveBudget cache writes' worth of reads.Tidy logs its events to ~/.claude/tidy/<session-id>.jsonl.
Set these in /config, or under pluginConfigs["tidy@jmcarthur"].options in
~/.claude/settings.json. An empty or out-of-range number gives its default,
and a toast at session start names it.
| Setting | Default | Meaning |
|---|---|---|
compactNudgeTokens | 300000 | Smallest context for a compaction suggestion at a boundary. 0 stops them. |
cacheTtlMinutes | empty | Overrides the detected cache lifetime, in minutes. 0 stops keep-alive. |
keepaliveBudget | 1 | Most that keep-alive may spend in one wait, in cache writes. 0 stops it. |
The reference covers the details: what counts as a boundary and a wait, how a message you send during the turn is protected, the keep-alive's cost cap, and how tidy detects the cache's lifetime.
npx claudepluginhub jmcarthur/claude-plugins --plugin tidyBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.