npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@pure01fx/dsh-subagent-tiers-hu

v0.3.1

Published

Hu's Subagent Tiers for DeepSeek Harness

Readme

Hu's Subagent Tiers

@pure01fx/dsh-subagent-tiers-hu provides provider-neutral, configurable subagent tiers for DeepSeek Harness. The bundle ships two disabled worker templates:

  • subagent_fast: scoped edits, quick repository scans, and concise summaries; max depth 1.
  • subagent_pro: focused review, design evaluation, risk analysis, and final synthesis; max depth 2.

No model provider is required or selected by the package. A tier becomes visible only after the user enables it and selects an exact provider/model route that the current DSH profile can validate.

Compatibility

Version 0.3.0 targets DSH 0.2.0-rc.2, retaining the inherited-tool restriction fix. Version 0.2.0 targets DSH 0.1.7-rc.2. Version 0.1.1 remains on the DSH 0.1.5-rc.1 line. Its peer dependencies are exact; older or future DSH versions are not covered by this release.

DSH descriptor v3 children retain their immutable tier route across settings edits and cold resume. Descriptor v2 histories are preserved but are unsupported on this target: keep the original logs and create a new child. There is no automatic history conversion.

Install

Add the package to the Web profile, restart the existing Web process, and refresh the GUI:

dsh plugin --profile web add @pure01fx/dsh-subagent-tiers-hu

For local development, the package spec may instead be an absolute checkout path.

Configure in DSH Web

Open Settings → Subagent tiers. Fast and Pro are built-in templates, and New tier creates removable custom tiers with a unique ID and tool name. Every tier provides editable fields for:

  • enabled state, provider, model, reasoning effort, and optional token limit;
  • tool description and worker persona/prompt, with a per-tier prompt reset action;
  • fresh/fork context, continuable/one-shot background mode, background permission, and maximum delegation depth;
  • for custom tiers, a unique tool name and any currently installed non-default mode in which the tool should be visible. New tiers start with no mode selected.

Provider, model, and effort choices come from DSH's live LLM catalog. The host validates the exact route with the owning adapter; catalog membership is advisory, while adapter validation is authoritative. An unconfigured or unavailable tier is not registered, and the built-in generic delegation tools remain available when no replacement tier is active.

Configuration is stored in subagent-tiers.json beside the active profile's cordis.yml (normally $DSH_HOME/profiles/web/subagent-tiers.json). The version-3 file contains worker definitions, custom-tier mode exposure, route identities, and prompts, never credentials. Writes are revision-fenced, cross-process locked, atomically replaced, and mode 0600. If editable state is malformed, tiers fail closed while the settings page remains available to repair it; independently valid historical route revisions are retained during that repair.

Tier configuration uses the existing loopback- and same-origin-only endpoint with revision fencing and CSRF protection. The model picker reads DSH 0.2.0-rc.2's session model catalog Remote and refreshes on adapter, settings, credential, and connection changes. Provider credentials remain in DSH's credentials/settings services and are never accepted by the tier configuration endpoint.

Architecture

Each exact worker route receives an immutable revision provider name in the durable subagent/descriptor. A root agent/request waterfall resolves that revision from the profile ledger and pins provider, model, effort, and optional token limit. Editing any tier creates a new revision without changing routes used by existing continuable children; malformed, legacy, or missing tier revisions fail closed instead of falling through to a host default.

The plugin wraps DSH's built-in spawn or fork subagent provider. Current revisions own the visible built-in and custom tier tools; historical wrappers remain registered only so durable children can resume. Tools are exposed only after both the LLM route and the matching base subagent provider are available.

Tools are registered in the profile and hidden per live agent with scoped restrictions derived from presetBindings plus custom-tier exposure choices. replaceGenericTools filters inherited generic tools only: registrations owned by the current agent (for example another plugin’s session-local delegation tool) remain available by SDK design. Settings explicitly lists these tools as not hidden. If another owner’s filter makes every exposed tier unavailable, generic delegation is retained as a fallback. Repeated saves stage replacement filters before releasing the prior filters, and preparation failure leaves the prior state intact. No shipped or third-party preset files are edited. The mode picker comes from the live agentPresets.list() roster; custom tiers may explicitly opt into a discovered mode, while unselected modes inherit the safe default and expose no custom tier tools.

Background report scheduling

DSH 0.1.5-rc.1 replaces the old host report tool with adjacent-agent send_message. Messages to an idle parent can start a turn; messages to a running parent steer at a step boundary. This bundle no longer patches the removed tool-subagent-report row. Runtime settlement notices follow the target host policy; Runbook-managed reports use Runbook’s own delivery adapter.

There is no blocking wait tool for an already-started continuable child. The parent should keep doing independent work while children run, then finish only its current response when no independent work remains so settlement can resume it. It must not end or dispose the session. If the current response cannot complete without the child result, start the tier with run_in_background: false instead.

Host configuration

The bundle patch contains disabled Fast/Pro templates and built-in preset bindings. A profile overlay may still override the subagent-tiers Cordis row when deployment-managed defaults are preferred.

workers.<id> accepts:

  • optional enabled, route, persona, and toolFilter;
  • required toolName and description;
  • route.provider, route.model, optional reasoningEffort and maxTokens;
  • execution.contextMode (fresh or fork), backgroundMode, enableRunInBackground, and maxDepth.

A worker with a route and no explicit enabled keeps backward-compatible enabled behavior. An enabled worker must have a route. presetBindings.<preset> accepts an expose list and optional replaceGenericTools. Unknown presets fall back to presetBindings.default; the safe default exposes nothing.

validateRoutesOnStart: true turns an unavailable configured route into a plugin startup failure. The default keeps the settings UI available, marks the route unavailable, and withholds its tier tool until the route becomes valid.

Visibility and cold resume

As configured base providers and LLM adapters change, the plugin reconciles tier availability and live-agent restrictions. Standard, PTC, Cordis, and Minimal keep their native/PTC wire; only configured, valid tiers appear.

Tool restrictions are applied to live-agent scopes. A low-level standing-preset catalog query does not represent the effective tool set of a particular live agent.

Route revisions are append-only because a cold-resumed child's descriptor stores the wrapper provider name. Removing an old revision without proving that no session references it would break cold resume, so automatic garbage collection is intentionally omitted.

Development

npm install
npm run check
npx publint
npx @arethetypeswrong/cli --pack .

The suite includes real target Session/fork/restore boundaries, SubagentRuntime and AgentLoop execution, JSONL persistence, local scripted model requests, foreground/background jobs, cancellation, tool filtering, and cold resume after settings edits. It makes no paid model calls. Joint browser acceptance is recorded with the release artifacts.

Upgrade and rollback

Back up the profile, subagent-tiers.json, and session storage before upgrading the host and this package together. Keep old descriptor-v2 logs with the old host environment. To roll back, stop the new isolated/profile process and restore the previous host, package, and matching profile backup together; do not feed newly created v3 child histories into an older host. This candidate does not publish, install into an existing profile, or migrate session files automatically.