dsh-job-board: A Client Plugin for Integrating Multi-Node Job Boards into DSH

Introduction

In DSH, working with agents typically involves tasks flowing only within the local session; multi-machine collaboration relies on manually copying commands, checking tables or group messages; furthermore, worker sessions on secondary machines often lack complete pwsh or read/write capabilities. If a team already has a “Job Board” style scheduling convention and wishes to unify board querying, ticket creation, claiming, and dispatching on the Harness side, while viewing machine status in the interface, it is necessary to stitch the board service, toolset, and Host scheduling into a single pipeline. Below introduces the community plugin dsh-job-board (maintained by shaot92-del), which integrates a multi-machine dispatch console into DSH as a single package: board_* tools related to the Job Board, sh_* tools available to workers, a sidebar “Job Board” panel, and Host-side /api/board/ui/* routes and background dispatch logic.

What is it

dsh-job-board is categorized as a DSH client plugin (npm package name @wfcj/dsh-job-board, current documentation version 2.6.12, MIT license). One-sentence positioning: Integrate a “multi-machine dispatch console” into DSH—agents can operate the Job Board via tools, people can filter/claim/deliver tasks in the sidebar panel, and the Host process is responsible for automatic dispatch and final state writeback starting from v1.1, reducing reliance on “keeping the browser open”.

Directory page: https://www.skillhub.cn/plugins/shaot92-del/dsh-job-board
Source code and docs: https://github.com/shaot92-del/dsh-job-board

What’s in the Single Package

The documentation explicitly states that one package contains four capabilities:

  1. 14 board_* tools – Query board status, list tasks, claim, renew, deliver, return, broadcast, dispatch, retry, bind remote tasks, view machine capabilities and status, and local capability assessment and metrics.
  2. 4 sh_* tools – sh_run / sh_read / sh_write / sh_list, filling in command and file operations for worker sessions (some capabilities merged from dsh-shell).
  3. GUI Panel – Sidebar “Job Board”: Task table (filter, search, expand details, claim, deliver, return), machine capability cards, one-line dispatch, and draggable desktop pet status cards.
  4. Host Routes and Scheduler – Browsers access board-related UI data via /api/board/ui/* (not directly hitting the board service across the network); dispatch and final state writeback execute in the Host background starting from v1.1.

When workerMode: on (added in v2.6.0, original dsh-job-worker capabilities merged into the same package), it also registers worker_status and worker_control tools on the worker side.

Architecture Highlights (v1.1 dispatch on Host)

The panel “Dispatch” creates a task in the queue via POST /api/board/ui/create (dispatch:'auto'), then the Host background periodically executes dispatch, rather than relying on multiple browser tabs to claim tasks individually. The process summary is as follows:

  • Approximately every 4 seconds dispatchOnce(): /api/take to atomically take a placeholder -> call remote-agent’s /dispatch -> on success /api/attach, on failure /api/untake to put it back in the queue.
  • Approximately every 6 seconds syncRemote(): Compare remote task status, then POST /api/mark to write back final states to the board.

This avoids duplicate dispatch across multiple open pages, stops scheduling when a page is closed, and serializes “placeholder -> dispatch -> rebind”. Starting from v1.1.1, the Host scheduler retrieves session cookies via DSH’s connection.authenticatedUrl() and accesses /api/remote-agent/ui/*, alleviating backend fetch 401 issues.

The board service must support /api/take and /api/untake; otherwise, the Host scheduler cannot obtain dispatch rights, and tasks may stay in queued indefinitely (logs will show take failed). If one only wants to keep the v1.0 style purely manual behavior, set autoDispatch to false in the configuration.

Core Tools Overview

The table below is excerpted from the README for easy reference of the main entry points that agents can call:

Tool Purpose
board_status To-do/In Progress/Completed/Returned counts, machine online status, recent events
board_list List tasks, filter by status / machine
board_claim / board_beat / board_done / board_fail Claim, renew, deliver, return or fail
board_say Event stream broadcast
board_dispatch Select machine to create order (dryRun preview; goal must be ≤300 chars; mode: 'maint' is maintenance read-only channel)
board_options / board_retry / board_attach Select model, re-dispatch, bind remote tasks
board_caps / board_assess / board_metrics Machine configuration, local assessment, real-time metrics
sh_run / sh_read / sh_write / sh_list Commands and files, directories (constrained by policies like allowedRoots)

On the panel side: Data goes through Host’s /api/board/ui/*, refreshed approximately every 8 seconds; supports font size adjustment, row expand/collapse for delivery/return, machine cards and desktop pets (standee image can be petImage or default assets/pet.png).

Installation and Enablement

Installation commands must use the original text. Typical CLI path on Windows is as follows; choose one of the three based on source:

$dsh = "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd"

# Local development directory
& $dsh plugin --profile desktop add 'file:D:\gp_video\dsh-job-board'

# From GitHub
& $dsh plugin --profile desktop add 'github:shaot92-del/dsh-job-board'

# From npm (scoped package name)
& $dsh plugin --profile desktop add '@wfcj/dsh-job-board'

If a previously installed unscoped dsh-job-board existed, it should be removed before installing the scoped package, otherwise duplicate routes or panel startup failures may occur:

& $dsh plugin --profile desktop remove dsh-job-board
# Check profile's package.json: bundles and dependencies should no longer contain residual dsh-job-board; if necessary, delete node_modules\dsh-job-board
& $dsh plugin --profile desktop add '@wfcj/dsh-job-board'

After installation, confirm dsh.profile.bundles contains @wfcj/dsh-job-board, and restart DSH (Host-side changes require a restart; only refreshing the page is sufficient when changing client lib/client.js).

To connect to a board already running by others, you can use the included script to write configuration (backup before writing):

pwsh -File scripts\set-team-config.ps1 -Profile desktop -BoardUrl 'http://<host>:8965' -Token '<token>' -Machine '<hostname>' -Role observer

The plugin requires Node >= 22 (see engines in package.json).

Choosing a Board Service

  • Single machine / First trial: Starting from v1.5.0, you can run the included minimal board on 127.0.0.1 with zero configuration (lib/solo-board.mjs), random token, and access limited to the local machine.
  • Multi-machine team: Use the included tools/board_server.py (Python 3), set GP_BOARD_TOKEN, or use scripts/install-board.ps1 to deploy and point boardUrl / token there.

Typical Configuration

Override in id: team within the profile’s cordis.patch.yml. Common Host-side field examples:

- id: team
  config:
    boardUrl: 'http://127.0.0.1:8965'
    machine: 'host'
    token: ''
    autoDispatch: true
    dispatchApproval: auto
    dispatchRole: owner
    workerMode: 'off'
    allowedRoots: []
    shellTimeoutMs: 120000
    maxOutputBytes: 200000

Secondary machines open the worker within the same plugin (no need to install dsh-job-worker separately anymore; must remove the old worker package or set disabled: true first to avoid two workers competing for the same board tasks):

- id: team
  config:
    boardUrl: 'http://<board-host>:8965'
    machine: 'GT14'
    token: '<board-token>'
    dispatchRole: observer
    workerMode: 'on'
    worker:
      pollMs: 2000
      beatMs: 30000
      maxConcurrent: 1
      execCwd: 'C:/work'
      allowlist: []

allowedRoots for sh_* is a path whitelist; an empty list defaults to rejection, and allowAllRoots: true must be explicitly allowed; the documentation suggests reading docs/issue-10/08-exec-policy.md before deployment.

Maintenance read-only troubleshooting example (v2.6.12):

board_dispatch({ machine: 'GT14', mode: 'maint', goal: 'version' })
board_dispatch({ machine: 'GT14', mode: 'maint', goal: '{"verb":"logs","lines":80}' })

Applicable Scenarios and Notes

Suitable for DSH users already using or planning to use “Team Job Boards” for multi-machine task orchestration: to operate the board in the agent toolchain, view tasks and machine status in the desktop client, and have the Host stably complete dispatch:auto and align with remote tasks.

Please note before use:

  • Plugin tools and workers run with current DSH process permissions; sh_run etc. are not constrained by sandbox outside the path whitelist, please review the source code and MIT license yourself before installing.
  • Agent mode relies on DSH providing agentLoop and sessions (documented as 0.2.2+); if the service is missing, the exec path is still usable, but agent tasks may fail with agent-unavailable.
  • The community directory skillhub.cn is an independent site with no official affiliation to DeepSeek / Huafang; this plugin’s star count is based on the directory page (0 in the clues).

Closing

dsh-job-board synthesizes the Job Board HTTP contract, Harness tools, sidebar UI, and Host dispatch into a single client plugin, reducing the cost of manual alignment between DSH and the board during multi-machine collaboration. For further details, refer to the repository README, docs/issue-10/, and CHANGELOG.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye