Skip to the content.

DSH Setup — Install, Launch, and Manage DeepSeek Harness

Install and manage DeepSeek Harness (dsh) as a locally-installed agent harness with a dedicated Chrome app-mode launcher and GNOME .desktop integration. DSH is a WebUI-based agent harness where everything is a plugin, powered by Cordis.

This skill uses pnpm for package management (npm cannot handle DSH’s 62+ direct dependencies — it hangs indefinitely consuming 3+ GB RAM). The install is persistent (not ephemeral npx), so launches are instant (~3 seconds) and updates are explicit.

Rules

Do NOT fabricate or invent command output, status, or results. Every report MUST come from actual script or command execution. If a command fails, report the actual error — do not guess.

Do NOT skip steps or combine multiple operations into one step. Execute each step in order and verify before proceeding.

Prerequisites

Architecture

Component Path Purpose
pnpm ~/.local/share/pnpm/ Package manager (installed once)
DSH install ~/.local/share/dsh/ pnpm-managed DSH + node_modules (~250 MB)
DSH home ~/.dsh/ DSH user data, settings, credentials, sessions
Systemd service ~/.config/systemd/user/dsh.service Backend lifecycle (start/stop/status/logs)
Chrome profile ~/.local/share/dsh-chrome-profile/ Separate Chrome profile for security isolation
Launcher ~/.local/bin/dsh-launcher Starts service → Chrome app-mode (maximized) → waits for Chrome exit → stops service
Desktop file ~/.local/share/applications/dsh.desktop GNOME app launcher entry
Icon ~/.local/share/icons/hicolor/*/apps/dsh.png App icon (48, 128, 256, 1024px)

DSH stores its config in ~/.dsh/ by default (overridable via DSH_HOME env var). The settings.yaml within controls model providers.

Workflow

The agent MUST select the appropriate operation based on the user’s request and run the corresponding script. The agent MUST report the script output verbatim.

Step 1 — Setup (initial install)

The agent MUST run:

bash ~/.agents/skills/dsh-setup/scripts/install.sh
  1. Install the desktop launcher
    bash ~/.agents/skills/dsh-setup/scripts/install-desktop.sh
    

    This script:

    • Creates a systemd user service (dsh.service) for backend lifecycle
    • Writes dsh-launcher wrapper to ~/.local/bin/
    • Creates a .desktop file with the DSH icon (multiple hicolor sizes)
    • Updates the desktop database
    • The launcher starts the backend via systemctl --user start dsh, waits for port 3080, then opens Chrome in --app mode
    • Chrome opens in a separate profile (--user-data-dir) for security isolation and to enable --start-maximized
    • When Chrome exits, the launcher stops the service automatically (separate profile = independent process, trackable via wait)
  2. Verify the installation
    bash ~/.agents/skills/dsh-setup/scripts/verify.sh
    

Update

bash ~/.agents/skills/dsh-setup/scripts/update.sh

Runs pnpm update @deepseek-ai/dsh in the install directory. This re-resolves from the pnpm store — typically completes in under 5 seconds for cached packages.

Teardown

bash ~/.agents/skills/dsh-setup/scripts/teardown.sh

Removes:

Does NOT remove pnpm (shared tool, may be used by other projects).

Status

bash ~/.agents/skills/dsh-setup/scripts/status.sh

Shows DSH backend status (systemd service state, port 3080), desktop launcher path, and installed version. Compares against the npm registry latest — recommends update dsh when behind. Read-only — makes no changes.

Gotchas

Specification

ID Capability Verifiable By
S1 Install pnpm and DSH to ~/.local/share/dsh/ verify.sh checks binary + node_modules
S2 Create desktop launcher that starts backend + Chrome app window verify.sh checks files exist
S3 Update DSH to latest version update.sh exits 0, dsh --version shows new version
S4 Teardown removes all installed files teardown.sh exits 0, paths absent
S5 Systemd service manages backend lifecycle systemctl --user status dsh shows active/inactive
S6 Launcher stops service when Chrome exits Close Chrome window, service stops immediately
S7 Separate Chrome profile for security isolation ~/.local/share/dsh-chrome-profile/ exists
S8 Window opens maximized Visual check on launch
S9 Status shows backend state, desktop path, and version with update recommendation status.sh exits 0, prints backend + desktop + version info

Tests

Test Spec Command Expected Result
T1 S1 bash scripts/verify.sh All checks pass
T2 S2 ls ~/.local/bin/dsh-launcher ~/.local/share/applications/dsh.desktop Both files exist
T3 S3 bash scripts/update.sh && bash scripts/verify.sh Update succeeds, verify passes
T4 S4 bash scripts/teardown.sh --no-data && bash scripts/verify.sh Teardown succeeds, verify reports missing
T5 S9 bash scripts/status.sh Prints backend state and desktop path, exits 0

Changelog

See CHANGELOG.md for version history.