sandbase-harness
sandbaseai
Local-first, self-hosted AI agent runtime and MCP bridge with sandboxed sessions, memory, credentials, audit/replay, and a local Console.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:bigfurma-bot/dsh-web-restart
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
One-click restart for the DeepSeek Harness Web UI — a small Restart DSH control pinned to the bottom-right corner of Settings ▸ General, with an arm-to-confirm guard and a live liveness dot.
Linux port of 1123762794/dsh-web-restart, reworked for the web-profile plugin layer.
GET /dsh-health every 5 s: green = harness online, red = offline/restarting.![]() |
![]() |
![]() |
| Piece | File | What it does |
|---|---|---|
| Host | host.js |
Registers GET /dsh-health and POST /restart-dsh on the webServer; responds before restarting so the UI can render state |
| Restarter | restart-dsh-web.sh |
Two phases in one file: outer re-execs itself into a fresh setsid session and exits (nothing for executor teardown to kill); inner traps TERM/INT/HUP, kills the source-checkout instance, waits for port 3080 to close, relaunches pnpm dsh web detached |
| Client | client.js |
Factory-form bundle registering the Settings ▸ General item |
no-cors POSTs at /restart-dsh are rejected with 403 (drive-by restart-DoS protection; upstream had none).git clone https://github.com/bigfurma-bot/dsh-web-restart.git /path/to/dsh-web-restart
Add the dependency (link: so future edits need no reinstall):
// ~/.dsh/profiles/web/package.json
{
"dependencies": {
"@deepseek-ai/dsh-web-restart": "link:/path/to/dsh-web-restart"
}
}
Add the loader row:
# ~/.dsh/profiles/web/cordis.patch.yml
- insert:
- id: web-restart
name: '@deepseek-ai/dsh-web-restart'
Then:
cd ~/.dsh/profiles/web && pnpm install
And restart dsh web once manually — after that, the button in Settings ▸ General handles every restart itself (~15–20 s downtime; sessions persist on disk).
Paths are constants at the top of each file — adjust to your machine:
host.js: SCRIPT (restarter path), LOG (log file)restart-dsh-web.sh: LOG, kill patterns, and the checkout dir + launch command at the bottom (default: cd /home/prime/deepseek-harness && pnpm dsh web)Requirements: Linux, DSH web profile (bundle-layer plugins), pnpm on PATH.
MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: restart。