Skip to content

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.

chore: auto-save WIP via Claude stop-hook safety net (2026-07-01 18:56)

Ruben Lütke2cdf82a41115
diff --git a/jarvis/plugins/stt/__init__.py b/jarvis/plugins/stt/__init__.py
index 183ec177d7..636397ad2a 100644
--- a/jarvis/plugins/stt/__init__.py
+++ b/jarvis/plugins/stt/__init__.py
@@ -379,6 +379,11 @@ def build_wake_whisper(
compute_type=compute,
language=language,
initial_prompt=bias,
+ # Greedy decoding for the wake: a short phrase on an always-on loop does
+ # not need beam search, and beam_size=1 transcribes a window ~3-5x faster
+ # on base/cpu — far less likely to blow the wedge timeout under app CPU
+ # load, and snappier. The phrase bias + sound-folding matcher keep recall.
+ beam_size=1,
)
diff --git a/tests/unit/plugins/stt/test_wake_whisper_build.py b/tests/unit/plugins/stt/test_wake_whisper_build.py
index c04f24ef98..adf4bbf9ed 100644
--- a/tests/unit/plugins/stt/test_wake_whisper_build.py
+++ b/tests/unit/plugins/stt/test_wake_whisper_build.py
@@ -95,6 +95,16 @@ def test_build_wake_whisper_cpu_keeps_bias() -> None:
assert p._initial_prompt == "Hey Ruben"
+def test_build_wake_whisper_uses_greedy_beam_for_speed() -> None:
+ # The wake transcribes short phrases on a latency-sensitive always-on loop.
+ # Greedy decoding (beam_size=1) is ~3-5x faster than the beam-5 default on
+ # base/cpu, so a window transcribes in a fraction of the time — far less
+ # likely to blow the wedge timeout under app CPU load, and snappier. The
+ # phrase bias + sound-folding matcher keep recall high without beam search.
+ p = build_wake_whisper(STTConfig(), cuda_available=False)
+ assert p._beam_size == 1
+
+
def test_build_wake_whisper_passes_language() -> None:
p = build_wake_whisper(STTConfig(), language="de", cuda_available=False)
assert p._language == "de"