mcpField
U
uninstall-watchdog

uninstall-watchdog

github.com/atholaAgent workflows34382 installsUpdated 1d ago
Repository

About uninstall-watchdog

uninstall-watchdog is a skill for removing the egregore watchdog daemon, intended for maintainers who no longer want sessions relaunched automatically. It guides service removal on macOS or Linux, associated file cleanup, and verification.

Key features

  1. 01Stop and remove the watchdog service
  2. 02Remove PID files and logs
  3. 03Verify the service is uninstalled
  4. 04macOS and Linux instructions

Use cases

  1. 01Disable automatic relaunching of egregore sessions
  2. 02Clean up before removing the egregore plugin
  3. 03Switch from daemon mode to manual invocation

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/athola/claude-night-market --skill uninstall-watchdog

After installing, type/uninstall-watchdogin Claude Code to confirm it loaded.

Details

From the project README

Uninstall Watchdog

Overview

Removes the egregore watchdog daemon and cleans up all files created by the install-watchdog skill. After uninstalling, egregore sessions will no longer be relaunched automatically.

When To Use

  • When you no longer want autonomous relaunching.
  • Before removing the egregore plugin from a project.
  • When switching from daemon mode to manual invocation.

When NOT To Use

  • When the watchdog was never installed (check first with the verify commands below).

Uninstall Steps

1. Detect the operating system
OS=$(uname -s)
2. Stop and remove the service

macOS (launchd):

PLIST=~/Library/LaunchAgents/com.egregore.watchdog.plist

# Unload the agent (stops it if running)
launchctl unload "$PLIST" 2>/dev/null

# Remove the plist file
rm -f "$PLIST"

Linux (systemd):

# Stop and disable the timer and service
systemctl --user stop egregore-watchdog.timer 2>/dev/null
systemctl --user disable egregore-watchdog.timer 2>/dev/null

# Remove unit files
rm -f ~/.config/systemd/user/egregore-watchdog.timer
rm -f ~/.config/systemd/user/egregore-watchdog.service

# Reload systemd to pick up the removal
systemctl --user daemon-reload
3. Clean up associated files
# Remove pidfile if present
rm -f ~/.egregore/watchdog.pid

# Remove watchdog log
rm -f ~/.egregore/watchdog.log
4. Confirm removal

macOS:

launchctl list | grep egregore
# Should produce no output

Linux:

systemctl --user list-timers | grep egregore
# Should produce no output

Report to the user that the watchdog has been removed and automatic relaunching is disabled.

Files Removed

FilePlatformPurpose
~/Library/LaunchAgents/com.egregore.watchdog.plistmacOSlaunchd agent definition
~/.config/systemd/user/egregore-watchdog.timerLinuxsystemd timer unit
~/.config/systemd/user/egregore-watchdog.serviceLinuxsystemd service unit
~/.egregore/watchdog.pidbothPID of last watchdog run
~/.egregore/watchdog.logmacOSwatchdog output log

Exit Criteria

  • On macOS: ~/Library/LaunchAgents/com.egregore.watchdog.plist does not exist after uninstall completes
  • On Linux: ~/.config/systemd/user/egregore-watchdog.timer and egregore-watchdog.service are both removed and systemctl --user daemon-reload has run
  • Verification command returns empty output: launchctl list | grep egregore (macOS) or systemctl --user list-timers | grep egregore (Linux)
  • ~/.egregore/watchdog.pid and ~/.egregore/watchdog.log are removed (or absent if they were never created)
  • User is notified that the watchdog has been removed and automatic relaunching is disabled

Comments

Markdown supported