DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

@playform/ets-plugin-dsh-queue

Ets Plugin Dsh Queue

subagent-queue 插件:一个 DeepSeek Harness 插件,将子代理工作转化为 QUEUE(任务作为数据,而不是代理作为上下文)。用户的容量模型就是规则:MAIN 对话最多容纳 10 个子代理(池中预留的槽位),wh

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add @playform/ets-plugin-dsh-queue@0.2.1
README兼容性版本

兼容性与来源证明

Ets Plugin Dsh Queue 以 @playform/ets-plugin-dsh-queue 发布,当前版本为 0.2.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
npm
Registry 更新时间
2026/11/4

版本

0.2.1stable
2026/10/28
0.2.0stable
2026/10/25
0.1.0stable
2026/10/25

相关插件

正在加载相关插件…

最新版
0.2.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
164.6 kB
文件数
64
Surface
any
许可证
CC0-1.0
发布源
npm
GitHub
★ 2
周下载
256
安全扫描
✓ v0.2.1 扫描通过
最近提交
2026/11/4
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

README

@playform/plugin-dsh-queue

v0.2.1 - UNPUBLISHED - plan: SUBAGENT-QUEUE-PLUGIN

The role

The subagent-queue plugin: subagent work becomes a queue - the tasks as data, not the agents as contexts.

The third orchestration-layer plugin, next to the batch-state and routing-enforcer plugins.

Plan: Documentation/Plans/SUBAGENT-QUEUE-PLUGIN.md.

The model

