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
"""The configurable assistant name must flow into the brain system prompt.
User mandate 2026-05-29: renaming the assistant (e.g. to "Micron") must make it
call itself Micron instead of a hardcoded name. These lock that the name reaches
``_build_system_prompt`` — both the base prompt and the prominent identity
directive.
2026-06-29: the persona files were made name-neutral (no baked-in "Jarvis"), so
the identity directive is now emitted for EVERY resolved name except the neutral
``Assistant`` fallback, and it no longer carries the old self-contradictory
"nicht Jarvis" anchor. # i18n-allow: quotes the literal old system-prompt string
"""
from __future__ import annotations
from dodaios.brain.manager import BrainManager
from dodaios.core.config import load_config
def _manager_with_name(*, wake_phrase: str = "Hey Jarvis") -> BrainManager:
"""A BrainManager with __init__ bypassed — only the attrs the prompt needs."""
m = BrainManager.__new__(BrainManager)
m._soul = None
m._user_profile = None
m._people = None
m._core_memory = None
m._system_prompt_extra = "ROUTER DISCIPLINE BLOCK"
m._wiki_context_suffix = ""
m._reply_language = "auto"
cfg = load_config()
cfg.performance.cache_optimized_prompt = False
cfg.trigger.wake_word.phrase = wake_phrase
m._config = cfg
return m
def test_wake_jarvis_gets_identity_directive_without_contradiction() -> None:
prompt = _manager_with_name(wake_phrase="Hey Jarvis")._build_system_prompt()
# The persona is now name-neutral, so even a user-chosen "Jarvis" wake word
# gets a clean identity directive — never the old "Du heisst Jarvis — nicht # i18n-allow: quotes the literal old system-prompt string
# Jarvis" self-contradiction. # i18n-allow: quotes the literal old system-prompt string
assert "YOUR NAME IS JARVIS" in prompt
assert "nicht Jarvis" not in prompt # i18n-allow: literal system-prompt string matched in logic
def test_wake_phrase_micron_makes_assistant_micron() -> None:
prompt = _manager_with_name(wake_phrase="Micron")._build_system_prompt()
assert "YOUR NAME IS MICRON" in prompt
assert "nicht Jarvis" not in prompt # i18n-allow: literal system-prompt string matched in logic
def test_wake_phrase_is_the_only_name_source() -> None:
# "Hey Computer" wake → the assistant is "Computer".
prompt = _manager_with_name(wake_phrase="Hey Computer")._build_system_prompt()
assert "YOUR NAME IS COMPUTER" in prompt
assert "nicht Jarvis" not in prompt # i18n-allow: literal system-prompt string matched in logic