# Stitch 1.0 Upgrade & Hermes Integration Plan (final) > **Status:** Approved plan, implementation not started > **Written:** 24 September 2026 · supersedes the 24 Sep research draft > **Baseline:** Stitch 0.4.1 (versionCode 14, compile/target SDK 35) > **Owner decision (24 Sep):** the Hermes bridge lives **inside the Stitch app**. There will be no second > companion APK. See §3. > > Every number and claim in this document was checked against the code, the Hermes install on this > machine, and the upstream sources on 24 Sep 2026. Where the earlier draft was wrong, §12 records what > it said and what is actually true, so the mistake is not repeated. --- ## 1. In plain language Today Stitch is a phone agent. You talk to it, it does things on your phone. Hermes — the AI agent running on your PC — has no real connection to it. The "Hermes" option in Stitch's settings is just a normal AI-provider entry pointing at a web address; it does not make the two systems work together. This plan connects them properly, in two directions: - **Stitch → Hermes.** Stitch can ask Hermes to do server work and can report whether Hermes is healthy. - **Hermes → Stitch.** From Hermes on your PC (or Telegram, or the web UI) you can say "turn on my phone's flashlight" and it happens, with the phone still deciding what is safe. The important rule: **Hermes never touches your phone directly.** It asks Stitch, and Stitch applies the same safety checks it already applies to you — permissions, risk level, confirmation for anything dangerous, and proof that the action actually worked. The second important rule, and your decision: **all of this goes inside Stitch.** Not a separate app. --- ## 2. What Stitch is today (verified 24 Sep 2026) | Fact | Value | Where checked | |---|---|---| | Version | 0.4.1, versionCode 14 | `app/build.gradle.kts:17-18` | | Android tools | **70** | `app/build/all-tools.json` | | Tools exposed to Needle on-device | **32** | `app/build/needle-tools.json` | | Kotlin source | 59 files, 10,102 lines | `app/src/main/kotlin` | | Unit tests | 53 in 10 files, all passing | `app/src/test` | | On-device instrumentation tests | **0** | — | | Min / target Android | 9 (API 28) / 15 (API 35) | `app/build.gradle.kts:15-16` | | HTTP client | OkHttp 4.12.0 | `app/build.gradle.kts:72` | | Hermes setting today | generic OpenAI-compatible preset at `http://192.168.1.10:8642/v1` | `core/Settings.kt:77` | Stitch's single biggest design strength is that **every action already flows through one executor**: ``` request → permission check → prepare() → risk / confirmation → run() → verify → report ``` Risk comes from the tool itself (`tools/Tool.kt`, `enum class Risk { LOW, MEDIUM, HIGH }`), never from a model. Tools that read other people's content set `readsUntrusted`, which forces confirmation on whatever happens next. This plan **extends that path**. It never creates a second way to act on the phone. ### What is on this machine right now | Thing | State | |---|---| | Hermes gateway | Running (PID 1767) | | Hermes API server | **Not listening.** Defaults to `127.0.0.1:8642`, and refuses to start without `API_SERVER_KEY` | | Hermes MCP servers | None configured | | Hermes webhook platform | Not configured | | Hermes plugins directory | `~/.hermes/plugins` — empty | | `raulvidis/hermes-android` | **Cloned** at `/mnt/ssd-storage/projects/hermes-android-bridge` (not registered as a plugin) | | This host's reachable address | `100.x.y.z` (Tailscale). **Not** `192.168.1.10` | That last row matters: Stitch's shipped Hermes preset points at an address that is not this machine. ### Documentation state - `README.md` — updated 24 Sep, now matches the code (70 tools, 53 tests, 40-turn history). - `DEVELOPMENT_HISTORY.md` — accurate up to 0.4.1. - `docs/PLAN.md` — **historical.** The original 19 Sep scope of work. Not the implementation contract. - `docs/HOTWORD_PLAN.md` — **historical.** Describes the wake phrase as unbuilt; it shipped in 0.4.0. --- ## 3. The architecture decision: one app, not two The existing `hermes-android` project is a **separate companion APK** that runs its own accessibility service and its own notification listener. Installing it alongside Stitch would be a mistake: | Problem with a second app | Consequence | |---|---| | Two accessibility services both reading every screen | Double battery drain; Android delivers events to both; taps can race | | Two notification listeners | Both wake on every notification; duplicate parsing | | Two sets of sensitive permissions to grant and to trust | Twice the attack surface, twice the setup confusion | | The companion app has **no risk levels, no confirmation, no contact grounding** | A remote command could send an SMS to a number a model invented — the exact class of bug B-23 and C-09 were fixed to prevent | | Two audit trails, or none | You could not answer "what did Hermes do to my phone yesterday?" | **Decision: the relay client becomes a module inside Stitch**, at `app/src/main/kotlin/app/stitch/bridge/`. A remote command from Hermes enters Stitch and goes down the *same* executor path a typed command does. Stitch remains the only thing on the phone that touches Android APIs. ### Target shape ```text ┌──────────────────────────────────────────┐ │ Hermes Agent (PC) │ │ skills · memory · web · tools │ └──────┬────────────────────────┬──────────┘ │ │ Hermes API server (:8642) hermes-stitch-link plugin /v1/runs · /v1/capabilities exposes stitch_* tools /health/detailed · approvals + in-process relay (WSS) │ │ │ Stitch calls out │ Stitch dials out │ (HTTPS) │ (WebSocket, stays open) ▼ ▼ ┌──────────────────────────────────────────┐ │ STITCH (one APK) │ │ ┌────────────────────────────────────┐ │ │ │ bridge/ ← relay client, pairing, │ │ │ │ remote gate, audit │ │ │ │ hermes/ ← health, runs, status │ │ │ └──────────────┬─────────────────────┘ │ │ ▼ │ │ the existing single executor: │ │ permissions → prepare() → risk → │ │ confirm → run() → verify → audit │ │ ▼ │ │ 70 tools · accessibility · Needle │ └──────────────────────────────────────────┘ ``` Nothing new touches Android. `bridge/` is a **doorway**, not an executor. ### What gets reused from the existing bridge project The clone at `/mnt/ssd-storage/projects/hermes-android-bridge` is a good donor, and small: | File | Lines | Take it? | |---|---|---| | `client/RelayClient.kt` | 245 | **Yes — port.** OkHttp WebSocket, outbound, exponential backoff 1→30 s. Stitch already has OkHttp 4.12. Convert Gson → `org.json` to match Stitch | | `auth/PairingManager.kt` | 82 | **Yes — port, then harden** (see §6) | | `hermes-android-plugin/android_relay.py` | 581 | **Yes — fork.** Already has TLS support, auth rate limiting (5 fails/60 s → 5 min IP block), and single-phone enforcement. Do not rewrite this from scratch | | `executor/ActionExecutor.kt`, `executor/ScreenReader.kt` | ~1,400 | **No.** Stitch has its own in `automation/`, with the safety gates this one lacks | | `server/BridgeServer.kt`, `BridgeRouter.kt` | ~250 | **No.** That is the phone-as-HTTP-server path. Stitch dials out only | | `android_send_intent`, `android_broadcast` routes | — | **No. Permanently excluded.** See §6 | Estimated new Stitch code for the bridge doorway: **400–600 lines**, plus the remote gate. --- ## 4. Stitch → Hermes (the "Brain" side) ### Do not rewrite the provider The Hermes API server already serves `/v1/chat/completions`, `/v1/responses`, `/v1/messages` and `/v1/models`. Stitch's existing `OpenAiCompatibleProvider` is a **valid transport for chat** and stays. The earlier draft proposed replacing it with a native client; that is unnecessary work. What is genuinely missing is status and long-job control. That is a thin layer on top: **`hermes/HermesClient.kt`** — all endpoints below were confirmed present in the Hermes installed at `~/.hermes/hermes-agent/gateway/platforms/api_server.py`: | Endpoint | Used for | |---|---| | `GET /health`, `GET /health/detailed` | Is Hermes up and ready | | `GET /v1/capabilities` | What this Hermes can do | | `GET /v1/models`, `/v1/skills`, `/v1/toolsets` | What is available | | `GET /api/sessions` | Existing conversations | | `POST /v1/runs`, `GET /v1/runs/{id}` | Start and inspect a long job | | `GET /v1/runs/{id}/events` | Live progress | | `POST /v1/runs/{id}/stop` · `/steer` · `/approval` | Control a running job | `/health/detailed` is designed to return readiness and counts **without** secrets, raw paths or raw errors. Stitch preserves that boundary — it summarises, it never widens it. ### Setup work this requires on the PC (do this first, it is the real blocker) 1. Set `API_SERVER_KEY` in Hermes' scoped secrets. Without it the API server **will not start**. 2. Bind the API server to the Tailscale address `100.x.y.z`, not `127.0.0.1`. 3. Update Stitch's Hermes preset from `http://192.168.1.10:8642/v1` to the real address, over TLS. 4. Rename the preset **"Hermes Brain (API)"** so it is not confused with the Link. --- ## 5. Hermes → Stitch (the "Link" side) ### Wire format Keep the existing envelope so the relay and plugin stay compatible: ```json { "request_id": "uuid", "origin": "hermes", "method": "POST", "path": "/tool/flashlight", "params": {}, "body": { "on": true }, "nonce": "single-use", "issued_at": 0, "expires_at": 0, "idempotency_key": "uuid", "correlation_id": "hermes-run-id" } ``` ```json { "request_id": "uuid", "status": 200, "result": { "ok": true, "verified": true, "tool": "flashlight", "risk": "LOW", "state": { "on": true } } } ``` `verified` is mandatory and is never optimistic. This is lesson C-08: *a tool may only report what it proved.* If Stitch could not confirm the outcome, `verified` is `false` and the text says so. ### The remote gate `bridge/RemoteExecutionGate.kt` sits between the WebSocket and the tool executor and checks, in order: 1. Device identity and signature valid 2. Nonce unused, request not expired, idempotency key not already served 3. Tool exists **and is on the remote allow-list** (allow-list, never deny-list) 4. Remote kill switch is off 5. Android runtime permission present — a remote origin cannot skip the permission flow 6. Arguments grounded by the same rules as local (contacts, numbers, times — B-23/B-26/B-27/B-28) 7. Risk from the tool registry → LOW runs; MEDIUM/HIGH raise a phone-side confirmation 8. Untrusted-content state respected (prompt-injection guard) 9. Result verified, audit row written, response returned Then and only then does it call the existing executor. ### Default remote policy | Category | Remote behaviour | |---|---| | Flashlight, volume, battery, device status, open app, current app, read screen, media control | Runs immediately | | Screen tap / type / key / swipe | Runs, but sensitive-button check stays on | | Calls, SMS, WhatsApp/Telegram send, contact or event deletion | **Phone-side confirmation, always** | | `send_intent`, `broadcast`, shell, filesystem | **Never exposed.** No route, no tool name | | Anything after untrusted content was read | Confirmation, same as local | Remote mode may be **stricter** than local mode. It may never be looser. **Fail closed when offline.** A queued destructive command does not execute on reconnect. It expires and must be re-issued. A dropped connection returns a clear failure, not silence. --- ## 6. Security The reference bridge documents its own limits honestly in `SECURITY.md`: plaintext `ws://`, a 6-character pairing code, and unrestricted device access once paired. Fine for a prototype. Not acceptable as a permanent credential for your phone. | Reference bridge | Stitch Link | |---|---| | 6-char pairing code, permanent | Pairing code for **first contact only**, then a 256-bit device key in Android Keystore | | `ws://` plaintext | **WSS/TLS**, or Tailscale, or both. Plaintext refused outside loopback | | No replay protection | Single-use nonce + expiry + idempotency key | | No revocation | Per-device rotation and instant revoke from the phone | | Full device access | Allow-listed tools, risk gate, phone-side confirmation | | No audit | Every remote command logged: origin, tool, arguments, result, timestamp | | — | Global **kill switch** that stops all remote commands without disabling local chat | | — | Optional biometric confirm for remote HIGH-risk actions | Tokens never appear in URLs, logs, notifications, or source. The relay fork keeps upstream's `Authorization: Bearer` handshake and **drops** its legacy `?token=` query-parameter fallback. --- ## 7. The plan, in stages Stages are named, not numbered, because `DEVELOPMENT_HISTORY.md` and `README.md` already reference a "Phase 4" from the historical `docs/PLAN.md` (Needle fine-tuning). Numbering again would collide. Durations assume the working pattern that actually produced 0.4.1: AI-built, owner-verified on one phone. --- ### Stage A — Prove 0.4.1 actually works · 1–2 days · **blocks everything else** Nothing in this plan is worth building on a release nobody has confirmed. These are all currently on the "not verified" list in `DEVELOPMENT_HISTORY.md` §10: - Open the four tabs on the phone. Does Schedule show real alarms, reminders and calendar events? Does Saved show notes and memories? - Open all six Settings category pages. Does every setting still save? Does back work? What happens on rotation (known bug: it forgets which page was open)? - Wake phrase with a real voice — the emulator has no microphone, so this has **never** been tested. - Speech recognition and spoken replies in the bubble. - Real WhatsApp send, and a notification reply. - Music in Spotify / YouTube Music. - One real cloud provider key, end to end. - The B-26/B-27/B-28 fixes on a real contact list. **Exit:** a written pass/fail for each. Anything broken is fixed and released as 0.4.2 before Stage B. --- ### Stage B — Data and identity safety net · 2–3 days Two ways to lose all your settings currently exist, and both must be closed **before** any migration or release-signing work, not after. - **Real signing key.** Releases are signed with this machine's `~/.android/debug.keystore`. Generate a proper release keystore, back it up off-machine, and document it. Do this *now*: changing the key later forces an uninstall, which erases everything. - **Export / restore.** A single file holding API keys, wake-phrase fingerprints, notes, memories, reminders, default apps and settings. Restore tested on a wiped install. - **Then** the SharedPreferences → Room/DataStore migration, with the export as the fallback. - Add the first on-device instrumentation test: install 0.4.x → upgrade → assert settings survive. - Fix the build warning. It comes from the **Kotlin plugin 2.4.20**, not from Gradle itself: either move to a Gradle version KGP supports, or set `kotlin.suppressGradlePluginWarnings=DeprecatedGradleVersionWarning`. **Exit:** a release can be installed over 0.4.1, and over a factory-reset phone, without losing anything. --- ### Stage C — Hermes Brain · 3–4 days - PC side: set `API_SERVER_KEY`, bind the API server to the Tailscale address, confirm it answers. - `hermes/HermesClient.kt` — health, capabilities, models, skills, toolsets, sessions, runs. - `hermes/HermesStatusRepository.kt` — one safe summary card for a phone screen. - Rename the preset to **"Hermes Brain (API)"** and fix its address. - A Hermes status card in Stitch, and a `hermes_status` tool so you can just ask. **Exit:** Stitch shows live Hermes readiness and active-run counts. A long Hermes job can be started, watched, stopped and resumed from the phone. No secret, key or raw server path appears in any Stitch reply or log. --- ### Stage D — Hermes Link MVP · 1 week - `bridge/` inside Stitch: `BridgeClient` (ported `RelayClient`), `BridgeProtocol`, `BridgeAuth`, `RemoteExecutionGate`, `PendingApproval`, `BridgeAudit`. - Host side: fork `android_relay.py` into `hermes-stitch-link`, TLS on, legacy `?token=` removed. - Pairing screen in Stitch: pair, show device key fingerprint, rotate, revoke, kill switch. - **12 low-risk tools only:** `ping`, `device_status`, `get_battery`, `flashlight`, `set_volume`, `open_app`, current app, `screen_read`, `screen_tap`, `screen_type`, `screen_key`, `media_control`. - Audit tab showing every remote command. **Exit:** "turn on my phone's flashlight" works from the Hermes web UI. "What's my phone's battery?" works. Pulling the phone off Wi-Fi mid-command produces a clear failure and executes nothing later. A 200-command soak test produces no duplicate and no unsafe action. *(200, not 1,000 — sized to one phone and one afternoon.)* --- ### Stage E — Full tool bridge and MCP · 1.5–2 weeks - Map the remaining Stitch tools to remote routes, each marked **remote-allowed** or **local-only**. Every one of the 70 gets an explicit decision recorded in a generated `tool-catalog.json`. - Keep the upstream route names where they match (`/tap`, `/type`, `/screenshot`, `/open_app`, `/ping`…) so existing Hermes skills keep working. The upstream plugin ships **38 tools** — its own README says so — and `/intent` and `/broadcast` are **deliberately not implemented**. - Screenshots, screen diffs, notifications, contacts, location, clipboard, TTS, event streaming. - Host-side `mcp_adapter.py` so Hermes, Claude Code and OpenCode can use the same safe surface. - Approval / steer / stop propagation between a Hermes run and a phone confirmation. **Exit:** high-risk actions always pause for phone confirmation, from every surface. Screen and notification text stays marked untrusted. Every one of the 70 tools has a remote decision on record. --- ### Stage F — Hardening and 1.0 · 1 week - Threat model for remote control and prompt injection, written down. - Red-team suite: malicious notification, hostile webpage, hostile Hermes prompt, replayed command, expired nonce, revoked device, kill switch mid-command. - Battery, memory and reconnect profiling with the Link connected all day. - Android 16 / API 36 check, including edge-to-edge layout. - Release, signed with the Stage B key. **Exit:** no high-risk action bypasses confirmation in any automated or manual test. Remote access can be revoked in one tap and takes effect immediately. The docs describe what actually shipped. --- ### Total to 1.0: roughly 4–5 weeks of working sessions. --- ## 8. Explicitly out of scope for 1.0 The earlier draft folded these into the release. Each is a product in its own right, and none of them is needed for the Hermes connection to work. They become the **post-1.0 roadmap**: - **Workflow engine** (step types, variables, retry, branch, loop, triggers, visual editor, dry-run). The Workflows tab stays a placeholder, honestly labelled. - **Namespaced, searchable memory** with provenance and expiry. - **Voice upgrades** — offline STT fallback, speaker verification, multilingual profiles. - **Needle 3.** It exists (`huggingface.co/Cactus-Compute/needle3`, updated 19 Sep, tagged tool-calling, with `android-arm64` / `android-armv7` / `android-riscv64` builds). Worth evaluating later. Note it ships **no android-x86_64**, so the emulator stub (A-07) is still required either way. - **Task-scoped tool retrieval** by embeddings instead of sending all 70 tools every time. - **SAF file transfer**, editable Schedule and Saved, home dashboard. --- ## 9. Non-negotiable rules 1. Never let a model, Hermes, a webhook or a remote client choose its own risk level. 2. Never expose `send_intent`, `broadcast`, shell or filesystem tools remotely. Not once, not behind a flag. 3. Never put a secret in a URL, a log, a notification, or a document. 4. Never report success without proof. Unverified is reported as unverified. 5. Never persist screenshots, notification bodies or clipboard contents by default. 6. Never let a remote request skip the Android permission flow or the untrusted-content check. 7. Never add a remote tool without an allow-list entry, an audit row, a test, and a doc update. 8. A second app is never the answer. If a capability is needed on the phone, it goes in Stitch. --- ## 10. Files this creates Inside Stitch — new packages only, nothing existing is duplicated: ```text app/src/main/kotlin/app/stitch/ bridge/ ← NEW: the doorway, not an executor BridgeClient.kt outbound WSS, reconnect (port of RelayClient.kt) BridgeProtocol.kt envelope encode/decode BridgeAuth.kt device key, nonce, pairing (port of PairingManager.kt, hardened) RemoteExecutionGate.kt the 9 checks in §5 PendingApproval.kt phone-side confirmation for remote HIGH risk BridgeAudit.kt what happened, when, from where hermes/ ← NEW HermesClient.kt the endpoints in §4 HermesStatusRepository.kt one safe summary data/ ← NEW (Stage B) StitchDatabase.kt · AuditRepository.kt · BackupRepository.kt ``` Unchanged and reused as-is: `agent/`, `tools/`, `automation/`, `needle/`, `core/`, `voice/`, `notifications/`, `ai/`, `ui/`. On the PC: ```text hermes-stitch-link/ ← fork of hermes-android-plugin plugin.yaml · __init__.py relay.py forked from android_relay.py, TLS-only tools.py stitch_* tool definitions mcp_adapter.py Stage E tests/ ``` The PC plugin **translates only**. It contains no Android logic. If it ever needs to know how Android works, something has been put in the wrong place. --- ## 11. Definition of done - Stitch works fully on its own when Hermes is off or unreachable. - Hermes can run low-risk phone actions through Stitch, and high-risk ones only with a phone confirmation. - Stitch can report Hermes health and run, watch and stop Hermes jobs. - Every remote command, approval, result and failure is in the audit log. - The Link reconnects safely after network loss and after a Hermes restart. - TLS or Tailscale is the default; plaintext is refused off-loopback. - All 70 tools carry an explicit remote-allowed or local-only decision. - There is exactly **one** Stitch APK, signed with a backed-up release key. - 0.4.1 has been verified on the real phone (Stage A) and upgrades preserve all settings (Stage B). - README, development history and this document describe what actually shipped. --- ## 12. Corrections to the 24 Sep research draft Recorded so the errors are not re-introduced. This is the same audit-trail discipline as `DEVELOPMENT_HISTORY.md` §8. | # | The draft said | Actually | |---|---|---| | 1 | The `hermes-android` bridge "is not installed locally" | It is **cloned** at `/mnt/ssd-storage/projects/hermes-android-bridge` (remote `raulvidis/hermes-android`), with a `stitch-screens/` folder. Only its plugin registration is absent — `~/.hermes/plugins` is empty | | 2 | The bridge has "42 `android_*` tools" (stated 3×, and used in an exit criterion) | **38.** Its own README prints `✓ hermes-android v0.3.0 (38 tools)`. 42 counts non-tool identifiers such as `android_relay`, `android_setup`, `android_tool` | | 3 | Listed "README says 54 tools" as drift to fix | The same draft had already fixed it. README says 70. Stale text | | 4 | Implied the doc cleanup was complete | `PLAN.md` still said "DRAFT v0.1", `HOTWORD_PLAN.md` still said the wake phrase was unbuilt, and `DEVELOPMENT_HISTORY.md` was never updated at all — breaking the standing rule in `CLAUDE.md`. Fixed in this change | | 5 | "Enable the Hermes API server on the private host network" | Understated. It defaults to `127.0.0.1:8642` **and refuses to start without `API_SERVER_KEY`**. Both must change before anything connects | | 6 | — (not mentioned) | Stitch's Hermes preset points at `192.168.1.10`, which is not this machine. The reachable address is `100.x.y.z` | | 7 | Replace the OpenAI-compatible provider with a native client | Unnecessary. The API server serves `/v1/chat/completions`, `/v1/responses`, `/v1/messages`, `/v1/models`. Keep the provider; add status and runs on top | | 8 | "Never expose raw intent/broadcast" **and** "preserve compatibility with the 42-tool route names" | Contradictory — that catalogue contains `android_send_intent` and `android_broadcast`. Now an explicit permanent exclusion (§6, §9.2) | | 9 | Proposed creating `tools/ToolRegistry.kt`, `ToolExecutor.kt`, `ToolContract.kt`; omitted every existing package | `ToolRegistry.kt` already exists. There is no separate executor — it lives in `agent/Agent.kt`, the contract in `tools/Tool.kt`. Written without opening the source tree | | 10 | Room migration early; "installs without losing settings" checked only in the final phase | Moved to Stage B with an export/restore path and the first instrumentation test, before any storage change | | 11 | — (not mentioned) | The debug signing key. `DEVELOPMENT_HISTORY.md` §11 flags it with the only ⚠️ in the whole audit. Now Stage B | | 12 | Exit criteria requiring Pixel + Samsung + Xiaomi devices, and a 1,000-command soak | Not achievable — there is one phone. Replaced with the owner's phone and a 200-command soak | | 13 | 11–13 weeks, with workflows, memory and voice inside 1.0 | ~4–5 weeks to 1.0; those three moved to the post-1.0 roadmap (§8) | | 14 | "Needle 3 … [12]" citing the **needle2** model card | The card is `Cactus-Compute/needle3`. It exists and is tagged tool-calling. Still no android-x86_64 build | | 15 | "Update Gradle from the deprecated 8.11.1 line" | The warning is emitted by the **Kotlin** Gradle plugin 2.4.20, not by Gradle. Fix or suppress accordingly | | 16 | Introduced a new "Phase 4" | Collides with the historical `PLAN.md` Phase 4 (Needle fine-tuning) referenced in the README and development history. Stages are now lettered | --- ## Sources Verified reachable on 24 September 2026 unless marked. | # | Source | Used for | |---|---|---| | [1] | `~/.hermes/hermes-agent/gateway/platforms/api_server.py` (local) | Every endpoint in §4; `DEFAULT_HOST`/`DEFAULT_PORT`; the `API_SERVER_KEY` requirement | | [2] | `~/.hermes/config.yaml` (local) | No MCP servers, no webhook platform, `api_server.max_concurrent_runs: 10` | | [3] | `/mnt/ssd-storage/projects/hermes-android-bridge` (local clone) | Envelope format, relay design, file sizes, the 38-tool count, `SECURITY.md` limitations | | [4] | `app/build/all-tools.json`, `needle-tools.json` (generated by the unit tests) | 70 tools, 32 Needle tools | | [5] | https://hermes-agent.nousresearch.com/docs/user-guide/features/api-server | API server behaviour | | [6] | https://hermes-agent.nousresearch.com/docs/user-guide/features/mcp | MCP discovery and per-server filtering | | [7] | https://huggingface.co/Cactus-Compute/needle3 | Needle 3 platform builds and capabilities | | [8] | https://github.com/raulvidis/hermes-android | Upstream of the local clone | | [9] | https://developer.android.com/about/versions/16/behavior-changes-16 | Stage F Android 16 check |