返回目录
模型与 MCP 插件

dsh-agent-team-presets

bloodarea/dsh-agent-team-presets

Reusable Agent Team presets for DeepSeek Harness: a captain plus members with their own prompt, model, reasoning effort, and tools.

Stars
11
Forks
0
Issues
1
更新
10 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:bloodarea/dsh-agent-team-presets

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-agent-team-presets

Reusable Agent Team presets for DeepSeek Harness

Concept illustration. The plugin interface is documented screen by screen in Getting started; the captain uses the conversation's selected model.

English | 中文

New to this plugin? Start with the illustrated walkthrough — every screen, every button: Getting started.

Community plugin v0.3.2 · Tag

This release keeps more than one version of each supported target patchable at once, so updating dsh-context or dsh-better-sidebar no longer takes the Preset badge away, and it ships rebuilt replacements for dsh-context 0.84.1 and dsh-better-sidebar 0.32.1. It requires DeepSeek Harness 0.2.2-rc.3: that is the release this build was verified on, and 0.2.2-rc.2 is now refused rather than claimed.

What changed in 0.3.2

  • Several upstream versions stay supported. The patch catalog is keyed by target and version, each row is classified from the version that is actually installed, and the Integrations page lists every version this build ships a replacement for instead of only the newest.
  • New replacements for dsh-context 0.84.1 and dsh-better-sidebar 0.32.1, rebuilt from their upstream sources with the same small registration patch, then verified (the service must register, the bundle must stay within its size band, both hashes are recorded). The 0.84.0 and 0.32.0 entries stay, so a profile that has not upgraded is still patchable.
  • A shipped catalog file. assets/card-patches/catalog.json is merged over the versions compiled into the plugin, so supporting another version becomes data rather than a code change.
  • A rebuild pipeline. tools/card-patches.mjs clones the upstream tag, applies the source patch (git apply, --3way, then fuzz), builds it with the target's own toolchain, verifies the result, and only then publishes; apply / revert install or remove one replacement in a profile with a backup. Repository only — not part of the npm package.
  • Fixed a stale artifact. 0.3.1 shipped a lib/ built before the "a shipped preset set went missing" work, so its warning and restore path never reached users. Both are in 0.3.2.
  • Host support narrowed to 0.2.2-rc.3 in engines.dsh and the DSH peer ranges. The previous release claimed rc.2 while shipping a bundle built against a later contract; rc.2 and older are now refused with a named reason instead of being over-promised.

Earlier releases and the full changelog are on the Releases page.

Overview

dsh-agent-team-presets is a visual Team preset and private skill manager for DeepSeek Harness. Configure a Team once, assign per-agent isolated skills, then select it from the conversation composer whenever you need it.

A Team contains a captain and any number of member roles:

  • The captain uses the conversation's selected model, with its own role description, system prompt, and tool policy.
  • Each member can have an independent provider, model, reasoning effort, system prompt, tool policy, and assigned Team Skills.
  • The captain summons members through spawn_team_member; the Harness subagent runtime provides messaging, execution, and lifecycle.

This is a community plugin, not the Harness's bundled @deepseek-ai/dsh-experimental-agent-team-presets development package.

Why this plugin?

DeepSeek Harness already ships Agent Teams with multi-agent collaboration. In the Harness versions this plugin supports, per-Team configuration, skill isolation, and reuse are still left to the user, which is what this plugin addresses:

  • Teams are hard to reuse. In those versions, native teams focus on runtime creation and collaboration, with no visual preset management; this plugin saves, duplicates, categorizes, and reuses named presets.
  • Role setup is repetitive. Each role's name, description, system prompt, and tool policies are configured once instead of re-described every time.
  • Splitting work across models is awkward. Every member picks its own model and reasoning effort, so one Team combines models by task, while the captain keeps leading on the Session's model.
  • Tool permissions have no fine-grained entry point. In those versions the native tool surface offers no per-role allow-list; here the captain and each member carry their own, so roles differ in what they may use.
  • Skills lack per-agent scope isolation. Shipped or user skills are typically registered globally, making all skills visible to every agent; this plugin provides a private Team Skill library where skills are discovered only by the specific Agent they are assigned to.
  • Switching teams is inconvenient. Pick a preset Team directly from the composer instead of rebuilding roles by hand.

