Wearable AI agent · Meta Global AI Developer Hackathon

Glassistant

A hands-free lab assistant on Ray-Ban Meta that turns bench work into robot code.

Team lead · all engineering · 2-person team · Oct 26 – Nov 4, 2026

84 s → ~6 s
From pipette tip landing to the well marked on the iPad
30 / 33
Multi-action voice requests executed, up from 10 / 30
1.78 → 1.37 s
Median Spark voice turn, with 99% of input tokens cached
Watch the Glassistant demo
In-run iPad screen: the plate fills in as wells are pipetted, with the current step and timers
In-run iPad screen: the plate fills in as wells are pipetted, with the current step and timers
Watching: the glasses mark wells on the iPad as they are filled
A spoken question answered from the web
Handoff: the as-run record becomes simulator-checked Opentrons code

Context

Wet-lab scientists pipette for hours with gloves on, then rebuild the record from memory.

The problem

A record written after the fact misses what actually happened at the bench, so a lab robot ends up repeating the plan instead of the real run. We confirmed the problem in interviews with 6 biology PhDs and lab researchers.

What I owned

I led the team and wrote all of the engineering: the SwiftUI iPad app, the FastAPI server and agent, the SAM vision pipeline and the robot handoff. Eunbi Cho owned product and interaction design.

Client

SwiftUI (iPadOS 26)Meta Wearables DAT 1.0.1Apple Speech

Server

Python 3.12FastAPIWebSocket + SSEJSON SchemaOpenCV

AI

Muse Spark 1.3 (tool calls)Muse Voice TranscribeSAM 3.1Muse Glimmer 30B (llama.cpp)

Infra

Modal GPU (L40S)Opentrons Flex simulator

Architecture

Everything goes in one way: the glasses feed an iPad, the server decides, and a single run record is the source of truth.

Voice turn + Watching + Handoff around one run record

swipe
audio + photosno matchexact commandvalidated tool callsPrivate mode1 photo/shandoffRay-Ban Meta GlassesiPad App (SwiftUI)FastAPI ServerMuse VoiceTranscribeGrammar MatcherMuse Spark 1.3 AgentRun Record (JSONSchema)SAM 3.1 WatchingOpentrons Simulator+ CheckerMuse Glimmer 30B(Private)
  1. Critical path
  2. Ray-Ban Meta Glasses
  3. →iPad App (SwiftUI)
  4. →FastAPI Server
  5. →Muse Voice Transcribe
  6. →Grammar Matcher
  7. →Muse Spark 1.3 Agent
  8. →Run Record (JSON Schema)

Critical path is the voice turn. Exact bench commands are answered by the grammar in about 0.1 s, everything else goes to Spark, and the server validates every tool call before it touches the record.

Key decisions

Three rules shaped the system: code checks what the model picks, vision never overrides a person, and private runs stay on our own GPU.

Decision 1

Grammar first, the model second

Problem
Bench commands arrive every few seconds, and sending each one to an LLM costs latency, tokens and the occasional wrong tool call.
Options
  • Send every utterance to Muse Spark
  • Match exact bench commands with a grammar, and send only the rest to Spark
Decision
A grammar answers exact commands. Everything else goes to Muse Spark 1.3 with strict schemas, and the server validates every call before it changes the record ("the model picks, code checks").
Result
Grammar hits take about 0.1 s on the server, return the same result every time and use no tokens. Multi-action requests went from 10 / 30 to 30 / 33 executed, and silent drops from 20 / 30 to 0 / 33.
Trade-off
Phrasing outside the grammar always pays the full model round-trip.

Decision 2

Watching: from video clips to one photo a second

Problem
Marking a well took 84 s from the moment the pipette tip landed, far too slow to follow a person at the bench.
Options
  • Track only the pipette tip (32–38 s)
  • Sample video at 3–3.5 fps instead of 7 (changed which wells were read)
  • Drop shaken photos (threw away 21 of 40)
  • Judge each photo as it arrives and re-find the plate every third photo
Decision
Photos are judged by SAM 3.1 as they arrive, and the plate is re-located every third photo instead of every frame.
Result
About 6 s per photo. Server compute per photo fell from 1.25 s to 0.53 s, SAM time stayed flat at 4.9–5.9 s instead of growing past 18 s, and SAM server errors went from 3 clips to 0.
Trade-off
Fewer wells are caught: a stay under about 3 s can be missed, and one live session showed 9 of 12 wells (all 9 correct, 0 false).

Decision 3

Private mode on a self-hosted model

