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
feat(agentic-ide): answer for a coding CLI the workspace does not have
Ruben Lütkea3f000a2596b
diff --git a/jarvis/agentic_ide/intent.py b/jarvis/agentic_ide/intent.pyindex dda368e295..9fc6702331 100644--- a/jarvis/agentic_ide/intent.py+++ b/jarvis/agentic_ide/intent.py@@ -1132,6 +1132,15 @@ class SpawnTerminalsRequest:utterance: str"""The original utterance, unmodified."""+ unsupported: tuple[str, ...] = ()+ """Coding CLIs the user counted that this workspace does not offer.++ Named rather than dropped. A product this app has no terminal kind for used+ to fall out of the parse without a word — "two Claudes and one Gemini Code"+ opened two panes, and the third was missing with nothing anywhere saying+ why. The caller speaks these back next to the panes that did open.+ """+groups: tuple[SpawnGroup, ...] = ()"""The requested fleet, in the order the user said it.@@ -1283,13 +1292,24 @@ def _spoken_groups(text: str) -> tuple[SpawnGroup, ...]:return 1found: list[tuple[int, SpawnGroup]] = []- for match in _AGENT_RE.finditer(text):+ # Both kinds of product name in ONE pass, in speech order: the CLIs this+ # workspace has, and the ones it does not. The second kind opens nothing,+ # but it still SPENDS its count — otherwise "one Gemini Code terminal"+ # would be refused by name and opened anyway as an unnamed pane, which is+ # two answers to one request.+ mentions = sorted(+ [(m.start(), True, m) for m in _AGENT_RE.finditer(text)]+ + [(m.start(), False, m) for m in _UNSUPPORTED_CLI_RE.finditer(text)],+ key=lambda item: item[0],+ )+ for start, supported, match in mentions:+ if not supported:+ _count_before(start)+ continueagent = _canonical_agent(match.group("agent"))if agent is None:continue- found.append(- (match.start(), SpawnGroup(count=_count_before(match.start()), agent=agent))- )+ found.append((start, SpawnGroup(count=_count_before(start), agent=agent)))# A count that no CLI name claimed, sitting in front of the pane noun, is a# group of its own: "two terminals and one Codex" is three panes, and the@@ -1385,6 +1405,58 @@ _FLEET_BRIEF_RE = re.compile()+#: Coding CLIs that exist in the world but not as a terminal kind here.+#:+#: Matching DATA, not a wish list: every one of these is a product a user may+#: reasonably name in a fleet request, and the point is to ANSWER for it rather+#: than let it disappear. Spellings by ear are included for the same reason the+#: supported CLIs carry them — a transcript writes what it hears ("Giming Code"+#: for Gemini, maintainer report 2026-07-28).+#:+#: Deliberately short and unambiguous. A word that is also ordinary English+#: ("cursor", "continue") is left out: refusing a request over a word the user+#: did not mean as a product would be worse than the silence this replaces.+_UNSUPPORTED_CLI_SPELLINGS: dict[str, str] = {+ "gemini": "Gemini",+ "gemeni": "Gemini",+ "gimini": "Gemini",+ "giming": "Gemini",+ "jemini": "Gemini",+ "antigravity": "Antigravity",+ "aider": "Aider",+ "windsurf": "Windsurf",+ "copilot": "Copilot",+}++_UNSUPPORTED_CLI_RE = re.compile(+ r"\b(?P<name>" + "|".join(sorted(_UNSUPPORTED_CLI_SPELLINGS, key=len, reverse=True)) + r")\b",+ re.IGNORECASE,+)+++def _unsupported_clis(text: str) -> tuple[str, ...]:+ """Products named in ``text`` that this workspace has no terminal kind for.++ Only COUNTED mentions, on the same reasoning as+ ``_counted_agent_mentions``: "does Gemini support this?" names a product+ without asking for a pane of it, and answering that with a refusal would be+ a new way of getting the request wrong.+ """+ counts = _count_tokens(text)+ out: list[str] = []+ for match in _UNSUPPORTED_CLI_RE.finditer(text):+ counted = any(+ end <= match.start() and match.start() - end <= _COUNT_AGENT_MAX_GAP+ for _start, end, _value in counts+ )+ if not counted:+ continue+ label = _UNSUPPORTED_CLI_SPELLINGS[match.group("name").casefold()]+ if label not in out:+ out.append(label)+ return tuple(out)++#: The verb that means a BACKGROUND worker, not a pane.#:#: "Spawn" is the word this app uses for dispatching a Jarvis-Agent, and a@@ -1790,6 +1862,8 @@ def detect_spawn(parse_text = addressed_text+ unsupported = _unsupported_clis(parse_text)+groups = _spoken_groups(parse_text)if groups:return SpawnTerminalsRequest(@@ -1797,6 +1871,21 @@ def detect_spawn(agent=groups[0].agent,utterance=text,groups=groups,+ unsupported=unsupported,+ )++ if unsupported and not groups:+ # Everything that was counted was counted for a CLI this workspace does+ # not have. Falling through would read the number again and open that+ # many panes of whatever CLI happened to be inherited — refusing the+ # request by name and then granting it anyway, which is two answers to+ # one question. No groups means no panes; the caller says why.+ return SpawnTerminalsRequest(+ count=0,+ agent=None,+ utterance=text,+ groups=(),+ unsupported=unsupported,)agent_match = _AGENT_RE.search(parse_text)@@ -1809,6 +1898,7 @@ def detect_spawn(agent=agent,utterance=text,groups=(SpawnGroup(count=count, agent=agent),),+ unsupported=unsupported,)diff --git a/jarvis/brain/manager.py b/jarvis/brain/manager.pyindex b92f0284bf..8e03ea0f3a 100644--- a/jarvis/brain/manager.py+++ b/jarvis/brain/manager.py@@ -1216,6 +1216,23 @@ def _recent_agent(recent: Any) -> str:return max(counts.items(), key=lambda kv: kv[1])[0]+def _available_terminal_kinds() -> str:+ """The coding CLIs this workspace can open, as a spoken list.++ Read from the registry rather than written out here: a list kept in a+ sentence drifts from the one the workspace actually has, and the whole+ reason this sentence exists is to tell the user something true when they+ named a CLI that is not on it.+ """+ try:+ from jarvis.workspace import agents as workspace_agents++ names = [agent.display_name for agent in workspace_agents.coding_agents()]+ except Exception: # noqa: BLE001 - a phrase must never break a turn+ return ""+ return ", ".join(names)++def _terminals_spawned_line(names: list[str], *, requested: int, folder: str | None, lang: str) -> str:@@ -6394,6 +6411,24 @@ class BrainManager:#: Spoken back with the panes that DID open — a fleet that came up short#: without saying so is the failure this whole path is shaped around.refused: list[str] = []+ # A CLI this app has no terminal kind for. It is answered even when it+ # is the ONLY thing that was asked for, which is why it is collected+ # before anything is opened.+ for unknown in request.unsupported:+ refused.append(+ action_phrase(+ "ide_terminal_kind_unknown",+ out_lang,+ name=unknown,+ available=_available_terminal_kinds(),+ )+ )++ if not request.groups:+ # Nothing openable was asked for — the only CLI named is one this+ # workspace does not have. Answering is the whole job here; opening+ # a substitute pane would grant a request that was just refused.+ return " ".join(refused) if refused else Nonetry:if registry.session is None:diff --git a/jarvis/voice/action_phrases.py b/jarvis/voice/action_phrases.pyindex de11b21302..8e24deaf87 100644--- a/jarvis/voice/action_phrases.py+++ b/jarvis/voice/action_phrases.py@@ -405,6 +405,15 @@ _PHRASES: dict[str, dict[str, str]] = {"en": "The workspace is full, {max} terminals are already running.","es": "El espacio de trabajo está lleno, ya hay {max} terminales.",},+ # A coding CLI this workspace does not offer was named in a fleet request.+ # Said out loud rather than dropped: a name nobody recognises used to fall+ # out of the parse without a word, so the user counted the panes and found+ # one missing with nothing anywhere to explain it.+ "ide_terminal_kind_unknown": {+ "de": "Für {name} gibt es keine Terminal-Art. Verfügbar: {available}.", # i18n-allow+ "en": "There is no {name} terminal kind. Available: {available}.",+ "es": "No hay un tipo de terminal {name}. Disponibles: {available}.",+ },# No workspace was open, so one was opened in the most recent folder. The# folder is named on purpose: it is an assumption, and hearing it is how the# user catches a wrong one before an agent starts working in it.diff --git a/tests/unit/agentic_ide/test_spawn_misheard_agent_name.py b/tests/unit/agentic_ide/test_spawn_misheard_agent_name.pyindex d38de328cc..ff40276b38 100644--- a/tests/unit/agentic_ide/test_spawn_misheard_agent_name.py+++ b/tests/unit/agentic_ide/test_spawn_misheard_agent_name.py@@ -170,3 +170,40 @@ def test_spawning_agents_is_still_a_background_request() -> None:""""Spawn" means a worker, even when it names a coding CLI (AP-5 margin)."""# i18n-allow: spoken input under testassert intent.detect_spawn("Spawne 5 Claude Codes") is None+++# ------------------------------------------------ CLIs this workspace has not+# Maintainer decision 2026-07-28: the workspace keeps its five coding CLIs, and+# a request for one it does not have gets an honest answer. Silence was the old+# behaviour and the worst of the three options — the pane count came up short+# with nothing anywhere saying why.+++def test_a_cli_the_workspace_does_not_have_is_named_not_dropped() -> None:+ request = intent.detect_spawn(+ "open two Claude Code terminals and one Gemini terminal"+ )+ assert request is not None+ assert [(g.count, g.agent) for g in request.groups] == [(2, "claude")]+ assert request.unsupported == ("Gemini",)+++def test_a_misheard_unsupported_name_is_recognised_too() -> None:+ request = intent.detect_spawn("open one Giming Code terminal and two Codex")+ assert request is not None+ assert request.unsupported == ("Gemini",)+ assert [(g.count, g.agent) for g in request.groups] == [(2, "codex")]+++def test_asking_only_for_a_cli_that_is_missing_opens_nothing() -> None:+ """Refusing by name and opening a substitute would be two answers."""+ request = intent.detect_spawn("open three Gemini terminals")+ assert request is not None+ assert request.groups == ()+ assert request.count == 0+ assert request.unsupported == ("Gemini",)+++def test_naming_an_unsupported_cli_without_counting_it_is_not_a_request() -> None:+ # i18n-allow: spoken input under test+ assert intent.detect_spawn("unterstützt Gemini das eigentlich auch") is None