andrewngg / @local/dsh-super-butler
多设备 AI 管家:母机统一管理设备能力申报、在线检测与任务路由;支持 CLI、ComfyUI、Mika 手机工作机;附 Android APK 与 DeepSeek Harness 插件。Multi-device AI butler for DSH.
About this plugin
Written by the registry from verified metadata, not from the README.
@local/dsh-super-butler is a DSH plugin published from the dsh-plugin package in the andrewngg/dsh-superagent-battlestar repository.
Capabilities and topics
@local/dsh-super-butler
DSH bundle for the BattleStar project. It registers a BattleStar sidebar panel and main page inside the Harness Web UI, manages the local butler Hub process, and stores private account credentials through the Harness credential service.
- Host: starts/detects
hub/server.js, proxies snapshot/task APIs under/super-butler/api/*, reads/updates settings, resolves credentials by reference. - Client: sidebar icon + full page with live device/task status, command composer and a settings form.
- Install:
plugin_manager→install_bundlewith this directory as target.
Task console
Click a task title, its ▸ arrow, or the 详情 button to expand the detail panel. The collapsed row and the detail panel both show the full task ID with a copy button; the detail panel adds status/device/attempts/timestamps, the route reason and the recent event timeline.
Manual status changes from the detail panel:
- 标记完成 / 标记失败 force a terminal status through the Hub
external-resultadmin API. An active task (queued/assigned/running/waiting) is cancelled on the device first, so the pending command is removed and no duplicate work keeps running. An optional note becomes the new output/error; with a blank note the previous output is preserved, and the note is recorded as the task output/error (the Hub event message is fixed:已同步 Mika 最终结果). - 重新排队 re-queues failed/timeout/cancelled tasks; 取消 cancels active tasks.
- Agnes plan parents (
isPlan) derive their status from subtasks, so they only expose 取消.
继续 always opens an in-panel dialog (Electron does not implement window.prompt), so follow-up tasks,
Mika answers, cancel/delete confirmations and manual status notes all work in the DSH desktop shell.
Required inputs show an inline error instead of silently doing nothing.
Host route for this feature: POST /super-butler/api/tasks/:id/status with
{ status: "completed" | "failed" | "cancelled" | "queued", note?: string }. The Host root
(GET /super-butler/) advertises features: ["task-status-manual", "task-status-cancel-first"]; the client
reads that flag and keeps 标记完成 / 标记失败 disabled (with a restart hint) on a Host that still runs the old
logic. Client changes apply after refreshing the DSH page; reload the plugin or restart DSH to pick up Host changes.
Mind tab
The 心智 (Mind) tab edits the butler soul and workflow (Soul / Skill) that used to live on the Web
console page. The Hub still owns the data (state.json.mind); the plugin Host only proxies it:
GET /super-butler/api/mind→ HubGET /api/mind({ mind, hubTime }).PATCH|PUT /super-butler/api/mind→ HubPATCH /api/mind; body acceptssoul,skill,resetSoul,resetSkill(explicit text wins over reset, missing fields keep their current value).- The tab shows both texts with character limits (6000 / 12000), a default/custom badge, save, per-field reset and reset-all. Host route changes need a DSH restart; client changes only need a page refresh.
Tests
npm test # node --test --test-isolation=none "test/*.test.mjs"
Node ≥ 22.8 is required for the --test-isolation=none flag (the sandbox cannot spawn child test processes).
The tests load client.js in a VM with a stubbed React (render smoke tests for TaskRow, TaskDetail,
Dialog, ConsoleTab, MindTab) and exercise the Host /status route against a stubbed Hub, including the
cancel-before-finish flow for active tasks and the plan-parent rejection.
Badge
Listed here? Link back with this badge — paste the snippet into your repository README.
[](https://dsh-plugin.com/plugins/andrewngg/dsh-superagent-battlestar/dsh-plugin)