DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

Tool Offload — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

@yadsh/dsh-tool-offload

Tool Offload

在大型、低判断要求的 DeepSeek Harness 工具结果进入主模型上下文之前,将其转交给小型一次性工作代理处理

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

npx -y @deepseek-ai/dsh plugin --profile web add @yadsh/dsh-tool-offload@0.1.10
README兼容性版本

兼容性与来源证明

Tool Offload 以 @yadsh/dsh-tool-offload 发布,当前版本为 0.1.10。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

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

版本

0.1.10stable
2026/10/11
0.1.9stable
2026/10/8
0.1.8stable
2026/10/8
查看其余 8 个版本收起版本
0.1.7stable
2026/10/4
0.1.6stable
2026/9/22
0.1.5stable
2026/9/22
0.1.4stable
2026/9/17
0.1.3stable
2026/9/15
0.1.2stable
2026/9/13
0.1.1stable
2026/9/12
0.1.0stable
2026/9/10

相关插件

正在加载相关插件…

最新版
0.1.10
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
156.1 kB
文件数
79
Surface
any
许可证
MIT
发布源
npm
GitHub
★ 2
周下载
554
安全扫描
✓ v0.1.10 扫描通过
最近提交
2026/10/12
查看源码 ↗项目主页 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Headless@deepseek-ai/dsh-headlessdsh one-shot bundle:基于 dsh-base 的直接核心 Agent/Session 运行器,不包含 Host、HTTP 或浏览器层Experimental Ralph Bundle@deepseek-ai/dsh-experimental-ralph-bundle使用全新代理执行明确请求的重复工作。Hindsight Coding Agents@vectorize-io/hindsight-coding-agents面向编程代理的仅反思式 Hindsight 长期记忆(可插拔支持多种运行框架:opencode、……),自动在后台导入(无需设置 CLI)。Experimental Agent Team Web Profile@deepseek-ai/dsh-experimental-agent-team-web-profile用于 Agent Teams Remote 和 UI 插件的实验性 Web 配置层

README

@yadsh/dsh-tool-offload

DeepSeek Harness plugin that offloads large, low-judgement tool results to small one-shot worker agents before they enter the main model context — cutting frontier-model tokens and cost on I/O-heavy workflows without touching how your agent picks tools.

Features

  • Result processing, not tool replacement. The original tool executes normally under the parent agent's permissions; the plugin only rewrites the model-facing content of successful results in tools/post-execute. The canonical value stays untouched for programmatic consumers.
  • Deterministic routing. Allowlist/denylist tool patterns, byte and estimated-token thresholds, and ordered selection rules pick the worker and prompt profile — no extra LLM in the routing path.
  • Cheap no-tools workers. Workers start through ctx.subagents.start on a spawn-style provider with toolFilter: { allow: [] } — zero inherited model-facing tools, zero authority expansion — and an exact cheap model via agentOptions.
  • Bounded parent context. The worker receives the latest user task (byte-capped), the tool name, and the serialized arguments behind explicit <PARENT_TASK> / <TOOL_CALL> / <TOOL_RESULT> data boundaries, with a prompt that treats tool output as untrusted data.
  • Fail-open everywhere. Worker failure, timeout, cancellation, refusal, empty answer, or an answer that is not actually smaller — every failure mode falls back to the original result (fallback.mode: original by default; truncate and error modes available).
  • Recursion-proof. Workers carry no tools and delegated child sessions are never offloaded, so an offload worker cannot spawn another offload worker.
  • Bounded fan-out. Non-blocking per-agent and global worker budgets; an exhausted budget routes results through instead of queueing.
  • Observability. Structured events (offload.started / offload.completed / offload.skipped / offload.worker_failed) with byte counts, reduction ratio, and skip reasons — never raw tool content — plus in-memory counters exposed through ctx.toolOffload.stats().

Install

Install the published npm package by name:

dsh plugin --profile <profile> add @yadsh/dsh-tool-offload