Problem
Some runs should never leave the lab, so the run record cannot go to the hosted Meta Model API.
Options
  • Hosted Muse Spark only
  • Self-host Muse Glimmer 30B on Modal with the same tools and prompt (L40S, A10, H100 and A100 80 GB compared)
Decision
Glimmer 30B runs on llama.cpp with a DFlash draft model on an L40S, behind the same tools and prompt as Spark, with Apple Speech on the iPad.
Result
A turn went from 6.0 s to 1.5 s: decode rose from 27 to ~100 tok/s and prefill fell from 1.75 s to ~0.3 s, at $1.95 / h.
Trade-off
Multi-action accuracy drops from 30 / 33 to 23 / 33, cold starts take 20–25 s, and Watching and Handoff are off in Private mode.

Measurement

Watching went from 84 s to about 6 s per photo, and every number here comes from the eval harnesses in the repo.

Watching: pipette tip landing → well marked

Before
84 s
After
~6 s

Reliability

The model is never trusted on its own: schemas, a simulator check and a human fallback sit between every model output and the lab.

  • JSON Schema snapshot contract with a version check between server and iPad, and the app shows an "Out of sync" banner on mismatch.
  • Handoff checker compares the Opentrons simulator's command log with the approved record and names failures like "D4 got 20 µL, not 25". After three failures it hands the run back to the person.
  • Unsure vision becomes a question to the user, never a silent edit to the record.
  • MODEL_MODE=recorded replays model calls and blocks all outside network traffic, so 34 server test scripts and the eval harnesses run offline.
  • Documented 3 Wearables DAT SDK issues (speech stalling after A2DP playback, silent A2DP during stream audio, no vocabulary hints).
Edge cases covered (7)
  • ASR paths (146 rows, quiet room): Muse with keywords WER 0.09, 16 / 18 exact, p50 0.97 s; camera-stream audio to Muse WER 0.10, p50 0.66 s; Apple Speech WER 0.24–0.26; MWDATSpeech WER 0.25
  • Tool choice: 25–27 / 28 spoken requests over 4 runs, with 42 actions available
  • Effort settings: minimal 11 / 12 at 1,800 ms median, low 10 / 12 at 2,575 ms, contributor 12 / 12 at 3,253 ms
  • Web search: correct source chosen 18 / 18, median latency 1,660–4,021 ms across runs
  • Live Watching sessions: pen session 9 / 12 wells shown, 9 / 9 correct, 0 false, 6.3 s per photo; pipette session 4 / 4 shown, 4 / 4 correct, 0 false, 8.1 s per photo (each a single session, not a test set)
  • SAM tuning set: desk 43 / 55 wells with 10 false over 14 clips; hand 16 / 16 wells with 0 false over 4 clips
  • Glimmer fallback: Try again / Use Full when the GPU can't wake, and a prompt to switch to Full for documents too long for Glimmer

Limits and scale

Watching and the evaluation are hackathon-grade, and the demo protocols are synthetic.

TodayWatching misses stays under about 3 s and some outer wells, because the designed parallax correction is not applied yet.

At scaleApply the parallax correction from the design doc and tune on a larger set of plates and pipettes.

TodayThe held-out confirm set for the 90% accuracy bar was never filmed, so accuracy comes from single live sessions and a tuning set.

At scaleFilm the confirm set and report accuracy against the 90% bar on data the pipeline was never tuned on.

TodayDemo protocols and data are synthetic.

At scaleMove to real lab runs; the stated next step is Oakley Meta Vanguard (IP67) glasses for wet-bench use.

TodayPrivate mode trades accuracy and features for privacy: 23 / 33 multi-action, 20–25 s cold starts, no Watching or Handoff.

At scaleKeep one GPU container warm (GLIMMER_KEEP_WARM=1) to skip cold starts, at $46.80 a day on an L40S.

Engineering deep divePipelines, code flow and implementation notes

iPad UI (Figma)

Well card: what went into a single well, and whenHandoff: the as-run record checked in the Opentrons simulator

Design rules

One way in. Glasses, iPad and voice all enter through the same server path, so there is one run record.
The model picks, code checks. Spark proposes tool calls; the server validates each against a schema before it changes anything.
Vision never overrides a person. When SAM is unsure, Milo asks instead of editing the record.

What Watching tried before it worked

Tracking the tip only: 32–38 s. Sampling video at 3–3.5 fps instead of 7: changed which wells were read. Leaving the pen out of ORB matching: mean delay rose to 41–50 s and was rolled back. Dropping shaken photos: dropped 21 of 40 photos and was removed. Unused fallbacks kept in the design doc: a RANSAC grid fit and a "pipette" prompt.

← All projects