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 maguerrieriv0.1.0MITIn 1 marketplace
Wakes the local session that owns a PR when the owner or a configured review bot acts on it, or when it merges or closes
Claude loads one when your task matches it, or you run it by name.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Wakes the local Claude Code session that owns a PR when the owner or a configured
review bot acts on it, or when it merges or closes. Epic #290 says why: harness PR
events reach only cloud sessions, and a local background session is stopped after it
idles, so a comment on a PR a session opened otherwise reaches nobody. This plugin is
the program that does it (#293). The design follows the #292 spike's findings
(docs/superpowers/specs/2026-10-31-pr-notifier-spike.md, Design corrections for
#290), which this README cites as "the spike".
It is a plain local process: no model, no tokens. It runs as the macOS user whose
sessions it serves, polls that user's GitHub account through gh, and resumes
sessions through claude.
| Path | What |
|---|---|
bin/pr-notifier | The CLI: subscribe, unsubscribe, status, check |
lib/examine.jq | The filter: one PR's issue timeline and state, turned into wake events |
scripts/owner-check.sh | Vendored from ticket-workflow (#291), below |
scripts/pr-notifier-shim.sh | What the install copies to the stable path |
skills/pr-notifier/SKILL.md | When sessions call it, and the wake prompt's exact shape |
tests/test-pr-notifier.sh | Tests against stubbed gh and claude |
Sessions and the launchd job call $HOME/.local/bin/pr-notifier, never the plugin
cache's own directory, whose name carries the version and changes on every update.
The install (#295) copies scripts/pr-notifier-shim.sh there. The shim runs the newest
pr-notifier/<version>/bin/pr-notifier it finds under any of the user's config roots
(~/.claude/plugins/cache/maguerrieri-toolbox/… and ~/.claude-*/plugins/cache/…),
so an update needs no reinstall. PR_NOTIFIER_ROOT pins a plugin directory instead (a
checkout, or a test). The launchd job runs "$HOME/.local/bin/pr-notifier" check.
Everything lives in $PR_NOTIFIER_HOME, default ~/.local/state/pr-notifier, one per
macOS user and shared by all of that user's config roots:
registry.json: the subscriptions. Each records the PR (owner/repo#n, lowercased),
the full session id, the session's name, CLAUDE_CONFIG_DIR only if it was set (set
to ~/.claude counts as unset: the spike's Trap 3), and subscribed_at, two minutes
before the subscribe so clock skew can't hide a reply that came right after it. No
launch dir and no PATH (the spike's Subscribe: what to record).state.json: the feed's cursor (Last-Modified, since, the next poll time), each
PR's cursor (timeline items seen, owner checks being retried, tracked comments, last
sweep, its notification thread's last updated_at, and how long its reads have
failed), cached owner checks, and the events held per session (with any wake backoff).config.json: optional settings (below).notifier.log: append-only, one line per poll, filtered event (kept or dropped, and
why), hold, wake, unsubscribe and stale hold. It isn't rotated; the install can add
that.lock/: held by any command that writes, so a subscribe never races a check.
subscribe and unsubscribe wait up to five minutes for it; check skips its turn
if it's held. A lock whose holder died, or that has been held over 30 minutes (a dead
holder whose pid another process now has), is taken over, one contender at a time
(lock.takeover/), so two can't both take it.Files are replaced atomically (written beside, then moved).
check takes the lock (or logs check skipped=locked and exits 0), then:
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 maguerrieri/claude-toolbox --plugin pr-notifierPlugins from other owners that cover similar ground