Technology · FlashBrain

The reflex layer.

Zaelar's own orchestration code — not a general-purpose reasoning agent. It answers every turn in under a second, drives the canvas, and decides what's worth escalating.

Zaelar's own code Pluggable executor Cloud API Local / free
Fullscreen

Every input — a voice turn, a connector message, a UI click — passes a deterministic gate before it ever reaches a model: is this actually directed at the agent, or ambient noise? Does it need a hard interrupt ("stop", "close everything")? Only what's left goes to the prompt.

One small prompt, composed live

The prompt isn't a static persona — it's assembled per turn from live state: identity and mission, what's on screen right now, a synthesized slice of recent conversation, plus a terse layer of available tools. A small, fast, non-reasoning model reads it and responds with either spoken text or a tool call.

Tool catalog

The model decides what to do by calling a function, not by matching keywords. That keeps the decision reliable even on a small, cheap model. The tools offered change with context — most only appear when they're actually relevant.

toolwhat it doeswhen it's offered
escalateLaunches a Brain Workeralways
web_searchOne factual answer, resolved in the turn (~1-2s)always
reveal_secretFetches an encrypted operator secret, out-of-bandalways
play_music / play_videoFuzzy media requests, resolved in-turnalways
widget_dataRuns one declared action on an open widgetwhen widgets are open
reply_messageDrafts a reply, gated by a confirm step before sendingwhen there are messages
delete_widgetDeletes a widget for good, with confirmationwhen widgets are open
set_style_directiveApplies and persists a standing behavior rulealways
authenticate_webOpens the browser to log in to a sitealways
send_to_worker / stop_worker / answer_workerSteers a live Brain Workeronly with live workers
Showing, hiding or moving something on the canvas is handled by lightweight text tags in the spoken response, not a tool call — the FlashBrain never touches the executor directly. Anything that needs real reasoning goes through escalate to a Brain Worker.