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 CrazyWillBearv2.2.0MITIn 1 marketplace
Context-window management: the four hooks (watchdog, resume, save-handoff, suggest-docs) that drive deliberate, early /clear and /handoff as a session's window fills, plus /handoff and /handoff-plan themselves. Calls into nothing else, so every other plugin can depend on it.
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
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.
Context-window management, versioned here with the rest of my setup: the four hooks that
drive deliberate, early /clear and /handoff as a session's window fills, plus /handoff
and /handoff-plan themselves. Nothing here calls into another plugin (the star rule — see
docs/swarm-design.md § Plugin split), so every other plugin can lean on context being
installed without it becoming a circular dependency.
plugins/context/
├── .claude-plugin/plugin.json # manifest
├── skills/
│ ├── handoff/SKILL.md # /handoff — write a handoff doc + resume pointer, then /clear
│ └── handoff-plan/SKILL.md # /handoff-plan — capture the approved plan + resume pointer, then /clear
├── hooks/hooks.json # wires the scripts below to hook events
├── scripts/
│ ├── watchdog.sh # UserPromptSubmit: advise /clear before /orchestrate in a full window; nudge a swarm peer past its roster rotate_at to /handoff
│ ├── resume.sh # SessionStart: re-inject the common-dir-keyed handoff (worktree-reuse aware) after /clear or /compact
│ ├── save-handoff.sh # PreCompact: write a handoff before every compaction; OWNS the per-repo keyed dir
│ └── suggest-docs.sh # Stop: soft nudge when a batch changed code but no docs
├── tests/ # one bash test per script + skill
└── README.md # this file
/handoff and /handoff-plan/handoff [note] — capture a rich handoff before /clear: write the handoff doc and the
resume pointer resume.sh reads, both under a per-repo keyed dir
~/.claude/handoffs/<sha1(--git-common-dir)[:16]>/ (<branch-slug>.md + .pending.json).
Keying by the shared common .git means the primary tree and all its linked worktrees share one
pointer (a worktree handoff resumes from anywhere in the repo) while concurrent handoffs across
different repos never collide. Captures work done, in-flight state, next steps, key files, and
gotchas, then tells you to /clear and send go. Requires committed work first. The skill never
recomputes the keying itself — it calls save-handoff.sh (same plugin, so CLAUDE_PLUGIN_ROOT
resolves it reliably) for both the doc's directory and the pointer write./handoff-plan [path] — the plan-only sibling of /handoff, run right after exiting plan
mode: capture the just-approved plan (or the file at [path], which wins when given) verbatim to
<branch-slug>-plan.md in the same keyed dir, then call save-handoff.sh --handoff-path <that file> to write the same .pending.json resume pointer aimed at the plan doc —
save-handoff.sh's default lookup only ever matches the plain <branch-slug>.md /handoff
writes, never this shape, so the path has to be explicit. Tells you to /clear and send go so
a fresh session reads the plan and implements it from the committed baseline. No rich doc — the
plan is the doc. Warns (not blocks) on a dirty tree.hooks.json wires four scripts to Claude Code hook events. All of them fail open: a
missing python3/git or any error exits 0, so they never wedge a session.
watchdog.sh (UserPromptSubmit) reads live context occupancy
from the transcript — the last assistant entry's input_tokens + cache_read + cache_creation — and fires at most one advisory signal (two concatenated JSON objects
would be invalid, so the gate wins when both would apply). No hook can type a slash
command, so it injects instructions and tells you the one command to run.
Orchestrate gate (advisory, UserPromptSubmit only): when you type the workflow plugin's
/orchestrate slash command (bare or with args) and context is already ≥
WORKFLOW_PLANGATE_TOKENS (default 60k), it injects a hint to run /clear first so
the loop starts in a fresh window. It is purely advisory — never a decision: block —
so /orchestrate still runs if you proceed. Natural-language phrasing ("please
orchestrate") does not match; it requires the leading slash.
Peer rotation nudge (advisory, UserPromptSubmit only) — docs/swarm-design.md
§ Rotation. A swarm peer is the one session that should be told to wrap up: its whole
purpose is to be rotated, and claude agents --json exposes no context size, so nothing
but the peer itself can measure it. Past its roster row's rotate_at (default 300k)
the peer is told to run /handoff at the next natural stopping point and then
SendMessage the orchestrator the doc path — the peer picks the moment, and it never
rotates itself; the orchestrator runs swarm.sh rotate.
npx claudepluginhub crazywillbear/my-dotclaude --plugin contextPlugins 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.