Semantic tools for a desk robot: keeping a language model out of the motor loop
A voice-and-gesture bridge for Reachy Mini that splits fast turn-taking from bounded motion keyframes, so the model can invent new expressions without touching motor control.
November 18, 2026 · Project · What is not yet established
In June I wrote down why I wanted to put my Hermes agent into a desk robot. Voice assistants fail when they lag, cannot be interrupted, or treat every turn like a text form. Giving an LLM raw motor targets fails the other way: one bad number jerks the neck, and waiting on a deep planning loop freezes the body mid-sentence.
reachy-hermes splits the problem across two boundaries:
- Fast voice vs. slow agency. A realtime voice session handles listening, barge-in interruption, speech, and immediate glances. Longer tool work can run alongside without blocking the face.
- Semantic intent vs. deterministic motion. The model never sees motor currents, serial packets, or raw
4x4pose matrices. It calls ten bounded tools (look,gesture,dance,emotion,take_photo,learn_gesture,list_gestures,wake,sleep,robot_status), which a local Python worker validates and sends asminjerktrajectories to the Reachy Mini daemon.

Fixed presets alone make a robot feel canned after ten minutes, so learn_gesture lets the model compose new behaviours out of named poses without leaving the safe envelope.
| Layer | What chooses | Allowed space | Enforced bound |
|---|---|---|---|
Voice & agent (agent_tools.py) | Realtime model or Hermes | Named gaze, built-in or learned gestures, camera question | JSON tool schema only; no code or raw matrices |
Keyframe compiler (robot_tools.py) | learn_gesture(name, steps) | 9 head poses, 5 antenna states, duration, hold, body_yaw | 1–12 steps; roll/pitch ±0.7 rad, yaw ±0.9 rad, duration 0.12–3.0 s |
| Hardware loop (Reachy daemon) | Local controller on 127.0.0.1:8000 | minjerk interpolated goto and curated move clips | Localhost-only transport; sleep pose on shutdown |
Inspect a learned gesture from tool call to daemon payload
When the model invents hesitant_yes (a curious glance left with perked antennas, then a short nod), out-of-range durations or angles are clamped before any command reaches the daemon, and unknown poses or 13-step sequences are rejected outright:
| Model step input | Validated daemon /api/move/goto payload |
|---|---|
direction: "curious_left", antennas: "perked", duration: 0.40 |
roll: 0.227, pitch: -0.140, yaw: 0.349, antennas: [-0.55, 0.55], interpolation: "minjerk" |
direction: "down", antennas: "perked", duration: 0.22 |
roll: 0.0, pitch: 0.314, yaw: 0.0, antennas: [-0.55, 0.55], interpolation: "minjerk" |
direction: "spin_360" or 13 keyframes |
Rejected with RobotToolError before enabling motors |
The same separation between conversational surface and verified state shapes how I run a shared room of text agents. Source and offline tests are in sartoshi-foot-dao/reachy-hermes.
Agent context: sources, method and working notes
What exists and what was checked
- Source repository: https://github.com/sartoshi-foot-dao/reachy-hermes (MIT).
- Action-space inventory on hardware: 9 named gaze poses (
front,left,right,up,down,tilt_left,tilt_right,curious_left,curious_right), 5 antenna states (neutral,perked,droop,opposite,flat), 6 built-in multi-step gestures (attentive,nod_yes,shake_no,curious,confused,happy), plus Pollen’s recorded libraries (19dances inpollen-robotics/reachy-mini-dances-libraryand81emotions inpollen-robotics/reachy-mini-emotions-library). - Camera grounding:
take_photo(question)captures an RGB frame over localhost, encodes a JPEG viaffmpeg, strips the base64 payload from the text tool echo (sanitize_for_model), and attaches the image directly to the multimodal session so context does not bloat with base64 text. - Offline verification:
python3 -m unittest discover -s tests -vchecks the 10-tool schema surface, clamping of extreme durations and body yaw, rejection of >12 steps, unknown poses, and path-traversal gesture names, andminjerkangle bounds against a mocked daemon.
Next step
Connect the standalone Hermes planner sidecar over the same ToolDispatcher event bus so Reachy can start an asynchronous research or household task, keep conversational gaze and active-listening nods alive while waiting, and report back when the background job finishes.
Changes
- November 18, 2026: First public version, with open-source release of reachy-hermes.