Requires a DSH release in the >=0.1.7-rc.2 <0.2.0 range with a subagent provider that supports tool restrictions (the in-process spawn provider).

Configuration

All keys are optional; defaults in parentheses.

OptionTypeDefaultDescription
enabledbooleantrueMaster switch; false passes every result through untouched.
routing.modeallowlist | denylistallowlistallowlist offloads only routing.allow tools; denylist offloads everything except routing.deny.
routing.allowstring[]read, grep, search, web_fetchTool names matched exactly or by prefix* glob.
routing.denystring[]bashTools never offloaded; wins over allow.
routing.thresholds.minBytesnumber24000Byte threshold; a result qualifies when either threshold is exceeded.
routing.thresholds.minEstimatedTokensnumber6000Cheap characters / 4 token estimate threshold.
routing.rulesRule[][]Ordered rules; first match picks the worker/prompt profile or forces passthrough. Each rule: id, match.tools, match.minBytes, action (offload/passthrough), worker, prompt.
workersRecord—Named worker profiles merged over the default profile.
workers.<name>.subagentProviderstringspawnDSH subagent provider; must support tool restrictions.
workers.<name>.provider / .modelstring | nullnullModel route for the worker; null inherits the parent agent's route. Configure a cheap model here.
workers.<name>.maxTokens

Built-in routing rules map the default tool candidates to bundled prompt profiles: web_fetch → web-reader, grep/search → search-results, read → code-reader; everything else uses generic.

Example cordis.patch.yml profile override:

- override:
    - id: dsh-tool-offload
      config:
        workers:
          default:
            provider: zai
            model: glm-4.5-air
            maxTokens: 4000
        routing:
          allow:
            - read
            - grep
            - web_fetch

Compatibility

  • DeepSeek Harness >=0.1.7-rc.2 <0.2.0 (tested on 0.1.7-rc.2); requires the tools/post-execute seam and the subagents/start service with a tool-restriction-capable provider — see compatibility.json.
  • Node.js ^22.19.0 || >=24.0.0.
  • Only top-level ordinary tool results are offloaded; Code Mode (run_code) nested dispatches pass through untouched.

Development

pnpm nx run dsh-tool-offload:lint typecheck test build
pnpm nx run dsh-tool-offload:verify   # package gate

The full design document (routing policy, safety model, phased plan) lives in docs/specs/design.md; the behavioral contract is SPEC.md.

Credits

Inspired by Spotify's portal-ai-plugins/shunt, which routes I/O-heavy work to cheaper worker models. This project is a DeepSeek Harness-native implementation and does not require Spotify Portal or AiKA. See NOTICE.md.

License

MIT

number | null
4000
Worker output token cap.
workers.<name>.timeoutMsnumber45000Bounded worker timeout; on timeout the original result is restored.
defaultWorkerstringdefaultWorker profile used when no rule selects one.
context.includeLastUserMessagebooleantruePass the latest user task message to the worker.
context.maxParentContextBytesnumber12000Byte cap for the extracted parent task.
payload.maxBytesnumber300000Results larger than this pass through (chunking is planned).
validation.maxOutputBytesnumber20000Worker answers above this size are rejected.
validation.requireReductionbooleantrueReject answers that did not actually shrink the result.
validation.minReductionRationumber0.15Required relative shrink (0.15 = at least 15 % smaller).
fallback.modeoriginal | truncate | errororiginalWhat replaces the result when an offload fails.
annotation.enabledbooleanfalsePrefix transformed content with [offloaded result].
concurrency.maxWorkersPerAgentnumber3Per-agent worker budget (non-blocking).
concurrency.maxWorkersGlobalnumber8Global worker budget (non-blocking).
promptsRecord—Custom "Your job" prompt sections; generic, code-reader, search-results, web-reader, and logs are bundled.
telemetry.enabledbooleantrueStructured event logging; counters stay on either way.