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.
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 commands; 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
context-management, handoff-doc, context-window, auto-compact, session-handoff, token-usage, context, handoff ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code mod that notices when your context window is getting heavy and offers to write a handoff doc before compaction, or, in auto mode, writes the handoff, compacts and carries on by itself.
Version 0.3.0 · Works with: Claude Code plugin (marketplace install only)
Beta. The core flow is verified live.
After every main-thread turn, Claude Code reports how full the context is. When the fill reaches 40% of the window (the default), Context Alert opens a question dialog. You can switch to a token limit, or use both (see Trigger modes below):
The context window is now at 40% (80k of 200k tokens).
Write a handoff doc before compaction?
1. Handoff, then compact
2. Handoff only
3. Compact now
4. Not now
5. Other...
The dialog never opens in the middle of a turn. If the fill crosses a threshold while Claude is working, the alert is held and asked when the turn ends. It is designed not to stop or delay background agents.
| Option | What happens |
|---|---|
| Handoff, then compact | Runs the same flow as /handoff-compact (see below): the handoff chain, a wait for busy agents, then compaction. Alert dialogs are held while it runs. An interrupted turn, or 3 turns with no write, cancels the compaction with a toast |
| Handoff only | Runs the handoff chain below and leaves the context alone, for when you'd rather /clear and start fresh from the doc |
| Compact now | Queues /compact, which runs once the session is idle. If that is refused it tries the compaction call directly, and if that fails too it shows "Compaction couldn't start; run /compact" |
| Not now | Nothing. The next alert steps up one tier (+15 points by default; +150k tokens in tokens mode; whichever comes first in either mode) |
| Other... | Your text is sent to Claude as an instruction |
| Esc | Same as Not now |
If a handoff was already written in this session, the two handoff options read "Update handoff…", the question names the file, and that path is passed on.
/compact, auto-compact, or one of the options above) starts the tiers over at the first threshold, whatever the fill after it. A /clear does too, once the fill drops below the first threshold. The step-up only applies while you keep going without compacting.-p) send none. Turn it off with /context-alert set notify false.whenBusy.whenBusy)| Value | Behaviour |
|---|---|
dialog (default) | Always open the dialog |
suggest | While background work is running, show a toast, send the notification, and offer a dim prompt suggestion (Tab to accept) instead of the dialog. With nothing running, the dialog opens as usual. If the suggestion cannot show (a draft is in the box), the tier stays unused and it is tried again at the next idle point |
"Background work" means any agent that is pending, running or waiting, plus anything listed in the background_tasks of the last turn-end (Stop) event: background shells, monitors and workflows.
What "Write handoff doc" does depends on whether a handoff path is already known for the session.
Path known (the option reads "Update handoff (.../file.md)"). Three steps in order:
handoff-doc skill, with that path.context-alert:handoff-doc skill that ships with this plugin, with that path.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.
npx claudepluginhub nathanonn/agent-skills --plugin context-alertPlugins from other owners that cover similar ground