Design principle: the Harness subagent runtime owns collaboration at runtime; this plugin owns configuring, managing, isolating, and reusing teams and their skills.

Features

  • Reusable Teams: create, duplicate, edit, select, and delete named presets.
  • Per-member model routes: assign models and reasoning effort to individual roles without changing the captain's model.
  • Individual member chat: hover a Team in the composer to inspect its captain and members; select one member to inject that member's role card, tool policy, Team Skills, and model route into the current Session.
  • Independent tool policies: choose all available tools or a custom allow-list for the captain and each member.
  • Nine built-in presets across two series: three software development scale teams (Lightweight, Standard, Full-Stack) and six specialized work-mode teams (Discovery, Planning, Workflow, Engineering, Security Audit, Research).
  • Display metadata: attach summary, tags, use cases, quick prompts (suggested tasks), and notes per Team. Strictly presentation-only: never injected into the runtime LLM context, saving context tokens.
  • Local categories and search: organize presets into custom categories via a dedicated category manager; instantly search over name, summary, tags, and use cases in both Settings and the Composer picker.
  • Private Team Skill library: import skill folders or ZIP archives into a plugin-owned store (~/.dsh/agent-team-presets/team-skills), completely isolated from global host skills.
  • Per-agent skill isolation: a 3-column assignment grid on member pages assigns skills to specific roles. Assigned skills are registered strictly in that Agent's scope when summoned—never leaked globally.
  • Official built-in skills & local overrides: ships two delivery skills (github-repository-presentation, git-release-hygiene) and two method skills (grilling, research), materialized into the private library and pre-bound to engineering, discovery, and research roles. Create local editable overrides and one-click restore them to the built-in copy (恢复为插件内置版本).
  • Plugin-level troubleshooting skill: installing the plugin registers the global runtime skill agent-team-presets-troubleshooting (not a Team Skill, not per-Agent isolated). It covers Team application, member creation, tool-policy refusals, model-route evidence, Team Skill visibility, and install/upgrade failures.
  • Guarded deletion with blocker modal: deleting a skill bound to any role, in use by an active member, or required as a dependency is refused, with a confirmation modal detailing every blocking holder.
  • Dependency verification & MCP boundaries: checks declared CLI executables against host PATH (flags found/missing and refuses assignment when absent) and reports declared MCP servers (declarative display; never auto-connected or hard-blocking).
  • Agent-facing tools: root sessions provide list_team_skills, assign_team_skill, unassign_team_skill, and remove_team_skill alongside get_team_preset and update_team_preset.
  • Live settings feedback: see whether a Team is idle, busy, or awaiting an update in an online Session.
  • Theme integration: robust light and dark mode adaptation across all cards, dialogs, inputs, and dropdowns.
  • Subagent card badges: tag the subagents a Team created on the Fleet and Tasks cards, through an optional card service each target plugin may expose.

Contents

Screenshots

Interface screenshots live with the walkthrough, taken live from an isolated instance that had only this plugin installed: docs/guide/getting-started.md.

