← ClaudeAtlas

watchjoblisted

Run a long command under supervision and get told out loud when it ends — starts it as a transient systemd unit (local or over ssh), tracks it authoritatively, then announces the outcome through Home Assistant TTS and a notifier of your choice. Use for builds, sweeps, deploys, long test runs, or any task that outlives one command, and whenever the user says "run this and tell me when it's done", "monitor this build", "watch this job", "notify me when ready", "supervise this". Notifies on failure as well as success.
tommasobbianchi/watchjob · ★ 0 · AI & Automation · score 70
Install: claude install-skill tommasobbianchi/watchjob
# watchjob — start it, supervise it, say so out loud One command that starts long work, keeps a trustworthy record of it, and announces the end — by voice in the room and on your phone. ```bash scripts/watchjob.sh <name> [--host user@host] [--label "spoken name"] [--speaker media_player.x] -- <command...> ``` **Keep what it says short.** A job name is an identifier and is unreadable aloud, so the spoken label defaults to the name with hyphens as spaces, and `--label` overrides it with something a person would actually say. Heard from across a room, short beats precise: | | | |---|---| | success | *"orca build complete."* — plus `", N minutes"` only when N ≥ 1 | | failure | *"orca build failed. Exit code 9."* | Elapsed time on a short job is noise, and noise is what makes an announcement get ignored. The second channel still carries the detail — it is read, not heard. Examples: ```bash # local scripts/watchjob.sh kernel-suite -- 'cd ~/src/myproject && ./run-tests.sh --full' # on a build box, announced in the workshop scripts/watchjob.sh orca-build --host me@buildbox -- \ 'cd ~/src/slicer && cmake --build build --config Release -j 14' ``` ## Why this exists, and what it refuses to do A build finished at 15:27 and was reported as "still linking" for the next 70 minutes. Two causes, both structural: - **The status check matched itself.** `pgrep -f "cmake --build build"` inside an ssh command containing that string always matches, so the answer is always "running".