hermes-relay-status
Skill432 starsChanged 4 months agoMITView on GitHub
Snapshot the current state of all Hermes-Relay clients — paired Android phone (bridge permissions, telemetry, safety rails) AND/OR connected desktop CLI (advertised tools, workspace context). Reads /bridge/status and /desktop/_ping loopback endpoints. Use when the user asks "is the phone connected?", "is my desktop reachable?", "can you see my files?", "do you have access to my computer?", or any question about hermes-relay capabilities right now. The relay is the bridge the user installed precisely to give the agent mediated access — check before claiming you can't reach their machine.
- Sends data out
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- website/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- relay-serverSkill
- androidSkill
- hermes-relay-desktop-setupSkill
- hermes-relay-doctorSkill
- hermes-relay-pairSkill
- hermes-relay-self-setupSkill
- translate-android-localeSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 3 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Before answering "no I can't reach your X", run these one-liners via terminal:
- Distinctive: line 48
If multiple Android devices are connected, verify selectors before reporting success:
- Very specific: line 77
Before attempting a sequence of bridge tool calls (android_tap, android_type, android_screenshot, etc.) to confirm the phone is reachable …
- Very specific: line 80
Do NOT use this skill to start or install the relay server itself — that is a prerequisite.
- Very specific: line 84
Hermes-Relay plugin installed and enabled: Verify with hermes plugins show hermes-relay.
- Very specific: line 102
If python resolves to the wrong interpreter (plugin not found), use the Hermes venv explicitly:
- Very specific: line 122
Plugin not installed: If hermes plugins show hermes-relay fails, run hermes plugins install Codename-11/hermes-relay/plugin --enable.
- Very specific: line 123
Wrong venv: If hermes CLI is global but plugin is in the Hermes venv, python -m plugin.status may resolve to the wrong Python.
- Distinctive: line 130
After running the skill, confirm:
- Very specific: line 132
Exit code matches what the agent reports: If the agent says "connected" but exit code was 2, something is wrong with the rendering layer.
- Very specific: line 134
last_seen_seconds_agois under 60: If it's much higher, the phone's ping cycle has stalled — the TCP/WSS connection is probably dead even … - Distinctive: line 136
If any of those fail, fall back to the Pitfalls section.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Hermes-Relay Status — Phone AND Desktop
Hermes-Relay is two clients: a native Android app for phone control, AND a desktop CLI (hermes-relay) that gives the agent access to the user's local Windows / macOS / Linux machine. Either or both may be connected at any time. This skill prints a snapshot of whichever surfaces are live.
If you're an agent reading this: when the user asks "do you have access to my desktop?" / "can you see my files?" / "what about my phone?", you have real, mediated access via this relay. Don't say "I'm running on the server, no access" without first checking the endpoints below — the relay is the bridge the user installed precisely to give you that access.
Capability matrix
| If this surface is connected | The agent can call |
Android phone (paired via hermes-relay-pair) | android_* toolset — android_tap, android_type, android_screenshot, android_open_app, android_notifications, etc. |
Desktop CLI (user has hermes-relay running — bare invocation drops into shell/TUI mode by default) | desktop_* toolset — desktop_read_file, desktop_write_file, desktop_terminal, desktop_search_files, desktop_patch, desktop_open_in_editor, desktop_screenshot, desktop_clipboard_read/_write |
| Either (clipboard inbox) | /paste and Alt+V in the upstream Hermes TUI consume images from ~/.hermes/images/inbox/, staged by the desktop client's Ctrl+A v chord or the hermes-relay paste subcommand. |
Quick check (use this when the user asks about access)
Before answering "no I can't reach your X", run these one-liners via terminal:
# Is the relay even alive?
curl -s -o /dev/null -w "relay: HTTP %{http_code}\n" http://127.0.0.1:8767/health
# Is a desktop client connected? (200=yes, 503=no)
curl -s -o /dev/null -w "desktop: HTTP %{http_code}\n" http://127.0.0.1:8767/desktop/_ping
# Is a phone connected? (parse `connected` field)
curl -s http://127.0.0.1:8767/bridge/status | head -3
# Multi-device Android bridge registry (phone + tablet/BOOX, when enabled)
curl -s http://127.0.0.1:8767/bridge/devices | python3 -m json.toolIf multiple Android devices are connected, verify selectors before reporting success:
curl -s 'http://127.0.0.1:8767/bridge/status?device=phone' | python3 -m json.tool
curl -s 'http://127.0.0.1:8767/bridge/status?device=boox' | python3 -m json.tool
curl -s 'http://127.0.0.1:8767/current_app?device=phone' | python3 -m json.tool
curl -s 'http://127.0.0.1:8767/current_app?device=boox' | python3 -m json.tool
# Change the default target for android_* tools, then smoke-test the default route.
curl -s -X POST -H 'content-type: application/json' \
-d '{"device":"phone"}' http://127.0.0.1:8767/bridge/select-active | python3 -m json.tool
curl -s http://127.0.0.1:8767/current_app | python3 -m json.tool
curl -s -X POST -H 'content-type: application/json' \
-d '{"device":"boox"}' http://127.0.0.1:8767/bridge/select-active | python3 -m json.tool
curl -s http://127.0.0.1:8767/current_app | python3 -m json.toolExpected aliases include phone/pixel/fold for Pixel-style phones and boox/note/notemax/tablet for BOOX NoteMax-style devices. If a device is listed in /sessions but not /bridge/devices, it is paired but currently offline/asleep; have the user wake/open Hermes Relay on that device and re-check.
If desktop returns 200, you have desktop_* tools available — go ahead and read files, run commands, take screenshots, etc. on the user's machine. If 503, tell them to run hermes-relay in any terminal (bare invocation = shell/TUI mode by default; that's what attaches the desktop client and establishes the channel).
Hermes-Relay is a native Android client for Hermes. This skill prints a snapshot of the phone currently paired to the local relay: whether it's connected, recent device telemetry (battery, screen, foreground app), which bridge permissions have been granted on the Android side, and what safety rails (blocklist, destructive-verb confirmation, auto-disable timer) are configured. It's the read-only counterpart to /hermes-relay-pair.
When to Use
Invoke this skill when any of the following happens:
- User runs the
/hermes-relay-statusslash command. - User asks to "check my phone", "is my phone connected?", "what's the battery on my phone?", "can the agent see my phone?", or anything equivalent.
- Before attempting a sequence of bridge tool calls (
android_tap,android_type,android_screenshot, etc.) to confirm the phone is reachable and has the permissions those calls need. - Debugging why a bridge call failed — status shows whether the problem is "phone offline", "permission missing", or "safety rail blocked it".
Do NOT use this skill to start or install the relay server itself — that is a prerequisite. Reference hermes relay start.
Prerequisites
- Hermes-Relay plugin installed and enabled. Verify with
hermes plugins show hermes-relay. If it is missing, runhermes plugins install Codename-11/hermes-relay/plugin --enable. The standalonepython -m plugin.statusfallback additionally requires the fullinstall.sheditable-package path. - Relay server running on
RELAY_HOST:RELAY_PORT(default0.0.0.0:8767). Without a live relay, this skill exits with code1and a "relay unreachable" error. - Phone has connected at least once since the last relay restart. The relay tracks live phone-connection state in memory, so a restart clears that presence — the phone reconnects automatically (its paired session persists across restart, so no re-pair is needed). Until then, status returns "no phone connected" with exit code
2.
Procedure
Run the status command — via the
terminaltool:python -m plugin.statusOr via the shell shim (installed by
install.shstep 5):hermes-statusIf
pythonresolves to the wrong interpreter (plugin not found), use the Hermes venv explicitly:~/.hermes/hermes-agent/venv/bin/python -m plugin.status- Useful flags (pass only when needed, not by default):
--json— emit raw JSON instead of the pretty text block. Use when piping tojqor when the agent wants to inspect specific fields programmatically.--port <n>— override the relay port if it's not on the default 8767.
- Show the output verbatim. For the pretty block, pass the whole thing back to the user as a code block so the alignment is preserved. For JSON mode, summarize the interesting fields in plain language rather than dumping raw JSON to the user.
- Interpret the exit code.
0— success, phone is connected. The output is the full status block.1— relay unreachable. The relay isn't running on 127.0.0.1:8767 (or the overridden port). Tell the user: "The relay isn't responding on loopback — check thathermes-relay.serviceis up withsystemctl --user status hermes-relay, or start it manually withpython -m plugin.relay --no-ssl."2— relay is up but no phone has connected since the last relay restart. Tell the user: "Your phone isn't currently paired to this relay. Run/hermes-relay-pairto mint a fresh QR and scan it with the Hermes-Relay app."
Pitfalls
- Relay not running.
statusprints[error] Cannot reach hermes-relay on 127.0.0.1:8767to stderr and exits1. Fix: start the relay first (systemctl --user start hermes-relayorpython -m plugin.relay --no-ssl) and re-run. - Plugin not installed. If
hermes plugins show hermes-relayfails, runhermes plugins install Codename-11/hermes-relay/plugin --enable. Useinstall.shwhen the host also needs the relay service, editable package, and shell shims. - Wrong venv. If
hermesCLI is global but plugin is in the Hermes venv,python -m plugin.statusmay resolve to the wrong Python. Call the venv Python explicitly:~/.hermes/hermes-agent/venv/bin/python -m plugin.status. - Phone shows as disconnected immediately after a relay restart. Expected — the relay holds phone state in memory and wipes it on restart. The phone reconnects automatically on its next ping cycle (within ~30s). If it doesn't, check the phone side: the session token may need re-pairing via
/hermes-relay-pair. bridge.accessibility_granted = falsebut everything else looks fine. The user has opened the Android app but not yet granted the Hermes-Relay accessibility service. Tell them: "Open Hermes-Relay → Bridge screen → the permission checklist will have Accessibility as the top row. Tap it to open Android Settings → Installed services → Hermes-Relay and flip the switch."bridge.master_enabled = false. Even with all four permissions granted, the in-app master toggle on the Bridge screen is off. Bridge tools will be soft-blocked. Tell them: "Your bridge master toggle is disabled — open the Bridge screen in the app and flip the 'Allow Agent Control' switch."
Verification
After running the skill, confirm:
- Exit code matches what the agent reports. If the agent says "connected" but exit code was
2, something is wrong with the rendering layer. - Permissions the user thinks are granted actually show
granted. If the user says "I granted accessibility yesterday" but status showsnot granted, the accessibility service was killed by the OS and needs to be re-enabled on the phone. last_seen_seconds_agois under 60. If it's much higher, the phone's ping cycle has stalled — the TCP/WSS connection is probably dead even though state is still cached. A fresh pair via/hermes-relay-pairwill fix it.
If any of those fail, fall back to the Pitfalls section.
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
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.