Requirements

  • DeepSeek Harness >=0.2.2-rc.3 <0.3.0. Verified against 0.2.2-rc.3; 0.2.2-rc.2 and older are refused. Each member's route is recorded through agent.model.select() for fresh, forked, and cold-resumed execution; the captain keeps the conversation's model selection. The plugin manager enforces engines.dsh from package.json.
  • Custom tool allow-lists work on PTC by giving that Session its own native surface. The Host cannot restore an inherited executor after a release, so the plugin never releases one: on a PTC preset it mounts the Harness native tool executor on the Session's Agent scope and leaves the deployment executor alone. The trade-off is deliberate — that Session stops using run_code for the rest of its life, while other Sessions and the all-tools mode keep PTC. If mounting fails, or the surface still exposes the PTC transport afterwards, the application is refused and nothing is left behind, because no executor was ever released.
  • No Agent Teams bundle is required. Members are created through the deployment's continuable subagent providers, and native messaging, task tools, and the Web roster are unaffected by this plugin.
  • A Web or Desktop profile with Settings and the required client services. Install into the profile you actually use, typically web for the Web GUI or desktop for Desktop.
  • Durable storage and a continuable subagent backend for member execution. Member creation is refused if the storage domain or selected execution backend is unavailable. The default backend names are spawn and fork.

The plugin version (0.3.2) and the Harness version (0.2.2-rc.3, for example) are separate version lines.

Install and upgrade

Install and upgrade

Option 1 — npm package (recommended; receives update prompts)

Open Global panels → Plugins → Add plugin, paste the line below into Package name or address, and click Install:

dsh-agent-team-presets

Or install it from the CLI:

dsh plugin --profile <profile> add dsh-agent-team-presets

Replace <profile> with your active profile (e.g. web or desktop):

dsh plugin --profile web add dsh-agent-team-presets

The plugin manager compares the installed version against npm's latest dist-tag, so every later release is offered as an update.

Option 2 — floating GitHub install

Tracks the repository's default branch; an update is offered when package.json on that branch moves to a higher version:

dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets

Option 3 — reproducible pin (no update prompts)

dsh-agent-team-presets@0.3.1
dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets#v0.3.1

A fixed version or tag reproduces exactly one release. A #tag GitHub spec is only ever compared against that same tag, so the market never reports an update for it — upgrading means editing the spec by hand. Use this form only when you need a frozen install.

Install notes

  • Registry selects which npm source the download comes from. Default registry uses pnpm's own configuration. Pick Official npm registry to bypass a mirror, or Custom address for an internal or cloud mirror.
  • The field accepts package names, name@version, github:owner/repo, tarball URLs, or absolute filesystem paths.
  • This package declares dsh.bundle, so the plugin manager automatically registers it as a profile bundle layer; do not add a loader entry by hand.
  • Once installed, reinstalling the same package identity is blocked. To switch sources (e.g. from GitHub to npm), uninstall first, then install the new spec.
  • GitHub and npm are separate release channels, so check the version this install would fetch before switching channels:
npm view dsh-agent-team-presets version
  • After installation, reload or restart as prompted.

Verify and upgrade safely

After installation, follow the plugin manager's reload/restart prompts and navigate to Settings → Agent team presets. Verify that details display dsh-agent-team-presets, version 0.3.1, and a running component.

  • Back up profile settings, Team definitions, and Session selections before upgrading.
  • When migrating from a development link, remove @deepseek-ai/dsh-experimental-agent-team-presets first before enabling the community package.
  • Restart Harness after switching package identities, then refresh the GUI.

Install the bundle; do not add a second loader declaration. The package already supplies its own bundle patch. Duplicate hand-written declarations in profile patches can prevent settings from saving. See Configuration writes are overridden.

Configure and use a Team

  1. Open Settings → Agent team presets.
  2. Select a built-in Team, duplicate an existing one, or click New Team.
  3. Configure its name, purpose, display metadata, category, captain, and member roles.
  4. For each member, configure its provider/model route, reasoning effort, tool policy, and assigned Team Skills.
  5. Press Save in the shared footer. Edits remain staged drafts until saved.
  6. Select the Team from the conversation composer's Team control, then prompt the captain to coordinate the task.

Example prompt for a Team with execution and review roles:

Use the selected Team. Have the executor implement the agreed changes and regression tests, then ask the reviewer to inspect them independently. Summarize changes, test results, and remaining risks.

A preset role is a template. Summoning creates an instance with a unique target such as executor or executor-2. Use send_message with the returned target to continue working with an existing instance rather than spawning a new one.

Selecting No team disarms the Team application once the captain and teammates become idle, restoring standard session contributions without changing the active model.

Talk to one member directly

Hover a Team row in the composer picker to open its member panel. The captain is listed first with the Session model route; every member follows with its configured provider · model and role description.

  • Selecting the captain applies the Team normally: the captain leads, may summon members, and keeps the model the Session already selected.
  • Selecting a member starts an individual conversation with that member. Its role card (name, role description, and standing system prompt) becomes the Session persona, its tool policy and assigned Team Skills apply, and the captain briefing plus spawn_team_member are not installed. The Session model switches to that member's configured provider/model and reasoning effort. A member with no configured route keeps the Session's current model.
  • Switching back to the captain does not restore an earlier model: the captain always follows whatever model the Session currently has selected.
  • Role and model changes wait for a running task to reach its boundary, exactly like a Team change. A selection naming a member that no longer exists is refused and the Session stays locked rather than silently falling back to the captain.

Fields

Field Purpose
Team name and purpose Identify the preset and explain what work it handles.
Category Assign the Team to a local category for organization in lists and picker.
Display metadata Summary, tags, use cases, quick prompts, and notes. Purely presentation-only; never injected into LLM context tokens.
Captain The lead agent. A nonempty captain prompt replaces its persona prefix; the captain keeps the conversation's model.
Members Reusable role templates the captain can summon.
Name Role display name and target base. ASCII letters/digits and hyphens (max 64 chars, not lead).
Description Role responsibilities for the captain to select appropriate members (max 200 chars).
Color Accent color distinguishing the role in settings and the roster.
Provider / Model Members only. Route from the deployment's model catalog.
Reasoning effort Members only. Options depend on model support; empty uses route default.
Allowed tools Independent all-tools or custom allow-list policy.
Team Skills Assigned private skills, registered exclusively in this Agent's scope upon creation.
System prompt Standing role instructions. {{variable}} denotes prompt template variables.

Built-in presets

A fresh installation seeds nine editable Teams across two series:

研发规模系列 (Classic Development Scale)

Preset Roles Intended use
轻量研发团队
builtin-lightweight
Captain, fullstack-advisor, executor Small features and module iterations. Captain plans and verifies, architecture advisor handles cross-layer technical contracts on demand, executor writes code, tests, and debugs. Pre-bound with official delivery skills.
标准研发团队
builtin-standard
Captain, system-architect, executor, code-reviewer Standard software projects. Captain coordinates, system architect establishes interface contracts and module boundaries, executor develops and tests, independent code reviewer inspects quality. Pre-bound with official delivery skills.
全栈软件研发团队
builtin-fullstack
Captain, backend-architect, ui-designer, executor, reviewer Complex full-stack engineering across Web, Desktop, and Android. Captain leads, backend architect and UI designer provide technical/UX contracts, reviewer enforces quality gates, executor implements. Pre-bound with official delivery skills.

工作模式系列 (Work Modes)

Preset Roles Intended use
需求探索
builtin-discovery
Captain, demand-analyst, solution-explorer, independent-challenger Open-ended ideas where goal, technical path, or product direction is still exploratory; read-only research with independent challenge.
架构规划
builtin-planning
Captain, system-architect, technology-evaluator, compliance-auditor Settled goals where systems, module boundaries, and cross-module contracts must be designed.
既定工作流执行
builtin-workflow
Captain, workflow-coordinator, task-executor, delivery-verifier Established workflows where user specifies next task, and team implements, verifies, and delivers it.
工程研发协作
builtin-engineering
Captain, architect-advisor, executor, code-reviewer, repository-specialist Feature development, cross-layer implementation, UI/UX, and debugging, with a dedicated repository delivery specialist (repository-specialist). Pre-bound with official delivery skills.
独立代码与安全审计
builtin-audit
Captain, vulnerability-expert, security-auditor, compliance-inspector Independent read-only review of specified code, vulnerabilities, security configurations, and dependency compliance.
科研协作
builtin-research
Captain, domain-researcher, experiment-analyst, rigor-reviewer Literature review, experiment design, scientific computing, data analysis, and academic rigor inspection.

