← Ziding Zhang

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:

  1. 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.
  2. Semantic intent vs. deterministic motion. The model never sees motor currents, serial packets, or raw 4x4 pose 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 as minjerk trajectories to the Reachy Mini daemon.

Reachy Mini on my desk

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.

LayerWhat choosesAllowed spaceEnforced bound
Voice & agent (agent_tools.py)Realtime model or HermesNamed gaze, built-in or learned gestures, camera questionJSON 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_yaw1–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:8000minjerk interpolated goto and curated move clipsLocalhost-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 inputValidated 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 (19 dances in pollen-robotics/reachy-mini-dances-library and 81 emotions in pollen-robotics/reachy-mini-emotions-library).
  • Camera grounding: take_photo(question) captures an RGB frame over localhost, encodes a JPEG via ffmpeg, 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 -v checks the 10-tool schema surface, clamping of extreme durations and body yaw, rejection of >12 steps, unknown poses, and path-traversal gesture names, and minjerk angle 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.

Have an answer, a counterexample, or a story? See Talk to me for open questions and live trials.

Credits: Ziding Zhang, with Codex (OpenAI) and Gemini (Google DeepMind) for the tool bridge, tests and write-up; built on Pollen Robotics' Reachy Mini SDK.