Project 12

Jarvis Voice AI Assistant

A voice assistant daemon that runs on my desk Mac, hears a wake word, and logs my day into my Personal OS by voice.

Who uses it

Me, every day at my desk. It sits on a vertical monitor as a full screen dashboard and listens for "hey jarvis" while I work.

Why it was built

Logging meals, workouts, habits and study sessions by hand into my OS was friction I kept skipping. I wanted to say one sentence and have the row land in the database, with no phone, no form and no typing. Once the voice loop worked, it became the natural place to hang a morning alarm, focus timers and the nightly jobs my free hosting plan could not run.

What it does

Say "hey jarvis" and it chimes, records until I stop talking, transcribes locally and hands the text to Claude, which picks one of about thirty Personal OS tools (log macros, log a workout, mark a habit, add or move tracker tasks, start a timer, write a journal entry, check today's totals) and answers in one spoken sentence. I can talk over it to stop it, type into the dashboard instead of speaking, or paste a screenshot so a meal photo becomes a macro log and a study screenshot becomes queued lessons. A morning alarm sets the volume, plays a chime, speaks a short brief with weather, the exam countdown and yesterday's numbers, then listens for "I'm up" or one snooze. The flight log turns a focus session into a flight on a real route on a map, where the plane lands exactly when the session ends and breaks are layovers at a real airport that end on their own. The dashboard also has an agents panel laid out from a design handoff, which currently runs on mock data until real agents are plugged in.

What it serves

It exists to make tracking my day cost one spoken sentence, so the data in my OS is complete without me opening an app. Success is that I log by voice by default, the reply comes back in a sentence, and it never wakes, talks or writes when I did not ask it to.

Under the hood

A single Python daemon: openWakeWord (ONNX) for the wake word, whisper.cpp through pywhispercpp for local speech to text, the Anthropic SDK with tool use for the brain, ElevenLabs for the custom voice with macOS say as a fallback, and the Supabase Python client writing to the same database my Next.js OS reads. A FastAPI and uvicorn server on localhost:8787 serves the HUD and pushes a state snapshot over a WebSocket every 150 ms, so the orb shows idle, listening, thinking or speaking in real time. The front end is plain HTML and JavaScript with Geist type, and the flight map is a custom element drawn with d3 and topojson. Background threads run the alarm, timers, lock-in sessions, a 2 AM tracker generation job and a health data sync every 15 minutes against the OS API.

Flow

  1. Wake word
  2. Local transcription
  3. Claude picks a tool
  4. Supabase write
  5. Spoken reply
  6. HUD update

Built with

  • Python
  • openWakeWord
  • whisper.cpp
  • Anthropic API (Claude)
  • ElevenLabs
  • Supabase
  • FastAPI
  • WebSockets
  • sounddevice / PortAudio
  • d3
  • Open-Meteo

How I built it

  1. I started with a bare voice loop: wake word, record until silence, Whisper transcription, Claude reply, spoken back, all running on my MacBook.
  2. Version two added hands and a face. I gave Claude tool definitions over my Personal OS tables in Supabase and built the FastAPI dashboard with a live state orb, transcript feed and mute control.
  3. I hardened the audio for real rooms: transcript cleanup for Whisper hallucinations and name mishearings, mic selection by name instead of index, device rescans when a mic drops, and a barge in that only stops on an actual stop phrase.
  4. I moved secrets into the single env file the OS already uses and added a guard that refuses a client side Supabase key, so a rotated credential changes in one place.
  5. I added routines that live in the daemon: the morning alarm and brief, timers, the 2 AM tracker generator with catch up for missed runs, and a frequent health data sync, because the machine is already awake around the clock.
  6. I built the lock-in flight log, persisting the active session to disk so a restart resumes mid flight and writing finished sessions to an append only log with a recoverable delete file.
  7. I rebuilt the HUD from a design handoff with a new token system, the flight map, a plan view and an agents panel shell for future agents.

Key decisions

  • Speech to text and wake word run locally. The mic is always open, so only short transcripts that pass a filter ever leave the machine, and there is no per minute transcription cost.
  • Barge in is triggered by loudness but only acts on words. Speech heard while it talks is transcribed and playback stops only on a short stop phrase, because loudness alone let a cough or its own voice through the speakers silence it.
  • Only the main loop touches the microphone. The alarm, dashboard and mic switcher just set flags, which avoids two input streams fighting over the device.
  • Conversation history persists to disk and is repaired on load: trimming never orphans a tool result, and any tool call left unanswered by a crash gets a placeholder result so the API does not reject the whole conversation.
  • The system prompt caps replies at one or two sentences and tells Claude the database is the only truth, so it always calls a tool to check instead of answering from memory of the conversation.
  • Nightly and frequent jobs run in the daemon instead of on Vercel, since the free plan only allows fixed daily crons and this machine is already running.
The home screen
The home screen
The flight log
The flight log