Default presets are seeded once per profile. Deleting or editing a built-in preset is respected across restarts, which also means a Team list that lost its shipped presets some other way (a hand-edited or restored settings file) does not get them back by itself: the Host logs a warning and the page shows a notice pointing at Restore defaults. That button stages a draft, so save afterwards. Restoring brings back shipped fields and official rosters while preserving local member model routes and tool policies.

Display metadata, categories, and search

Presentation-only display metadata

Each Team preset supports rich metadata:

  • Summary: One-line description shown on cards and intros.
  • Tags: Keyword chips for filtering and categorization.
  • Use cases: Recommended project scenarios.
  • Quick prompts: Ready-to-use task templates shown when selecting the Team.
  • Notes: Operational reminders or cautions.

Token economy: Display metadata is stored in the preset document and used by the UI for search, grouping, and cards, but is never injected into the runtime LLM prompt context.

Local categories and hierarchical filtering

  • Category manager: Click 管理团队预设分类 in the Settings list to open a dedicated management page. Create, rename, reorder, and delete categories, and inspect team counts per category.
  • Local isolation: Categories and team-category bindings are saved in profile settings and are never exported with shareable preset documents.
  • Two-level filters: The Teams list provides two independent filter rows:
    • 来源 (Source): 全部 (All), 插件内置 (Built-in), 自定义 (Custom).
    • 分类 (Category): For built-in teams, filters by official series (研发规模 / 工作模式); for custom teams, filters by user-created categories.
  • Instant search: A responsive search box searches team names, summaries, tags, use cases, and quick prompts with real-time matched count reporting.
  • Composer integration: The conversation composer's Team picker mirrors these source filters and search capabilities, with 不使用团队 pinned to the top.

Private Team Skills and per-agent isolation

Private store and scope isolation

Traditional skills in Harness are typically registered into the global environment, exposing every skill to every agent. This plugin introduces a Private Team Skill subsystem:

  1. Private library: Skills live in a plugin-managed directory (~/.dsh/agent-team-presets/team-skills or storage domain), isolated from host and profile skills.
  2. Per-Agent registration: When a Team member is summoned, its assigned skills are registered exclusively inside that member's Agent scope. Other members and the captain cannot see or invoke them unless explicitly assigned.
  3. Official built-in skills: four shipped skills: delivery (github-repository-presentation, git-release-hygiene) and method (grilling — clarify before acting; research — primary sources only). Default bindings: engineering executor/repository-specialist receive the delivery skills; the Discovery captain receives grilling, its technical-scout/product-scout and the Research evidence-scout receive research.
  4. Local overrides & one-click restore: Built-in skills are read-only by default. Users can create an editable local copy ("本地副本"). If the built-in skill updates in a new plugin version, an updateAvailable status is displayed, and users can restore to the built-in copy (恢复为插件内置版本) with one click.
  5. Origin labels and badges: Skills display clear color-coded origin tags across all views:
    • 插件内置 (Built-in, blue)
    • 自定义 (Custom, purple)
    • 本地副本 (Override, amber)

