kagurazakayashi/dsh-startup-command0

@kagurazakayashi/dsh-startup-command

A DeepSeek Harness Web plugin that runs a user-defined command after the web profile has started successfully.

AI Analysis

核心用途是实现 DSH 启动后的自动化联动(如自动打开特定浏览器)。适合需要自定义 DSH 启动工作流的进阶用户。

Package
@kagurazakayashi/dsh-startup-command
Version
1.0.0
License
MIT
Last updated
Sep 5, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:kagurazakayashi/dsh-startup-command

Configuration

The configuration lives in the dsh-startup-command namespace of settings.yaml. The plugin registers this namespace through the settings service at startup; the schema defaults apply when nothing is configured:

dsh-startup-command:
  enabled: true
  command: '"C:\Program Files\Google\Chrome\Application\chrome.exe" --app={url}'
  shell: false

Supported fields:

  • command (string | string[]) — a single command as a string, or multiple commands as an array run in order (the next one starts only after the previous one exits); each entry is split into argv honoring quotes, so wrap paths containing spaces in double quotes
  • enabled (boolean, default true) — set to false to disable temporarily
  • shell (boolean, default false) — set to true to run through the system shell

command supports these placeholders, all replaced before execution:

  • {url} — the actual GUI address (the ?token=-authenticated URL on newer dsh web)
  • {home} — the current user folder (os.homedir())
  • {browser} — the auto-detected Chromium-family browser executable. Detection rule: if the system default browser is Chromium / Chrome / Edge, the default browser wins; otherwise the first installed browser in Chromium > Chrome > Edge priority is used

The Add example command button on the web settings card opens a dialog explaining the example, then appends a ready-made command using {browser}, {home}, and {url}. If no Chromium / Chrome / Edge browser was found when dsh started, it shows a "cannot generate example command" message with the reason instead.