Introduction¶
When doing local development or running resident scripts with DeepSeek Harness (DSH), background tasks in a session often only live in the current process: job_list / job_output / job_kill provided by @deepseek-ai/dsh-tool-jobs only handle this process, this session, and jobs launched by the agent itself. Once the host exits, the registration breaks; the Python dashboard you started manually and the monitoring services scattered across various terminals have no unified programmable interface. Switch to another conversation, and to verify which services from the last session are still running, you can only rely on netstat and memory.
dsh-service-console is a DSH Cordis plugin (Category: Workflow) submitted by community maintainer XX-Q. It consolidates “local services + background tasks” into a disk-persisted task table, complete with a Web GUI, model tools, and a task-console coding specification skill. Below is the explanation of its positioning, capabilities, installation, and usage.
What is it¶
One sentence: A cross-conversation persistent task table—a table that clearly shows what is running, what stopped after running before, and what never ran, with support for one-click start/stop.
- Maintainer: XX-Q
- Repository: https://github.com/XX-Q/dsh-service-console
- Community Directory: https://www.skillhub.cn/plugins/XX-Q/dsh-service-console
- License: MIT (consistent with README and package.json)
- Current package version: 1.0.1 (based on repository
package.json) - Platform: README states currently only tested on Windows 10/11; Linux/macOS requires self-replacement of start/stop and scanning implementations
Task table persistence path: $DSH_HOME/storages/service-console/registry.json.
Difference between DSH built-in job tool and dsh-service-console¶
| Dimension | DSH built-in jobs tool | dsh-service-console |
|---|---|---|
| Lifecycle | Tied to this process, this session | Persisted to JSON disk, queryable across conversations |
| Manually started resident services | Cannot be registered | register + seven metadata fields |
| Status semantics | Focus on job status | running / stopped-before / never (and unknown when indeterminable) |
| Interface | No dedicated console | /service-console + bottom-right “Task Table” modal |
Core Features¶
Task Table and Three States¶
Each task carries seven metadata fields: name, description, cwd, command, stopCommand, port, kind, written to registry.
Health check is one of three: TCP port, PID alive, or DSH job status mirror. Based on this, we get:
running: Health check passedstopped-before: Previously hadlastSeenRunningAt, current health check failednever: Never observed running after registrationunknown: Unable to judge due to missing fields like port and PID (logs will prompt for completion)
Start, Stop, and Health Check¶
- Start: On Windows, use
.ps1+ WMIWin32_Process.Create, detaching from the host Job, so the process persists after host restart (README notes thatdetached: trueis reclaimed by the Job within the DSH host, so this path is not used). - Stop: Execute the task’s
stopCommandfirst, fallback totaskkill /T /F. - Port Scanning: The console can scan local listening ports to facilitate one-click registration of unknown services.
GUI and Pages¶
- Bottom-right “Task Table” button: A modal on the current page (closes with Esc), can be opened as fullscreen, new page, or new tab; shortcut
Alt+Shift+S. - Full page:
http://127.0.0.1:3080/service-console - Embedded modal:
http://127.0.0.1:3080/service-console?embed=1 - Filtering: All / Running / Stopped Before / Never; supports log viewing.
DSH Job Consolidation¶
Automatically consolidates session background tasks still running; historical tasks can be imported as needed. Stopping uses ctx.jobs.kill. job type tasks can only be stopped, not started (must be started by tools within the session); for start/stop capability, they should be registered as command.
Interfaces for Agent and Scripts¶
Model Tool service_console: list, register, start, stop, restart, remove, scan, adopt_job, logs.
HTTP API (prefix /service-console, JSON), for example:
GET /api/state: Task table, summary, visible jobs, recent actions, scan resultsPOST /api/entry/add,update,start,stop,restart,logs,removePOST /api/scan,/api/job/adopt,/api/job/kill,/api/jobs/import,/api/reset
task-console skill¶
After installation, it appears in ~/.dsh/skills/task-console/. Constraints include: all seven fields present; resident scripts follow nine rules (idempotent start, PID file, health check, graceful exit, fixed port, etc.). Details see skills/task-console/SKILL.md in the repository.
Installation and Enablement¶
Requirements: DSH 0.2.1-rc.2 or higher (Cordis plugin system), Node 22+, Windows 10/11 (consistent with README).
Install from GitHub (Recommended)¶
Execute in PowerShell:
dsh plugin --profile web add github:XX-Q/dsh-service-console
After installation, open the Plugins page of the Web GUI and enable the dsh-service-console bundle; or write to the profile’s package.json:
{
"dsh": { "profile": { "bundles": ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "dsh-service-console"] } }
}
The bundle order can be appended at the end of the existing profile.
Installation Verification¶
Invoke-RestMethod http://127.0.0.1:3080/service-console/api/state | Select-Object -ExpandProperty summary
If the returned summary contains total, running, stoppedBefore, never, and the “Task Table” appears in the bottom-right corner of the GUI, it means the plugin is connected to the web service.
For local junction development installation, see “Method B” in the README; this is not expanded here.
Typical Usage¶
1. Using the GUI¶
Click “Task Table” to open the modal; the toolbar can refresh, fullscreen, new page, close. Alt+Shift+S can be called up anytime.
2. Register and manage using the Model Tool¶
Registration example (field names consistent with README):
service_console(action="register",
name="本地看板 :3000",
description="本地看板;自带 .dashboard.pid 复用",
kind="command",
command="python run_dashboard.py",
stop_command="python stop.py",
cwd="D:\\proj\\dashboard",
port=3000)
Afterward, you can use actions like start, stop, restart, logs from the same tool.
3. Write the table using HTTP¶
For example, POST /service-console/api/entry/add submits {name, kind, command, stopCommand, cwd, port, description}; scripts can read/write directly without going through conversation.
The repository also provides skills/task-console/scripts/register.ps1, used to complete registration, start, and self-check in one line.
Applicable Scenarios and Notes¶
Who is it for
- Running multiple listening port services on local Windows for a long time, while wanting DSH sessions to query and start/stop the same set of registrations.
- Wanting agents to write resident scripts according to
task-consolespecifications to reduce the situation where “process started but cannot be found in the conversation”.
Boundaries and Risks
- The plugin runs with the permissions of the current DSH process; before installation, read the source code and MIT license to ensure
command/stopCommandare not misused. - The task table is a single JSON file, concurrent writes are merged, and no cross-machine synchronization is performed.
- Non-Windows environments are noted in README as untested; start/stop and scanning need community PR adaptation.
- The community directory SkillHub has no official affiliation with DeepSeek / Synflow; the DSH ecosystem philosophy is “Everything is a plugin”; information in this article is based on the GitHub README and release packages.
Conclusion¶
dsh-service-console fills the gap of DSH’s built-in job tool in “cross-session, disk-persisted, local service registration”: a task table, three-state semantics, GUI and service_console / HTTP dual-channel operations, and bundled task-console skill to constrain script writing.
- Directory page: https://www.skillhub.cn/plugins/XX-Q/dsh-service-console
- Source code and documentation: https://github.com/XX-Q/dsh-service-console