All plugins

hermes-ride

Hands-free voice chat with your Hermes agent from a phone on a motorcycle mount: say the wake word, talk through the helmet headset, and the agent answers with live ride context (speed, lean, braking and acceleration). Disclosure — while the wake gate is open the phone sends microphone audio to ElevenLabs Scribe, or with stt_engine whistle or hermes to your own Hermes host (with hermes, Hermes's own configured stt provider transcribes it, which may be local, e.g. Whisper, or a cloud service); with the optional voice_mode live (off by default) the phone streams microphone audio directly to OpenAI Realtime or an ElevenLabs agent using short-lived credentials minted by the server, and that provider's agent writes the requests Hermes receives as your turns; reply text goes to ElevenLabs TTS unless Hermes's own TTS speaks it; position and motion summaries go to your model provider in each turn's context line and are logged at 1 Hz, plus a 30 Hz motion log without position, under plugin-data/hermes-ride; it serves an HTTP + WebSocket page on RIDE_HOST:RIDE_PORT (default 127.0.0.1:8790) behind RIDE_ACCESS_KEY; holding the phone's reset bar starts /new and answers Hermes's destructive-command confirmation for it, and by default first spends one short model turn posting a ride-summary card in the old session; with stt_engine whistle it runs one long-lived local helper process; tools/fetch_assets.sh (run by the user) builds the wake-word engine locally from checksum-pinned official sherpa-onnx source using Emscripten 4.0.23 and downloads the checksum-pinned model from the official upstream release.

martyllmaccs-hashVoicev0.3.0Updated 1 day ago

About

Hands-free voice chat with your Hermes agent from a phone on a motorcycle mount: say the wake word, talk through the helmet headset, and the agent answers with live ride context (speed, lean, braking and acceleration). Disclosure — while the wake gate is open the phone sends microphone audio to ElevenLabs Scribe, or with stt_engine whistle or hermes to your own Hermes host (with hermes, Hermes's own configured stt provider transcribes it, which may be local, e.g. Whisper, or a cloud service); with the optional voice_mode live (off by default) the phone streams microphone audio directly to OpenAI Realtime or an ElevenLabs agent using short-lived credentials minted by the server, and that provider's agent writes the requests Hermes receives as your turns; reply text goes to ElevenLabs TTS unless Hermes's own TTS speaks it; position and motion summaries go to your model provider in each turn's context line and are logged at 1 Hz, plus a 30 Hz motion log without position, under plugin-data/hermes-ride; it serves an HTTP + WebSocket page on RIDE_HOST:RIDE_PORT (default 127.0.0.1:8790) behind RIDE_ACCESS_KEY; holding the phone's reset bar starts /new and answers Hermes's destructive-command confirmation for it, and by default first spends one short model turn posting a ride-summary card in the old session; with stt_engine whistle it runs one long-lived local helper process; tools/fetch_assets.sh (run by the user) builds the wake-word engine locally from checksum-pinned official sherpa-onnx source using Emscripten 4.0.23 and downloads the checksum-pinned model from the official upstream release.

Hermes-Ride

Docs: rider's manual docs/MANUAL.md (setup, use, mute, reset) · voice, speech-to-text and model wiring
docs/VOICE-AND-MODELS.md (for installers and for a Hermes agent setting it up).

Talk with your Hermes agent hands-free while riding a motorcycle. Your phone sits on the handlebar mount with
the screen on and black, your helmet headset is the mic and speaker, you say "Hey Hermes" (the default wake word; RIDE_WAKE_WORD), and the agent hears
where you are and how you're riding: speed, heading, position, lean angle, G, and what happened since you last
asked.

Hermes-Ride (plugin id hermes-ride) is a Hermes gateway platform plugin (ride). The phone is just another chat: your agent with its
memory, tools and session history answers, not a separate bot.

Change it by asking your agent

No settings screen: tell your Hermes agent what you want (e.g. "make the conversation window 15 seconds") and it
sets the matching key under platforms.ride.extra in config.yaml, then restarts the gateway. Do that while you are
parked: a restart drops the Ride connection. Full list with ranges: the settings table under Install.

Ask forKeyDefault
another wake wordwake_wordhey hermes (also hey lana)
a longer or shorter follow-up window after an answerwindow_s10 s
how the agent names yourider_name"the rider"
a different reply voice or voice modelvoice_id, tts_modelfrom Hermes's tts.elevenlabs settings
free, offline speech-to-text on your server instead of ElevenLabs Scribestt_engine: whistlescribe
whatever speech-to-text your Hermes already uses (its stt provider: Whistle, Whisper, ...)stt_engine: hermesscribe
a live speech-to-speech conversation instead of the chained pipelinevoice_mode: livechained
which live provider talks in live modelive_providerelevenlabs (or openai)
which OpenAI realtime model talks (live_provider: openai)live_modelempty = gpt-realtime
which ElevenLabs agent talks (live_provider: elevenlabs; set it up with docs/elevenlabs-agent-setup.md)elevenlabs_agent_idempty (live then falls back to chained)
more time to pause between words before speech endsvad_hangover_ms2000 ms (was 600)
drop very short Whistle clips (phantom "Thank you" phrases)min_phrase_s0 (off); 3.2 drops clips under 3.2 s, silence included
a less (or more) sensitive micmic_base_db (higher = less sensitive)-38 dBFS
a wake word that wakes more (or less) easilywake_threshold (lower = wakes more easily, more false wakes)0.25
change those two mid-ride, by voice, with no restart ("VAD up", "wake up")tools/ride_tune.py (see Live tuning)no overrides
quieter or louder cues and status clipscue_gain0.5
when the "doo, doo" thinking tone startstone_first_s1.2 s
a slower or faster double tap to wakedouble_tap_ms350 ms
smoother reply audio (bigger start buffer)play_buffer_ms250 ms
no Ride summary available? card after a resetsummary_prompt: falseon
the state word under the orb, for debuggingshow_word: trueoff
behind tailscale serve (or another local proxy): count wrong keys per real clienttrusted_proxy: trueoff

Feedback, bugs, ideas: open an issue at
github.com/martyllmaccs-hash/Hermes-Ride-hackathon/issues.

Architecture (protocol v2, "web app first")

As much as possible runs on the phone, so the data stream to the server is small: the server sees text, VAD
edges and telemetry, not your audio.

 phone page (screen on, black) ───────────────────────────────────────────────────────────────────────┐
 mic ─► AudioWorklet 20 ms frames ─► energy VAD (threshold rises with speed) ─► gate                   │
          │                              sleep: nothing leaves the phone                              │
          └─► wake word "Hey Hermes" (sherpa-onnx WASM, in a Worker) ─► wake cue plays at once ─► awake│
                awake / 10 s conversation window: ─► ElevenLabs Scribe realtime, DIRECT (single-use token) │
 cues + status clips (Cache Storage), orb states, telemetry (calibration, lean, G, events, IndexedDB)   │
 └──────────────── WS: text, VAD edges, telemetry batches every 30 s ▲ binary reply audio ──────────────┘
                                   ▼                                 │
 ride adapter (in your Hermes gateway): token minting, adaptive end of turn, stale-reply hold/discard,
 filler filter, barge-in rule, tool-state hooks, ride log, usage + cost, spoken reply (TTS)
                                   ▼
                       gateway handle_message()  →  your agent (one turn at a time)
  • Wake word "Hey Hermes" by default; wake_word (RIDE_WAKE_WORD) picks another from the built-in list
    (hey hermes, hey lana; ride_logic.WAKE_WORDS, one sherpa keywords file each). While the phone sleeps with the
    default sherpa engine,
    nothing leaves it. With the transcript fallback engine, speech-like sound while asleep (a VAD probe) is sent to
    Scribe (direct, or via your server on stt_route=server) so the wake word can be checked; a miss starts no turn
    and no text is logged. In the conversation window everything the mic hears streams to Scribe, road noise
    included.
  • Recovery: one STT connection state machine on the phone (gate + Scribe socket + tokens) is reconciled on
    every reconnect, provider close and quota backoff. A Scribe socket that doesn't start a session within 8 s is
    closed and retried after a growing backoff (2 s … 30 s); while awake that is spoken ("reconnecting"). The page
    shows listening and plays back only after a Scribe session really started (after an outage or quota while
    asleep: at the next wake). A failed playback is retried once (one retry per attempt, the failed attempt is
    stopped), then skipped (the queue never wedges) and logged as not delivered. Tap 1 never hangs: a pending audio
    unlock or audio start times out with "tap 1 again", releasing the mic and audio context it took.
  • Cues (all local, D2): wake answer (random of two), thinking, done before the answer and done after it.
    There is no separate extended cue or state any more (WP1): long thinking, tool calls, web search and subagents
    all stay thinking on the page (the server still sends extended / working frames for its logs).
  • Status clips in Lana's voice, played locally, so they work with no connection: "Lost the connection,
    reconnecting." (after 5 s down), "I'm back.", "I'm offline. I'll keep trying." (after 60 s), "Still working on
    it." (a turn past 25 s with no audio), "Speech recognition's out of quota. Switching to backup.", "I can't hear
    the mic."
  • The orb: one circle in the middle of the black page, at most 3/4 of the screen width (min(75vw, 75vh), so it
    fits in landscape too). Sleep = pure black and static (no animation, no timers, no style writes); listening = blue,
    a slow breath, plus a ring that follows your voice level (the mic frame level the gate already measures); thinking =
    swells to bright white for about 1 s, then breathes slowly, each breath restarted on the "doo, doo" tone; speaking =
    blue with a pulse (the ring follows the reply's level for WAV segments); offline / reconnecting / connecting = a slow
    amber pulse. The look (orb_design / RIDE_ORB_DESIGN, default simple): a halo, light drifting slowly inside the
    core and a glass shell with a sky highlight; plain is the flat orb without those; unknown names fall back to
    simple. Everything is CSS, and only opacity and transform ever change. show_word (RIDE_SHOW_WORD, default off)
    shows the state word under it for debugging.
  • The orb moves with the motorcycle (static/orb_motion.js): while it is awake it takes the phone's motion
    sensors, at most 20 style updates a second (CSS custom properties; CSS transitions smooth them), none asleep.
    • Lean: the orb counter-leans like a spirit level: its light and its top stay under the real sky while the phone
      leans with the bike. A leaned motorcycle has almost no lateral G (gravity plus cornering force stay along the
      bike's own vertical), so lean is not read from the accelerometer: it is the gyro's roll rate, held by the turn
      rate and GPS speed (sin(lean) = v x yaw rate / g). Without GPS speed it shows the roll and drifts back upright
      in a few seconds.
    • Braking squashes the orb and pushes it up the screen (forward); accelerating stretches it and pulls it back.
    • Bumps kick a short jelly wobble (settled in under a second); the extra load in a turn or a dip presses it flatter.
    • orb_motion (RIDE_ORB_MOTION, default 1, 0 to 2): how strong; 0 switches it off, and so does the
      phone's "reduce motion" setting. It assumes the phone is mounted with the screen facing you.
  • Wake by double tap (10 Nov): two taps anywhere within double_tap_ms (default 350 ms, RIDE_DOUBLE_TAP_MS,
    150 to 1000) wake Lana exactly like saying "Hey Lana": the same wake cue, the same conversation window, the same
    {t:'wake'} frame (so the server log cannot tell a tap from a spoken wake). It works only while she is asleep (for
    the transcript engine also while it is probing speech). While she is awake, thinking or speaking a double tap does
    nothing: it never cuts her off. While muted it does nothing. Not a tap: a second finger, a drag or swipe, a long
    press, or a tap on a button/link or inside an element marked data-no-dbltap (the setup screen, the reset reveal).
    touch-action: manipulation stops iOS from zooming on the double tap.
  • MUTE / UNMUTE (round 3): the one mic control, a one-tap button in the reset reveal (below), as big as the reset
    bar (88vw x 72px, 19px text). Muted: the gate sleeps, the pre-roll is dropped, speech-to-text is closed and nothing
    reaches the wake spotter, so neither the wake word nor a double tap wakes her; the button turns cyan and reads
    UNMUTE. The mic stays captured, so unmuting is instant (no reload), and a mute pressed while the mic is being
    restarted is kept. The lock-screen / Control Centre pause button mutes and play unmutes (Media Session).
  • Reset (WP6): a grey grabber sits near the bottom edge, above the iPhone's home indicator. Drag up from it and a
    long red bar labelled RESET – NEW SESSION and the MUTE button appear (they hide again after 10 s untouched). Hold the red bar 3 s (it
    fills while you hold; letting go or sliding off cancels): a short rising cue plays, the server interrupts Lana's
    current turn, starts a new conversation by sending the gateway an ordinary /new (the old session stays in the
    history; a model/reasoning override on the Ride lane is cleared; when Hermes asks to confirm /new, the held bar
    is the confirmation) and resets its own state, and the page reloads. The server answers resetting at once;
    the page then waits up to 65 s for the result (the Ride Summary card below can make a reset take 5 to 20 s).
    With no answer at all within 5 s it reloads anyway. After the reload iOS needs the setup tap again. If the
    server reports a failure you hear two low notes, the screen says which step failed, and you can hold the bar again;
    the conversation keeps working.
  • Ride summary card: just before the /new, the agent gets one ordinary message asking it to post a short
    Ride summary available. Want it? card as its reply, with Yes / No buttons for Hermes Desktop. The
    gateway stores that reply in the old session like any turn, so the card is the last thing there when you look back
    at the ride later. Nothing is summarised unless you say yes. Never spoken; skipped for a session with no turns; it
    costs one short model turn, and after 15 s without an answer that turn is cancelled and the reset goes on. Off with
    summary_prompt: false (RIDE_SUMMARY_PROMPT). What Yes produces: see Ride Summary below.
  • Setup screens (WP7): one tap on the pulsing orb starts everything (audio, mic, motion, GPS, link), no
    instruction text; the key form for a new browser shows the same orb above it.
  • Conversation window: after an answer the mic stays open for 10 s (longer while you are still speaking), so follow-ups need no wake word. While Lana is thinking the page plays a soft repeating "doo, doo" (the Hermes voice-mode "thinking" blubs): first one tone_first_s (default 1.2 s, RIDE_TONE_FIRST_S, 0 to 30) after the thinking cue, so a quick answer never hears it, then one every 4 to 6 s until the reply starts (no spoken "still working", no separate extended state).
  • Turn-taking: adaptive end of turn (1.2 s after a question, 1.8 s after a full stop, 3.5 s when you stop
    mid-sentence; counted from the end of your speech); a reply that becomes ready while you're still talking is
    held, and if you said more it is discarded and everything you said is answered in one turn; filler-only
    replies ("Mm-hm.") are not spoken; barge-in needs ≥ 3 words that started while Lana was speaking (not "yeah
    okay").
  • Telemetry processed on the phone: orientation calibration (down = mean gravity over 60 s; forward = dominant
    horizontal axis of linear acceleration over 120 s, sign from GPS; pocket-shift flag), lean (plus a turn-rate
    cross-check), per-minute G stats and events (hard braking < -0.6 G, acceleration > 0.4 G, lean > 40°, stopped

    2 min, GPS lost). Every turn gets a "since last turn" line (distance, speeds, max lean, events with times) and
    the path of the full 1 Hz ride log. /graph shows speed, lean and G over time.

  • The whole ride at 30 Hz (round 4, for trail braking): next to the unchanged 1 Hz record the page samples motion
    continuously at 30 Hz from the first motion sample to the end of the ride (no trigger: the analysis finds the
    corners and braking itself). Each sample is the mean of the native motion samples in its 1/30 s slot (iOS Safari:
    about 60 Hz, so about two), in the calibrated bike frame: time offset, forward and lateral G (0.001 G), lean (0.1°),
    pitch and yaw rate (0.1°/s); a slot with no native sample is skipped (the offsets show the gap); before the
    calibration settles its samples are marked (nulls) and skipped by the analysis. Samples go in chunks of up to 30 s
    ({kind: 'hz30', ...}, RIDE_HZ30_DEFAULTS in static/telemetry.js) through the same IndexedDB-backed outbox and
    telemetry batches: about 20 bytes a sample, ~0.6 KB/s, about 2.2 MB per riding hour. A batch carries at most 12
    chunks (well under the 1 MB WebSocket frame); after a long signal gap the backlog drains batch by batch (the ack of
    a full batch sends the next one at once). The hello reports the measured native motion interval as
    caps.motion_ms (after a reconnect: motion starts after the first hello) and every chunk carries it too.
  • Usage: per turn Scribe seconds (all audio sent, with or without a transcript), TTS characters and seconds,
    LLM tokens (from Hermes's post_api_request hook, routed to the turn whose Hermes turn_id it carries; events
    without one are ignored); a ride-end summary with an estimated cost, including turns still in flight and audio
    after the last turn; what an in-flight turn uses after the summary is written as a ride_summary_reconciled
    record when it finishes. Server route: seconds of audio actually relayed to Scribe. Prices are settings.
  • Approvals are never given by voice (spoken notice; approve elsewhere or Hermes's timeout declines). Clarify
    questions are spoken and your next sentence answers them.

Measured on a real gateway with a fake phone streaming recorded speech (details in HANDOFF.md): sensor question
"How fast am I going and how far am I leaning?" → "You're going 87 kilometres per hour and leaning 24 degrees to
the right.", 7.2 s from the end of speech to the first audio frame on a noisy-road recording (the agent took
4.0 s); speech end → transcript 1.5–1.8 s. On the phone the done cue (1.8 s) plays before the answer by design.

Protocol v2 (/ws, cookie-gated)

phone → server: hello {v:2, caps:{wake, stt}}, gate {s} (on every change and reconnect), wake,
vad {s:1|0}, partial, committed {text, lang}, stt_usage {s} (Scribe seconds sent, 1 Hz), need_token,
stt_error / stt_ok, sensors (while awake), telemetry {ride, batch}, summary, play /
idle {heard} / play_error, no_wake, reset {epoch} (must carry this connection's epoch; refused when stale,
from an old page, while a reset runs or replayed); binary PCM16 only with stt_route=server and the gate open.
server → phone: hello {v:2, epoch, cfg} (first frame), state {s: listening|thinking|extended|ready|working| quota, turn, why}, token (never logged), token_error, stt_backoff, binary audio frames (1 byte type
1=mp3 2=wav 3=mp4 4=ogg + uint32 turn + uint16 seq + one playable file; ~25 % smaller than base64 JSON), end,
stop, hold, discard, telemetry_ack, wake_hit / wake_miss (server route, transcript probe),
final / dropped / reply, resetting, reset_done / reset_failed {step}. Every JSON frame carries the epoch;
the page drops everything of an old epoch.

Ride Summary

At a reset (with summary_prompt on and at least one turn in the session) the agent posts the short card in the
old Ride session: the question, a small Yes / No widget (an inline preview in Hermes Desktop) and the paths of
that session's ride logs. The card is the agent's own reply to an ordinary inbound message from the adapter (it
starts with [Ride], and it shows in the history above the card); the plugin writes nothing into the session and
summarises nothing itself.

  • Yes sends a prepared prompt into that old session, so the agent that held the ride's conversation answers
    in chat (no HTML poster, no map, no stats table), in three parts:

    1. Ride character: a label and what it means, in plain words against the rider's own baseline; the numbers
      stay in the background and the caveats are said.
    2. The ride: a short story from the conversation and the log.
    3. Ideas / Fix / Maintain: three short lists pulled from the ride's conversation, each item with the rider's
      own words quoted or the time it was said, so it can be checked. They are listed only: the prompt tells the agent
      to write nothing to any file.

    A session without telemetry gets parts 2 and 3 only. No sends "No ride summary, thanks." Typing "yes" instead
    of clicking also works, but then the agent sees only the card and the log paths, not the prepared three-part prompt.
    You can also ask for a summary in any session (for example "give me a summary of today's ride").

  • The ride_character tool: the Yes prompt tells the agent to run
    python3 <plugin folder>/tools/ride_character.py <this session's ride logs> --rides-dir <the rides folder> --json
    first and to use its JSON. So the agent needs a shell tool and a python3 on its path; the tool is pure standard
    library (ride_character.py), reads the 1 Hz ride logs, writes nothing, and can be run by hand:
    tools/ride_character.py <ride log>... [--rides-dir DIR] [--json] (several logs of one session are joined as one
    ride; JSON is the only output format). From each ride it takes duration, moving time, distance, the share of time
    stopped, the share below 15 km/h while moving, mean and 95th-percentile braking and acceleration, stops per km,
    top speed, speed spread and the share of time leaning over 20°.

  • Labels (fixed): calm, spirited, stop-start, congested filtering, mixed, too short. The baseline is
    the median of each number over the rider's other rides in the rides folder that have at least 3 minutes of moving
    time (the latest 20). A ride is spirited, stop-start or congested filtering when its braking/acceleration,
    its stops, or its slow share is at least a quarter above the rider's own median; otherwise calm or mixed.

  • Cold start: with fewer than 5 such rides there is no baseline. The ride is then described on its own terms
    from fixed thresholds (stopped 35 % of the time or more: stop-start; half or more of the moving time under
    15 km/h: congested filtering; 95th-percentile braking from 0.35 G or acceleration from 0.3 G: spirited; else
    calm), and the output carries the caveat "not enough history for a baseline" with the number of rides it had.
    A ride with less than 3 minutes of moving time is too short and gets no character.

  • Braking and trail braking (round 4, from the 30 Hz stream in rides/<ride>.hz30.jsonl, braking in the tool's
    JSON (round 5; it was trail_braking);
    null with a caveat for a ride without it, so every older ride log still works). Feedback only in the Ride
    Summary and when the rider asks
    ("how was my braking?": each turn's context tells the agent to run the tool on
    the current ride log, which works mid-ride on the chunks received so far and says how old the newest one is). It is
    never pushed during a ride: no spoken note after a corner, no alert. The chunks are joined into continuous runs (a
    gap over 0.5 s starts a new one) and the corners and braking events are found in them. The two faults are an
    abrupt initial application and an abrupt release; hard braking, even leaned in, and hard acceleration are
    not faults: peak G and how fast the main braking rises are reported, never scored. Braking that eases as the lean
    builds is noted as the safer pattern. The set-up and the release are judged on every braking event, straight or
    leaned
    (round 5: smooth braking matters in all riding, not only in corners); the lean at the time is kept as
    context, and an abrupt release while leaned (a pogo) ranks above the same release upright. The notes come in two
    lists, notes_braking (the whole ride) and notes_corners (trailing, easing into the lean, the drive out, coast
    gaps); notes is both. Per braking event and corner:

    1. Set-up: does a light phase come before the main rise (the time from 5 % to 30 % of the event's peak is at
      least 0.1 s), upright or already leaned? Missing = a grab.
    2. Main braking: any rise rate, any peak.
    3. Trail: deceleration falling while the lean rises. The key measure is the tail, the release from 10 % of
      the peak to zero: how long it takes (smooth from 0.15 s) and the largest single-sample drop as a share of the
      peak (smooth up to 15 %). A fall from 40 % or more of the peak to 5 % or less within two samples is an abrupt
      release
      (abrupt_release_count); at lean it is a pogo (pogo_count) and ranks worst. Also recorded: whether the brake was still on after turn-in (trail present) and how far
      into the lean it lasted (no fault either way).
    4. Drive out: acceleration rising while the lean falls, its start scored the same way (no step); and a coast
      gap
      , neither brake nor throttle at lean for 0.3 s or more between 3 and 4.
      Output: counts and shares (corners, braking events, set-up present %, smooth tail %, pogo count, smooth drive-out %,
      trail present %, eased into the lean %, coast gaps), the five worst events with time and a rough location
      (3 decimals, from the 1 Hz log), vs_usual (each share against the median of the rider's own other rides with
      30 Hz data, in words: more often, less often, about as usual; needs 3 such rides) and plain-words notes. No
      absolute scale: the notes describe the curve's shape and how it compares with the rider's own rides; the Yes
      prompt asks the agent to say them in plain words without raw numbers. The open points
      are applied as defaults and marked "default, to tune" in the code and in the output's defaults: the trail may
      end anywhere up to the apex; maintenance throttle is light steady acceleration, about 0.02 to 0.1 G; all
      deceleration counts (the phone cannot tell the brake from engine braking or a hill); feedback only in the Ride
      Summary. Tested on synthetic 30 Hz streams only (tests/fixtures/trail_*.hz30.jsonl: a good trail, a hard one, a
      grab, a pogo release, a coast gap, hard braking held into the lean, vibration), and since 28 Nov 2026 run on
      real rides (stop-start city riding so far, where most abrupt releases are traffic stops at nearly upright lean, and
      lean from the calibration minute or after a mount shift is unreliable); the thresholds are still the defaults.
  • Never invented: a missing part is a caveat in the output (no motion data: pace only; lean and acceleration
    still calibrating at the start; no speed data), not a guessed value.

  • Not checked yet: how Hermes Desktop renders the Yes click and the reply in the old session, and how good the
    summary is on a real ride: the tool is tested on synthetic logs (plus one read-only pass over real ride logs that
    must not crash), the agent's three-part answer is not tested at all.

Requirements

  • Hermes Agent ≥ 0.23.0 with the gateway (aiohttp ships with it).
  • An ElevenLabs API key (Scribe speech-to-text, and text-to-speech unless Hermes's own TTS is used). It is
    required at start with stt_engine: whistle too.
  • Only for stt_engine: whistle: on the Hermes host, a Python interpreter that has the needle package (Whistle)
    and the Whistle weights file (.cact). The plugin installs neither.
  • HTTPS to the phone (iOS allows mic and motion only on secure origins): e.g. Tailscale (below).
  • A phone browser with Web Audio + AudioWorklet, WebAssembly, getUserMedia, Geolocation, DeviceMotion,
    IndexedDB. Bluetooth helmet headset in call mode.

Install

hermes plugins install <owner>/hermes-ride --enable
cd <hermes home>/plugins/hermes-ride
# Activate official Emscripten 4.0.23 (instructions below), then:
sh tools/fetch_assets.sh

tools/fetch_assets.sh compiles the browser wake runtime locally from official sherpa-onnx source
and downloads the official checksum-pinned model into static/vendor/ (gitignored). No third-party
runtime binaries are downloaded. Without the assets the page falls back to transcript wake.

Build prerequisites: git, curl, sha256sum, python3 (3.12+), cmake, make, and official
Emscripten 4.0.23, plus several GB of free disk and internet access. Install the SDK in a directory
you own (no system install or shell-startup edits needed):

git clone --branch 4.0.23 --depth 1 https://github.com/emscripten-core/emsdk.git ~/emsdk-ride
~/emsdk-ride/emsdk install 4.0.23
~/emsdk-ride/emsdk activate 4.0.23
source ~/emsdk-ride/emsdk_env.sh
sh tools/fetch_assets.sh

The first build downloads the SDK and upstream CMake dependencies and may take several minutes.
This builds the sherpa KWS runtime locally, not every dependency from source: upstream CMake uses
its hash-pinned ONNX Runtime WASM static library from the upstream maintainer's
csukuangfj/onnxruntime-libs GitHub releases. No prebuilt sherpa KWS runtime is fetched.
The helper verifies the official source archive SHA-256 before compilation, requires SDK 4.0.23,
and uses upstream build-wasm-simd-kws.sh. For runtime-only builds:
sh tools/build_wake_runtime.sh <output-directory>. There is no unverified runtime reuse switch.
The pinned upstream CMake demo uses an old epoch-12 Chinese model; the helper explicitly removes
its demo guard, preloading and .data installation. Ride supplies the checksum-verified epoch-13
zh-en model through its worker filesystem instead; no renamed/fake demo decoder is needed.
Outputs are the two runtime JS files, WASM and RUNTIME-MANIFEST.txt; no demo .data is required.
MANIFEST.txt records model provenance and output hashes. These hashes describe the local build,
not a promise of byte-identical binaries across hosts. Build/model failures before copying assets
leave the existing static/vendor/ untouched. Run node tests/wake_test.js after installation;
inspect its JSON failures array and ensure kws is not skipped to verify real phrase detection.

Secrets (profile-scoped, e.g. .env or your secret manager), then restart that profile's gateway:

Variable
RIDE_ACCESS_KEYrequired, 24+ random characters, e.g. python3 -c "import secrets;print(secrets.token_urlsafe(24))"
ELEVENLABS_API_KEYrequired, also with RIDE_STT_ENGINE=whistle (stays on the server; the phone gets 15-minute single-use Scribe tokens)
RIDE_ALLOWED_USERS=ridergateway allowlist: the phone always speaks as user rider (RIDE_USER_ID)
RIDE_PORT, RIDE_HOSTdefault 8790, 127.0.0.1
RIDE_STT_ROUTEphone (default: the phone talks to Scribe directly) or server (fallback: gated PCM relayed by the server)
RIDE_STT_ENGINEscribe (default: realtime Scribe on both routes, as before), whistle (offline Whistle on the Hermes host; forces the server route, no Scribe credits) or hermes (each finished phrase goes to the gateway as a voice message and Hermes transcribes it with its own stt provider; forces the server route; see Wiring, speech-to-text); any other value is scribe with a logged warning
RIDE_VOICE_MODEchained (default: wake word, speech-to-text, your agent, text-to-speech) or live (after the wake word the phone opens a live speech-to-speech session with RIDE_LIVE_PROVIDER, closed when the conversation window ends; chained is its fallback); voice_mode in plugin settings; any other value is chained with a logged warning
RIDE_LIVE_PROVIDERelevenlabs (default) or openai: who talks in voice_mode: live; live_provider in plugin settings; any other value is elevenlabs with a logged warning
RIDE_LIVE_MODELthe OpenAI realtime model for live_provider: openai (default empty = gpt-realtime; e.g. gpt-realtime-2.1); live_model in plugin settings
RIDE_ELEVENLABS_AGENT_IDthe ElevenLabs agent for voice_mode: live with live_provider: elevenlabs (create it with docs/elevenlabs-agent-setup.md: one client tool ask_hermes, no custom LLM); elevenlabs_agent_id in plugin settings; empty = live is refused and the window runs chained
OPENAI_API_KEYonly for voice_mode: live with live_provider: openai: the server mints a short-lived client secret with it for each live conversation; the key itself never reaches the phone
RIDE_STT_FALLBACKwhat a Whistle page switches to after a Whistle failure: scribe (default, and any value but none: the gated audio then goes through the host to ElevenLabs Scribe for the rest of that page load) or none (the page keeps hearing that recognition is down)
RIDE_WHISTLE_PYTHONinterpreter with the needle package for tools/whistle_worker.py; default: the first word of Hermes's stt.providers.whistle.command when that is a file, else python3
RIDE_WHISTLE_WEIGHTSthe .cact weights; default: whistle.cact next to that command's script when it exists, else empty (the needle package default)
RIDE_WHISTLE_LANGUAGElanguage code handed to Whistle; default: RIDE_LANGUAGE (en), and en when that is empty or auto
RIDE_WHISTLE_END_SWhistle: seconds of silence after the phone's voice-activity off edge before the phrase is transcribed, default 0.9 (0.3 to 3)
RIDE_WHISTLE_TIMEOUT_SWhistle: seconds one phrase may take; past this the helper is killed and the phrase fails, default 20 (1 to 120)
RIDE_WAKE_ENGINEsherpa (default; falls back to transcript if it can't load within 8 s) or transcript
RIDE_WAKE_WORDthe wake word, default hey hermes; also hey lana (any case and punctuation; unknown names fall back to the default). A new word needs a ride_logic.WAKE_WORDS entry and a keywords file from tools/make_keywords.py
RIDE_LANGUAGEScribe language, default en (English locked); empty or auto = auto-detect
RIDE_LANGUAGESauto-detect hints (secondary_languages), default en (English only; other languages are not supported yet: CJK utterances are dropped by the word count)
RIDE_KEYTERMSe.g. Hermes; off by default (Scribe keyterms cost +20 %)
RIDE_VAD_HANGOVER_MSquiet time before the phone sends VAD-off; default 2000 ms (was 600), range 0–5000; vad_hangover_ms in plugin settings; Whistle adds its separate 0.9 s phrase-end wait
RIDE_MIN_PHRASE_SWhistle only: a finished phrase whose whole clip (pre-roll, speech and trailing silence) is shorter than this many seconds is dropped before transcription and logged as dropped: too_short_audio; default 0 = off, range 0–10; min_phrase_s in plugin settings. Real short commands are dropped too
RIDE_WINDOW_Sconversation window after an answer, default 10 (speech in progress keeps it open: VAD speech or a Scribe partial in the last 1.5 s)
RIDE_PRICE_STT_PER_HOUR / RIDE_PRICE_TTS_PER_1Kprices for the cost estimate, default 0.39 / 0.04 USD
RIDE_END_OF_TURN_SScribe VAD silence before a commit, default 1.2
RIDE_CUE_DIRyour own cue folder (same file names as static/cues/: wake_a, wake_b, thinking, done, reset, reset_failed .m4a; a missing reset cue just plays nothing; mute and unmute are still in the server's cue map but the page no longer plays them)
RIDE_MIC_BASE_DBhow loud a sound must be (dBFS, at standstill; more is added with speed) before the mic gate counts it; default -38 (was -45: "mic is too damn sensitive"), -70 to -5, higher = less sensitive; the speed ceiling (-25 by default) stays 13 dB above it
RIDE_WAKE_THRESHOLDthe sherpa wake spotter's threshold, 0.05 to 0.9, default 0.25; lower = wakes more easily (and falsely more often). The bare-name entries in the keywords file keep their own #0.35
RIDE_PLAY_BUFFER_MSthe phone holds the first segment of each spoken reply this many ms before playing it, so the next segments are already queued and the joins do not gap; cues and clips never wait; default 250 (0 to 1000, 0 = off)
RIDE_TONE_FIRST_Sthe soft "doo, doo" while the assistant thinks starts this many seconds after the thinking cue, then every 4 to 6 s; default 1.2 (0 to 30)
RIDE_ORB_DESIGNthe orb's look, default simple (the only design so far; unknown names fall back to it)
RIDE_SHOW_WORDtrue shows the state word (sleep, listening, …) under the orb, for debugging; default off
RIDE_DOUBLE_TAP_MSthe wake double tap: the second tap must start within this many ms of the first, default 350 (150 to 1000)
RIDE_CUE_GAINloudness of cues and status clips relative to their files, 0–1, default 0.5 (the reply voice is not affected; applied on the phone, no re-render)
RIDE_SUMMARY_PROMPTtrue (default): at a reset the agent posts a short Ride summary available? yes/no card as the old session's last reply (one short model turn, never spoken); false = off
RIDE_TRUSTED_PROXYtrue when a local reverse proxy (tailscale serve) is in front: the key form's lockout then counts the client in that proxy's last X-Forwarded-For hop; default false = the header is ignored and the peer address is counted (with no proxy, any local process could send the header)
RIDE_TTS_ENGINEauto (default), hermes, direct
RIDE_VOICE_ID, RIDE_TTS_MODELdefault: tts.elevenlabs.* from config.yaml, else ElevenLabs defaults
RIDE_RIDER_NAMEhow the context line names you, default "the rider"

Not a setting (yet): the phone gate's voiced_ms (300 ms of continuous voice before sleep opens a probe, WP3) is a
default in static/gate.js, not sent in the hello config.

The same keys work under platforms.ride.extra in config.yaml (lower-case names without RIDE_); env wins.

HTTPS with Tailscale

tailscale serve --bg --https=8447 http://127.0.0.1:8790

Set trusted_proxy: true (RIDE_TRUSTED_PROXY) with this, so the key form's lockout counts each phone, not the
proxy. On the phone open https://<machine>.<tailnet>.ts.net:8447/ and type RIDE_ACCESS_KEY into the form once per
browser (it sets an HttpOnly, Secure, SameSite=Strict cookie for 30 days). Key links (/?k=…) are retired and refused:
a key in a URL ends up in chat history and proxy logs. Wrong keys are bounded: 5 per client, then a lock from 60 s
that doubles (max 1 h); 30 wrong keys in 15 min from all clients lock the form for everyone until they age out.
Use a random key of 24+ characters (at least 16 are enforced; for example openssl rand -base64 24); a key that
was ever sent as a link should be replaced.
Graph: …:8447/graph (newest ride) or /graph?ride=<id>. Don't use Tailscale Funnel unless you mean to.

On the bike

Mount the phone, connect the headset, open the page and tap the pulsing orb once (audio unlock, motion
permission, cue preload, mic, GPS, link, wake engine). The screen goes black. Say "Hey Hermes" (or your wake_word) and you hear the wake answer. Calibration learns as
you ride (down within a minute, forward after the first accelerations and stops).

Live tuning

Two values can be changed in small steps while you ride, with no code change and no gateway restart, so you can find
the edge on the road: the mic gate's loud threshold (mic_base_db, the VAD) and the wake word's threshold
(wake_threshold). Ask your agent ("VAD up", "wake up"); it runs:

python3 tools/ride_tune.py vad up|down|set <dB>     # up = stricter, +3 dB: ignores more wind, needs a louder voice
python3 tools/ride_tune.py wake up|down|set <0..1>  # up = more sensitive, -0.05: wakes more easily
python3 tools/ride_tune.py show                     # config values, overrides, values in use
python3 tools/ride_tune.py reset                    # back to the config values

The tool writes tune.json in the plugin's data folder. The server reads it within a second, sends it to the phone
(the gate takes a new VAD value at once; a new wake threshold loads a second spotter beside the old one, which keeps
listening until the new one is ready) and logs a tune event; the phone confirms with a tuned event, so the ride
log shows when each step happened. Overrides survive a restart until reset. A suggested method: raise the VAD until
it starts missing you and the wake sensitivity until false wakes appear, back each off one step, then put the values
in your config and reset.

Wiring your own voice and model

The principle (9 Nov 2026): Ride uses what your Hermes already has, and there is no provider choice in the
Ride page. Today that is only partly true. This section says what the code does now (read in adapter.py:
connect(), resolve_engine(), core_config()) and where a provider that is not built yet would plug in. Anything
marked untested has not been run with Ride.

1. Reply voice (TTS)

  • What Ride reads today: RIDE_TTS_ENGINE (or platforms.ride.extra.tts_engine), default auto.
    • auto picks hermes only when Hermes's tts.provider is elevenlabs and the elevenlabs Python SDK can
      be imported; otherwise direct. So auto follows Hermes for ElevenLabs only.
    • direct: Ride calls ElevenLabs TTS itself with ELEVENLABS_API_KEY, voice RIDE_VOICE_ID (default
      tts.elevenlabs.voice_id), model RIDE_TTS_MODEL (default tts.elevenlabs.streaming_model_id, else
      eleven_flash_v2_5).
    • hermes: Ride hands each turn to the gateway as a voice message and plays what Hermes's own TTS produces: 16-bit
      PCM from the streaming TTS (supports_streaming_tts) or a finished file through send_voice.
  • To use another voice: pick the provider in Hermes Desktop → Settings → Voice → Speech (or hermes setup tts),
    then set RIDE_TTS_ENGINE=hermes. Untested with Ride for any provider other than ElevenLabs: Hermes core
    streams TTS for ElevenLabs, Gemini, OpenAI and xAI (per the plan below), but whether each reaches the phone in time
    has not been checked.
  • Limits today: if Hermes produced no audio for a turn, Ride's safety net speaks the reply text itself with
    ElevenLabs, so ELEVENLABS_API_KEY is still used. Cues and status clips are audio files, not TTS.
  • Plug-in point: RideCore.tts, an async (text, previous_text) -> (audio bytes, first-byte time) callable,
    passed as RideServer(..., tts=...); today's direct TTS is RideCore.tts_elevenlabs.

2. Speech-to-text (STT)

  • Three engines, one setting: RIDE_STT_ENGINE (or platforms.ride.extra.stt_engine) is scribe (default),
    whistle or hermes.
    • scribe (default, unchanged): ElevenLabs Scribe v2 realtime. Routes: phone (default; the phone
      streams to Scribe with single-use tokens the server mints) or server (RIDE_STT_ROUTE=server; the server
      relays the gated audio). ELEVENLABS_API_KEY is required for this engine and still required at start
      (connect() stops with ride_elevenlabs_key; it is in requires_env) because the reply voice uses it too.
      Hermes's own stt.providers setting is not read by Ride — except as the default path for Whistle (below).
    • whistle (round 3, 10 Nov): offline Whistle (Cactus, 17 MB, Apache-2.0) on your Hermes host, one
      finished phrase at a time, no realtime and no Scribe credits. The page is put on the server route
      (hello.cfg.stt_route is server whatever RIDE_STT_ROUTE says, and hello.cfg.stt_engine names the engine).
      • Where the audio goes: the gated PCM16 at 16 kHz (from the wake word, with its pre-roll, until the
        conversation window ends) goes from the phone to your Hermes host and is transcribed there by the local
        model. It goes nowhere else: not to ElevenLabs. The helper runs with the package's telemetry switched off,
        and with a weights file set (RIDE_WHISTLE_WEIGHTS) it fetches nothing. The one exception is the fallback below, after a Whistle failure.
      • How a phrase is made: RideCore buffers the audio of the current gate opening. The phrase ends when the
        phone's voice activity has been off for RIDE_WHISTLE_END_S (0.9 s); it is then written to a temporary WAV
        in a private (0700) scratch folder, the long-lived helper tools/whistle_worker.py (run by
        RIDE_WHISTLE_PYTHON, the model loaded once, at the first page load) transcribes it, the WAV is deleted, and
        the text takes the same path as a Scribe commit (wake-word strip, filters, barge-in, end of turn). A buffer
        with no speech in it (silence, road noise under the gate) is never sent to the model.
      • Limits: there is no partial text. Interrupting a reply therefore waits until your phrase has ended
        and been transcribed (with Scribe it happens while you speak); and with no partials to confirm speech, the
        phone's voice activity is trusted for at most 15 s per run. One phrase is at most 30 s of audio for the
        model: a longer one is cut at 28 s and the rest becomes the next phrase. The transcription time is added to
        every turn.
      • Latency, measured on the development host (a 4-core VPS that was doing other work, model kept loaded;
        test fixtures; several runs on 10 Nov): helper start 0.4–0.9 s; a 4.4 s phrase 0.5–4.4 s; a 2.9 s phrase
        0.2–6.1 s; a 9.4 s phrase 1.8–14.2 s. The slow end is the host being busy (load average up to 5.3): Whistle can take longer than the phrase is long, and RIDE_WHISTLE_TIMEOUT_S (20 s) is the guard.
        Not measured: a phone on a mobile network, and accuracy with a helmet microphone at speed.
      • Texts it produced for the fixtures (the same in every run): "Hey, Hermes, how fast am I going?",
        Hermes searched the web for the weather forecast in bright to morrow. (the fixture says "in Bright tomorrow"),
        HELANA. This is a test from the bike. What is a good place to stop for coffee in about half an hour? and
        "Hey lana! This is a test from the bike. .... So rl.whistle_text() drops Whistle's quotation marks before the wake
        strip, and helana is one of the hey lana spellings in ride_logic.WAKE_WORDS; the wake word is stripped
        at the start of an utterance only.
      • Log: each phrase is an stt event in turns.jsonl (engine, audio_s, whistle_ms, words, cut);
        turn records and the hello event carry stt_engine. No Scribe seconds are counted for Whistle audio.
    • Failure: a Whistle error (helper cannot start, a timeout, two failures in a row) is logged as stt_error
      code whistle_failed (turns.jsonl) and the page hears {t:'stt', s:'failed', why:'whistle'} (or
      why:'whistle_start'). With RIDE_STT_FALLBACK=scribe (default) that page's server route switches to the
      existing Scribe relay for the rest of the page load (one stt_fallback event): from then on its gated audio
      does go through your host to ElevenLabs. With none it keeps hearing failed and the page's own clip
      says recognition is down. A reload starts on Whistle again.
    • hermes (round 4): Ride does no speech-to-text of its own: each finished phrase goes to the gateway as an
      ordinary inbound voice message and Hermes transcribes it with the stt provider you configured for Hermes
      (Whistle, Whisper, or any other; switch it there and Ride follows). The page is put on the server route.
      • How a phrase is made: exactly as for Whistle (the phone's voice activity off, then RIDE_WHISTLE_END_S;
        RIDE_MIN_PHRASE_S applies; 28 s cap). The phrase becomes a 16 kHz mono WAV clip in Hermes's own audio cache
        (cache_audio_from_bytes_async, the public gateway helper) and a MessageEvent of type VOICE with that clip
        as its media and an empty text. Phrases that end inside the end-of-turn wait (eot_default_s, 1.8 s) go as one
        message with several clips.
      • Sensor context: the turn's bracketed context line (sensors, since-last-turn, ride-log path) travels as the
        event's channel_context, not as a text prefix: the gateway hands it to the agent next to the transcript.
      • The transcript: Ride reads it from the gateway's own transcript echo (stt_echo_transcripts, on by default:
        right after it transcribed a clip the gateway sends 🎙️ "…" through the adapter's send()). Ride logs it
        (an stt event with engine: hermes, word count only), puts it in the turn record and sends it to the page as a
        final; the echo is never spoken. With stt_echo_transcripts: false the turn still works, but Ride never sees
        the text (the turn record's text stays empty).
      • No words, no reply: when your provider returns no words for a clip (wind, a cough, silence), the gateway
        echoes nothing but still runs the turn with a note asking for a resend. A reply, or its audio, for a clip turn
        that got no transcript at all is therefore not spoken, and no fallback line plays (dropped: empty_transcript,
        empty_transcript: true in the turn record). The model turn itself still runs (one short, unspoken turn per
        empty clip). This needs stt_echo_transcripts on; with it off every reply is spoken.
      • Limits: no partial text, and no text at all before the turn: the word-count and filler filters do not run
        (the agent gets every phrase that passed the length check), the wake word carried in by the pre-roll stays in
        the agent's transcript (Ride strips it only from its own log), and a barge-in is judged by length: a phrase of
        at least 1 s of speech that began while the reply played stops it. The transcript wake engine cannot open the
        gate (it needs text): its probe is dropped (dropped: no_wake_check); use the default sherpa wake or the
        double tap. The transcription time of your provider is added to every turn. No Scribe seconds are counted.
  • Not built: Apple native (recognition on the phone): a phone-side engine next to static/stt.js would
    send the same partial / committed messages, so the server needs no change. It needs a speech-recognition API
    that iOS Brave/Bluefy/Safari expose to a web page and that keeps working with the screen black or locked (not
    checked).
  • The ElevenLabs credential with Whistle: ELEVENLABS_API_KEY is still required at start (connect() checks
    it before anything else is built) and is still used: for the reply voice (direct TTS, or the safety net when
    Hermes's own TTS produced no audio) and for the Scribe fallback. It has not become optional.

Live voice (voice_mode: live, round 4)

  • Who talks. In chained mode (the default) every word you hear is your agent's reply, spoken by the TTS.
    In live mode the live provider's own model talks: with live_provider: openai OpenAI's realtime model, with
    live_provider: elevenlabs the ElevenLabs agent's LLM. It has one tool, ask_hermes(request), and is told to
    pass anything factual, personal, tool-shaped or about the ride to your agent and to say the answer faithfully,
    but it can reword your agent's answer. If every word must be your agent's, stay on chained.
  • How. The wake word stays on the phone. After a wake the page asks the server for a live session; the server
    mints a short-lived credential (OpenAI: an ephemeral client secret from OPENAI_API_KEY; ElevenLabs: a signed
    conversation URL for elevenlabs_agent_id from ELEVENLABS_API_KEY) and the phone talks to the provider directly
    (OpenAI over WebRTC; ElevenLabs over the agent's WebSocket, where ask_hermes is a client tool the page runs).
    Set the ElevenLabs agent up once with docs/elevenlabs-agent-setup.md (its voice: your voice_id). Each ask_hermes call comes back over Ride's own
    WebSocket and runs as an ordinary Ride turn (sensor line, same session, so history, memory and the Ride Summary
    work); its reply text is the tool result and Ride's TTS stays silent. Sensor context goes to the live model as a
    context update at most every 10 s, never as something you said. The session closes when the conversation window
    ends, so live minutes are only billed while you talk.
  • Failure. A refused or failed credential, quota or network error: the page plays the reconnecting status clip
    once and the rest of that window runs chained; the server backs off (5, 15, 60, 300 s) before it tries again.
  • Never over this host. Every connection to OpenAI or ElevenLabs is outbound (the phone's or the server's).
    Ride has no route a provider could call (no Custom LLM endpoint). Approvals are still never answered by voice.
  • Wire details and the docs they come from: docs/live-providers.md.

3. The language model

  • Ride follows the Hermes profile's default model and reasoning, like any gateway chat. There is no model setting
    for the Ride lane.
  • A /model (or /reasoning) switch made in Conduit or Hermes Desktop lives in that client and does not reach the
    gateway's Ride lane.
  • The later provider track: notes kept with the project itself, not shipped in this repository.

Wake engines and licences

  • sherpa (default): sherpa-onnx open-vocabulary keyword spotting
    in WebAssembly, in a Web Worker on the phone. No training: the phrase is written as the model's own phone tokens
    (HH EY1 HH ER1 M IY0 Z @HEY_HERMES, one file per wake word, static/vendor/kws-words-<wake word>.txt,
    generated from the model lexicon by tools/make_keywords.py; the plain name has a stricter threshold). Checked
    under node with the real build and model: the Hermes file fires on "Hey Hermes" (stock voice, clean and with
    -30 dBFS brown noise) and on none of the other fixtures; plain "Hermes," alone did not fire (measured down to a
    0.2 threshold), so say the two-word phrase. The Lana file fires on all five "Hey Lana" fixtures and on none of the
    negatives or the Hermes fixtures.
    • Runtime: locally built sherpa-onnx wasm/kws, Apache-2.0, official source commit
      bec3acea719faafa6c86c7022d98f19663b82a76, archive SHA-256
      64b9fd63efe0501a577bd6760c23b7892806115ab31a9051b68da1c63ec5da56.
      See the build prerequisites above. No prebuilt sherpa KWS runtime or unofficial runtime mirror is used.
    • Model: sherpa-onnx-kws-zipformer-zh-en-3M-2025-12-20 (k2-fsa release kws-models), Apache-2.0 as
      declared by the original model card (ModelScope pkufool/icefall-kws-zipformer-zh-en-3M-2025-12-20). The
      release archive itself carries no licence file.
  • transcript (always available, the fallback): your speech (VAD-gated) opens Scribe and the transcript must
    start with the wake word ("Hey Hermes" / "Hermes", also "Hermès", "Hermez", "Hermies"; each word's spellings are in
    ride_logic.WAKE_WORDS); otherwise it is dropped on the phone
    and only a word count is logged. Costs Scribe time on bystander speech.
  • openWakeWord (not built): a custom wake-word model from openwakeword.com would need credits, and those models
    are personal/non-commercial by default.

Cues

static/cues/: our own render of the first bar of Peter's theme from Prokofiev's Peter and the Wolf (a nod to
its use in Blade Runner 2049; no audio from the film), VSCO-2 CE samples (CC0), spoken words by ElevenLabs.
Full credits in static/cues/CREDITS.txt. Replace them with RIDE_CUE_DIR. Status clips (static/clips/) were
rendered once with tools/render_status_clips.py.

Disclosures (catalog rule 13)

  • Audio goes from the phone to ElevenLabs directly (api.elevenlabs.io, default stt_route=phone), and only
    while the gate is open: from the wake word (with 1.5 s before it) until the 10 s conversation window ends. While
    asleep nothing is sent.
  • Mic state and MUTE: the page tracks whether audio can leave the phone (gate or Scribe session open), the mic
    is captured for the on-phone wake word only (nothing leaves), or it is muted; the on-screen dot is hidden on the
    mount. MUTE (one tap, in the reset reveal) and the lock-screen / Control Centre pause button (Media Session) mute
    the page: gate asleep, Scribe closed, nothing sent; UNMUTE or play resumes without a reload. On iOS the system's own orange mic dot is the final word; whether the lock-screen button reaches the page
    depends on the browser (see HANDOFF, R3-6). The server mints single-use tokens with your key and never sees the audio. Scribe is
    billed per streamed time, $0.39/hour (https://elevenlabs.io/pricing/api, read 2026-11-08). With
    stt_route=server the gated audio passes through your server to the same Scribe API.
  • With stt_engine: whistle the audio does not go to ElevenLabs: the gated audio (same span: from the wake
    word, with 1.5 s before it, until the conversation window ends) goes from the phone to your own Hermes host
    and is transcribed there, offline; it goes nowhere else. Each phrase exists as a temporary WAV file under
    <hermes home>/plugin-data/hermes-ride/whistle/ (folder mode 0700) only while it is transcribed, then it is
    deleted. Exception: after a Whistle failure, with stt_fallback: scribe (the default), that page's gated audio
    is relayed by your host to ElevenLabs Scribe until the page is reloaded; stt_fallback: none rules that out.
    ElevenLabs is still used for the reply voice (next point), and ELEVENLABS_API_KEY is still required at start.
  • With stt_engine: hermes the gated audio (same span) goes from the phone to your Hermes host, is kept as a
    WAV clip in Hermes's audio cache (<hermes home>/cache/audio/, cleaned by Hermes like any inbound voice message)
    and is transcribed by whatever stt provider your Hermes uses; where it goes from there is that provider's
    disclosure (a local model keeps it on the host, a cloud provider receives it).
  • With voice_mode: live and live_provider: openai the rider's audio during a live conversation (from the
    wake word until the conversation window ends) goes from the phone straight to OpenAI (WebRTC), and OpenAI's model
    speaks back. OpenAI also receives the live model's instructions with your rider_name, the sensor context line
    (speed, heading, position at 4 decimals, lean, acceleration) at most every 10 s, and each of your agent's replies
    it is asked to say. The server sends OPENAI_API_KEY only to OpenAI, to mint a short-lived client secret; the key
    never reaches the phone, the client secret is never logged.
  • With voice_mode: live and live_provider: elevenlabs the rider's audio during a live conversation (same span)
    goes from the phone straight to your ElevenLabs agent (WebSocket, 16 kHz PCM), and the agent's LLM speaks back with
    the voice set in the agent. ElevenLabs also receives the sensor context line at most every 10 s (as contextual
    updates) and each of your agent's replies it is asked to say, and keeps the conversation under your ElevenLabs
    account like any agent conversation. The server uses ELEVENLABS_API_KEY only to mint the signed URL; the signed URL
    is never logged.
  • Reply text goes to ElevenLabs TTS (Flash/Turbo $0.04 per 1K characters, same page) unless Hermes's own
    TTS speaks it.
  • The server sees: your transcribed words, VAD edges (speech on/off times), telemetry (1 Hz records with
    position at 6 decimals, speed, heading, calibrated lean and G, events; the 30 Hz motion stream without position), per-minute summaries, and usage numbers.
  • Location and motion data go to your model provider: each turn's context line contains current speed,
    heading, position (4 decimals, ~10 m), lean, acceleration, the "since last turn" summary and the ride-log path;
    it is stored in the session history like any message. The agent can read the full ride log with its tools.
  • Network listener: HTTP + WebSocket on RIDE_HOST:RIDE_PORT (default 127.0.0.1:8790) for the page, its
    assets and /graph, all behind RIDE_ACCESS_KEY (typed into the key form once per browser, then a cookie). Anyone
    with the key can talk to your agent as rider and reset its Ride conversation: treat it like a password.
  • Hooks: pre_llm_call, pre_tool_call, post_tool_call, post_api_request, on_session_reset. They act only
    for ride sessions, read only the tool name, token counts and the reset's session ids (never tool arguments or
    results), and only send state frames.
  • Reads outside its own data: Hermes's config.yaml via hermes_cli.config.load_config (tts.*,
    approvals.timeout, and stt.providers.whistle.command for the default Whistle interpreter and weights paths
    only); audio files Hermes hands to send_voice.
  • Sends one message to your agent at a reset (with summary_prompt on): an ordinary inbound turn on the Ride
    lane asking it to post the Ride summary available? card; it goes to your model provider with that session's
    context like any other turn. The card's Yes button sends a prompt that asks that session's agent to run
    tools/ride_character.py over the ride logs (read-only) and to answer in chat.
  • Writes under <hermes home>/plugin-data/hermes-ride/: summaries/card-<id>.html (the card's yes/no
    widget), whistle/ (Whistle only: one temporary WAV per phrase, deleted after it), logs/turns.jsonl (turns, transcripts, dropped
    utterances, usage, ride summaries; rotated 5 MB × 3) and rides/<ride>.jsonl (the 1 Hz ride logs; not rotated —
    delete old rides yourself), and next to each rides/<ride>.hz30.jsonl (round 4: the whole ride at 30 Hz in chunks
    of up to 30 s, one per line: start time, forward/lateral G, lean, pitch and yaw rate, no position; about 2.2 MB per
    riding hour; malformed or oversize chunks are dropped and logged as dropped: bad_hz30; not rotated either). The
    phone keeps its own copy of each ride, the 30 Hz chunks included, in IndexedDB.
  • Phone-side downloads: the page loads only from your server (cues, clips, the wake engine and model in
    static/vendor/). Asset preparation (including the local build helper and upstream CMake dependency
    downloads) runs only when you explicitly run tools/fetch_assets.sh.
  • Credentials: none stored; keys are read through Hermes's profile-scoped secrets. Every log line, turn-log
    record, ride-log record and live-test dump passes a recursive redactor: the keys it has read (and any 8+
    character piece of them), sutkn_… tokens, e-mail addresses and any 24+ character key-like run except a fixed
    list of the plugin's own labels; provider error text is redacted before it is shortened. Phone-supplied labels
    are reduced to known values. This is pattern-based: it is a safety net, not a proof that no secret format can
    ever slip through.
  • No shell commands at runtime. One subprocess, only with stt_engine: whistle: the long-lived helper
    tools/whistle_worker.py, started without a shell with the interpreter you set, fed file paths on stdin. No
    self-update, no telemetry to anyone but your own server.
    Approvals are never auto-approved and never answerable by voice (rule 12).

Known limits

  • iOS WebKit with the screen black: WASM/AudioWorklet throttling, mic and motion re-prompts (Brave) are
    untested on a real phone. The transcript engine is the fallback if the spotter misses.
  • Energy VAD + speed threshold is simple; on a very noisy road the VAD may stay "on" — with Scribe the server
    then trusts it only when Scribe confirms speech with partials; with Whistle (no partials) it trusts the VAD for
    at most 15 s per speech run.
  • stt_engine: whistle: no partial text, so interrupting a reply waits until your phrase has ended and been
    transcribed; at most 30 s of audio per phrase (cut at 28 s); the transcription time is added to every turn:
    0.5–4.4 s for a 4.4 s phrase and 1.8–14.2 s for a 9.4 s phrase, measured on a busy 4-core host (see Wiring,
    speech-to-text). RIDE_WHISTLE_TIMEOUT_S (20 s) is the guard. Untested: a real phone, the upload of the gated
    PCM over a mobile network, and accuracy with a helmet microphone at speed.
  • Ride summary card: posted by the agent on a live gateway, the Yes click and the reply in Hermes Desktop, and the
    summary on a real ride are untested (the tests drive a fake gateway). A model may reword the card.
  • One phone page at a time per gateway profile; the newest page wins. Not tested inside a multiplexed gateway as a
    secondary profile.
  • Language detection: Scribe's reported language is forwarded but not relied on (it mislabelled English as zh
    in a probe when en wasn't in the hint list).

Development

python3 -m unittest discover -s tests   # 307 tests: core, protocol, turns, telemetry, adapter (imports Hermes from
                                        # $HERMES_ROOT, default /opt/hermes), whistle (the real-model tests skip
                                        # without a Whistle install), character, docs, and the node page tests
                                        # (tests/*_test.js, 22 suites, each also runnable as node tests/<name>_test.js)
sh tools/fetch_assets.sh             # lets tests/wake_test.js run the real spotter on the fixtures
hermes plugins validate .
RIDE_ACCESS_KEY=... python3 tests/live_phone.py --url http://127.0.0.1:8790 --stt phone \
    --wav tests/fixtures/sensor_road.wav --telemetry          # live fake phone (spends Scribe/TTS/model time)

What this repository does not ship

The material that only makes sense on the author's own machine is left out of this repository, and the tests that
need it skip cleanly when it is absent:

  • HANDOFF.md and docs/evidence/ (build logs, ride transcripts, phone screenshots),
  • tests/live_phone.py (drives a phone over a private network).

Everything else here is the plugin as it runs: static/, the Python core, the tests and the docs.

License

MIT, see LICENSE. Vendored-at-install assets keep their own licences (Apache-2.0, above).

README from the reviewed commit 0ed1cf7; it updates when the author re-pins.

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section