/ctx-watch:repairfrom ctx-watch
Repair a down ctx daemon or a stuck ctx upgrade when a SessionStart context or line from ctx-watch says ctx is not running or its upgrade is stuck, or the person asks to fix ctx; not while ctx-watch says an upgrade is in progress, and not for the semantic index.
Ships in ctx-watch. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The ctx history daemon has stayed down for days before: on 2026-11-05 ctx's automatic upgrade
died between quiescing and applying, left an upgrade state that fenced out every new daemon,
and later a heal recorded a launch environment without LANG. repair is the sequence that
brought it back on 2026-11-11, with that run's confirmations turned into checks that refuse.
node "${CLAUDE_PLUGIN_ROOT}/scripts/ctx-watch.mjs" repair from this shell. It takes up
to about three minutes (ctx's own handoff waits up to 75 s); do not interrupt it.repaired or healthy; nothing changed: say so in one line. If it says automatic
upgrades are now off, tell the person ctx upgrade enable turns them back on once a fixed
ctx release is out.refused: …: no ctx change was made. Say the reason. upgrade in progress,
upgrade state unknown or owner pid … is alive means wait; wait Nm and run repair again means exactly that; LANG could not be found, launchctl not found, cannot load LaunchAgents into launchd domain gui/<uid> (a sandboxed shell: launchctl can read the
domain but its bootstrap fails), or launchctl not saying whether the timer is loaded
means the person runs the same command from their own Terminal; indexing mode manual is
their decision.repair takes the
LANG ctx recorded, else one from AppleLocale (each only if locale -a lists it), and names
it in the first line's JSON lang, with anything it skipped in lang.skipped.failed: …: say the line and hand the person the first line's JSON steps entry
that failed. If it says the timer was NOT restored, hand over the launchctl bootstrap
line install prints: the run counts as failed even when the daemon came back.interrupted by SIG…: the run was stopped; the timer was restored
unless the line says otherwise. Run it again when nothing is interrupting it.ctx upgrade --dry-run, ctx upgrade disable or launchctl yourself in place of
this command: repair runs them only after checking that no upgrade owner process is alive.
The --dry-run release was observed to work on 2026-11-11; ctx does not document it.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub thewolff/jo-wolff-plugins --plugin ctx-watch2 skills in this plugin