Import, directory scan, and dependencies

  • Folder and ZIP import: Import external skill folders or .zip packages directly in the Web GUI.
  • Directory scan: Scans candidate folders in the import path, reporting eligibility and reasons for any rejected folder. Users can copy the absolute library path with one click.
  • Dependency checks and MCP boundaries:
    • CLI executables: Declared CLI executables in SKILL.md are resolved against host PATH, using PATHEXT on Windows. Directories and non-executable files do not satisfy the dependency. Missing required executables are flagged and assignment is refused (dependency-missing).
    • MCP servers (declarative only, not auto-connected): Declared MCP servers are strictly declarative dependencies displayed in the UI (skillsDeclared). The plugin never connects, launches, or manages external MCP servers automatically (their lifecycle belongs to the Harness environment and profile). Because MCP connectivity is an environment-level fact, declared MCP servers are reported as unverified rather than hard-blocking role assignment. When an MCP server is configured and running in the Harness profile, its exposed tools (mcp__<server>__<name>) appear under the MCP tool group in the role's tool configuration and can be authorized via tool policies.
  • Guarded deletion: Deletion is strongly guarded. If a skill is currently bound to any team role, used by a running member, or required by another skill, deletion is blocked. The confirmation dialog explicitly lists every holding team and member role (e.g. 标准研发团队 → executor), keeping the confirm button disabled until bindings are cleared.

Share presets

Export saves one Team as a JSON document (format version 2). Import preset reads the document and stages it in the editor.

  • Shared fields: Team name, purpose, display metadata (summary, tags, use cases, quick prompts, notes), captain/member names, descriptions, prompts, and colors.
  • Local fields: Model routes, reasoning effort, tool permissions, and local category bindings are never exported. Documents containing them are rejected on import.
  • Name collisions: Choose between replacing the existing preset or creating a renamed copy. Replacement preserves local routes and tool policies on matched roles.
  • Review imported prompts before executing tasks, especially when using documents from third parties.

Subagent card badges

Cards in dsh-context (Fleet view, top bar) and dsh-better-sidebar (Tasks page, right sidebar) can mark the subagents this plugin created with a small Preset tag. The integration is an adapter:

  • Opt-in by target. Each target must expose its optional card-badge service (contextAgentCardBadges / betterSidebarAgentCardBadges, protocol version 1). This plugin registers into a service only when it appears, does not require either package, and keeps working unchanged when neither is installed.
  • Exact identity. A tag appears only for a card whose real child Session id matches a durable member snapshot written before creation, so ordinary subagents and workflow placeholder nodes stay unmarked. The lookup reads stored records and never resumes or reads a card's Agent.
  • Layout neutral. The tag is one inline, theme-token chip with fixed height; it adds no card row and clips inside the existing badge area.

Install it from Settings

Neither target published such a service at the time of writing, so this plugin ships prebuilt replacement bundles for the exact versions listed below and offers them in Settings → Agent Team presets → Integrations:

Target Versions this build patches What the row offers
dsh-context 0.84.0, 0.84.1 Install patch / Remove patch
dsh-better-sidebar 0.32.0, 0.32.1 Install patch / Remove patch

Each row reports its own state, and the page never guesses: not installed, version not supported, not patched, patched, modified by something else. "Install patch" asks for confirmation, backs up the target's lib/client.js, then writes this plugin's build of the same source. "Remove patch" restores that backup and deletes it.

No restart and no page reload. The running server's client-hmr transport stat-polls every client bundle, republishes the changed one (clientModules.rebuilt), and the page reloads that plugin in place — the row turns active within about a second, and the badge appears on the cards. If a row stays patched without going active, reload the page once.

Safety rules worth knowing:

  • A target whose bundle matches neither the published build nor this plugin's replacement is refused, because overwriting it would destroy an edit this plugin cannot reproduce.
  • Each row is classified by the version that is actually installed and lists every version this build ships a replacement for. A version outside that list reports version not supported; supporting one is a verified rebuild, not a code rewrite (see below).
  • Upgrading a patched target replaces its bundle, which silently removes the patch — the row then reports not patched again.

New upstream releases are adopted with node tools/card-patches.mjs rebuild --target <id> --version <version> --write: it clones the release, applies the source patch, builds it, and refuses to publish anything unless the rebuilt bundle still registers the card service. Adding a version keeps the older ones patchable, and a shipped assets/card-patches/catalog.json reaches new versions without a code change.

