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 thewolffv0.4.4MITIn 1 marketplace
Notice when the ctx daemon is dead, unsupervised or stale or its index is not ready, repair it and say so in a macOS popup; on Claude Code also say so at session start and mid-session to the agent, and warn when a resumed session skips ctx.
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
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.
Notice when the ctx daemon is dead, not supervised, or stale,
or its semantic index is not ready; repair what ctx documents a command for; and say so in three
places: a line at Claude Code's SessionStart, a note to the agent mid-session when ctx goes down
or comes back, and a macOS popup from a launchd timer that runs whether or not a session is
open. And, at Stop, notice a session that picked a thread back up (a resume or a compaction, or
a reply that says "as discussed") without asking ctx what the thread was: the
consult-history check.
The hooks (hooks/hooks.json, Claude Code only):
| Event | Script | What it says |
|---|---|---|
SessionStart | hooks/session-start.mjs | probes ctx; one line to the person, a block to the agent when ctx is down |
UserPromptSubmit | hooks/mid-session.mjs | reads the timer's state only; tells the agent once when ctx goes down, once when it is back |
PostToolUseFailure (a failed ctx Bash call or mcp__ctx__* tool) | hooks/mid-session.mjs | the same, at the failed call, sharing the latch |
Stop | hooks/stop.mjs | the consult-history check |
Why: from 2026-10-28 to 10-31 the ctx daemon was down and nothing said so. Its launchd job had
never loaded (ctx's own launchctl bootstrap had failed with "Bootstrap failed: 5: Input/output
error"), so KeepAlive never applied; agent shells carry CI=true, under which ctx refuses to
start a daemon, so no agent's ctx call brought it back; and ctx daemon status exits 0 either
way, so a script that read the exit code saw nothing wrong.
And from 2026-11-05 to 11-11 it was down again, for a different reason: ctx 2.3.0's automatic
upgrade to 2.4.1 died between quiescing and applying, left an upgrade state that fenced out
every new daemon, and a later heal recorded a launch environment without LANG, which ctx then
called environment_invalid. ctx-watch saw it, popped once, and went quiet for six days. 0.3.0
does not heal into a live upgrade, names a stuck one, keeps raising an unanswered popup, carries
LANG into the timer, tells the agent as well as the person, and gives the agent a repair
verb that runs the sequence that worked on 2026-11-11.
And ctx dies in the middle of sessions (2026-11-04 three times in one afternoon, and 2026-11-11
between two repairs), while until 0.4.0 the agent heard about it only at SessionStart. 0.4.0
tells it at its next prompt, or at the failed ctx call, from the state the timer already keeps,
and makes repair test that it can load a LaunchAgent before it pauses the timer.
/plugin marketplace add thewolff/jo-wolff-plugins
/plugin install ctx-watch@jo-wolff-plugins
On OMP, from a shell:
omp plugin marketplace add thewolff/jo-wolff-plugins
omp plugin install ctx-watch@jo-wolff-plugins
ctx-watch ships no OMP extension, so OMP runs none of its hooks: no SessionStart line, no
mid-session note on a prompt or a failed ctx call, and no Stop check. The skill, the CLI and the
launchd timer below work the same on both; <plugin dir> is wherever the host installed the
plugin.
Then the timer, once, from your own Terminal (a GUI login session, which is where launchd's
gui/<uid> domain lives; ctx's own bootstrap failed from somewhere else):
node <plugin dir>/scripts/ctx-watch.mjs install
It writes the plist to ~/Library/LaunchAgents/com.jo-wolff-plugins.ctx-watch.plist, lints
it, and prints the one launchctl bootstrap gui/<uid> <plist> line to run. It never runs
bootstrap itself. See Where the plist lives for why that directory. The plist names this
script by its absolute path, and Claude Code installs plugins under a directory with a version
segment (~/.claude/plugins/cache/jo-wolff-plugins/ctx-watch/<version>/), so after a plugin
update the timer points at a path that may be gone: run install again and the printed
bootout-and-bootstrap line. Until you do, the SessionStart hook says the timer's script no
longer exists.
install refuses to write a plist when no ctx is on this shell's PATH (a timer that can
never find ctx would only ever pop up); --ctx <path> names one by hand.
Since 0.3.0 the plist carries LANG and ctx's other launch-environment settings from the
installing shell (see The timer and the popup). A shell without LANG (one launchd started,
such as Claude Desktop's) gets a fallback: the LANG ctx itself recorded for its daemon, else
one derived from macOS's AppleLocale; install says which. An existing install gets them
only on the next install and the printed bootout-and-bootstrap line; until then a heal the
timer runs may record a daemon launch environment without LANG.
The probe. ctx daemon status --format json, spawned with CI removed from the environment
and a 10 s bound, judged on the JSON and never the exit code. Failing, each with its own reason
naming the field:
npx claudepluginhub thewolff/jo-wolff-plugins --plugin ctx-watchPlugins 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.