Work

Voice-first assistant

JARVIS

A personal assistant on my own computer that I talk to, and that handles simple requests without asking any model.

Role
Design and development
Platform
Windows and macOS
Stack
Python 3.12 (asyncio), React 19, Tailwind CSS 4, pywebview
Status
First version public (MIT), rewrite in a private repo

JARVIS is a voice-first personal assistant that runs on my own computer and speaks Turkish first. It starts listening when I say “Hey Jarvis”, then opens apps, manages windows and files, takes notes, sets reminders, and asks me before a risky step.

The newer version's main window in its listening state, rebuilt in HTML and CSS from the app's own colours, sizes and interface text. The real orb is WebGL.

What it does

This page describes the newer version of JARVIS. It has two parts: a Python asyncio core under core/ and a React interface under app/. The interface opens in native windows through pywebview (WebView2 on Windows, WKWebView on macOS) and talks to the core over a loopback WebSocket.

The assistant manages apps, windows, files, media and the browser; inside an app it clicks and types through UI Automation on Windows and Accessibility on macOS. The morning brief, meeting mode, notes, routines and autonomous tasks run on the same core.

The first principle in the design notes (docs/PLAN.md) is “zero cost when idle”: while there is no command, nothing goes to the network or to an API. Another is “local and deterministic first”: a language model is the last resort.

How a request travels

Before a sentence reaches a large model it passes a few cheap steps, and most simple requests end there.

  1. Wake word“Hey Jarvis”, on the local engine
  2. SpeechA Gemini Live session opens
  3. Fast commandA request that fits a pattern ends without a model
  4. IntentEnds here if a ready-made action is enough
  5. ModelRoute by role, with fallback keys and models
  6. Tool and replyApproval gate, then a spoken answer

Wake word

While idle, only the local wake-word engine runs: openWakeWord's ONNX models, or a personal wake phrase defined through Vosk. No audio goes to the cloud.

Speech

On wake, a Gemini Live session opens. Local voice activity detection sets the turn boundaries, so silence is never streamed. The fallback line: Whisper, the text agent, then speech synthesis.

Fast commands

Strict patterns in brain/fast.py (“spotify'ı aç”, “sesi 30 yap”) run without any model. Anything that does not match exactly falls through to the text agent.

Intent routing

brain/router.py asks two things in one Jev request: can a ready-made action answer this alone, and if not, which skill area it belongs to. The model sees only that area's tools.

Model routing

Every job has a role, such as VOICE_BRAIN or TEXT_WORKER. Each role has an ordered list of providers and models, each provider a pool of keys. A key out of quota is skipped.

Tools and memory

Tool calls pass through the approval gates of ToolRuntime; the system asks for approval, not the model. Memory is one SQLite file; an update deactivates the old row, never deletes it.

There are seven roles, each with a default route. The Groq and Jev providers ship disabled by default.

RoleUsed forDefault route
VOICE_BRAINLive voice conversationGemini Live
FAST_DECIDERIntent routingJev
TEXT_WORKERText agent, memory extractionGemini, three models in order
VISION_GROUNDFinding what to click on screenGemini
EMBEDDINGMemory vectorsGemini
STTSpeech to textGroq Whisper, then Gemini
TTSSpeech synthesis, backup for edge-ttsGemini

The core of model routing is this loop in ProviderRegistry.route, shortened where the dots are.

for provider_id, model in self._routes.get(role, []):
    ...
    for key in self._candidates(provider):
        if not self.quota.available(key.key_id, model, limits, est_tokens):
            attempts.append(f"{provider_id}/{model}/{key.key_id}: quota")
            continue
        self.quota.record(key.key_id, model)
        try:
            resp = await call(provider.adapter, model, key.secret)
        except ProviderError as exc:
            ...
            if self._handle_error(exc, provider, key, model):
                break
            continue
        ...
        return resp
raise NoRouteAvailable(role.value, attempts)

_handle_error decides by the kind of error whether the loop moves to the next key or to the next target.

CaseWhat happens to the keyNext attempt
Out of quotaNo call is madeNext key
RateLimitedCooled down for that model: the reported time, otherwise 30 secondsNext key
RateLimited, daily limitCounted as out of daily quota for that modelNext key
AuthErrorParked for an hour on every modelNext key
BadRequestLeft as it isNext target
Other provider and network errorsCooled down for 10 secondsNext key

When no target is left, NoRouteAvailable is raised with the list of attempts.

The orb shows the assistant's current state: its palette changes while listening, thinking and speaking, and a transition takes about 300 milliseconds. After an answer a short window stays open, and during it I can continue without repeating the wake word.

IdleSeni dinlemek için “Hey Jarvis” de
ListeningDinliyorum…
ThinkingDüşünüyorum…
SpeakingKonuşuyor
MutedSesli asistan kapalı
ErrorBir şeyler ters gitti
The orb's six states. The colours come from the app's palettes and the line under each name is the app's own status text, in Turkish; the circles are CSS approximations.

Stack

Core
Python 3.12, asyncio, pydantic 2, websockets, httpx
Voice
openWakeWord, Vosk, Gemini Live, edge-tts, sounddevice
Interface
React 19, TypeScript, Tailwind CSS 4, Vite 8, pywebview
Computer control
uiautomation (Windows), pyobjc (macOS), Playwright

Versions and status

JARVIS has two codebases and only one is public. The repository on GitHub is the first version: a HUD written in Python and Tkinter, under the MIT licence. The two versions differ as follows:

First public versionRewrite
InterfaceTkinter HUDReact 19, pywebview windows
PlatformWindows onlyWindows and macOS
CorePython 3.11+Python 3.12, asyncio
Wake wordopenWakeWordopenWakeWord, personal phrase through Vosk
ProvidersGemini, Groq, OpenRouter, NVIDIA NIMGemini, Groq, Jev, plus any OpenAI-compatible provider I add
MemoryVector store on SQLite and numpyOne SQLite file, FTS5, optional vectors
CodePublic on GitHub, MITPrivate repository

The HUD and some action modules of that first public version build on work by Alp Ünlü (@alppunlu), and those files carry his credit line at the top; the rewrite is my own work.

The rewrite described here is in a private repository and not public yet.

More work

Contact

Let's build
something together.

If you have a project, a role or just an idea in mind, write to me.

Reach me

Emailemreocell1219@gmail.com LinkedInin/emreocell GitHub@emreocell X@emreocell1219 Instagram@emre.ocel Redditu/emreocell