Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
chore: auto-save WIP via Claude stop-hook safety net (2026-07-07 15:58)
Ruben Lütke1901a0e6666c
diff --git a/jarvis/plugins/wake/openwakeword_provider.py b/jarvis/plugins/wake/openwakeword_provider.pyindex d62b455a87..23af9b5d6e 100644--- a/jarvis/plugins/wake/openwakeword_provider.py+++ b/jarvis/plugins/wake/openwakeword_provider.py@@ -430,7 +430,7 @@ class OpenWakeWordProvider:# so a normal-volume "Hey Jarvis" reaches the score band the# threshold expects (no shouting). Amplify-only + noise-floor gated.norm_frame = self._gain.process(frame) if self._gain is not None else frame- # predict() returns a dict: {"hey_jarvis": score_float, ...}+ # predict() returns a dict: {"<model_stem>": score_float, ...}scores = await asyncio.to_thread(self._model.predict, norm_frame)self._frames_seen += 1frame_max = max(scores.values()) if scores else 0.0diff --git a/jarvis/speech/diagnose.py b/jarvis/speech/diagnose.pyindex fbf06aea46..7603c7eb0e 100644--- a/jarvis/speech/diagnose.py+++ b/jarvis/speech/diagnose.py@@ -7,8 +7,9 @@ Shows:1. All audio devices (input + output)2. Live mic level (dBFS) over 10 seconds — so you can see whether your micis picking anything up at all- 3. Live wake-word score over 20 seconds — say "Hey Jarvis" / "Jarvis"- and see what openWakeWord measures+ 3. Live wake-word score over 20 seconds — say your configured wake word+ and see what your custom openWakeWord model measures (skipped when no+ custom model is configured)4. Whisper transcription test — say something for 3 sec, Jarvis showswhat it understood5. Chime playback — short tone on the output device@@ -131,12 +132,30 @@ async def step_wake_live(duration_s: float = 20.0) -> None:print("Say your wake word SEVERAL times — try different pronunciations.")print("Shows the highest wake score per second live.")print()+ from jarvis.core.config import load_configfrom jarvis.plugins.wake.openwakeword_provider import (OWW_FRAME_SAMPLES,OpenWakeWordProvider,)+ from jarvis.speech.wake_phrase import resolve_wake_plan++ # This live-score step only applies to an openWakeWord MODEL — i.e. a+ # user-trained custom .onnx from the configured wake plan. The product+ # ships no named model (design 2026-07-07); vosk/whisper wake engines+ # have their own confirm paths and no frame score to display.+ ww = load_config().trigger.wake_word+ plan = resolve_wake_plan(ww, local_whisper_available=False)+ if plan.engine != "custom_onnx" or not plan.oww_model_path:+ print(+ " (skipped) No custom wake model configured — this step scores a "+ "custom .onnx model. Your wake engine is "+ f"'{plan.engine}'; use the app's wake settings to test it."+ )+ return+ keyword = plan.oww_keywordprov = OpenWakeWordProvider(- keywords=("hey_jarvis",),+ keywords=(keyword,),+ model_path=plan.oww_model_path,activation_threshold=0.15,score_log_threshold=1.1, # disable inline logging, we show our own)@@ -162,7 +181,8 @@ async def step_wake_live(duration_s: float = 20.0) -> None:residual = buf[n_full * OWW_FRAME_SAMPLES:]for frame in frames:scores = await asyncio.to_thread(prov._model.predict, frame)- s = float(scores.get("hey_jarvis", 0.0))+ # Exactly one model is loaded; it reports under its file stem.+ s = float(max(scores.values())) if scores else 0.0max_in_window = max(max_in_window, s)max_score_global = max(max_score_global, s)now = time.time()diff --git a/jarvis/speech/pipeline.py b/jarvis/speech/pipeline.pyindex 87cc24e104..d413fd5ff3 100644--- a/jarvis/speech/pipeline.py+++ b/jarvis/speech/pipeline.py@@ -4300,23 +4300,21 @@ class SpeechPipeline:(genuine other speech) suppresses, preserving the bare-"Jarvis"BUG-009 guard. How a WORKING STT that heard no speech (emptytranscript / silence-hallucination boilerplate) is treated depends on- the engine: the pretrained hey_jarvis path degrades open (forensic- 2026-06-28 — short real wakes often mis-transcribe to nothing), while- a user-trained custom_onnx hit SUPPRESSES (live forensic 2026-07-01 —- such models false-fire on breath/noise, so "no speech heard" is- evidence of a false fire, not an STT problem).+ the engine: a user-trained custom_onnx hit SUPPRESSES (live forensic+ 2026-07-01 — such models false-fire on breath/noise, so "no speech+ heard" is evidence of a false fire, not an STT problem), while any+ other OWW hit keeps the historical degrade-open behaviour (forensic+ 2026-06-28 — short real wakes often mis-transcribe to nothing)."""if not self._require_hey_prefix:return True- # The STT re-verification runs for the jarvis family (the hey_jarvis- # model also fires on bare "Jarvis" — BUG-009) AND for user-trained- # custom_onnx models (live forensic 2026-07-01: a few-shot model scored- # breath/ambient/other speech up to 1.000 — a false-positive storm;- # the transcript matched against the phrase's own sound-folded fuzzy- # matcher is the real discriminator). Only a specific PRETRAINED model- # (alexa/mycroft/rhasspy) is exempt via verify_prefix=False: those are- # their own discriminator, and the STT would mis-transcribe the foreign- # brand word and wrongly reject valid hits.+ # The STT re-verification runs for user-trained custom_onnx models+ # (live forensic 2026-07-01: a few-shot model scored breath/ambient/+ # other speech up to 1.000 — a false-positive storm; the transcript+ # matched against the phrase's own sound-folded fuzzy matcher is the+ # real discriminator). Since the product ships no pretrained model+ # (design 2026-07-07), custom_onnx plans are the only source of OWW+ # hits; vosk_kws is exempt via verify_prefix=False (its own confirm).plan = getattr(self, "_wake_plan", None)if plan is not None and not getattr(plan, "verify_prefix", True):return True@@ -4364,15 +4362,15 @@ class SpeechPipeline:return True# For a custom-model hit, a WORKING STT that heard no wake phrase —# an empty transcript or a known silence-hallucination boilerplate —- # is evidence of a false fire and must SUPPRESS. The pretrained- # hey_jarvis path keeps its documented degrade-open behaviour (its- # false fires happen on real speech, so an empty transcript there- # really does mean the STT failed, forensic 2026-06-28).+ # is evidence of a false fire and must SUPPRESS. Any other OWW hit+ # keeps the documented degrade-open behaviour (historical forensic+ # 2026-06-28: false fires happened on real speech, so an empty+ # transcript there really does mean the STT failed).## Persistent verify-STT failure (Groq 429/503/timeout after retries):- # - hey_jarvis: degrade OPEN. Candidates are rare, so an unreachable- # STT is a provider problem, not evidence about what the user said;- # accepting keeps the wake alive through an outage (AP-22).+ # - non-custom hit: degrade OPEN. Candidates are rare, so an+ # unreachable STT is a provider problem, not evidence about what the+ # user said; accepting keeps the wake alive through an outage (AP-22).# - custom_onnx: FAIL CLOSED (live 2026-07-02, 3 ghost activations# overnight). The fire flood of a weak model eventually hits an STT# timeout, and degrade-open then activates Jarvis although nobody@@ -4399,7 +4397,7 @@ class SpeechPipeline:# "Vielen Dank."). Whisper emits these on silence/noise buffers.# - custom_onnx: the buffer held silence/noise → the model false-fired# on breath/ambient → suppress (fail-closed).- # - hey_jarvis: forensic 2026-06-28 showed short REAL "Hey Jarvis"+ # - non-custom hit: forensic 2026-06-28 showed short REAL wake# buffers hallucinate these for ~half of all valid wakes → accept# (degrade-open), else the wake "stops working" intermittently.# An arbitrary non-matching transcript (genuine OTHER speech) still@@ -4422,10 +4420,10 @@ class SpeechPipeline:# - custom_onnx: no speech in the buffer → breath/noise false fire →# suppress. This is the "fires out of nowhere" half of the# 2026-07-01 storm.- # - hey_jarvis: an empty transcription on a strong hit is far more- # likely a silence-mis-transcription of a short real wake than a- # spontaneous model fire → accept (degrade-open, forensic- # 2026-06-28 "Hey Jarvis sometimes stops working entirely").+ # - non-custom hit: an empty transcription on a strong hit is far+ # more likely a silence-mis-transcription of a short real wake than+ # a spontaneous model fire → accept (degrade-open, forensic+ # 2026-06-28 "the wake sometimes stops working entirely").if not text:if custom_model_hit:log.info(