If you would rather not use the bundled builds, the same change is available as source patches in contrib/agent-card-badges for applying to the matching target and rebuilding it yourself, and as upstream-ready changes for the target maintainers.

Agent-facing tools

Root sessions register tools allowing agents to inspect and update presets and skills programmatically, subject to tool policies:

Team preset tools

  • get_team_preset: Reads the active or specified Team preset, returning its purpose, role descriptions, prompts, roster, and settings revision.
  • update_team_preset: Updates team/captain descriptions and member prompts/descriptions using compare-and-set revision checks. Requires direct human turn and Host approval. Returns team-busy if affected members are currently active.

Team Skill tools

  • list_team_skills: Lists installed private Team Skills, origins, dependencies, and role assignment status.
  • assign_team_skill: Assigns one Team Skill to a role in a Team (isolated to that agent scope).
  • unassign_team_skill: Removes a Team Skill assignment from a role.
  • remove_team_skill: Deletes a Team Skill from the library, enforcing blocker checks.

Tool permissions and security

Policy modes

  • Default: all tools: No allow-list restriction beyond deployment permissions and role rules.
  • Custom allowed tools: Permits only selected tool names. Coordination tools (send_message, list_agents, team_task_*) must be explicitly allowed if needed.
  • Captain and member policies are independent. Granting a tool to the captain does not grant it to members.
  • The skill tool is always admitted, and is not offered as a choice. It publishes the catalog and loads instruction text rather than granting a capability, and the Host withholds that whole catalog from an Agent that cannot see it. A custom allow-list therefore cannot remove it, and the settings page does not list it: a checkbox for it would be a control that can never do anything. Documents written by an earlier version that still name it keep loading unchanged — the entry is admitted implicitly, never reported as unavailable, and never needs removing.

What a member's first turn guarantees

An assigned Team Skill is only useful if the member can load it on the turn that asks for it, so the plugin makes the registration part of member creation rather than a background step:

  • Members: the creation edge awaits that Agent's own registration before it completes. A role that holds assigned Team Skills but whose deployment cannot publish them — no skill service composed, the private library unreadable, or the registration refused — is refused at creation with the reason, instead of starting with an empty catalog while every surface says the skill is bound. Roles with no assignment keep working on deployments that compose no skill service.
  • The captain: the same registration is performed inside the Session's creation edge, after the Team application it depends on. A captain whose assignment cannot be published does not refuse the Team — a Session that is already running must not lose its capability policy — and the failure is reported at the Agent identity.
  • Unreadable library is not an empty library. When the private store cannot be opened the plugin cannot even enumerate a role's bindings, so it refuses member creation rather than reading the unknown as "no assignment". Repair the library path (or start again) to recover.

Known limitation: Windows verification

The path-separator and executable-resolution fixes are exercised by unit tests that normalize separators and by ENOTDIR cases, but no Windows machine was available here. Junction handling across volumes, PATHEXT resolution against a real PATH, and the full native build chain still need a Windows run before the release is described as Windows-verified.

Security boundaries

  • The allow-list is not a filesystem, process, or network sandbox. Allowed tools (such as bash) retain their native capabilities. Maintain appropriate Harness sandbox and approval policies.
  • Custom policy mode disallows general-purpose run_code and ordinary subagent / workflow delegation to preserve strict policy contracts. Use preset Team members for delegation.
  • Managed members require their durable configuration on resume. Missing or corrupted records are refused loud rather than falling back to unrestricted defaults.

Troubleshooting and limitations

Configuration writes are overridden

If saving or selecting a Team reports:

Configuration for "agent-team-presets" is overridden by a home patch or command-line overlay

Check profile patches, $DSH_HOME/cordis.patch.yml, and --patch overlays for duplicate hand-written agent-team-presets declarations. Remove duplicate declarations while preserving Host-managed settings rows.

