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: professional written chat style with zero emojis plus readable chat type
rubenluetke10-beepe55a5a13d25b
diff --git a/jarvis/agent_chat/jarvis_harness.py b/jarvis/agent_chat/jarvis_harness.pyindex ac6c1ef74b..5e3cda1296 100644--- a/jarvis/agent_chat/jarvis_harness.py+++ b/jarvis/agent_chat/jarvis_harness.py@@ -71,6 +71,10 @@ SYSTEM_PREAMBLE: Final[str] = ("them right now. This chat is the same assistant they otherwise talk to by ""voice; the only difference is that here they type, and here you are expected ""to think longer and go deeper.\n\n"+ "Write in a professional Frontier-lab style: direct and precise, no hype, "+ "no marketing superlatives, no filler openers. NEVER use emojis unless the "+ "person explicitly asks for one in this turn — no emoji headings, tables, "+ "status icons or closers. Tables carry plain words, never emoji symbols.\n\n""You have Jarvis' own tools, offered to you over MCP under the ""`mcp__jarvis__` prefix. They act on the RUNNING app and on the accounts the ""person has connected to it — their calendar, mail, contacts, media, wiki, "diff --git a/jarvis/brain/manager.py b/jarvis/brain/manager.pyindex 1b127d25be..4d66356e49 100644--- a/jarvis/brain/manager.py+++ b/jarvis/brain/manager.py@@ -2352,6 +2352,55 @@ _TOOL_LIST_RULE = (# dump, and the token cost is identical either way._TOOL_LIST_WRAP_CHARS = 88+# Professional style for typed (written) turns: the front-page chat, society+# chats and every other surface with {"delivery": "written"}. The shared+# system prompt carries the VOICE persona ("never emit Markdown, never write+# a digit, no emojis — your text is spoken"), which is correct for speech but+# leaves a typed turn with no visual rules at all. Without an explicit+# written block the model falls back to its pretraining default: emoji+# headers, hype openers ("echter Volltreffer!"), status-dot tables and three+# redundant closers. This block overrides the spoken-output rules for written+# turns only and pins the Frontier-lab default: calm, plain, zero emojis.+_WRITTEN_CHAT_STYLE = (+ "WRITTEN CHAT STYLE (this is a typed turn read on screen, NOT voice — "+ "this block overrides the voice persona's spoken-output rules for this turn):\n"+ "This answer is read, not spoken: Markdown (headings, tables, lists, code) "+ "and digits ARE allowed here.\n"+ "Write in a professional, calm Frontier-lab style: direct, precise, no hype, "+ "no marketing superlatives, no filler openers, no pep-talk before the content.\n"+ "NEVER use emojis — not in headings, tables, lists, status columns or body "+ "text. Zero emojis unless the user explicitly asks for one in this turn. "+ "No emoji status icons (no colored dots, rockets, folders, pointers, check "+ "marks as emoji): use plain words such as No risk, Low, Medium, Check first.\n"+ "Structure: lead with the result in one or two sentences, then the details. "+ "Tables only for genuinely tabular data, with plain-text headers and no emoji "+ "column. Keep it tight: one concrete next step at most, never a triple of "+ "summary plus action plan plus emoji question."+)+++def _is_written_turn() -> bool:+ """True when the current turn is a typed (written) turn, not voice.++ Reads the per-turn override's tool context (``{"delivery": "written"}``,+ set by the agent-chat brain runner for every typed chat turn). Defensive:+ any missing piece means a voice-style turn, so the spoken-output rules+ keep applying.+ """+ try:+ override = _TURN_OVERRIDE.get()+ except Exception: # noqa: BLE001 — no override context: voice-style turn+ return False+ if override is None:+ return False+ context = getattr(override, "tool_context", None)+ if not isinstance(context, dict):+ try:+ context = dict(context or {})+ except Exception: # noqa: BLE001 — unexpected mapping shape+ return False+ return context.get("delivery") == "written"+def normalize_reply_language(value: object) -> str:"""Coerce a raw reply-language value to a known code, else ``"auto"``.@@ -4446,6 +4495,13 @@ class BrainManager:_provider_identity_directive(identity[0], identity[1], name))+ # Written-turn style: typed chat answers are read on screen, so the+ # voice persona's spoken-output rules must not govern them. Without+ # this override the model drifts to emoji-heavy marketing copy.+ # Byte-stable per delivery mode, so the prompt cache stays warm.+ if _is_written_turn():+ parts.append(_WRITTEN_CHAT_STYLE)+# Reply-language directive LAST — highest recency-salience so it wins# over the otherwise German prompt above it. Byte-stable across turns# (only changes on an explicit language switch), so it stays prompt-diff --git a/jarvis/memory/soul.py b/jarvis/memory/soul.pyindex 33fcc01e12..c540a1d8a6 100644--- a/jarvis/memory/soul.py+++ b/jarvis/memory/soul.py@@ -66,7 +66,7 @@ class Soul:We include only the tone rules + boundaries (calibration is internalmetadata). Budget-safe."""- # Extract the first section up to and including "## Grenzen"+ # Extract the tone rules + limits, in either language the file uses.lines = self._body.splitlines()out: list[str] = ["## Persona"]in_tone = False@@ -74,14 +74,20 @@ class Soul:for line in lines:if line.startswith("## Tone-Regeln") or line.startswith("## Tone"):in_tone = True+ in_grenzen = Falseout.append("### Tone")continue- if line.startswith("## Grenzen"):+ if line.startswith("## Grenzen") or line.startswith("## Limits"):in_tone = Falsein_grenzen = Trueout.append("### Grenzen")continue- if line.startswith("## Kalibrierung") or line.startswith("## Wer ich bin"):+ if (+ line.startswith("## Kalibrierung")+ or line.startswith("## Calibration")+ or line.startswith("## Wer ich bin")+ or line.startswith("## Who I am")+ ):in_tone = Falsein_grenzen = Falsecontinuediff --git a/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.tsx b/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.tsxindex 45ac85813e..9b23c186a5 100644--- a/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.tsx+++ b/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.tsx@@ -519,12 +519,15 @@ function Prose({ block }: { block: TextBlock }) {<divdata-testid="agent-text"className={cn(- "prose prose-neutral max-w-none text-reading dark:prose-invert [overflow-wrap:anywhere]",- "prose-p:my-2 prose-headings:font-display prose-headings:tracking-tight prose-h1:text-xl prose-h2:text-lg prose-h3:text-base",+ "prose prose-neutral max-w-none text-[17px] leading-[30px] text-foreground dark:prose-invert dark:text-foreground [overflow-wrap:anywhere]",+ "prose-p:my-2 prose-p:text-foreground prose-li:text-foreground prose-strong:text-foreground-strong",+ "prose-headings:font-display prose-headings:tracking-tight prose-headings:text-foreground-strong prose-h1:text-xl prose-h2:text-lg prose-h3:text-base","prose-a:text-foreground-strong prose-a:underline prose-a:decoration-border-strong prose-a:underline-offset-2","prose-code:rounded prose-code:bg-secondary prose-code:px-1 prose-code:py-0.5 prose-code:font-mono prose-code:text-[0.85em] prose-code:font-normal prose-code:before:hidden prose-code:after:hidden",- "prose-pre:my-2 prose-pre:bg-card prose-pre:text-meta",+ "prose-pre:my-2 prose-pre:bg-card prose-pre:text-[14px] prose-pre:leading-[22px]","prose-li:my-0.5 prose-ul:my-2 prose-ol:my-2",+ "prose-table:my-3 prose-table:text-[15px] prose-table:leading-[22px]",+ "prose-thead:text-foreground-strong prose-th:text-foreground-strong prose-td:text-foreground",)}><ReactMarkdown remarkPlugins={[remarkGfm]}>{block.text}</ReactMarkdown>