dsh-free-subagents: Routing Subagents and Agent Teams with Free Models in DSH

Introduction

In DeepSeek Harness (DSH), when performing complex tasks, the main dialogue retains your selected model, while the actual usage is consumed by subagents, Agent Teams, and nested subtasks. If every sub-request inherits the main model or requires manual model switching for different tasks, cost and quota management will quickly become chaotic.

dsh-free-subagents, released by community maintainer boldandigital, belongs to the workflow plugin category. It maintains a set of explicitly confirmed free routes, rotating within the pool based on task preferences, response time, and reliability; when quota or rate-limiting fails, it switches to the next available route before output begins, and defaults to not silently falling back to paid models. Below is an introduction to its positioning, installation, and daily usage.

What is it

In short: Selects connected free-tier models for subagents and Agent Teams under the main dialogue. The router automatically selects routes and handles failover, while recording cooldown and statistics in a local ledger.

  • Maintainer: boldandigital
  • Current Package Version: 0.1.9 (Source: package.json)
  • License: MIT
  • Compatibility: DSH 0.2.2-rc.3 and higher (verified on 0.2.2-rc.3); macOS / Linux / Windows; Node 22+
  • Community Directory: https://www.skillhub.cn/plugins/boldandigital/dsh-free-subagents
    In the ecosystem, DSH emphasizes “everything is a plugin”; SkillHub is an independent community directory with no official affiliation with DeepSeek / Hypi.

The plugin does not store API keys itself nor does it read account billing information; the actual free quota depends on the configuration of each provider and platform rules you connect in DSH’s “Models”.

Core Features

Model Selection & Main Dialogue

A Free Subagents Router (automatic for subagents) with a descriptive label will appear in the model selector. Its purpose is to automatically route subagents and Agent Teams; you do not need to select it specifically to enable the plugin. The main dialogue continues to use your usual main chat model.

Sub-requests use the free-auto/auto route via the public Agent API; input is not silently truncated; answers that have already partially outputted are not stitched together or continued by another model.

Free Routing Pool

  1. First, connect providers in the DSH standard Models settings.
  2. In Settings → Free Subagents or Plugins → Free Subagents, select providers and models for the routes in the pool, confirm they belong to free allocations, and add and save them.

Supported free pool sources (as per original text):

  • OpenRouter: Accepts models with IDs ending in :free only.
  • Google, NVIDIA: You must actually use their free tiers on your account side; the plugin cannot view or modify billing plans.
  • Local models: Treated with the same priority as remote routes, such as OMLX, Ollama, or any OpenAI-compatible endpoint registered in DSH (example: omlx-local → mlx-community/Qwen3.8-27B-4bit).

The pool starts empty for new installations; an empty pool or a pool where all routes are disabled will block sub-requests. Routes with exhausted quota remain in a “parked” state after restart; unapproved or paid routes will not automatically replace them.

Controls & Preferences

The settings page offers:

  • Enable / Remove routes;
  • Set preference strength (Low / Medium / High, corresponding to the internal 0–10 scale) for tasks such as General, Coding, Research, Reasoning, and Quick;
  • Output and tool call limits for each route;
  • Global output, attempt count, and cooldown limits.

If multiple routes have the same score under the same task, they enter the same rotation tier and share the free quota, preventing a single model from handling all subtasks. Lowering a route’s score will remove it from that tier, making it a backup only.

Each route can have reasoning effort set individually; the list only displays levels declared by that model in the DSH registry. Provider default means not sending it. If the model does not support the selected level, that route will be skipped rather than forcibly called.

Subagent Concurrency

To protect free quotas, the bundle defaults the host subagent’s maxActiveSubagents to 3: a maximum of 3 sub-agents active simultaneously (shared among ordinary subagents, Agent Teams, and nested subagents; the root agent does not occupy slots). If you previously saved a limit higher than 3 in Plugins → Subagent, you must change it to 3 here for consistency with this bundle; if your saved limit is lower, your settings are retained. When full, new subtasks are rejected with the error ACTIVATION_LIMIT_REACHED until existing subtasks finish.

The default is fail closed: when all approved free routes are cooling or inapplicable, the sub-request fails with the error QUOTA / NO_SUITABLE_FREE_ROUTE; no money is spent automatically.

Only when Paid fallback is explicitly enabled in the settings page will a one-time final attempt be made on the selected paid model when all free pool attempts yield no result; the paid model can come from any installed provider, is marked as PAID in the interface, requires a one-time confirmation that fees may be incurred, and has output limits. The fallback attempt is recorded in the ledger under the fallback/<provider>/<model> namespace, separated from free route cooldown. Turning off fallback at any time restores the default fail closed behavior. If a free route has already produced partial content, it will not be completed by a paid model.

Local State & Privacy

The default ledger path is ~/.dsh/data/free-router-state.json, recording model identifiers, cooldown, approximate counts, and timestamps; it does not contain prompts, answers, or keys. Cooldown is shared across multiple processes; concurrency statistics are approximate.

Installation and Enabling

The plugin is a standard module package and works with the desktop, web, headless, and other profiles; the following command comes from the original README:

dsh plugin --profile web add dsh-free-subagents

After installation, restart DSH. Open Settings → Free Subagents or Plugins → Free Subagents, connect providers and configure the routing pool as described in the previous section, then save. Settings should be saved before entering the page; in-progress requests use the configuration from startup.

Uninstalling or disabling will remove related constraints and restore DSH’s default submodel inheritance behavior; it is recommended to end in-progress subtasks first. User choices and the ledger can remain in the profile independently of the package defaults.

Typical Usage Workflow

  1. Configure OpenRouter, Google, NVIDIA, or local inference endpoints in DSH Models, and ensure the models intended for the pool meet free conditions (e.g., OpenRouter must have the :free suffix).
  2. Execute the installation command and restart the application.
  3. Set preferences for each task type in the Free Subagents page and add multiple routes to form a rotation tier.
  4. Use agents, subagents, or Agent Teams in the main dialogue as usual; sub-requests are automatically routed by the router within the pool, while the main model remains unchanged.
  5. When troubleshooting routing status, the repository provides npm run status to view the local ledger (must be executed in the plugin source code directory); offline behavior testing is npm test.

Applicable Scenarios and Notes

Suitable for: Developers who want to delegate a large number of subtasks in DSH workflows, constrain calls to confirmed free models and local inference, and need automatic switching to alternative routes within the pool when quotas fail.

Important Notes:

  • The plugin runs with the permissions of the current DSH process; it is recommended to read the source code and MIT license from the GitHub repository before installing.
  • During the Preview phase, the plugin API may change; the engines requirement is dsh >= 0.2.2-rc.3.
  • The documentation docs/verification.md records verification results on real providers (including reasoning budget usage, Google free tier 20 per model per day, etc.); billing and quotas are subject to each platform.
  • Credentials, ad model lists, quotas, and billing eligibility are independent facts; Google/NVIDIA users must verify the usage method of their free tiers themselves.

Conclusion

dsh-free-subagents turns the decision of “which model for subagents and Agent Teams” from repetitive manual decisions into a one-time configuration of a free routing pool plus preferences and cooling strategies; it defaults to not leaking calls to paid models, with a single Paid fallback available only when needed.

  • Community Directory: https://www.skillhub.cn/plugins/boldandigital/dsh-free-subagents
  • Source Code & Documentation: https://github.com/boldandigital/dsh-free-subagents
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye