Sma1lboy

Claude Remote Watchdog — Development skill for Claude Code

Development community

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

  1. Scans all tmux panes for Claude Code's status bar
  2. Detects Remote Control reconnecting (stuck/dead state)
  3. Uses a 2-check grace period to avoid false positives on transient drops
  4. 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):