hermes-relay-doctor
Skill432 starsChanged 4 months agoMITView on GitHub
Smoke-test the Hermes-Relay bridge stack — checks relay health, phone connection, bridge channel, accessibility service, and screenshot capture in one pass
- Pipes a download into a shell
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-pairSkill
- hermes-relay-self-setupSkill
- hermes-relay-statusSkill
- translate-android-localeSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Run the plugin CLI:
- Very specific: line 36
If neither is available (plugin not enabled, or the hermes-relay shim was never installed), run the checks inline:
- Very specific: line 48
All six checks call loopback (127.0.0.1) — no bearer token needed.
- Very specific: line 79
If the hermes-relay shim is missing, refresh it (and the rest of the install) with the idempotent updater:
≈ “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 Doctor
Runs a sequential smoke-test of the full bridge stack and reports pass/fail with fix hints for each check. Use this before reaching for android_* tools when something feels off.
When to Use
- User runs
/hermes-relay-doctor. - User says the bridge isn't working, the phone isn't connecting, or a screenshot is failing.
- You want to verify the stack is healthy before issuing
android_*tool calls. - The
android_ping()tool returns an error orphone_connected: false.
Procedure
Run the plugin CLI:
hermes relay doctor # host CLI (plugin enabled in Hermes)
hermes-relay doctor # shell shim (installed by install.sh → plugin.cli)If neither is available (plugin not enabled, or the hermes-relay shim was never installed), run the checks inline:
PORT="${RELAY_PORT:-8767}"
curl -sf "http://127.0.0.1:$PORT/health"
curl -sf "http://127.0.0.1:$PORT/bridge/status"
curl -sf "http://127.0.0.1:$PORT/ping"
curl -sf "http://127.0.0.1:$PORT/current_app"
curl -sf "http://127.0.0.1:$PORT/screen"
curl -sf "http://127.0.0.1:$PORT/screenshot"All six checks call loopback (127.0.0.1) — no bearer token needed.
Interpreting Results
| Check | Pass | Fail / Fix |
/health | {"status":"ok","version":"..."} (200) | Relay not running — systemctl --user start hermes-relay or check journalctl --user -u hermes-relay -n 30 |
/bridge/status | {"phone_connected":true,...} (200) | Phone not connected — open Hermes-Relay app and scan a pairing QR (/hermes-relay-pair) |
/ping | {"phone_connected":true} (200) | Same as above — phone disconnected mid-session; re-scan QR |
/current_app | {"package":"...","activity":"..."} (200) | Accessibility service not connected — go to Android Settings → Accessibility → Hermes-Relay → enable |
/screen | JSON with nodes array (200) | Same as above — also check the permission checklist in the Bridge screen |
/screenshot | {"token":"..."} (200) | MediaProjection not granted — see "Screenshot gap" below |
Screenshot gap (known issue)
/screenshot returns 500 {"error":"MediaProjection not granted — enable Bridge screenshots in the app"} when the accessibility service is running but the system MediaProjection consent dialog hasn't been accepted.
Fix:
- Open the Hermes-Relay app → Bridge screen.
- Toggle the Allow Agent Control switch on.
- Android shows a "Start recording?" system dialog — tap Start.
- Re-run
/hermes-relay-doctorto confirm the screenshot check passes.
This is a per-boot requirement on Android — the MediaProjection grant is revoked on reboot.
Re-running after a fix
hermes relay doctorIf the hermes-relay shim is missing, refresh it (and the rest of the install) with the idempotent updater:
hermes-relay-updateOr re-run the full installer:
curl -fsSL https://raw.githubusercontent.com/Codename-11/hermes-relay/main/install.sh | bashDoes 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.

