HuanLinOTO/dsh-plugin-yet-another-subagent 预览 preview

HuanLinOTO/dsh-plugin-yet-another-subagent

可配置子代理profile系统,单一subagent工具加profile参数,附带Web UI设置、实时进度和子代理树功能。

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness (DSH), created to deliver a configurable subagent profile system for DSH users. It exposes only one subagent tool that lets users select different pre-configured subagent profiles via the profile parameter, instead of creating a separate tool for each individual profile. It supports web-based UI configuration, real-time progress display of running subagents (including tool calls, token usage, and activity status), a dedicated subagent tree tab, and click-to-jump navigation to child subagent sessions. It follows a single-bundle, two-entry architecture for separate host and client components.

Users can install this plugin quickly from the public npm registry using DSH's built-in CLI tool, and the recommended installation command is dsh plugin --profile web add @huanlin/dsh-plugin-yet-another-subagent. After installation completes, you only need to restart the DSH web process and hard-refresh your browser page to enable the plugin for use. Users can create, update, and delete custom subagent profiles directly in the web UI's profile editing page, and each profile can be customized with model settings, persona text, tool filtering rules, maximum recursion depth, and background running mode. This plugin is built for DSH users who need to work with multi-layer subagents to complete complex development tasks.

The only runtime dependency required for this plugin is zod, and all development dependencies can be installed with a single pnpm install command ran from the project root. The repository does not declare a specific open-source license, and there are two known public limitations: existing old sessions are not compatible with the new render format, and any changes to the projection schema require a host restart to take full effect. Subagent profile data is persisted by default to $DSH_HOME/settings.yaml, and headless environments without a settings provider will fall back to in-memory only storage.

这是一款专为DeepSeek Harness(DSH)开发的原生子代理插件,提供可配置的子代理profile配置系统,仅对外暴露单一subagent工具,通过profile参数实现不同子代理配置的选择。它支持Web UI可视化设置、子代理运行实时进度(工具调用、token消耗、活动状态)展示、子代理树标签页管理,还支持点击跳转子会话,采用单bundle双入口(host和client)的架构设计。

用户可以通过DSH的命令行工具从npm快速安装该插件,安装后只需重启DSH web进程并硬刷新浏览器页面即可启用。用户可在Web UI的Profile编辑页创建、修改、删除不同的子代理配置,每个配置可自定义模型参数、人设、工具过滤规则、递归深度、后台运行模式等属性。它面向需要在DSH中使用多层级子代理完成复杂开发任务的用户,支持前台运行和后台持续运行两种模式。

该插件的唯一运行时依赖是zod,开发依赖可通过pnpm install一键安装,开源许可证未做声明,目前存在两个已知限制:旧会话不兼容新的渲染格式,projection schema变更后需要重启主机才能生效。Profile数据默认持久化存储在$DSH_HOME/settings.yaml中,无头无settings provider的环境会回退到仅内存存储状态。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 18 stars - an early-stage project星标 18,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add @huanlin/dsh-plugin-yet-another-subagent

把 HuanLinOTO/dsh-plugin-yet-another-subagent 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-plugin-yet-another-subagent card

yet-another-subagent

npm version

可配置的子代理(subagent)profile 系统,提供单一 subagent 工具 + profile 参数选择,支持 Web UI 设置、实时进度展示(工具调用/token/活动)、子代理树标签页、点击跳转子会话。

架构

单 bundle,双入口(host . + client ./client)。

不发布 ./invariant:本插件的工具/RPC/projection 注册均无独立可分歧的运行时观察(HMR 安全性由测试证明),无内容可校验——按 DSH 0.1.2-rc.1 收紧后的 invariant 规则(禁止空 installer)省略该入口及其全部接线。

  • Host 半(src/index.ts):
    • 单一 subagent 工具,通过 profile 枚举参数选择 profile(非每 profile 一个工具)
    • 复用官方 spawn provider,支持前台(foreground)和后台(continuable / one-shot)两种模式
    • Profile 状态通过 settings seam 持久化到 $DSH_HOME/settings.yaml
    • RPC CRUD:ya-subagent.profiles.* / .tools.list / .sessions.repair(/api 上的 exact Fetch route,经 connection.fetch.register 注册)
    • 两个 session projection:subagentProfile(父会话 childId→profileId 映射 + callId→childId)+ yaSubagentProgress(子会话实时 toolcall/token/活动状态);wire view 已做引用记忆化,适配 dsh 0.1.2-alpha.3 起 change feed 的 Object.is 下发门控(内容不变即静默)
  • Client 半(src/client/index.ts):
    • settings.section — Profile 编辑页
    • tool.call.toolview(key subagent)— SubagentCard 工具调用卡片
    • conversation.view(id subagent-tree)— SubagentTreeView 子代理树标签页

cordis.patch.yml 只禁用官方 tool-subagent(spawn 路径),保留 tool-subagent-fork(无名称冲突)。

配置

# cordis.patch.yml
- id: tool-subagent
  disabled: true

- insert:
    - id: yet-another-subagent
      name: '@huanlin/dsh-plugin-yet-another-subagent'
      config:
        profiles:
          - id: general
            label: General
            model: { kind: 'auto' }
            persona: { kind: 'inherit' }
            toolFilter: { kind: 'none' }
            maxDepth: 3
            backgroundMode: continuable
            builtin: true
        generalFixed: true

Profile 字段

字段 类型 默认值 说明
id string(小写字母/数字/连字符,1-32 字符) — Profile 唯一标识
label string — 显示名
model.kind 'auto' | 'manual' — auto 继承父代理模型;manual 指定
model.provider string '' Provider(仅 manual 时使用)
model.model string '' 模型 ID(仅 manual 时使用)
persona.kind 'inherit' | 'custom' 'inherit' inherit 跟随部署人设;custom 自定义
persona.text string '' 自定义人设文本(仅 custom 时使用)
toolFilter.kind 'none' | 'allow' | 'deny' 'none' 工具过滤策略
toolFilter.tools string[] [] 过滤工具列表
maxDepth number 3 最大递归深度
backgroundMode 'continuable' | 'one-shot' 'continuable' run_in_background: true 时的后台策略
builtin boolean false 是否为内置 profile(仅展示用)

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev cc-notify-hooks 下一个 Next multisim-mcp →