IDLE (the harness's own)QUEUE (this plugin)
What holds the taskthe agent's contextthe queue store (data)
The slot costone agent per taskdata only; agents spawn at dispatch
The resumesend_message activationthe dispatcher's next-slot assignment

The user's capacity model is the law:

  • Main pool: 10.

    The main conversation holds up to 10 subagents (reserved slots, IDLE-held lanes included).

  • Child cap: 2.

    Every spawned agent's own child fan-out is capped at 2 - the two-active regime, so the workflow fan-out flood is prevented structurally.

  • The harness's own maxActiveSubagents knob stays the backstop, and the plugin enforces its model at the dispatch level.

What it does

  1. Enqueue.

    A task carries the id, the self-contained spec (never altered), the role for the routing, the priority, the dependencies, the state, and the result hash (queue_enqueue tool or dshQueue.Enqueue).

    No agent context is consumed while it waits.

  2. Dispatch.

    The deterministic order is dependencies satisfied first, then priority descending, then FIFO by enqueue sequence (dshQueue.Dispatch).

    A seat is taken from the agent's pool, and the state flips to dispatched.

  3. Spawn.

    With autoSpawn on (off by default), an assignment actually starts a subagent through the harness's own subagent service (ctx.subagents.startActivation) - never a private spawn, never a shell.

    The spec goes to the child verbatim, the resolved route goes as its agentOptions, the parent is the exact live Agent from ctx.agents.currentInitiator(), and the child's own result settles the task (completed, or failed for any other stop reason).

  4. Idle-Slot Automation.

    With autoDispatch and autoSpawn both on, an enqueue or a released seat pulls the next queued task into the free slot - the queue runs itself.

  5. Routed Dispatch.

    When the routing enforcer (dshRoute) is present, the route is resolved per the user's policy, silently; absent, the dispatch proceeds unrouted (a contained skip).

  6. Settle.

    The seat is released and the journal records the flip (Complete / Fail / Interrupt), and Interrupt also fires the spawn's own abort signal, canceling the child.

  7. Restart Reconcile.

    The caller hands back the previous process's Snapshot().tasks (dshQueue.Reconcile(persisted?)), and every active task whose agent is not live is requeued once (attempts 0 -> 1) and failed honestly on the second detection - never silently dropped.

  8. The Board.

    The queue's state compiles into the batch-state context block as one TOC line: QUEUE: <n> pending - next: <id|none> - running: <m>/<limit>.

  9. The Journal.

    Every state flip writes a best-effort P5 journal record plus one byte-stable ledger line - the restart reconciliation's raw data.

The service

The plugin registers the dshQueue service:

MethodMeaning
Enqueue(input)Queue a task (spec verbatim).
Dispatch(agent?)The deterministic next assignment (main pool by default).
Capacity(agent?)The free slots for the main pool or an agent.
Start(id) / Complete(id, hash?) / Fail(id) / Interrupt(id)The state machine (settle releases the seat).
Reconcile(persisted?)The restart reconcile; the report of requeued/failed ids.
Flush()Join the in-flight spawns (tests/reconcile; never a hot-path wait).
Board() / Snapshot()The compiled line / the full queue record.

The configuration (all volatile)

FieldDefaultMeaning
enabledfalseMaster switch (ships disabled).
log / logFiletrue / ~/.dsh/playform/ets-plugin-dsh-queue.logThe plugin's own ledger.
capacity.main / capacity.child10 / 2The user's capacity model.
autoDispatchtrueFreed slots trigger the next assignment.
routedDispatchtrueConsult dshRoute at dispatch when present.
autoSpawnfalseActually start the subagent (the approval posture; see below).
spawnProviderspawnThe harness subagent backend name selected at spawn.
policy.*see belowThe D6 per-action allowlist (the OUTER gate).

autoSpawn (the approval posture)

autoSpawn is the switch between assigning and launching.

It ships false on purpose: a spawn is a privileged action (D6 of the completion spec), so the queue assigns seats and ledgers until the user turns the launch on.

With autoSpawn: false there is no ctx.subagents call and no spawn ledger line, and the idle-slot automation is off too (an automatic assignment that the plugin cannot launch would strand the task with a held seat).

With autoSpawn: true the dispatcher launches, the child's result settles the task, and a released seat pulls the next queued task.

The policy block (D6) - the outer gate

The config carries the shared per-action allowlist (policy: Policy(), composed from the factory's block), mapped to State.Allow:

actiondefaultactiondefault
readautowriteapprove
indexautocommitapprove
recordautospawnapprove
suggestautomessageauto

The policy is the outer gate, and autoSpawn is the inner one.

An approve verdict for spawn refuses the launch even with the knob on: the task stays dispatched with its seat held, and the ledger records the byte-exact spawn held <id> (policy spawn=approve) line - the task waits for the user (flip policy.spawn to auto to let the next assignment launch, or settle it explicitly with Complete/Fail/Interrupt).

The precedence is policy approve > knob: the knob can never widen an approve verdict, while a knob that is off still refuses on its own and writes no line at all.

The block is one volatile object, so a policy flip is hot-editable without a remount, and a resolved pack's policy section overrides the defaults per action (the wiring is the next refinement).

The ledger lines of the spawn (documented in SCHEME.md section 3): spawned <id> -> <child>, spawn held <id> (policy spawn=approve), spawn skipped <id> (<reason>), spawn failed <id> (<error>), requeued <id> (<agent> gone).

The plan

The spawn, the idle-slot automation, and the restart reconcile are implemented and smoke-arbitrated (Source/Test/Spawn-And-Reconcile), and the policy gate and its precedence are arbitrated by Source/Test/Policy-Defaults.

The durable queue store is the remaining piece: the reconcile takes the caller's persisted record because the family has no storage domain yet (the wave-3 storage migration is its home).

A spawn skipped task keeps its seat until the orchestrator settles it - an honest gap, never a silent drop.

  • SUBAGENT-QUEUE-PLUGIN - the queue model.

License

CC0-1.0.

相关插件

继续浏览 agents-orchestration 分类下经过校验的插件。

Hindsight Coding Agents@vectorize-io/hindsight-coding-agents面向编程代理的仅反思式 Hindsight 长期记忆(可插拔支持多种运行框架:opencode、……),自动在后台导入(无需设置 CLI)。Liangshen@linxin666/dsh-liangshen适用于 dsh Web GUI 的 LiangShen (梁神) agent preset 及其 composer lever。主机部分在激活时将内置 preset 声明到 harness 的 agent-preset 注册表中(declare = enabled),因此无需写入任何内容,preset 即可供新会话选择Remote Bridge@linxin666/dsh-remote-bridgeDSH 远程桥接:主机端通过唯一且精确的 /ios/v1 WebSocket 路由提供协议 v1——会话列表、历史记录基线、提示、包含工具活动的实时回合增量、中断以及进程内代理审批——连接到通过一次性配对的设备Ds Botds-botDS Bot:DeepSeek Harness 的一组长期运行的 Bot,支持主 Bot、Bot 间消息和群聊