Claude Remote Watchdog — Development skill for Claude Code
Auto-detect and fix dead Claude Code Remote Control sessions in tmux.
How to install Claude Remote Watchdog
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Sma1lboy/claude-remote-watchdog and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Remote Watchdog does
Auto-detect and fix dead Claude Code Remote Control sessions in tmux.
Alternatives in Development
- Nexting — Remote control for Claude Code, Codex, Grok, and Cursor on Mac or PC 1.3k ★
- Harness Remote — Native-session control plane for Codex, Claude Code, OpenCode, OMP and PI 356 ★
- Codeman — Manage Claude Code & Opencode in Tmux Sessions in a modern WebUI 329 ★
README
claude-remote-watchdog
Auto-detect and fix dead [Claude Code](https://docs.anthropic.com/en/docs/claude-code) Remote Control (`/remote-control`) sessions in tmux.
The Problem
Claude Code's `/remote-control` silently drops connections after 15-60 minutes. The built-in reconnection never recovers — the status bar shows "Remote Control reconnecting" indefinitely. The only fix is to manually cycle `/remote-control` at the terminal, which defeats the purpose of remote control.
See: [anthropics/claude-code#34255](https://github.com/anthropics/claude-code/issues/34255)
How It Works
- Scans all tmux panes for Claude Code's status bar
- Detects
Remote Control reconnecting(stuck/dead state) - Uses a 2-check grace period to avoid false positives on transient drops
- Sends tmux keystrokes to automatically cycle disconnect → reconnect:
Ctrl+C→ clear prompt/remote-control→ navigate to "Disconnect this session" → Enter/remote-control→ auto-connects to fresh bridge session
Requirements
- Claude Code CLI
- tmux (sessions must run inside tmux panes)
Install
git clone https://github.com/sma1lboy/claude-remote-watchdog.git
cd claude-remote-watchdog
./install.sh
This creates symlinks in `~/.claude/`:
~/.claude/commands/remote-watchdog.md— slash command~/.claude/scripts/remote-watchdog.sh— watchdog script
Usage
Inside Claude Code (recommended)
# One-time health check
/remote-watchdog
# Auto-monitor every 5 minutes
/loop 5m /remote-watchdog
Standalone (no Claude session needed)
# Manual run
~/.claude/scripts/remote-watchdog.sh
# Dry run (detect only, no reconnect)
~/.claude/scripts/remote-watchdog.sh --dry-run
# Crontab (fully autonomous)
*/5 * * * * ~/.claude/scripts/remote-watchdog.sh >> /tmp/remote-watchdog.log 2>&1
Output
=== Remote Control Watchdog 10:48:42 ===
[HEALTHY] Deck (%4)
[WARN] agent-universe (%5):
Related Skills
Claude Code API Watchdog
Auto-recover Claude Code sessions stuck on transient API errors. Outer-loop watchdog for unattended tmux Claud
Remote For Xirp
Remote For Xirp — mobile web control surface for the Xirp agent daemon: machines, projects, sessions, live tmu
Claude Remote Plus
Hot-swap Claude Code remote sessions between projects from your phone. A daemon + MCP server that manages clau
Remote Control Daemons
Automated, persistent, and self-healing systemd services and health watchdog for Claude Code and Codex remote
05 Cleanup
Safe dead code cleanup - detect and remove unused imports and dead files with auto-apply for Low/Medium risk
Waterbear
keep a claude remote-control session alive forever (tmux + launchd), optionally resuming the same conversation
Related Agents
Codex Orchestrator
CLI tool for delegating tasks to GPT Codex agents via tmux sessions. Designed for Claude Code orchestration wi
Skill Portfolio Analyzer
Analyzes installed skills/plugins/MCP servers against ~/.claude.json to detect dead, ghost, duplicate, and col
UX Probe Calibrator
The §5a calibration anchor — plant a KNOWN UX defect (mislabeled control, hidden required field, dead-ended fl