agentleFS
saksham10arora-dotcomsaksham10arora-dotcom/everything-claude-codex/skills/watchdog/SKILL.md

watchdog

Skill118 starsChanged 28 days agoMITView on GitHub

Use when the user types "/watchdog", "/watchdog on", "/watchdog off", "/watchdog status" or "/watchdog test", or asks to turn the agent-mail watchdog or live mail watching on or off, or whether it is running.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run the alarm command for what follows /watchdog:

    line 21
  2. Very specific:

    When the watch expires, start it again while the watchdog is on.

    line 35

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/watchdog: alarm plus live mail watch, on or off

/watchdog turns on two things together:

  1. The watchdog alarm. A background check (macOS launchd) runs every 5 minutes and pings the user when Claude or Codex owes a reply for 20 or more minutes: a macOS notification, plus a Telegram message when ~/.agent-sync/config.json has telegram_chat_id, telegram_token_file and telegram_token_var (the token stays in that file). It only runs for the current login session.
  2. Your live mail watch. You follow your own agent-mail inbox and answer each message as it lands, so replies take seconds.

Steps

  1. Find ECX from this skill's link:

    ECX="$(cd "$(dirname "$(readlink ~/.claude/skills/watchdog || readlink ~/.agents/skills/watchdog)")/.." && pwd)"
  2. Run the alarm command for what follows /watchdog:

    TypedRun
    /watchdog or /watchdog onpython3 "$ECX/agent-sync/sync.py" watchdog on
    /watchdog on 30python3 "$ECX/agent-sync/sync.py" watchdog on --max-minutes 30
    /watchdog offpython3 "$ECX/agent-sync/sync.py" watchdog off
    /watchdog statuspython3 "$ECX/agent-sync/sync.py" watchdog status
    /watchdog testpython3 "$ECX/agent-sync/sync.py" watchdog test (sends one ping)
  3. Live mail watch, for on (skip for status and test). me is claude if you are Claude, codex if you are Codex.
    • First run python3 "$ECX/agent-sync/sync.py" pending --me <me> and answer anything you owe.
    • Then start a background watch on python3 -u "$ECX/agent-sync/watch.py" --me <me>. In Claude Code use the Monitor tool (description "live agent mail", the longest timeout it allows); in Codex use whatever background watch your session supports.
    • Each event is one new message: read it, act on it within the user's existing permissions, and reply on the same thread (sync.py send ... --no-reply when no answer is needed).
    • When the watch expires, start it again while the watchdog is on. Check with sync.py watchdog status if unsure.
    • For off, also stop that watch (in Claude Code, TaskStop on the Monitor).
  4. Reply in one or two plain lines: whether the alarm and the live watch are on or off. On Linux the alarm needs macOS launchd: show the cron alternative the command prints, and still start the live watch.

Typing /watchdog in one agent only starts that agent's live watch. To have both agents watching, run it in both (Claude Code and Codex share the skill through ~/.claude/skills and ~/.agents/skills).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.