dshbase

插件目录 / Automation / dsh-subagent-max

dsh-subagent-max

已验证 · 实测可装 aaravarr

✓ 持续维护 基于 6 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

4Stars
0Forks
0未关闭 issue
JavaScript语言
2026-08-14最近推送
跨平台平台

功能简介

DSH插件:子代理模型工具+多面板实时查看器

✅
我们的评价
可用 — 实测通过,早期项目

DSH插件:子代理模型工具+多面板实时查看器 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-subagent-max

English | 中文

npm
license

Multi-panel live subagent viewer for DeepSeek Harness (DSH), plus a subagent_with_model tool for per-call model/provider override.

Screenshots

Subagents tab — a card grid grouped into active / inactive and sorted by last activity.

Subagents tab

Floating viewer panel — a draggable panel streaming a subagent's live output: task, reasoning, tool calls, and text.

Floating viewer

A two-face DSH plugin:

  • Host face (lib/index.js) — a Cordis plugin that registers the subagent_with_model tool, a thin wrapper over ctx.subagents that forwards model / provider into the child's agentOptions.
  • Client face (lib/client.js) — a Web UI that renders every subagent as a draggable, resizable floating panel with live token-by-token output, plus a Subagents tab with a card grid.

Features

  • Per-call model / provider override — delegate to a subagent and pick its model explicitly.
  • Multi-panel live viewer — open several subagent panels at once; each streams output in real time.
  • Rich block rendering — prompt block, reasoning (think) blocks, tool-call cards with input/output, streaming shimmer, markdown.
  • Subagents tab — card grid grouped into active / inactive and sorted by last activity; shows model, tokens, steps, context % and relative update time.
  • Drag to pop out — drag a card onto the canvas to open its panel exactly where you drop it (with a ghost preview).
  • Notifications — side-top toasts when a subagent starts or receives a message.
  • i18n — zh / en, switchable from DSH settings.

Install

dsh plugin --profile web add @aaravarr/dsh-subagent-max

or, manually, place the package under <profile>/node_modules/@aaravarr/dsh-subagent-max/ and add the entry to cordis.patch.yml (see Config).

Config

- insert:
    - id: dsh-subagent-max
      name: '@aaravarr/dsh-subagent-max'
      config:
        subagentProvider: spawn        # spawn | fork | acp
        toolName: subagent_with_model
        backgroundMode: continuable    # one-shot | continuable
        maxDepth: 3
Field Type Default Description
subagentProvider string spawn Subagent transport provider.
toolName string subagent_with_model Model-facing tool name; must be unique among loaded tools.
backgroundMode string one-shot continuable returns a durable subagent id; one-shot runs foreground.
maxDepth number 3 Absolute delegation-depth cap for children (0 forbids further delegation).

Usage

Ask the model to delegate with an explicit model:

Start a subagent with deepseek-v4-flash to review this repo's test coverage.

Tool parameters:

Arg Type Required Notes
model string yes Child model id (e.g. deepseek-v4-pro, deepseek-v4-flash, k3-256k).
provider string no LLM provider route; omitted = inherit the parent's provider.
description string yes Short (3-5 word) task label.
prompt string yes Complete, self-contained task.
run_in_background bool no Background routing; default follows backgroundMode.

Known Limitations

  • Model display is derived from the session's request/header; it can be absent for some children.
  • Last-activity time is tracked client-side and cached in localStorage; the first open after a fresh load may fall back to the session's updatedAt.
  • Client UI targets the web platform only.

Development

pnpm install
node --check lib/index.js lib/client.js

License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-subagent-max」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:aaravarr/dsh-subagent-max

Headless(CLI)profile:

dsh plugin --profile headless add github:aaravarr/dsh-subagent-max

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

使用场景

自动化一项重复工作——调度、串联任务或响应事件——不用你亲手启动。

适合谁

有周期性工作、想 cron 式无人值守而非手动触发的人。

二次开发建议

触发器和任务模板是缝——加事件驱动或文件监听触发,以及更丰富的流程编排。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Automation 里更多

浏览全部 7797 个插件 →