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.

fix(cli): expose model assistant commands and synchronize command index

rubenluetke10-beep670673b0dbbc
diff --git a/docs/jarvis-cli-reference.md b/docs/jarvis-cli-reference.md
index ddb15e51a4..8ad264559e 100644
--- a/docs/jarvis-cli-reference.md
+++ b/docs/jarvis-cli-reference.md
@@ -114,6 +114,12 @@ _Generated from the curated command tree by `scripts/ci/gen_cli_reference.py`
## local-models
+- `jarvis local-models assistant benchmarks --refresh --provider` — Read the benchmark data used by the assistant.
+- `jarvis local-models assistant diagnose --provider` — Start a guided diagnostic conversation.
+- `jarvis local-models assistant health --provider` — Read the selected provider's local-model health.
+- `jarvis local-models assistant session --provider` — Read the existing assistant session and its readiness.
+- `jarvis local-models assistant setup --provider` — Start the existing guided setup conversation.
+- `jarvis local-models assistant test --role --provider` — Run the setup test for all roles or the selected roles.
- `jarvis local-models catalog recommended --provider` — The curated shortlist ranked for this machine, with its review date.
- `jarvis local-models catalog search <query> --sort --capability --limit --provider` — Browse the library; offline is reported as a sentence, not a failure.
- `jarvis local-models catalog tags <name> --provider` — Every tag of one library model with size, quantization, context and fit.
diff --git a/jarvis/cli_ctl/command_index.py b/jarvis/cli_ctl/command_index.py
index 6325ddb882..ae366323f3 100644
--- a/jarvis/cli_ctl/command_index.py
+++ b/jarvis/cli_ctl/command_index.py
@@ -77,6 +77,8 @@ COMMAND_INDEX: dict[str, tuple[str, ...]] = {
"tasks": ("list", "get <id>", "create", "cancel <id>", "delete <id>"),
"workflows": ("list", "show <id>", "create", "run <id>", "delete <id>", "run-history"),
"sessions": (
+ "command",
+ "control",
"list",
"latest-turn",
"show <id>",
@@ -96,6 +98,7 @@ COMMAND_INDEX: dict[str, tuple[str, ...]] = {
"contacts": ("list", "show <name>", "add", "edit <name>", "delete <name>", "import", "export"),
"board": ("summary", "heatmap", "records", "achievements", "bio", "bio-regenerate", "profile"),
"docs": ("list", "tree", 'search "<query>"', "show <path>"),
+ "costs": ("summary", "entries", "rates"),
"system": ("restart", "audio-devices", "status"),
"auth": ("login", "status", "logout"),
"clis": (
@@ -121,8 +124,14 @@ COMMAND_INDEX: dict[str, tuple[str, ...]] = {
'message <name> "<text>"',
),
"frontier": ("pending", "ack"),
- "ide": ("rename-terminal", "close-terminals"),
+ "ide": ("rename-terminal", "close-terminals", "archive-terminal"),
"local-models": (
+ "assistant setup",
+ "assistant diagnose",
+ "assistant test",
+ "assistant benchmarks",
+ "assistant health",
+ "assistant session",
"roles list",
"roles set <chat|tools_screen|deep|embedding> <model>",
"models list",
diff --git a/jarvis/cli_ctl/commands/local_models.py b/jarvis/cli_ctl/commands/local_models.py
index 7f0fb466a0..f18add42fa 100644
--- a/jarvis/cli_ctl/commands/local_models.py
+++ b/jarvis/cli_ctl/commands/local_models.py
@@ -430,3 +430,61 @@ def server_env_guide(
"""Copyable per-OS commands for the server's environment variables."""
params = {"os": os_name.strip()} if os_name.strip() else None
invoke.run("GET", f"{_base(provider)}/server/env-guide", params=params)
+
+
+assistant_app = typer.Typer(no_args_is_help=True, help="Guided local-model setup and diagnostics.")
+app.add_typer(assistant_app, name="assistant")
+_ASSISTANT_ROLES = typer.Option(None, "--role", help="Role to test; may be repeated.")
+
+
+@assistant_app.command("setup")
+def assistant_setup(provider: str = _PROVIDER) -> None:
+ """Start the existing guided setup conversation."""
+ invoke.run("POST", f"{_base(provider)}/assistant/run", body={"mode": "setup"}, dangerous=False)
+
+
+@assistant_app.command("diagnose")
+def assistant_diagnose(provider: str = _PROVIDER) -> None:
+ """Start a guided diagnostic conversation."""
+ invoke.run(
+ "POST", f"{_base(provider)}/assistant/run", body={"mode": "diagnose"}, dangerous=False
+ )
+
+
+@assistant_app.command("test")
+def assistant_test(
+ role: list[str] | None = _ASSISTANT_ROLES,
+ provider: str = _PROVIDER,
+) -> None:
+ """Run the setup test for all roles or the selected roles."""
+ invoke.run(
+ "POST",
+ f"{_base(provider)}/assistant/test",
+ body={"roles": role} if role else None,
+ dangerous=False,
+ )
+
+
+@assistant_app.command("benchmarks")
+def assistant_benchmarks(
+ refresh: bool = typer.Option(False, "--refresh", help="Refresh benchmark data."),
+ provider: str = _PROVIDER,
+) -> None:
+ """Read the benchmark data used by the assistant."""
+ invoke.run(
+ "GET",
+ f"{_base(provider)}/assistant/benchmarks",
+ params={"refresh": "1"} if refresh else None,
+ )
+
+
+@assistant_app.command("health")
+def assistant_health(provider: str = _PROVIDER) -> None:
+ """Read the selected provider's local-model health."""
+ invoke.run("GET", f"{_base(provider)}/assistant/health")
+
+
+@assistant_app.command("session")
+def assistant_session(provider: str = _PROVIDER) -> None:
+ """Read the existing assistant session and its readiness."""
+ invoke.run("GET", f"{_base(provider)}/assistant/session")