Context Threshold Notify — Communication skill for Claude Code
Clickable macOS notification when a Claude Code session's context passes a token threshold.
How to install Context Threshold Notify
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open asaphe/context-threshold-notify and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Context Threshold Notify does
Clickable macOS notification when a Claude Code session's context passes a token threshold.
Alternatives in Communication
- Agentrove — A self-hosted web and macOS desktop app for Claude Code and Codex, powered by ACP 270 ★
- Wechat Exporter — A Claude Code / Codex skill to export and decrypt WeChat (macOS) chat history into plaintext SQLite databases 208 ★
- Rp Build CLI — Build with rp-cli context builder → chat → implement 75 ★
README
context-threshold-notify
A Claude Code plugin for macOS. It posts a notification when a session's context passes a threshold (default **50% of the context window**), and again after the context drops and climbs back. Clicking the notification brings that session's terminal tab to the front.
Install
brew install terminal-notifier # makes the notification clickable
claude plugin marketplace add asaphe/context-threshold-notify
claude plugin install context-threshold-notify@context-threshold-notify
Without `terminal-notifier` you still get a notification, but macOS attributes it to Script Editor, so clicking it opens Script Editor.
The first click may make macOS ask whether `terminal-notifier` may control iTerm2 or Terminal; allow it to get exact-tab focus.
On other operating systems the hooks exit at once and do nothing.
What a click does
| Terminal | Click result |
|---|---|
| iTerm2 | The exact tab |
| Terminal.app | The exact tab |
| Anything else (Ghostty, VS Code, Cursor, Warp, kitty, WezTerm, …) | The terminal app comes to the front |
Configure
By default the plugin notifies at **50% of the context window**. A hook can't see the window size, so tell the plugin yours:
claude plugin configure context-threshold-notify
| Option | Default | Meaning |
|---|---|---|
window_tokens |
guessed | Your context window in tokens, e.g. 200000 or 1000000. Left empty, it is guessed: a model name containing [1m] (such as opus[1m]) means 1,000,000, anything else 200,000. The name comes from the transcript's requestedModel when that contains [1m] (so /model and --model are followed), else from ANTHROPIC_MODEL, the project's .claude/settings.local.json and .claude/settings.json, then your user settings.json. A context above 200,000 tokens always means a 1,000,000 window |
percent |
50 |
Notify at this percent of the window (1–100, no leading zero) |
threshold_tokens |
empty | An absolute token th |
Related Skills
Agentic Coding Notify
macOS notification plugin for Claude Code + iTerm2. Sound alerts with session identification by profile name.
Context Injection
Configure and tune automatic context injection for Memory OS. Covers the Icarus pre_llm_call hook flow, 4 sour
Claude Code Notify
Get notified when Claude Code finishes responding. Sound, notification banner, or both.
Notify Setup
Interactive setup — walks through enabling notification channels and writes ~/.claude-notifications/config.jso
Notify Nt
Completion ping — desktop notification + optional ntfy.sh phone push. Best-effort; a failed ping never fails t
Shuten
Two plugins that cut an agent's excess text: CCShut - comments in the code (against context rot), Shut - chatt
Related Agents
Parallel Implementer
Implements one GitHub ticket in its own git worktree, dispatched by the parallel-work skill. The main session
Context Auditor
Use proactively when the user wants to cut Claude Code token cost or asks "why is this session so expensive /
System Critic
Adversarial design-system review with fresh context — hunts premature abstraction, domain leaks into primitive