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 PyroxinEPL-2.0In 1 marketplace
Lets Claude manage its own context window in Claude Code, so a long task can run to completion unattended. Mods are an early-access plugin component, so the API this one is written against may change between releases.
Trending plugins
7-day copy clicks
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.
Compaction notice thresholds (percent of context remaining)remainingContextNoticePercents
Claude is told that compacting at its next resumable point would be useful when the context remaining before the limit falls to one of these percentages; percentages passed in one step send one notice. The limit is the auto-compaction threshold, or the context window when auto-compaction is off. Enter the percentages separated by commas (e.g., 60, 40, 20), or auto for the defaults: 50, 30, and 15.
string listdefault ["auto"]
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; reads files; reads or rewrites your prompts; sends prompts on its own; changes what Claude reads (system prompt, context, reminders).
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.
Final compaction notice (tokens of context remaining)remainingContextFinalNoticeTokens
How many tokens before the limit Claude is told how little room is left and asked to compact at the nearest resumable point. Enter a whole number of tokens, or auto for the default: 30000.
stringdefault auto
A mod that lets Claude compact its own conversation at points it chooses. Claude Code compacts a conversation by itself as it nears the context limit, which can happen partway through a step and under a summary written without instructions from Claude, so the work that follows depends on what that summary happened to keep. With this mod, Claude keeps notes on the task in workspace files as it works, asks for a compaction when the work reaches a point it can be resumed from, and is resumed afterward with a prompt it wrote for itself, so the task carries on without the person present.
Mods are an early-access plugin component, so the API this one is written against may change between Claude Code releases. Claude Code only.
The mod adds three things to a session:
{project-root}/.tmp/notes/{task-name}/, and to compact whenever the work is at a resumable point and the conversation's detail is in those notes.compact, which takes Claude's instructions for the summary, the prompt to resume with, and the paths of the note files. When that turn ends with Claude's answer, the mod compacts and then submits the prompt, led by the note files' absolute paths.The ordinary and final notices and the tool's description each restate where the notes go and what they hold, and say that the notes don't go in a persistent memory store outside the workspace (e.g., Claude Code's memory directory). These restatements reinforce the system prompt section and don't replace it: when a notice arrives or Claude considers calling the tool, much of the conversation lies between the section and the current work, and restating the documentation expectations reminds Claude of them at the point where they apply.
The notes folder is working material and is not meant to be committed; the main README's section on opinionated-research describes how .tmp/ is usually already ignored by git.
A turn that ends any other way than with Claude's answer (interrupted, refused, or failed) drops the request. So does a later tool call in the main conversation, a /clear or /resume, a prompt that comes after the request and before the compaction starts, or a turn that starts before it. A subagent's tool calls, and calls another plugin makes for itself, don't count; a prompt here is any the session receives, e.g., a background task's notification as well as the person's message. A reload of the mod while Claude Code is compacting also ends the request when a prompt arrived during that compaction.
When Claude Code compacts the conversation by itself, the person runs /compact, or another plugin compacts it, while a request is scheduled, that compaction stands for the one Claude asked for: the mod doesn't compact a second time, and submits the prompt as it would have.
Except after a /clear or /resume, the mod tells Claude that the request ended without a compaction: with the result of the tool call that canceled it, or otherwise by a notice added to the conversation, which names the cause and says what to do next: for most causes, to attend to what canceled the request and then to ask again. When another compaction had replaced the conversation before the request was canceled, the notice says so and lists the note files, because Claude then has the summary and not the conversation it asked from.
When Claude Code declines or fails the compaction itself, the mod submits a notice in place of Claude's prompt, so the work carries on in the conversation as it stands; Claude's own prompt is submitted only after a compaction, because it was written for a reader who has just the summary. When a prompt can't be submitted, the mod tries once more and then leaves a notice in the conversation, which Claude reads with the next prompt.
A line in the transcript tells the person each of these outcomes, including a compaction that ran; where Claude Code gave a reason for declining or failing a compaction, that line carries it and Claude's notice doesn't.
A known limitation follows from the rule about prompts: when a background task (e.g., a subagent or a background command) finishes after the request and before the compaction starts, its notification cancels the compaction. The last notice tells Claude not to wait for background work, so the case is likeliest there. This behavior has been observed in a session: the request was canceled and Claude read the notice.
7-day copy clicks
npx claudepluginhub pyroxin/opinionated-claude-skills --plugin opinionated-context-managementBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground