| name | remote |
| description | Owns `infra/remotes/*.yaml` โ fleet ops (inventory, WoL, SSH/RDP, reachability, shutdown/reboot) + service ops (health, logs, restart, deploy). "remote" = physical machine, not git remote. Triggers: "remote", "my PC", "my machines", "fleet", "wake", "WoL", "ssh to", "RDP", machine names (homeserver, workstation, laptop, router). |
| metadata | {"scope":"core"} |
Remote
Manage remote machines defined in infra/remotes/*.yaml.
Read the referenced file ONLY when triggered.
Guard
remotes.enabled must be true in bridge-config.yaml. If not: inform and exit.
Arguments
| Argument | Effect | Default |
|---|
(none) | Dashboard of all remotes | โ |
{hostname} | Detail view of one remote | โ |
health {hostname} | SSH health check | โ |
logs {hostname} {service} | Show recent logs | โ |
restart {hostname} {service} | Restart service | โ |
sync {hostname} | Sync config files | โ |
wake {hostname} | Wake-on-LAN | โ |
connect {hostname} | Open SSH / RDP session | โ |
shutdown {hostname} | Power off (requires [y]) | โ |
reboot {hostname} | Restart machine (requires [y]) | โ |
Decision Tree
User wants to...
โโโ Remote overview / dashboard โ Read references/workflow.md (ยง Dashboard)
โโโ Detail view of one machine โ Read references/workflow.md (ยง Dashboard, single host)
โโโ Wake / power on a machine โ Read references/fleet.md (ยง Stage 3 WoL)
โโโ Connect via SSH / RDP โ Read references/fleet.md (ยง Stage 4 Connect)
โโโ Reboot or shutdown โ Read references/fleet.md (ยง Stage 5)
โโโ Check reachability / online? โ Read references/fleet.md (ยง Stage 2)
โโโ Update inventory after a change โ Read references/fleet.md (ยง Stage 6)
โโโ Health check for a machine โ Read references/workflow.md (ยง Health Check)
โโโ View service logs โ Read references/workflow.md (ยง Logs)
โโโ Restart a service โ Read references/workflow.md (ยง Restart)
โโโ Sync config to a remote โ Read references/workflow.md (ยง Sync)
โโโ Deploy services to a remote โ Read references/workflow.md (ยง Deploy)
โโโ Identify "my PC" / intent-only โ Read references/fleet.md (ยง Stage 1 + Learned routing)
โโโ Questions about remotes โ Answer from CLAUDE.md ยง Remotes
Reference map
| File | Owns |
|---|
references/fleet.md | Inventory, WoL, connect, shutdown, reachability, "my PC" routing |
references/workflow.md | Service dashboard, health, logs, restart, sync, deploy |
Hard Rules (non-negotiable)
- Tailscale first, LAN as fallback โ LAN fails on VPN or foreign networks
- No destructive operation (shutdown, reboot, format) without per-action
[y]
- Never store credentials in
infra/remotes/*.yaml โ KeyVault / 1Password URIs only
- Honor
wake_on_lan.enabled: false โ never force wake a machine that opted out
- Read
infra/remotes/{target}.yaml before any operation โ no guessing