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.

feat(agentic-ide): let a spoken CLI name reach the three new providers

Ruben Lütkeb78e75758dc2
diff --git a/docs/commands-reference.md b/docs/commands-reference.md
index b0e527ca24..b87bae7746 100644
--- a/docs/commands-reference.md
+++ b/docs/commands-reference.md
@@ -283,10 +283,10 @@ Give ONE task to coding terminals — existing ones, brand-new ones, or both —
## `agentic-ide-spawn-terminals` — Open more Agentic-IDE terminals
-Open one or more additional coding terminals in the open workspace, WITHOUT giving them work. Use this only when the user asks for bare panes ('spawn five new Claude Code terminals', 'open two more Codex terminals') — that is a request for workspace panes, never for a background worker. When the new panes are also meant to DO something, use 'agentic-ide-fanout' instead, which opens and briefs them in one step. Pass count, and agent only when the user named one ('claude' or 'codex'); omitted, the new panes run whatever the last pane runs. Their call-signs are assigned automatically — the reply's names are the only way to address them, and calling this again never produces a name you picked. CHECK THE REPLY: 'capped' true means the workspace maximum cut the request short — say how many actually opened and name them, never report the full number as done.
+Open one or more additional coding terminals in the open workspace, WITHOUT giving them work. Use this only when the user asks for bare panes ('spawn five new Claude Code terminals', 'open two more Codex terminals') — that is a request for workspace panes, never for a background worker. When the new panes are also meant to DO something, use 'agentic-ide-fanout' instead, which opens and briefs them in one step. Pass count, and agent only when the user named one — the accepted ids are listed on the parameter itself, and it is the only list that is right for this install. Omitted, the new panes run whatever the last pane runs. Their call-signs are assigned automatically — the reply's names are the only way to address them, and calling this again never produces a name you picked. CHECK THE REPLY: 'capped' true means the workspace maximum cut the request short — say how many actually opened and name them, never report the full number as done.
- **Endpoint:** `POST /api/agentic-ide/terminals/batch`
-- **Arguments:** `count` (integer; required); `agent` (one of: claude, codex; optional)
+- **Arguments:** `count` (integer; required); `agent` (one of: claude, codex, glm, kimi, opencode; optional)
- **Requires confirmation:** no
- **Desktop UI section:** `agentic-ide`
- **Voice example (EN):** "spawn five new claude code terminals"
@@ -306,7 +306,7 @@ Rearrange the open workspace: put one terminal at another one's place. Nothing i
Stop and remove every terminal of one coding CLI in the front workspace. Use only when the user explicitly asks to close all Claude Code or all Codex terminals; this is destructive and requires confirmation.
- **Endpoint:** `DELETE /api/agentic-ide/terminals/agent/{agent}`
-- **Arguments:** `agent` (one of: claude, codex; required)
+- **Arguments:** `agent` (one of: claude, codex, glm, kimi, opencode; required)
- **Requires confirmation:** yes
- **Desktop UI section:** `agentic-ide`
- **Voice example (EN):** "close all codex terminals"
diff --git a/docs/os-parity.md b/docs/os-parity.md
index d6d288646c..30b60ae43a 100644
--- a/docs/os-parity.md
+++ b/docs/os-parity.md
@@ -64,6 +64,11 @@ experiences today.
| P-17 | Low | JarvisBar | "Follow the mouse to the active monitor" has per-OS monitor backends (Windows `MonitorFromPoint`+`rcWork`, macOS Qt available-geometry / Quartz, Linux X11 `xrandr`) but no Wayland backend — Wayland exposes no reliable global monitor geometry without portal support | `jarvis/platform/monitors.py::work_area_at`, `jarvis/ui/jarvisbar/overlay.py`, `qt_overlay.py` | Wayland: `work_area_at` returns `None`, so the bar keeps the single-monitor behaviour (it does not migrate; a cross-monitor drag pins to the primary work area). The feature is a graceful no-op there, never a crash |
| P-18 | Low | Agent accounts | Multi-subscription switching gives each account its own CLI config directory (`CLAUDE_CONFIG_DIR` / `CODEX_HOME`) — the CLIs' own documented override. On macOS, Claude Code keeps its credentials in the **Keychain** rather than in that directory, and whether a second config dir earns a second Keychain entry is UNVERIFIED on this hardware (everything here was measured on Windows) | `jarvis/agent_accounts.py::describe`, `env_overrides` | Windows/Linux: a second Claude seat works as designed (its `.credentials.json` lives in its own folder). macOS: the added account may come back reporting **"Not signed in"** after a completed sign-in — which is the honest outcome, not a crash: the switcher never claims a login it cannot read, so a pane is never silently routed to the first account's credentials. Codex is unaffected on all three OSes (`auth.json` is a plain file). Next Mac session: add a second Claude account, sign in, and check whether `describe()` reports it connected |
+| P-20 | Low | Coding-CLI panes | Kimi Code panes deliberately ship WITHOUT multi-subscription switching, unlike Claude Code and Codex. Three independent reasons, all recorded on the registry entry: the wound-down Python generation ignores `KIMI_CODE_HOME` entirely, so seats created on a machine that has it would all silently resolve to one login; its configuration and its credentials share a single `config.toml`, so no setup can be carried to a new seat without carrying the key with it; and its credential layout is unverified against a live install of the current generation | `jarvis/workspace/agents.py` (the `kimi` entry), `jarvis/agent_accounts.py::platforms` | All OSes: one Kimi login, and the account switcher honestly does not offer the CLI at all rather than showing a switch that does nothing. Unblocked by verifying the current generation's credential layout and gating the override on the generation probe |
+| P-21 | Low | Coding-CLI panes | OpenCode panes ship single-login for the same class of reason: the only variable that moves its credentials and session database is `XDG_DATA_HOME`, which is a SHARED variable rather than a dedicated override — redirecting it per pane would also redirect any other XDG-aware tool the agent spawns inside that pane | `jarvis/workspace/agents.py` (the `opencode` entry) | All OSes: one OpenCode login. Verified on Windows that `XDG_DATA_HOME` does move `auth.json` and the session database; the blast radius on macOS and Linux has not been measured, which is why it is not wired up |
+| P-22 | Low | Coding-CLI panes | Kimi Code uses the bundled Git Bash as its shell environment on Windows, so without Git for Windows installed the binary answers `--version` correctly and the agent then cannot run a single shell command | Kimi vendor docs; `jarvis/workspace/agents.py` (the `kimi` entry) | Windows without Git for Windows: the pane opens, the CLI reports a healthy version, and shell commands fail inside it. macOS/Linux unaffected. `KIMI_SHELL_PATH` points at a non-standard `bash.exe`. An install check that only runs `--version` cannot see this |
+| P-23 | Info | Coding-CLI panes | Kimi Code's alternate screen cannot be disabled (an open upstream request notes it is the outlier versus Claude Code, Codex and the Gemini CLI), so it may conflict with the pane's own scrollback the way a Claude Code pane once did | Upstream issue; `jarvis/agentic_ide/screen.py` | All OSes equally — not an OS gap, recorded here because it is the same class of pane defect and is expected to need the same kind of fix |
+
## Maintenance
- Fixing a gap: remove its row (git history keeps the record).
diff --git a/jarvis/agentic_ide/intent.py b/jarvis/agentic_ide/intent.py
index 1c69b7c217..119c17d9dc 100644
--- a/jarvis/agentic_ide/intent.py
+++ b/jarvis/agentic_ide/intent.py
@@ -876,24 +876,43 @@ _NUMBER_WORDS: dict[str, int] = {
# The user's STT dictionary repairs this too, but only for the words that user
# thought to add; an arbitrary downloader with an empty dictionary gets the same
# request and must get the same three panes.
-_AGENT_SPELLINGS: dict[str, tuple[str, ...]] = {
- "claude": ("claude", "cloude", "claud", "clode", "klaude", "kloude"),
- "codex": ("codex", "kodex", "codecs", "codeks"),
-}
+def _agent_spellings() -> dict[str, tuple[str, ...]]:
+ """Every spelling that names a CLI on its own, per registry entry."""
+ from jarvis.workspace import agents as workspace_agents
-# Spellings that are ordinary words in their own right, so on their own they
-# mean nothing here — "in the cloud" is not a request for a pane. They count
-# only with the product's second word behind them: "cloud code" is unmistakable.
-_AGENT_SPELLINGS_REQUIRING_CODE: dict[str, tuple[str, ...]] = {
- "claude": ("cloud", "clawed", "clod", "loud"),
-}
+ return {
+ agent.name: agent.spoken_aliases
+ for agent in workspace_agents.coding_agents()
+ if agent.spoken_aliases
+ }
-_AGENT_BY_SPELLING: dict[str, str] = {
- spelling: canonical
- for table in (_AGENT_SPELLINGS, _AGENT_SPELLINGS_REQUIRING_CODE)
- for canonical, spellings in table.items()
- for spelling in spellings
-}
+
+def _agent_spellings_requiring_suffix() -> dict[str, tuple[str, str]]:
+ """Ambiguous spelling → ``(CLI, the word that must follow it)``.
+
+ Some spellings are ordinary words in their own right, so on their own they
+ mean nothing here — "in the cloud" is not a request for a pane. They count
+ only with the product's second word behind them: "cloud code" is
+ unmistakable.
+ """
+ from jarvis.workspace import agents as workspace_agents
+
+ return workspace_agents.aliases_needing_suffix()
+
+
+def _spelling_pattern(spelling: str) -> str:
+ """One spelling as a regex fragment, tolerant of how it was transcribed.
+
+ A product whose name is one word is regularly written as two ("opencode" /
+ "open code"), and an acronym arrives spaced or dotted ("GLM" / "G L M" /
+ "G.L.M."). Matching only the spelling as typed here would drop exactly the
+ transcripts this table exists to catch, so the separator between characters
+ and words is elastic in one direction: written apart, matched together.
+ """
+ tokens = spelling.split()
+ if len(tokens) > 1:
+ return r"\s+".join(re.escape(token) for token in tokens)
+ return re.escape(spelling)
def _agent_alternation() -> str:
@@ -903,15 +922,13 @@ def _agent_alternation() -> str:
``claude``) can never shadow it.
"""
parts = [
- rf"{re.escape(spelling)}(?:\s+code)?"
- for table in (_AGENT_SPELLINGS,)
- for spellings in table.values()
+ rf"{_spelling_pattern(spelling)}(?:\s+code)?"
+ for spellings in _agent_spellings().values()
for spelling in spellings
]
parts += [
- rf"{re.escape(spelling)}\s+code"
- for spellings in _AGENT_SPELLINGS_REQUIRING_CODE.values()
- for spelling in spellings
+ rf"{_spelling_pattern(spelling)}\s+{re.escape(suffix)}"
+ for spelling, (_agent, suffix) in _agent_spellings_requiring_suffix().items()
]
return "|".join(sorted(parts, key=len, reverse=True))
@@ -925,14 +942,59 @@ def _canonical_agent(raw: str) -> str | None:
"""The CLI a matched name means, or ``None`` for one this parser cannot place.
``None`` is unreachable through the pattern above — every alternative it
- offers is a key of the table — and callers still handle it, because a
- spelling added to one and not the other must degrade to "no CLI named"
- rather than to a wrong one.
+ offers comes from the registry — and callers still handle it, because a
+ spelling that stops resolving must degrade to "no CLI named" rather than to
+ a wrong one.
+
+ Two spellings of the same name are folded here rather than in the table: a
+ trailing product word is dropped ("codex code" is Codex), and the spaces an
+ acronym picks up in transcription are squeezed out ("g l m" is "glm"), so
+ the registry only ever has to carry the name itself.
+
+ An AMBIGUOUS spelling standing alone resolves to nothing, and that rule is
+ load-bearing in both directions. "cloud" is not a request for a Claude Code
+ pane, and "open" is the verb in "open a terminal" — reading either as a
+ product name here would not merely mis-name a pane, it would take the
+ sentence's own verb away from the parser and drop the whole request.
"""
+ standalone = _standalone_spellings()
name = " ".join(str(raw or "").casefold().split())
+ if name in standalone:
+ return standalone[name]
+ for spelling, (agent, suffix) in _agent_spellings_requiring_suffix().items():
+ if name == f"{spelling} {suffix}":
+ return agent
if name.endswith(" code"):
- name = name[: -len(" code")].strip()
- return _AGENT_BY_SPELLING.get(name)
+ base = name[: -len(" code")].strip()
+ if base in standalone:
+ return standalone[base]
+ # "g l m" and "g.l.m." are the same acronym as "glm".
+ return standalone.get(re.sub(r"[\s.]+", "", name))
+
+
+def _standalone_spellings() -> dict[str, str]:
+ """Spelling → CLI, for the spellings that name a product on their own."""
+ return {
+ spelling: agent
+ for agent, spellings in _agent_spellings().items()
+ for spelling in spellings
+ }
+
+
+def _open_verbs(text: str) -> list[re.Match[str]]:
+ """Where the utterance asks for something to be opened.
+
+ A CLI's own NAME is never one of those places, however much it looks like a
+ verb. The verb table matches ``open\\w*``, which happily swallows "opencode"
+ — and the actor positions it returns are what splits an utterance into
+ clauses, so one product name read as a verb re-cuts the sentence and a group
+ of panes goes to the wrong CLI or is dropped entirely.
+ """
+ return [
+ match
+ for match in _OPEN_VERB_RE.finditer(text)
+ if _canonical_agent(match.group(0)) is None
+ ]
@dataclass(frozen=True, slots=True)
@@ -1119,7 +1181,7 @@ def _spawn_span(text: str) -> _SpawnSpan | None:
for clause_match in _CLAUSE_RE.finditer(text):
clause = clause_match.group(0)
panes = list(_PANE_NOUN_RE.finditer(clause))
- actors = list(_OPEN_VERB_RE.finditer(clause)) + list(_ADDITIVE_RE.finditer(clause))
+ actors = _open_verbs(clause) + list(_ADDITIVE_RE.finditer(clause))
if not panes or not actors:
continue
pairs = [
@@ -1227,7 +1289,7 @@ def spawn_instruction(user_text: str) -> str:
span = _spawn_span(text)
if span is None:
nouns = list(_AGENT_NOUN_RE.finditer(text))
- actors = list(_OPEN_VERB_RE.finditer(text))
+ actors = _open_verbs(text)
if nouns and actors:
noun, actor = min(
((noun, actor) for noun in nouns for actor in actors),
diff --git a/jarvis/agentic_ide/names.py b/jarvis/agentic_ide/names.py
index 808a028094..abc06d0913 100644
--- a/jarvis/agentic_ide/names.py
+++ b/jarvis/agentic_ide/names.py
@@ -53,13 +53,36 @@ NAME_POOL: tuple[str, ...] = (
"Simone", "Trent", "Hugo", "Nadia", "Rosa", "Theo", "Colby", "Marcus",
)
-#: Names a pane may never carry: the fixed wake word and the coding agents
-#: themselves. Saying "Claude" to address a pane called Claude is a coin flip.
+#: Coding products a pane may never be named after, whether or not this build
+#: can run them. Saying "Claude" to address a pane called Claude is a coin flip,
+#: and the same holds for a product the user merely has installed — so the list
+#: is deliberately WIDER than the registry: a name retired from the registry
+#: tomorrow is still a name people say out loud today.
+_KNOWN_PRODUCTS: frozenset[str] = frozenset(
+ {"jarvis", "claude", "codex", "gemini", "copilot", "cursor", "aider"}
+)
+
+
+def _reserved() -> frozenset[str]:
+ """Every name a call-sign must stay clear of, registry included.
+
+ Built at call time rather than frozen at import so a CLI registered later
+ cannot end up sharing its name with a pane — which is the one collision this
+ whole module is about, and the one nobody would notice until an instruction
+ went to the wrong place.
+ """
+ try:
+ from jarvis.workspace import agents as workspace_agents
+
+ return _KNOWN_PRODUCTS | workspace_agents.reserved_call_signs()
+ except Exception: # noqa: BLE001 - naming must never fail on this
+ return _KNOWN_PRODUCTS
+
+
+#: The fixed part of that list, kept as a module constant for existing readers.
#: The user's OWN wake word is configurable and cannot be checked here — the
#: session layer keeps a call-sign from shadowing it at assignment time.
-RESERVED_NAMES: frozenset[str] = frozenset(
- {"jarvis", "claude", "codex", "gemini", "copilot", "cursor"}
-)
+RESERVED_NAMES: frozenset[str] = _reserved()
# Below this similarity a spoken word is NOT treated as a terminal name. Tuned
# so that a garbled "Mika" ("Micah", "Meeka", "Mikka") still lands while an
diff --git a/jarvis/commands/registry.py b/jarvis/commands/registry.py
index ef16e57885..484f2afa4b 100644
--- a/jarvis/commands/registry.py
+++ b/jarvis/commands/registry.py
@@ -836,8 +836,10 @@ def _build_registry() -> tuple[AppCommand, ...]:
"request for workspace panes, never for a background worker. "
"When the new panes are also meant to DO something, use "
"'agentic-ide-fanout' instead, which opens and briefs them in "
- "one step. Pass count, and agent only when the user named one "
- "('claude' or 'codex'); omitted, the new panes run whatever the "
+ "one step. Pass count, and agent only when the user named one — "
+ "the accepted ids are listed on the parameter itself, and it is "
+ "the only list that is right for this install. Omitted, the new "
+ "panes run whatever the "
"last pane runs. Their call-signs are assigned automatically — "
"the reply's names are the only way to address them, and calling "
"this again never produces a name you picked. "
diff --git a/jarvis/workspace/agents.py b/jarvis/workspace/agents.py
index c2087d78b3..34851acd36 100644
--- a/jarvis/workspace/agents.py
+++ b/jarvis/workspace/agents.py
@@ -737,13 +737,27 @@ def reserved_call_signs() -> frozenset[str]:
Addressing a pane called "Kimi" by saying "Kimi" is a coin flip once a CLI
is also called that, so the pool of call-signs excludes every registered
product name and every spelling of one.
+
+ Deliberately NARROW. The obvious implementation — every word of every
+ display name — reserves "Coding" and "Plan" out of "GLM Coding Plan", and
+ since call-sign matching is fuzzy by design that in turn poisons unrelated
+ names ("coding" scores high enough to reach the call-sign "Cody"). A list
+ meant to prevent one collision would then be creating others, so only the
+ identifying token counts: the registry key, the first word of the display
+ name, and the spellings people actually say.
"""
names: set[str] = set()
for agent in _AGENTS.values():
+ if not agent.is_coding_agent:
+ continue
names.add(agent.name.lower())
- names.update(part.lower() for part in agent.display_name.split())
+ first = agent.display_name.split()
+ if first:
+ names.add(first[0].lower())
names.update(spelling.lower() for spelling in agent.spoken_aliases)
- return frozenset(n for n in names if n.isalpha())
+ # Single letters and anything with a space in it are not call-sign shaped,
+ # so reserving them protects nothing and only shrinks the pool.
+ return frozenset(n for n in names if n.isalpha() and len(n) > 1)
@dataclass(slots=True)
diff --git a/tests/unit/agentic_ide/test_spawn_misheard_agent_name.py b/tests/unit/agentic_ide/test_spawn_misheard_agent_name.py
index f11dfd9c59..9864d51a99 100644
--- a/tests/unit/agentic_ide/test_spawn_misheard_agent_name.py
+++ b/tests/unit/agentic_ide/test_spawn_misheard_agent_name.py
@@ -78,5 +78,12 @@ def test_the_misspelling_survives_the_other_locales() -> None:
def test_a_name_the_table_does_not_know_names_no_cli() -> None:
"""Unknown stays unknown — a near-miss must never become the wrong CLI."""
assert intent._canonical_agent("gemini") is None
- assert intent._canonical_agent("cloud") == "claude"
assert intent._canonical_agent("Cloude Code") == "claude"
+ # An ambiguous spelling means NOTHING on its own, in both directions. It is
+ # not a request for a pane ("in the cloud"), and — since one such spelling
+ # is also a verb this parser looks for — reading it as a product name would
+ # take the sentence's own "open" away and drop the whole request.
+ assert intent._canonical_agent("cloud") is None
+ assert intent._canonical_agent("open") is None
+ assert intent._canonical_agent("cloud code") == "claude"
+ assert intent._canonical_agent("open code") == "opencode"