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
@ fix(agentic-ide): stop the prompt cleaner deleting words that carry the task
Ruben Lütked9e4623c01a6
diff --git a/jarvis/agentic_ide/prompt_composer.py b/jarvis/agentic_ide/prompt_composer.pyindex 74e06536b0..e37d588e4a 100644--- a/jarvis/agentic_ide/prompt_composer.py+++ b/jarvis/agentic_ide/prompt_composer.py@@ -123,12 +123,36 @@ MAX_FILE_REFERENCES = 5# Speech artefacts the deterministic layer removes. Matching *input vocabulary*# in the supported locales — these are the words people actually say while# thinking, not prose.+#+# ADMISSION RULE, inherited verbatim from ``jarvis.dictation.cleanup``: an+# entry qualifies only if it carries NO meaning in ANY locale this project+# serves. This regex runs language-BLIND — one pattern over German, English and+# Spanish alike — so an entry that is a content word in a language other than+# the speaker's is not a risk, it is a certainty. De-mined 2026-07-30 after the+# same defect surfaced in the voice lane's filler table:+#+# "um" German preposition. "Kümmere dich um den Bug" became+# "Kümmere dich den Bug". # i18n-allow: transcript under test+# "like" English verb and preposition. "Make it like the other+# panel" became "Make it the other panel" — the same+# words, the opposite instruction.+# "also" English adverb ("also add the tests" → "add the tests"),+# and a German discourse marker its own docs exclude.+# "kind of"/"sort of" "what kind of test" became "what test".+# "halt"/"eben" German content words ("halt das Layout stabil");+# "ne" colloquial German "eine", French negation particle;+# "quasi"/"irgendwie" German adverbs that qualify the task;+# "este"/"pues"/ Spanish demonstrative ("este archivo" = this file) and+# "bueno" two words the cleanup module names as excluded.+#+# What is left is either a pure hesitation sound or a multi-word discourse+# phrase that no locale reads as instruction. Anything added later must clear+# the same bar in all three locales, not only in the one it came from._FILLER_RE = re.compile(r"\b(?:"- r"ähm|ähmm|äh|ehm|hmm|halt|eben|einfach\s+mal|also|ne|gell|weißt\s+du|"- r"verstehst\s+du|sozusagen|quasi|irgendwie|jetzt\s+mal|mal\s+eben|"- r"um|uh|erm|like|you\s+know|i\s+mean|sort\s+of|kind\s+of|basically|"- r"este|o\s+sea|pues|bueno"+ r"ähm|ähmm|äh|ehm|hmm|einfach\s+mal|gell|weißt\s+du|"+ r"verstehst\s+du|sozusagen|jetzt\s+mal|mal\s+eben|"+ r"uh|erm|you\s+know|i\s+mean|o\s+sea"r")\b[\s,]*",re.IGNORECASE,)diff --git a/tests/unit/agentic_ide/test_prompt_composer.py b/tests/unit/agentic_ide/test_prompt_composer.pyindex 38326b8cf6..caadacef97 100644--- a/tests/unit/agentic_ide/test_prompt_composer.py+++ b/tests/unit/agentic_ide/test_prompt_composer.py@@ -347,3 +347,40 @@ async def test_an_explicitly_pinned_brain_is_used()assert seen["brain"] is pinned+++# --------------------------------------------------------------------------+# The deterministic filler pass may not eat words that carry the instruction+# --------------------------------------------------------------------------+#+# `_FILLER_RE` runs language-BLIND — one pattern over German, English and+# Spanish alike — so an entry that is a hesitation sound in one locale and a+# content word in another does not merely risk damage, it guarantees it. Same+# admission rule as `jarvis.dictation.cleanup`: an entry qualifies only if it is+# meaningless in EVERY locale served (2026-07-30).+++ ("said", "must_survive"),+ [+ # i18n-allow: spoken instructions under test (§1 list #4)+ ("Kümmere dich um den Bug im Login", "um"),+ ("Es geht um die Tests für den Router", "um"),+ ("Also add the missing tests", "Also"),+ ("Make it like the other panel", "like"),+ ("What kind of test should run here", "kind of"),+ ("Der Fehler ist halt im Cache", "halt"),+ ("Mach das Layout eben und ruhig", "eben"),+ ("Abre este archivo y revisa el router", "este"),+ ],+)+def test_a_content_word_is_never_filtered_out(said: str, must_survive: str) -> None:+ assert must_survive in prompt_composer._clean_speech(said)+++def test_real_hesitation_sounds_are_still_removed() -> None:+ cleaned = prompt_composer._clean_speech(+ "ähm mach mal die Tests grün" # i18n-allow: German speech input under test+ )+ assert "ähm" not in cleaned # i18n-allow: the German filler under test+ assert "Tests" in cleaned