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(voice): reach the Agentic IDE by voice, and name a coding CLI once

Ruben Lütkeb1303484e9da
diff --git a/desktop-ttu-latest.json b/desktop-ttu-latest.json
index ae5ae858f7..b769b3114a 100644
--- a/desktop-ttu-latest.json
+++ b/desktop-ttu-latest.json
@@ -1,37 +1,33 @@
{
"path": "desktop (_run_backend, GUI-free driver)",
"runs": 1,
- "python": "/Users/joanaluetke/PersonalJarvis/.venv/bin/python",
+ "python": "C:\\Program Files\\Python311\\python.exe",
"vault_pages": 84,
- "median_wall_ms": 774.9,
- "median_boot_ready_ms": 130.5,
- "median_bind_wall_ms": 767.1,
- "median_voice_ready_wall_ms": 14469.7,
+ "median_wall_ms": 6857.5,
+ "median_boot_ready_ms": 249.0,
+ "median_bind_wall_ms": 3142.3,
+ "median_voice_ready_wall_ms": 16015.5,
"voice_ready_wall_ms_runs": [
- 14469.7
+ 16015.5
],
- "median_voice_usable_wall_ms": 15759.3,
+ "median_voice_usable_wall_ms": 17045.7,
"voice_usable_wall_ms_runs": [
- 15759.3
+ 17045.7
],
- "median_app_interactive_wall_ms": 15144.4,
+ "median_app_interactive_wall_ms": 17045.8,
"app_interactive_wall_ms_runs": [
- 15144.4
+ 17045.8
],
"wall_ms_runs": [
- 774.9
+ 6857.5
],
"boot_ready_ms_runs": [
- 130.5
+ 249.0
],
"phase_medians_ms": {
- "db_app_interactive": 5626.8,
- "db_pre_webserver": 1338.3,
- "db_webserver_ctor": 7542.7,
- "flight_recorder": 0.6,
- "mission_stack": 644.8,
- "screenshot_retention": 1.7,
- "uvicorn_serve": 0.1
+ "db_app_interactive": 4145.8,
+ "db_pre_webserver": 5771.6,
+ "db_webserver_ctor": 4235.1
},
"anchor": "spawn -> /api/health responds 200 (= DesktopApp._wait_for_backend success = window creation point)",
"secondary_anchor": "median_bind_wall_ms = spawn -> BOOT_READY print (bootstrap bind; may precede a responsive health endpoint)",
diff --git a/docs/commands-reference.md b/docs/commands-reference.md
index 6b0ec785bb..b0e527ca24 100644
--- a/docs/commands-reference.md
+++ b/docs/commands-reference.md
@@ -56,7 +56,7 @@ Switch which realtime voice engine (speech-to-speech) is active, e.g. openai-rea
Switch the dedicated Computer-Use planner provider (screen control), decoupled from the main brain.
- **Endpoint:** `POST /api/computer-use/switch`
-- **Arguments:** `provider` (one of: antigravity, claude-api, codex, gemini, grok, local-openai, nvidia, ollama, openai, openrouter; required); `persist` (boolean; optional)
+- **Arguments:** `provider` (one of: antigravity, claude-api, claude-cli, codex, gemini, grok, local-openai, nvidia, ollama, openai, openrouter; required); `persist` (boolean; optional)
- **Requires confirmation:** no
- **Desktop UI section:** `apikeys`
- **Voice example (EN):** "switch the computer use provider to gemini"
@@ -66,7 +66,7 @@ Switch the dedicated Computer-Use planner provider (screen control), decoupled f
Switch the provider used for new missions (e.g. codex to openai). The next mission uses the new provider.
- **Endpoint:** `POST /api/jarvis-agent/switch`
-- **Arguments:** `provider` (one of: antigravity, claude-api, codex, gemini, grok, local-openai, nvidia, ollama, openai, openrouter; required); `persist` (boolean; optional)
+- **Arguments:** `provider` (one of: antigravity, claude-api, claude-cli, codex, gemini, grok, local-openai, nvidia, ollama, openai, openrouter; required); `persist` (boolean; optional)
- **Requires confirmation:** no
- **Desktop UI section:** `agents`
- **Voice example (EN):** "switch the agent provider to openai"
@@ -86,7 +86,7 @@ List all configured providers and which ones are active.
Test connectivity and authentication for one provider.
- **Endpoint:** `POST /api/providers/{provider_id}/test`
-- **Arguments:** `provider_id` (one of: antigravity, cartesia, claude-api, codex, elevenlabs, gemini, gemini-flash-tts, gemini-live, grok, grok-voice, groq-api, inworld, local-openai, nvidia, ollama, openai, openai-api, openai-realtime, openrouter, openrouter-stt, openrouter-tts; required)
+- **Arguments:** `provider_id` (one of: antigravity, cartesia, claude-api, claude-cli, codex, elevenlabs, gemini, gemini-flash-tts, gemini-live, grok, grok-voice, groq-api, inworld, local-openai, nvidia, ollama, openai, openai-api, openai-realtime, openrouter, openrouter-stt, openrouter-tts; required)
- **Requires confirmation:** no
- **Desktop UI section:** `apikeys`
- **Voice example (EN):** "test the openai provider"
@@ -263,7 +263,7 @@ Read what the coding agent in a named terminal is doing — its status and its r
## `agentic-ide-prompt` — Prompt an Agentic-IDE terminal
-Send an instruction to the coding agent in a named terminal. Use this whenever the user tells a terminal to do something ('tell Kai to ...', 'Mika soll ...', 'let Nova refactor ...') — that work belongs to that agent, never to a background worker. Pass the instruction in the USER's words: everything they asked for, every constraint and file they named, nothing invented and nothing summarised away. Do NOT write the brief yourself — a prompt writer that has read this repository turns what you pass into a briefed task with the relevant files attached, and a headline you composed instead arrives at the agent as its whole assignment. Only ever names a terminal that is ALREADY running: if the call fails with 'no terminal called …', opening a pane will not create that name — use 'agentic-ide-fanout' with spawn to open and brief one in a single step, and never repeat the spawn. CHECK THE REPLY: it carries a 'submitted' flag. True means the agent accepted the prompt and started. False means the text is only sitting in that terminal's input box — say so plainly and name the terminal, never report it as done.
+Send an instruction to the coding agent in ONE named terminal. Use this whenever the user tells a terminal to do something ('tell Kai to ...', 'Mika soll ...', 'let Nova refactor ...') — that work belongs to that agent, never to a background worker. For SEVERAL terminals ('Kai and Mika both ...', 'let the two of them ...') call 'agentic-ide-fanout' instead, with every call-sign in 'terminals': it briefs them at once and reports which ones really got the work. Calling this command twice for a pair leaves the second agent idle whenever the second call is forgotten, which is the failure mode fanout exists to remove. Pass the instruction in the USER's words: everything they asked for, every constraint and file they named, nothing invented and nothing summarised away. Do NOT write the brief yourself — a prompt writer that has read this repository turns what you pass into a briefed task with the relevant files attached, and a headline you composed instead arrives at the agent as its whole assignment. Only ever names a terminal that is ALREADY running: if the call fails with 'no terminal called …', opening a pane will not create that name — use 'agentic-ide-fanout' with spawn to open and brief one in a single step, and never repeat the spawn. CHECK THE REPLY: it carries a 'submitted' flag. True means the agent accepted the prompt and started. False means the text is only sitting in that terminal's input box — say so plainly and name the terminal, never report it as done.
- **Endpoint:** `POST /api/agentic-ide/terminals/{name}/prompt`
- **Arguments:** `name` (string; required); `prompt` (string; required); `compose` (boolean; optional)
@@ -271,9 +271,19 @@ Send an instruction to the coding agent in a named terminal. Use this whenever t
- **Desktop UI section:** `agentic-ide`
- **Voice example (EN):** "tell mika to run the tests"
+## `agentic-ide-fanout` — Open and brief Agentic-IDE terminals in one step
+
+Give ONE task to coding terminals — existing ones, brand-new ones, or both — in a single call. This is the ONLY correct way to handle 'if no terminal is called that, open one and prompt it' and 'spawn N terminals and let them do X': pass the work as 'instruction', the panes to brief as 'terminals', and the panes to open first as 'spawn'. Never emulate it by opening panes and then prompting — call-signs are assigned automatically, so a pane you open is NOT called the name you had in mind, and re-spawning after a failed prompt just leaves blank panes behind. Set 'split' true only when the user asked for the work to be DIVIDED between the agents. CHECK THE REPLY: 'delivered' names the agents that really got the task and 'undelivered' those that did not — report both, and use the call-signs the reply gives you.
+
+- **Endpoint:** `POST /api/agentic-ide/fanout`
+- **Arguments:** `instruction` (string; required); `terminals` (array; optional); `spawn` (array; optional); `split` (boolean; optional)
+- **Requires confirmation:** no
+- **Desktop UI section:** `agentic-ide`
+- **Voice example (EN):** "open a terminal and have it fix the tests"
+
## `agentic-ide-spawn-terminals` — Open more Agentic-IDE terminals
-Open one or more additional coding terminals in the open workspace. Use this when the user asks for MORE TERMINALS / panes ('spawn five new Claude Code terminals', 'open two more Codex terminals') — that is a request for workspace panes, never for a background worker. Pass count, and agent only when the user named one ('claude' or 'codex'); omitted, the new panes run whatever the last pane runs. 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 ('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.
- **Endpoint:** `POST /api/agentic-ide/terminals/batch`
- **Arguments:** `count` (integer; required); `agent` (one of: claude, codex; optional)
diff --git a/jarvis/agent_accounts.py b/jarvis/agent_accounts.py
index 17728e854d..53e6e5e8a1 100644
--- a/jarvis/agent_accounts.py
+++ b/jarvis/agent_accounts.py
@@ -6,16 +6,14 @@ exactly one login, so getting to the other means a full ``logout`` / ``login``
round trip that throws the first one away. Holding two plans and being able to
use only one at a time is the problem this module exists to remove.
-**One account is one directory.** Both CLIs resolve their whole identity —
-credentials, account file, conversation history — from a single directory, and
-both publish the environment variable that moves it:
-
-=========== ====================== ==============
-CLI Variable Platform default
-=========== ====================== ==============
-Claude Code ``CLAUDE_CONFIG_DIR`` ``~/.claude``
-Codex ``CODEX_HOME`` ``~/.codex``
-=========== ====================== ==============
+**One account is one directory.** A CLI that qualifies resolves its whole
+identity — credentials, account file, conversation history — from a single
+directory, and publishes the environment variable that moves it. WHICH CLIs
+those are, and which variables move them, is registry data
+(``jarvis.workspace.agents.AccountSpec``) rather than a list here; ask
+:func:`platforms`. A CLI with no such variable simply has no directory to
+switch and is honestly absent from this feature instead of being offered a
+switcher that would silently keep spending one login.
So switching is not an auth operation at all: it decides which directory the
NEXT spawn points at. Every login stays valid, side by side, indefinitely — and
@@ -73,23 +71,79 @@ from uuid import uuid4
from loguru import logger
-Platform = Literal["claude", "codex"]
+#: A registry entry's name. Deliberately not a ``Literal`` any more: the set of
+#: CLIs that own a switchable login is registry DATA, and a closed type here was
+#: a second, silently drifting copy of it — exactly the multi-layer enum drift
+#: the project has been bitten by repeatedly (AP-4). Values are validated
+#: against :func:`platforms` at every entry point instead.
+Platform = str
-#: The platforms that own a switchable subscription login. Anything else — an
-#: API-key provider — has no directory to switch and is deliberately absent.
-PLATFORMS: tuple[Platform, ...] = ("claude", "codex")
-#: The official config-dir override each CLI publishes. This mapping IS the
-#: mechanism; everything else in this module is bookkeeping around it.
-ENV_VAR: dict[Platform, str] = {
- "claude": "CLAUDE_CONFIG_DIR",
- "codex": "CODEX_HOME",
-}
+def _account_entries() -> list[Any]:
+ """Registry entries that declare how their whole identity moves."""
+ from jarvis.workspace import agents as workspace_agents
+
+ return [a for a in workspace_agents.coding_agents() if a.account is not None]
+
+
+def _platforms() -> tuple[str, ...]:
+ """The platforms that own a switchable subscription login, live.
+
+ Read from the registry at CALL time rather than snapshotted at import, so a
+ CLI registered after this module loads is offerable without a restart —
+ the same promise the workspace registry makes everywhere else. Anything
+ with no config-dir override (an API-key provider, or a CLI whose whole
+ identity cannot be moved by an environment variable) has no directory to
+ switch and is deliberately absent.
+ """
+ return tuple(a.name for a in _account_entries())
+
+
+def _account_spec(platform: Platform) -> Any:
+ from jarvis.workspace import agents as workspace_agents
-#: Where each CLI looks when its override is unset.
-_NATIVE_DIR: dict[Platform, str] = {"claude": "~/.claude", "codex": "~/.codex"}
+ entry = workspace_agents.get_agent(platform)
+ return entry.account if entry is not None else None
-_DISPLAY: dict[Platform, str] = {"claude": "Claude Code", "codex": "Codex"}
+
+def platforms() -> tuple[Platform, ...]:
+ """The platforms that own a switchable subscription login.
+
+ A FUNCTION rather than a constant, and that is the whole point: a module
+ constant is a snapshot taken at import, and the set it snapshots is registry
+ data that can grow afterwards. Callers ask when they need to know.
+ """
+ return _platforms()
+
+
+def env_var(platform: Platform) -> str | None:
+ """The PRIMARY config-dir override this CLI publishes.
+
+ Only the primary one, because that is what a caller asking this question
+ means. A CLI that needs several variables to move (a data root AND a config
+ root) must go through :func:`env_overrides`, which applies the whole
+ mapping — setting half of them relocates half the identity and leaves the
+ CLI spending the previous login, which is the worst possible outcome of an
+ account switch and looks exactly like a switch that worked.
+ """
+ spec = _account_spec(platform)
+ if spec is None or not spec.env:
+ return None
+ return str(spec.env[0][0])
+
+
+def _native_dir_template(platform: Platform) -> str:
+ """Where the CLI looks when its override is unset."""
+ spec = _account_spec(platform)
+ return spec.native_dir if spec is not None else "~"
+
+
+def _display(platform: Platform) -> str:
+ """What this CLI is called on screen."""
+ from jarvis.workspace import agents as workspace_agents
+
+ entry = workspace_agents.get_agent(platform)
+ return entry.display_name if entry is not None else platform
#: Bumped when the stored shape changes incompatibly. An unknown version reads
#: as "no added accounts": half-understanding a newer build's file would offer
@@ -184,10 +238,10 @@ def _native_dir(platform: Platform) -> Path:
variable at spawn) would move panes onto a different, probably stale login
than the one everything else on the machine uses.
"""
- inherited = os.environ.get(ENV_VAR[platform], "").strip()
+ inherited = os.environ.get(env_var(platform) or "", "").strip()
if inherited:
return Path(inherited).expanduser()
- return Path(os.path.expanduser(_NATIVE_DIR[platform]))
+ return Path(os.path.expanduser(_native_dir_template(platform)))
def native_dir(platform: Platform) -> Path:
@@ -210,7 +264,7 @@ def _builtin(platform: Platform) -> AgentAccount:
return AgentAccount(
id=builtin_id(platform),
platform=platform,
- label=f"Default {_DISPLAY[platform]} login",
+ label=f"Default {_display(platform)} login",
config_dir=_native_dir(platform),
builtin=True,
)
@@ -270,7 +324,7 @@ def _parse_account(raw: Any) -> AgentAccount | None:
config_dir = raw.get("config_dir")
if not (isinstance(account_id, str) and account_id):
return None
- if platform not in PLATFORMS:
+ if platform not in platforms():
return None
if not (isinstance(config_dir, str) and config_dir):
return None
@@ -310,14 +364,14 @@ def list_accounts(platform: Platform) -> list[AgentAccount]:
def all_accounts() -> list[AgentAccount]:
"""Every account of every platform, grouped by platform."""
- return [account for platform in PLATFORMS for account in list_accounts(platform)]
+ return [account for platform in platforms() for account in list_accounts(platform)]
def resolve(account_id: str | None) -> AgentAccount | None:
"""An id back to its account; ``None`` when the id is unknown or empty."""
if not account_id:
return None
- for platform in PLATFORMS:
+ for platform in platforms():
if account_id == builtin_id(platform):
return _builtin(platform)
for account in all_accounts():
@@ -343,7 +397,7 @@ def active_account(platform: Platform) -> AgentAccount:
def active_ids() -> dict[str, str]:
"""``{platform: active account id}`` for every platform."""
- return {platform: active_account(platform).id for platform in PLATFORMS}
+ return {platform: active_account(platform).id for platform in platforms()}
# ----------------------------------------------------------------- mutate
@@ -363,7 +417,7 @@ def create_account(platform: Platform, label: str) -> AgentAccount:
adding a row to a list. Until then the account reports itself as not signed
in, which is exactly true.
"""
- if platform not in PLATFORMS:
+ if platform not in platforms():
raise AccountError(f"Unknown platform: {platform}")
clean_label = (label or "").strip()[:MAX_LABEL_CHARS]
if not clean_label:
@@ -371,7 +425,7 @@ def create_account(platform: Platform, label: str) -> AgentAccount:
existing = [a for a in list_accounts(platform) if not a.builtin]
if len(existing) >= MAX_ACCOUNTS_PER_PLATFORM:
raise AccountError(
- f"{_DISPLAY[platform]} already has the maximum of "
+ f"{_display(platform)} already has the maximum of "
f"{MAX_ACCOUNTS_PER_PLATFORM} extra accounts."
)
account_id = f"{platform}:{uuid4().hex[:12]}"
@@ -511,7 +565,10 @@ def env_overrides(platform: Platform, account_id: str | None) -> dict[str, str]:
account = resolve(account_id)
if account is None or account.platform != platform or account.builtin:
return {}
- return {ENV_VAR[platform]: str(account.config_dir)}
+ return {
+ var: template.format(dir=str(account.config_dir))
+ for var, template in (_account_spec(platform).env or ())
+ }
def spawn_env(
@@ -772,7 +829,7 @@ def inherit_default_mode(platform: Platform, account_id: str | None) -> bool:
logger.info(
"Agent accounts: {!r} inherited your default {} mode ({})",
account.label,
- _DISPLAY[platform],
+ _display(platform),
", ".join(applied),
)
return bool(applied)
@@ -795,7 +852,55 @@ def describe(account: AgentAccount) -> AccountSnapshot:
"""
if account.platform == "claude":
return _describe_claude(account)
- return _describe_codex(account)
+ if account.platform == "codex":
+ return _describe_codex(account)
+ return _describe_generic(account)
+
+
+def _describe_generic(account: AgentAccount) -> AccountSnapshot:
+ """Sign-in state for a CLI this build has no dedicated reader for.
+
+ The important thing here is what it does NOT do. Falling through to another
+ CLI's reader — which is what an ``if claude / else codex`` pair quietly does
+ to every third platform — makes every seat of a new provider read as
+ permanently "not signed in", because it is looking for a file that CLI never
+ writes. Nothing raises, nothing logs, and the switcher shows a red dot next
+ to an account that works perfectly.
+
+ So a spec that declares no login markers gets an honest "cannot tell" rather
+ than a confident wrong answer. Switching seats still works — the environment
+ variable genuinely redirects the CLI — and the pane itself will say if a
+ login is missing, which is the one place that can actually know.
+ """
+ spec = _account_spec(account.platform)
+ markers = tuple(getattr(spec, "login_markers", ()) or ())
+ if not markers:
+ return AccountSnapshot(
+ account=account,
+ connected=False,
+ mode="unknown",
+ message=(
+ f"{_display(account.platform)} reports its sign-in state only in "
+ "the pane — open one to check. Switching seats works either way."
+ ),
+ )
+ for marker in markers:
+ try:
+ if (account.config_dir / marker).exists():
+ return AccountSnapshot(
+ account=account,
+ connected=True,
+ mode="subscription",
+ message=f"Signed in for this {_display(account.platform)} seat.",
+ )
+ except OSError: # noqa: PERF203 - an unreadable path is simply not proof
+ continue
+ return AccountSnapshot(
+ account=account,
+ connected=False,
+ mode="unknown",
+ message=_not_signed_in_message(account),
+ )
def _describe_claude(account: AgentAccount) -> AccountSnapshot:
@@ -876,7 +981,7 @@ def _not_signed_in_message(account: AgentAccount) -> str:
login that is silently the first account's. Tracked in docs/os-parity.md.
"""
if account.builtin:
- return f"Not signed in — use Sign in to connect this {_DISPLAY[account.platform]} plan."
+ return f"Not signed in — use Sign in to connect this {_display(account.platform)} plan."
return (
"Not signed in yet — use Sign in, and finish the flow in the window that opens."
)
@@ -961,7 +1066,7 @@ def start_login(account: AgentAccount) -> Any:
raise FileNotFoundError(f"Claude CLI is not installed. {claude_install_hint()}")
argv = service._login_argv(binary) # noqa: SLF001 — capability-selected argv
title = f"Claude sign-in — {account.label}"
- else:
+ elif account.platform == "codex":
from jarvis.codex_auth import CodexAuthService
service_codex = CodexAuthService()
@@ -972,6 +1077,13 @@ def start_login(account: AgentAccount) -> Any:
)
argv = [binary, "login"]
title = f"Codex sign-in — {account.label}"
+ else:
+ # Same reasoning as _describe_generic: an unrecognised platform must not
+ # inherit a neighbour's login command. Spawning `codex login` for a Kimi
+ # seat would sign the user into the wrong product, into the wrong
+ # directory, and report success.
+ argv = _generic_login_argv(account)
+ title = f"{_display(account.platform)} sign-in — {account.label}"
# The directory must exist before the CLI writes into it; a login that fails
# on a missing folder looks to the user like a rejected account.
try:
@@ -983,10 +1095,8 @@ def start_login(account: AgentAccount) -> Any:
__all__ = [
- "ENV_VAR",
"MAX_ACCOUNTS_PER_PLATFORM",
"MAX_LABEL_CHARS",
- "PLATFORMS",
"SCHEMA_VERSION",
"AccountError",
"AccountSnapshot",
@@ -1001,10 +1111,12 @@ __all__ = [
"delete_account",
"describe",
"env_overrides",
+ "env_var",
"inherit_default_mode",
"list_accounts",
"mode_file_name",
"native_dir",
+ "platforms",
"rename_account",
"resolve",
"set_active",
diff --git a/jarvis/cli_ctl/__main__.py b/jarvis/cli_ctl/__main__.py
index 57eb84b60a..79c2043320 100644
--- a/jarvis/cli_ctl/__main__.py
+++ b/jarvis/cli_ctl/__main__.py
@@ -40,9 +40,9 @@ from jarvis.cli_ctl.commands import sessions as sessions_cmd
from jarvis.cli_ctl.commands import skills as skills_cmd
from jarvis.cli_ctl.commands import socials as socials_cmd
from jarvis.cli_ctl.commands import system as system_cmd
-from jarvis.cli_ctl.commands import ultrawiki as ultrawiki_cmd
from jarvis.cli_ctl.commands import tasks as tasks_cmd
from jarvis.cli_ctl.commands import telephony as telephony_cmd
+from jarvis.cli_ctl.commands import ultrawiki as ultrawiki_cmd
from jarvis.cli_ctl.commands import wiki as wiki_cmd
from jarvis.cli_ctl.commands import workflows as workflows_cmd
diff --git a/jarvis/commands/registry.py b/jarvis/commands/registry.py
index 5045addaea..ef16e57885 100644
--- a/jarvis/commands/registry.py
+++ b/jarvis/commands/registry.py
@@ -89,6 +89,24 @@ def _provider_ids(tier: str, *, brain_switchable_only: bool = False) -> list[str
return sorted(ids)
+def _coding_agent_ids() -> list[str]:
+ """Coding CLIs a workspace pane can run, from the ONE agent registry.
+
+ Never a literal list. A registered CLI that the voice schema does not know
+ about is unreachable by voice while being fully supported everywhere else —
+ the pane opens from the UI, resumes, accepts prompts, and is simply absent
+ from the one surface that is supposed to drive it. Reading the registry is
+ what lets a newly registered agent be spawned the day it lands, without a
+ second table remembering to agree (the same rule §5 sets for providers:
+ gate on the capability, never on a name someone typed twice).
+ """
+ try:
+ from jarvis.workspace.agents import coding_agent_names
+ except Exception: # pragma: no cover - defensive: registry must not crash
+ return []
+ return sorted(coding_agent_names())
+
+
def _all_provider_ids() -> list[str]:
try:
from jarvis.ui.web.provider_spec import PROVIDERS
@@ -661,11 +679,18 @@ def _build_registry() -> tuple[AppCommand, ...]:
id="agentic-ide-prompt",
title="Prompt an Agentic-IDE terminal",
description=(
- "Send an instruction to the coding agent in a named terminal. "
+ "Send an instruction to the coding agent in ONE named terminal. "
"Use this whenever the user tells a terminal to do something "
- "('tell Kai to ...', 'Mika soll ...', 'let Nova refactor ...') "
+ "('tell Kai to ...', 'Mika soll ...', 'let Nova refactor ...') " # i18n-allow: quoted addressing examples the router must match
"— that work belongs to that agent, never to a background "
- "worker. Pass the instruction in the USER's words: everything "
+ "worker. For SEVERAL terminals ('Kai and Mika both ...', 'let "
+ "the two of them ...') call 'agentic-ide-fanout' instead, with "
+ "every call-sign in 'terminals': it briefs them at once and "
+ "reports which ones really got the work. Calling this command "
+ "twice for a pair leaves the second agent idle whenever the "
+ "second call is forgotten, which is the failure mode fanout "
+ "exists to remove. "
+ "Pass the instruction in the USER's words: everything "
"they asked for, every constraint and file they named, nothing "
"invented and nothing summarised away. Do NOT write the brief "
"yourself — a prompt writer that has read this repository turns "
@@ -718,17 +743,104 @@ def _build_registry() -> tuple[AppCommand, ...]:
"es": ("dile a mika que ejecute las pruebas",), # i18n-allow: input vocab
},
),
+ AppCommand(
+ id="agentic-ide-fanout",
+ title="Open and brief Agentic-IDE terminals in one step",
+ description=(
+ "Give ONE task to coding terminals — existing ones, brand-new "
+ "ones, or both — in a single call. This is the ONLY correct way "
+ "to handle 'if no terminal is called that, open one and prompt "
+ "it' and 'spawn N terminals and let them do X': pass the work as "
+ "'instruction', the panes to brief as 'terminals', and the panes "
+ "to open first as 'spawn'. Never emulate it by opening panes and "
+ "then prompting — call-signs are assigned automatically, so a "
+ "pane you open is NOT called the name you had in mind, and "
+ "re-spawning after a failed prompt just leaves blank panes "
+ "behind. Set 'split' true only when the user asked for the work "
+ "to be DIVIDED between the agents. "
+ "CHECK THE REPLY: 'delivered' names the agents that really got "
+ "the task and 'undelivered' those that did not — report both, "
+ "and use the call-signs the reply gives you."
+ ),
+ method="POST",
+ path="/api/agentic-ide/fanout",
+ params={
+ "type": "object",
+ "properties": {
+ "instruction": _str_param(
+ "The work the agents should do, in plain words.",
+ min_length=1,
+ max_length=4000,
+ ),
+ "terminals": {
+ "type": "array",
+ "items": {"type": "string"},
+ "description": (
+ "Call-signs of running terminals to brief. Leave "
+ "empty to brief only the newly opened panes."
+ ),
+ },
+ "spawn": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "count": {
+ "type": "integer",
+ "description": "Panes to open in this group.",
+ },
+ "agent": {
+ "type": "string",
+ "enum": _coding_agent_ids() or None,
+ "description": (
+ "Coding agent for this group; omit to "
+ "inherit the last pane's."
+ ),
+ },
+ },
+ "required": ["count"],
+ },
+ "description": (
+ "Panes to open before briefing, group by group. "
+ "Only the newly opened panes are briefed, so agents "
+ "already working are not interrupted."
+ ),
+ },
+ "split": {
+ "type": "boolean",
+ "default": False,
+ "description": (
+ "Divide the instruction into one distinct assignment "
+ "per agent instead of giving all of them the same "
+ "brief."
+ ),
+ },
+ },
+ "required": ["instruction"],
+ },
+ ui_section="agentic-ide",
+ voice_aliases={
+ "de": ("spawne ein terminal und lass es die tests fixen",), # i18n-allow: input vocab
+ "en": ("open a terminal and have it fix the tests",),
+ "es": ("abre una terminal y que arregle las pruebas",), # i18n-allow: input vocab
+ },
+ ),
AppCommand(
id="agentic-ide-spawn-terminals",
title="Open more Agentic-IDE terminals",
description=(
"Open one or more additional coding terminals in the open "
- "workspace. Use this when the user asks for MORE TERMINALS / "
- "panes ('spawn five new Claude Code terminals', 'open two more "
- "Codex terminals') — that is a request for workspace panes, "
- "never for a background worker. Pass count, and agent only when "
- "the user named one ('claude' or 'codex'); omitted, the new "
- "panes run whatever the last pane runs. "
+ "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."
@@ -745,7 +857,7 @@ def _build_registry() -> tuple[AppCommand, ...]:
},
"agent": {
"type": "string",
- "enum": ["claude", "codex"],
+ "enum": _coding_agent_ids() or None,
"description": (
"Coding agent for the new panes; omit to inherit "
"the last pane's."
@@ -819,7 +931,7 @@ def _build_registry() -> tuple[AppCommand, ...]:
"properties": {
"agent": _str_param(
"Coding agent whose terminals should be closed.",
- enum=["claude", "codex"],
+ enum=_coding_agent_ids() or None,
),
},
"required": ["agent"],
diff --git a/jarvis/core/config_writer.py b/jarvis/core/config_writer.py
index bd8fb50170..420f0e12b1 100644
--- a/jarvis/core/config_writer.py
+++ b/jarvis/core/config_writer.py
@@ -1534,7 +1534,7 @@ def set_provider_base_url(
(``PUT /api/providers/{id}/base-url``). ``None``/"" writes an EMPTY string
rather than deleting the key — "" is falsy everywhere the override is read
(``resolve_provider_endpoint``), and keeping the key present means the
- drift-soll layer and the TOML always agree (BUG-010 class). Same atomic
+ drift-guard baseline layer and the TOML always agree (BUG-010 class). Atomic
discipline as every setter here (AP-7); tomlkit quotes hyphenated provider
ids (``[brain.providers."local-openai"]``) on its own.
"""
@@ -1568,7 +1568,7 @@ def set_provider_base_url(
out = _BOM + out
_atomic_write(path, out)
- # Best-effort drift-soll sync (never raises, never blocks the TOML write).
+ # Best-effort drift-guard baseline sync (never raises, never blocks the write).
try:
_update_config_soll_section( # i18n-allow
f"brain.providers.{provider}", {"base_url": cleaned}
diff --git a/jarvis/realtime/session.py b/jarvis/realtime/session.py
index c984b50e23..bd99a4c9be 100644
--- a/jarvis/realtime/session.py
+++ b/jarvis/realtime/session.py
@@ -774,6 +774,7 @@ def _session_instructions(
tool_directive: str = "",
preferences: str = "",
skill_directive: str = "",
+ workspace_directive: str = "",
) -> str:
from jarvis.brain.persona_loader import load_effective_persona_prompt
@@ -863,6 +864,11 @@ def _session_instructions(
# whole spoken output, while safety and tool rules below stay above them.
preferences,
tool_directive,
+ # The live workspace roster sits with the tool directive because it is
+ # a routing rule, not background colour: it names the one class of word
+ # that must always reach the action function instead of the model's own
+ # knowledge.
+ workspace_directive,
# A matched skill's own instructions, when the turn qualified for direct
# injection. Placed AFTER the tool directive and BEFORE the safety
# appendix on purpose: the skill refines HOW to answer this turn, and
@@ -1186,6 +1192,7 @@ class RealtimeVoiceSession:
),
context=context,
skill_index=self._skill_match_index(),
+ workspace_names=self._workspace_call_signs(),
)
except Exception: # noqa: BLE001 — routing must never end a live call
# Planning only chooses a route, and both routes can answer. The
@@ -1203,6 +1210,66 @@ class RealtimeVoiceSession:
)
return TurnPlan(path=TurnPath.NATIVE_REALTIME)
+ @staticmethod
+ def _workspace_call_signs() -> tuple[str, ...]:
+ """Call-signs of the open Agentic-IDE workspace, or ``()``.
+
+ Pure in-memory read of the process-wide registry, so it is free on the
+ hot path. Any fault answers "no workspace": the coding surface is
+ optional and must never be able to break a live call.
+ """
+ try:
+ from jarvis.agentic_ide.session import running_call_signs
+
+ return tuple(running_call_signs())
+ except Exception: # noqa: BLE001 - optional surface, never fatal
+ return ()
+
+ def _workspace_directive(self) -> str:
+ """Tell the live model which coding agents are running, by name.
+
+ The live 2026-07-27 miss in one sentence: asked "was hat Dana gemacht",
+ the model said it did not know which person Dana was — and it was right
+ not to know, because its instructions never mentioned that a coding
+ agent called Dana was running in front of the user. It only answered
+ correctly after the user said the words "agentic IDE" out loud, which is
+ not a workflow anybody should have to learn.
+
+ So the roster goes into the per-turn instructions: the model cannot
+ route a name it has never heard of. Deliberately only the NAMES and
+ their state — what each agent actually printed stays with the
+ orchestrator, which holds the full focus-context block and the terminal
+ report tool. Sending transcripts here would re-send several kilobytes on
+ every single turn for an answer the model still could not verify.
+
+ The directive is the belt to the planner's braces: the planner routes
+ such a turn deterministically (``TurnReason.WORKSPACE``), and this makes
+ the model WANT the same thing, so a phrasing the detectors miss still
+ lands.
+ """
+ names = self._workspace_call_signs()
+ if not names:
+ return ""
+ roster = ", ".join(names)
+ return (
+ "[Agentic IDE — coding agents are running right now]\n"
+ f"Terminals open in the user's coding workspace: {roster}.\n"
+ "Those are names of RUNNING CODING AGENTS, not people you know. "
+ "When the user says one of them — in any language, any tense, on "
+ "its own or inside a sentence — they mean that terminal. Never "
+ "answer that you do not know who that is, never guess what it is "
+ "doing, and never treat it as a public figure or an acquaintance. "
+ "Call your action function so the workspace can answer from what "
+ "that terminal actually printed, and say the terminal's name back "
+ "in your reply so the user knows which agent you mean.\n"
+ "Never say a terminal has been told, briefed, prompted or asked "
+ "anything unless your action function reported that it happened. "
+ "Live failure 2026-07-27: this model answered \"I have let Alex "
+ "know\" on a turn where nothing had reached Alex, and the user "
+ "found the pane still sitting at its startup banner. If you do not "
+ "know that the work went out, say what you actually did instead."
+ )
+
def _skill_directive(self, text: str) -> str:
"""A matched skill's instructions, injected straight into this turn.
@@ -1471,6 +1538,7 @@ class RealtimeVoiceSession:
language_is_pinned=self._language_is_pinned,
tool_directive=self._tool_directive(),
preferences=_preferences_block(self._config),
+ workspace_directive=self._workspace_directive(),
),
language=self._language,
input_language=self._input_language,
@@ -2093,6 +2161,10 @@ class RealtimeVoiceSession:
skill_directive=self._skill_directive(
self._last_user_text or ""
),
+ # Rebuilt per turn: panes open and close mid
+ # call, and a roster naming a terminal that is
+ # gone is worse than none.
+ workspace_directive=self._workspace_directive(),
),
"language": new_language,
}
diff --git a/jarvis/voice/action_phrases.py b/jarvis/voice/action_phrases.py
index d55f92d60d..9d414332fa 100644
--- a/jarvis/voice/action_phrases.py
+++ b/jarvis/voice/action_phrases.py
@@ -378,6 +378,21 @@ _PHRASES: dict[str, dict[str, str]] = {
"en": "{count} new terminals: {names}.",
"es": "{count} terminales nuevas: {names}.",
},
+ "ide_terminals_briefing_queued": {
+ "de": "Ich übergebe ihnen die Aufgabe, sobald die Terminals bereit sind.", # i18n-allow
+ "en": "I will hand them the task as soon as the terminals are ready.",
+ "es": "Les entregaré la tarea en cuanto las terminales estén listas.",
+ },
+ "ide_terminals_closed": {
+ "de": "{count} Terminals geschlossen: {names}.", # i18n-allow
+ "en": "Closed {count} terminals: {names}.",
+ "es": "Cerré {count} terminales: {names}.",
+ },
+ "ide_terminals_none_to_close": {
+ "de": "Es sind keine passenden Terminals offen.", # i18n-allow
+ "en": "There are no matching open terminals.",
+ "es": "No hay terminales abiertas que coincidan.",
+ },
# Fewer than asked for, because the workspace cap cut the batch short. Named
# separately from the plain success so the shortfall is impossible to miss.
"ide_terminals_spawned_capped": {
@@ -398,6 +413,52 @@ _PHRASES: dict[str, dict[str, str]] = {
"en": "I opened {folder}: {names}.",
"es": "Abrí {folder}: {names}.",
},
+ # A call-sign the transcript almost matched. Both variants REPEAT what was
+ # heard: the user's own word is the only thing that lets them tell a
+ # misheard name from a wrong pane, and hearing "I understood Ilies" is what
+ # makes "no, Ellis" the obvious next thing to say.
+ "ide_terminal_clarify_one": {
+ "de": "Ich habe {spoken} verstanden — meinst du {name}?", # i18n-allow
+ "en": "I heard {spoken} — did you mean {name}?",
+ "es": "Entendí {spoken}: ¿te refieres a {name}?",
+ },
+ "ide_terminal_clarify_many": {
+ "de": "Ich habe {spoken} verstanden — meinst du {names}?", # i18n-allow
+ "en": "I heard {spoken} — did you mean {names}?",
+ "es": "Entendí {spoken}: ¿te refieres a {names}?",
+ },
+ # The separator for the final pair of an alternative list ("Maggie or Max").
+ # A phrase entry rather than a literal, so the choice is offered in the
+ # turn's language like every other spoken word.
+ "join_or": {
+ "de": " oder ", # i18n-allow
+ "en": " or ",
+ "es": " o ",
+ },
+ # The separator for the final pair of a LIST ("Alex and Blake"). Distinct
+ # from ``join_or`` because the two questions mean opposite things: "Max or
+ # Maggie" offers a choice between panes, "Alex and Blake" asks about both.
+ "join_and": {
+ "de": " und ", # i18n-allow
+ "en": " and ",
+ "es": " y ",
+ },
+ # Panes were briefed AND one call-sign of the same breath stayed unclear.
+ # The two halves are said in one sentence on purpose: the user has to hear
+ # which agents actually got the work before being asked about the rest.
+ "ide_terminal_clarify_also": {
+ "de": "Ich habe außerdem {spoken} verstanden — meinst du {names}?", # i18n-allow
+ "en": "I also heard {spoken} — did you mean {names}?",
+ "es": "También entendí {spoken}: ¿te refieres a {names}?",
+ },
+ # The user addressed several panes and only one call-sign survived speech
+ # recognition. Saying which one was placed is the load-bearing half: it is
+ # what stops the user believing a second agent is working when none is.
+ "ide_terminal_who_else": {
+ "de": "Ich konnte nur {names} zuordnen — wer sollte noch ran?", # i18n-allow
+ "en": "I could only place {names} — who else did you mean?",
+ "es": "Solo pude identificar a {names}: ¿quién más?",
+ },
"ide_terminals_nowhere": {
"de": ( # i18n-allow
"Es ist kein Workspace offen und ich habe keinen letzten. " # i18n-allow
diff --git a/jarvis/workspace/agents.py b/jarvis/workspace/agents.py
index 0f0cc1e4e6..d587383b09 100644
--- a/jarvis/workspace/agents.py
+++ b/jarvis/workspace/agents.py
@@ -119,6 +119,17 @@ class AccountSpec:
native_dir: str
#: Subset of ``env`` whose variables are shared with other tools.
shared_env: tuple[str, ...] = ()
+ #: Paths inside the account directory whose presence proves a login, tried
+ #: in order. EMPTY is a meaningful value: it says this build cannot read
+ #: this CLI's sign-in state, and the account is then reported as exactly
+ #: that. Switching still works — the variable genuinely redirects the CLI —
+ #: only the green/red dot is unavailable, which is a far better answer than
+ #: a confident one derived from a file layout nobody verified.
+ login_markers: tuple[str, ...] = ()
+ #: Arguments appended to the CLI's binary to start its own interactive
+ #: sign-in, pointed at the account directory. Empty means this CLI has no
+ #: login command to offer.
+ login_argv: tuple[str, ...] = ()
@property
def dedicated(self) -> bool:
@@ -516,7 +527,16 @@ _AGENTS: dict[str, WorkspaceAgent] = {
# Its update preflight can check, install and PROMPT mid-session.
spawn_env=(("KIMI_CODE_NO_AUTO_UPDATE", "1"),),
account=AccountSpec(
- env=(("KIMI_CODE_HOME", "{dir}"),), native_dir="~/.kimi-code"
+ # ONE variable moves config, sessions and credentials together,
+ # which is the cleanest multi-seat override of any entry here.
+ env=(("KIMI_CODE_HOME", "{dir}"),),
+ native_dir="~/.kimi-code",
+ # Deliberately no login markers: this CLI's credential file layout
+ # has not been verified against a live install, and guessing one
+ # would make a signed-in seat read as signed-out. Switching seats
+ # works; the sign-in dot honestly says it cannot tell.
+ login_markers=(),
+ login_argv=("login",),
),
# Its own installer drops the binary here, which is not on the PATH a
# GUI-launched process inherits on macOS or Linux.
diff --git a/scripts/config-soll.json b/scripts/config-soll.json
index c3cc9db46a..324ff7a3aa 100644
--- a/scripts/config-soll.json
+++ b/scripts/config-soll.json
@@ -67,7 +67,7 @@
"provider": "groq-api",
"model": "whisper-large-v3",
"bias_prompt": "Jarvis, OpenClaw, Codex, Gemini, Grok, Claude, Anthropic, OpenAI, OpenRouter, Whisper, a dictation app, Subagent, Sub-Agent, Mission-Manager, Critic-Loop, Critic, Worker, Router-Brain, Router, Kontrollierer, Voice-Pipeline, Wake-Word, Silero, VAD, TTS, STT, Telemetry, Transkript, Token, Provider, Plugin, Sprechblase, Orb, Mascot, Quip, Browser, Terminal, Repository, Branch, Commit, Push, Pull-Request, Issue, Merge, Refactor, Deployment, Screenshot, Debuggen, Workflow, Microservice, Container, Docker, Kubernetes, FastAPI, React, TypeScript, Python, JSON, Markdown, Logfile, Konfiguration, Endpoint, Webhook, API-Key, Service-Account, Cloud, Google Cloud, Vertex AI, BigQuery, GitHub, Twilio, ElevenLabs, OAuth, Credential Manager, Frontend, Backend, Skript, Daemon, Hangup, Auflegen, Denkpause, submitted, distanziert, erkennt",
- "language": "de"
+ "language": "en"
},
"ack_brain": {
"enabled": true,
@@ -110,9 +110,13 @@
"provider": "gemini"
},
"brain.computer_use": {
- "provider": "grok"
+ "provider": "openrouter"
},
"brain.providers.grok-realtime": {
"voice": "lux"
+ },
+ "brain.providers.ollama": {
+ "tool_model": "deepseek-r1:14b",
+ "cu_model": "deepseek-r1:14b"
}
}
diff --git a/tests/unit/commands/test_registry_parity.py b/tests/unit/commands/test_registry_parity.py
index 14db91f913..a5be81624c 100644
--- a/tests/unit/commands/test_registry_parity.py
+++ b/tests/unit/commands/test_registry_parity.py
@@ -137,6 +137,41 @@ def test_brain_switch_enum_excludes_subagent_only_providers() -> None:
assert "antigravity" not in enum
+def test_spawn_agent_enum_follows_the_agent_registry() -> None:
+ """A newly registered coding CLI must be spawnable by voice the same day.
+
+ The enum used to be the literal ``["claude", "codex"]`` in two schemas, so
+ an agent added to ``jarvis.workspace.agents`` opened from the UI, resumed
+ and accepted prompts while being absent from the one surface meant to drive
+ it. Registering one now invalidates the cached catalog.
+ """
+ from jarvis.commands.registry import get_registry as catalog
+ from jarvis.workspace import agents as workspace_agents
+
+ def spawn_enum() -> list[str]:
+ cmd = get_command("agentic-ide-spawn-terminals")
+ assert cmd is not None
+ return list(cmd.params["properties"]["agent"].get("enum") or [])
+
+ assert set(spawn_enum()) == set(workspace_agents.coding_agent_names())
+
+ added = workspace_agents.make_cli_agent(
+ "test-cli", "Test CLI", binary="test-cli"
+ )
+ try:
+ workspace_agents.register_agent(added)
+ assert "test-cli" in spawn_enum()
+ fanout = get_command("agentic-ide-fanout")
+ assert fanout is not None
+ group = fanout.params["properties"]["spawn"]["items"]["properties"]["agent"]
+ assert "test-cli" in (group.get("enum") or [])
+ finally:
+ workspace_agents._AGENTS.pop("test-cli", None) # noqa: SLF001 - test cleanup
+ catalog.cache_clear()
+
+ assert "test-cli" not in spawn_enum()
+
+
def test_registry_served_over_rest() -> None:
from jarvis.core.bus import EventBus
from jarvis.core.config import JarvisConfig
diff --git a/tests/unit/ui/web/test_provider_base_url_routes.py b/tests/unit/ui/web/test_provider_base_url_routes.py
index 8cb9f20c54..a3fdde3873 100644
--- a/tests/unit/ui/web/test_provider_base_url_routes.py
+++ b/tests/unit/ui/web/test_provider_base_url_routes.py
@@ -111,7 +111,7 @@ def test_provider_payload_carries_base_url_fields(server: WebServer) -> None:
def test_set_provider_base_url_writes_quoted_table(tmp_path, monkeypatch) -> None:
from jarvis.core import config_writer
- # Keep the best-effort drift-soll sync away from the real scripts/ file.
+ # Keep the best-effort drift-guard baseline sync away from the real file.
monkeypatch.setattr(config_writer, "_update_config_soll_section", lambda *a, **k: None)
toml_path = tmp_path / "jarvis.toml"
toml_path.write_text('[brain]\nprimary = "gemini"\n', encoding="utf-8")
@@ -123,7 +123,7 @@ def test_set_provider_base_url_writes_quoted_table(tmp_path, monkeypatch) -> Non
assert doc["brain"]["providers"]["local-openai"]["base_url"] == "http://localhost:8000"
# Clearing writes an empty string (falsy everywhere the override is read)
- # instead of deleting the key, so TOML and drift-soll stay in agreement.
+ # instead of deleting the key, so TOML and the baseline stay in agreement.
config_writer.set_provider_base_url("local-openai", None, path=toml_path)
doc = tomlkit.parse(toml_path.read_text(encoding="utf-8"))
assert doc["brain"]["providers"]["local-openai"]["base_url"] == ""