Built-in troubleshooting skill

The plugin registers agent-team-presets-troubleshooting on the global skill layer as soon as the profile composes the skill service. It is a host-level skill, not part of the private Team Skill library and not isolated per Agent: every Session can load it with the skill tool. Use it when a Team does not apply, a member cannot be summoned, a tool is refused, a member's model route is questioned, a Team Skill is invisible, or an install/upgrade behaves unexpectedly. The guide also states the evidence order: configuredRoute, model/selection, request/header.config, and the member snapshot route outrank subagent/descriptor or roster display values.

Common issues

Symptom What to check
Settings page is absent or plugin pending Confirm profile type, peer dependencies, subagent backends (default spawn/fork), and client services.
Skill deletion button is disabled The skill is protected: inspect the blocker list in the modal (bound roles or dependencies must be unassigned first).
Skill assignment refused (dependency-missing) A required executable declared by the skill is absent from host PATH. Note that declared MCP servers are reported for visibility and do not block assignment; ensure MCP servers are configured in your profile.
Member creation refused Check storage domain availability, subagent execution backend (spawn/fork), model quota, and concurrency limits.
Model route display mismatch list_agents.model can return an inherited or fallback model even when the member actually runs on its configured route. Verify actual routing via spawn_team_member's configuredRoute, model/selection, the first request/header.config, and the member snapshot route.
A selected member's route is unusable The Host refuses the application and keeps the Session's previous composition and model instead of falling back to the captain. Correct that member's provider/model (and reasoning effort) in Settings → Agent team presets, then reselect it. The composer reports missing members but does not display a Host refusal; check the member route and the deployment's provider catalogue.

How it works

The plugin integrates via Cordis and Harness lifecycle extension points without patching host source code:

  1. Profile configuration: Stores Team presets, display metadata, local categories, and active session selections.
  2. Session application: Installs the captain persona, tool policy, and spawn_team_member at Agent scope. Selecting one member instead installs that member's role card and tool policy, omits the captain briefing and member tool, and selects the member's configured model route on the Session.
  3. Member creation & skill scoping: Validates route and delegation limits, persists an instance snapshot, and launches the subagent. The serial agent/created hook injects model selection, persona, tool filters, and assigned Team Skills strictly into that member's Agent scope.
  4. Private skill manager: Encapsulates skill storage (~/.dsh/agent-team-presets/team-skills), crash-recovery journaling, dependency resolution, and guarded deletion.

Source navigation

Area Source
Plugin lifecycle and settings reconciliation src/index.ts, src/settings-reconcile.ts
Built-in team catalog and series src/builtin-teams.ts, src/team-catalog.ts
Team application and member tool src/application.ts
Member snapshots and runtime injection src/member-store.ts, src/member-identity.ts, src/member-runtime.ts
Private Team Skills subsystem src/team-skills/store.ts, src/team-skills/manager.ts, src/team-skills/service.ts, src/team-skills/tools.ts
Tool policies and presentation src/tool-policy.ts, src/presentation.ts
Preset tools and transfer src/preset-tools.ts, src/preset-transfer.ts
Browser client UI src/client/

Development and contributing

Source development requires a compatible, dependency-installed Harness checkout with its Host types and generated Typert Remote artifacts built first (the Harness build:lib:host pipeline provides them):

export DSH_CHECKOUT=/absolute/path/to/deepseek-harness
npm test
npm run typecheck
npm run bundle

Bug reports and pull requests are welcome at GitHub Issues and Pull requests.

Thanks to 张灏焱 for contributing the grilling and research method Team Skills (PR #2), and to Matt Pocock for the upstream skills they adapt (MIT, see NOTICE).

Related resources

License

MIT. Bundled dependency notices are in THIRD-PARTY-NOTICES.txt; source and MIT attribution for the bundled method skills are in NOTICE.

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。