Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Studio: let unsloth start dsh install DeepSeek Harness on Node 22 (#16844)

Nilay55662d5b30cb
diff --git a/.github/scripts/agent-guides-install.sh b/.github/scripts/agent-guides-install.sh
index f34aef7822b..c29bec8873f 100755
--- a/.github/scripts/agent-guides-install.sh
+++ b/.github/scripts/agent-guides-install.sh
@@ -115,7 +115,7 @@ case "$AGENT" in
|| install_fail "npm install -g --ignore-scripts @earendil-works/pi-coding-agent failed"
;;
dsh)
- npm_retry "@deepseek-ai/dsh" || install_fail "npm install -g @deepseek-ai/dsh failed"
+ npm_retry "@deepseek-ai/dsh@latest" || install_fail "npm install -g @deepseek-ai/dsh@latest failed"
;;
vibe)
PATH="$HOME/.local/bin:$PATH" curl_bash "https://mistral.ai/vibe/install.sh" \
diff --git a/unsloth_cli/commands/start.py b/unsloth_cli/commands/start.py
index ee4c0f66d15..c04d294cf21 100644
--- a/unsloth_cli/commands/start.py
+++ b/unsloth_cli/commands/start.py
@@ -82,7 +82,7 @@ _HERMES_MIN_CONTEXT = 65536
_DSH_PROVIDER = "unsloth"
_DSH_ENV_KEY = "UNSLOTH_API_KEY"
_DSH_PATCH_FILE = "unsloth.patch.yml"
-_DSH_PACKAGE = "@deepseek-ai/dsh"
+_DSH_PACKAGE = "@deepseek-ai/dsh@latest"
# dsh picks its sandbox+approval preset from DSH_PERMISSION_MODE via ??, so omitting it would inherit a danger-full-access exported in the parent shell, and "" is not unset to ??. Pin the mode in both directions instead of only setting it for --yolo.
_DSH_SAFE_PERMISSION_MODE = "workspace-write"
_DSH_YOLO_PERMISSION_MODE = "danger-full-access"
diff --git a/unsloth_cli/tests/test_start.py b/unsloth_cli/tests/test_start.py
index 778b29625ba..8bda9030a7c 100644
--- a/unsloth_cli/tests/test_start.py
+++ b/unsloth_cli/tests/test_start.py
@@ -1438,6 +1438,24 @@ def test_dsh_resolver_searches_past_an_unrelated_earlier_path_entry(monkeypatch,
assert Path(resolved).parent == harness_dir
+def test_dsh_first_run_installs_the_latest_dist_tag(monkeypatch):
+ hints = []
+ monkeypatch.setattr(start, "_which_with_install_dirs", lambda _: None)
+ monkeypatch.setattr(start, "_which_deepseek_harness_with_install_dirs", lambda: None)
+ monkeypatch.setattr(start, "_install_agent", lambda name, hint: hints.append(hint))
+ monkeypatch.setattr(
+ start,
+ "_connect",
+ lambda *a, **k: pytest.fail("a missing dsh must stop before model connection"),
+ )
+
+ result = CliRunner().invoke(start.start_app, ["dsh"])
+
+ assert result.exit_code == 1
+ assert len(hints) == 1
+ assert shlex.split(hints[0])[-1] == "@deepseek-ai/dsh@latest", hints
+
+
def test_declined_opencode_subagent_install_stops_before_connect(monkeypatch):
installs = []
monkeypatch.setattr(start, "_which_with_install_dirs", lambda _: None)