dsh-agent-teams README

项目的 README,来自 github.com/NanmiCoder/dsh-agent-teams。合并为一个 markdown 文件:README.md。

English · 简体中文

dsh-agent-teams turns one DeepSeek Harness session into a coordinated multi-agent team

AtomGit

Recommended by dshfind dshfind score dshfind downloads

npm version MIT license DSH Web and Headless

One prompt. A working team.

dsh-agent-teams turns the current DeepSeek Harness session into a captain that can assemble durable sub-agents, split a goal into dependency-aware tasks, and coordinate work through direct messages.

Ask in natural language. The plugin provides the team protocol, 14 coordination tools, persistent state, an automatic shared-task scheduler, and a live Web UI—without requiring a separate workflow engine.

AgentTeams native workspace with members, task dependencies, and progress

Releases

Latest release adds Harness 0.2.3-alpha.3 preview support and web auth compatibility, introduces the global read-only Team Console, preserves bounded worker handoff progress across reassignments, and hardens review quality gates and active fallback route reporting. Harness 0.2.2-rc.5 remains the recommended host. See the tested matrix and release notes.

Why AgentTeams?

Capability What it changes
Captain-led delegation The current session creates the team, assigns roles, and consolidates the final result.
Durable members Members are continuable DSH sub-agents that can be woken for focused follow-up turns.
Worker handoff When a captain reassigns active work to another member, that member receives the progress the previous owner explicitly saved with agent_teams_update_task(status="in_progress", output=...).
Dependency-aware tasks Tasks move through explicit states and cannot be claimed before their dependencies finish.
Automatic reuse and safe takeover Idle members claim the next ready task; reassignment revokes stale attempts before new work starts, and cold recovery retries stranded open attempts.
Direct messaging Members send durable mailbox messages directly to teammates or the captain—no relay required.
Live activity panel The Web UI combines segmented progress, a collapsible roster, and an interactive task DAG; running tasks show the member's model, and completed archives retain their full member and task history.
Plan before execution Normal /agent-teams runs stage an unspawned roster and DAG first. The Web panel uses the host model catalog for member routes. Returning to chat stops the planning turn, asks what should change, and revises the same draft; discarding archives the draft, aborts the turn, and explicitly prevents automatic recreation. Only Approve & Run enables scheduling; each member starts with its first ready task.
Quality gates Opt-in quality tasks support requirements → implementation → verification → review → integration contracts, automatic repair/re-review, and explicit resume. Scope control is a completion-time audit, not host write interception. See docs/quality-gates.md.

The conversation card and activity panel use Harness's official locale service. They follow live language changes between English and Simplified Chinese—including status labels, dynamic summaries, controls, archive markers, and accessibility text—without a page reload or a separate plugin setting.

Install and choose versions

Recommended pair: DeepSeek Harness 0.2.2-rc.5 + AgentTeams 0.1.32.

Use case DeepSeek Harness AgentTeams plugin
Recommended 0.2.2-rc.5 0.1.32
Other tested RCs 0.2.2-rc.2, 0.2.2-rc.1, 0.2.1-rc.3, 0.2.1-rc.2 0.1.32
Previous recommended RC 0.2.1-rc.1, 0.2.0-rc.2, 0.1.7-rc.2 0.1.32
Legacy RC 0.1.5-rc.1, 0.1.5-rc.2, 0.1.5-rc.3 0.1.32
Retaining an older RC 0.1.2-rc.1 0.1.32
Developer Alpha testing 0.2.3-alpha.3, 0.1.2-alpha.5 0.1.32
Retaining an older Alpha 0.1.2-alpha.2 0.1.32
Other installable hosts At or above 0.1.2-alpha.2 0.1.32

CI verifies the exact hosts listed above the last row. The installer accepts other hosts at or above the minimum version.

Desktop app

In the app sidebar, open Plugins → Add plugin. You can install directly from GitHub by pasting this repository URL into the plugin input, without a version, tag, or commit suffix:

https://github.com/NanmiCoder/dsh-agent-teams

This installs from the default branch and is available immediately after release. The equivalent shorthand is also supported:

github:NanmiCoder/dsh-agent-teams

For npm installation, enter the versioned spec @nanmicoder/[email protected]. Desktop's pnpm 11 defaults to a 24-hour minimum release age: for 24 hours after a release, a bare package name or @latest installs the previous version even when the preview shows the newest one, and the installation fails if that version is incompatible with your host. An exact version installs immediately. Changing registry mirrors does not remove this policy. GitHub access is required for the Git route; it may contain newer code than npm.

For an existing npm installation, open Plugins, check for updates, then select 0.1.32 and confirm Update. The desktop updater requests the selected exact plugin version.

Install it, then choose Enable now. If the host asks for a restart, restart the desktop app. Do not disable compatibility checks or the global release-age policy to install the plugin.

Use the desktop app's built-in updater when it offers 0.2.2-rc.5. AgentTeams 0.1.32 supports that host through the ordinary plugin channel. Desktop manages its bundled Harness independently of the global CLI. Use the CLI shipped with Desktop when managing its profile from a terminal.

CLI / Web: 1. Install DeepSeek Harness

npm install --global @deepseek-ai/dsh
dsh --version

The command selects the host's npm latest. To install the recommended host explicitly, run npm install --global @deepseek-ai/[email protected]. Check dsh --version against the support matrix after upgrading. For Alpha testing, select an exact version and lock the host dependencies using the maintenance guide.

CLI / Web: 2. Install the AgentTeams plugin

Install or upgrade from npm with an exact version (currently 0.1.32):

dsh plugin --profile web add --save-exact @nanmicoder/[email protected]

For a CLI-managed installation, replace web with your active CLI profile. Stop and restart that profile's Harness process, then refresh the browser. Installing the plugin does not upgrade Harness; the host and plugin have independent latest channels.

Alternatively, install or update from the latest GitHub default branch without a tag or commit suffix:

dsh plugin --profile web add github:NanmiCoder/dsh-agent-teams

To update, run the command again with the new version, then restart the profile; a bare package name can retain an already installed exact version. For 24 hours after a release, a bare package name or @latest installs the previous version. If a registry mirror has not synced the release, append --registry=https://registry.npmjs.org to the npm command. GitHub default-branch code may be newer than npm latest. The default branch includes the verified server, client, and type build outputs in lib/. The repository distributes these outputs so installation does not need a prepare hook or build-script approval. Source maintainers must run pnpm build and update the committed outputs whenever the source changes. Existing npm releases remain immutable.

For a manually cloned checkout, run pnpm install --frozen-lockfile and pnpm build after pulling, then restart the corresponding Harness process. Updating Git alone does not update local build output. See the maintenance guide.

For 0.1.0-* / 0.1.1-* hosts older than 0.1.2-alpha.2, keep a working pair and follow the older-version and diagnostic guide.

See the full compatibility matrix, source installation and Alpha testing guide, and verification coverage and platform limits.

Then ask for a team directly:

Use AgentTeams to review the commits after v0.5.3 from performance, security, and product perspectives. Return one consolidated report.

View teams in the workspace

Click View team in the current chat header or the team card below a reply to open the native Team collaboration tab. The entry belongs to its chat, rather than the general workspace start page.

Team and task content starts immediately: wide panes use columns and narrow panes stack them. Select a task to locate its owner; member icons open their conversations. Closing the tab does not stop the team, and its chat can reopen it. Completed teams retain their archives. Older hosts keep the activity panel.

How it works

  1. For a request to use AgentTeams, the captain follows the core protocol already in its system instructions. It continues an existing team and uses agent_teams_status when current state needs checking. When no team exists, the goal becomes a staged plan for review.
  2. The captain adds role-specific members backed by continuable sub-agents.
  3. The goal becomes tasks with owners and explicit dependencies.
  4. The shared scheduler uses real running / idle / ready state to atomically claim one ready task per idle member and wake it. An interrupted resident attempt stays parked and can resume through a direct message without losing its capability; after a cold process restart, the scheduler retries stranded open work with a fresh attempt.
  5. Members update with the current attempt_id; reassignment or captain takeover revokes the old attempt and waits for the old worker to quiesce before a new attempt starts.
  6. The captain presents the combined result, then archives the complete team record.

Team state is stored under <workspace>/.agent-teams/; the Web panel reads that disk truth and combines it with live sub-agent activity.

Member creation is zero-interaction by default: a member on the captain's current LLM route snapshots that provider, model, and reasoning effort, while a member on a requested alternative route snapshots the target model's default effort; later continuations restore the resolved snapshot. Only an explicit heterogeneous-team request (for example, “backend on provider A/model X, frontend on provider B/model Y”) supplies a member-specific provider + model; there is no per-member model or reasoning prompt.

Captain sessions keep the concise core protocol and the original 14 native team tools from their first request. All business tools are directly available; no loading tool or extra activation call is needed. Configured profiles retain their bounded directory in the fixed system prompt. Creating, approving, continuing or ending a team does not rewrite the system prompt or tool schemas. Core rules remain available after history compaction or discarded code-mode tool results. Members receive four team tools, fixed member instructions, and their ordinary coding/research tools. Web approval wakes the captain with a control message; later member reports wake it again. See the fixed protocol and benchmark contract.

Slash command

No “use AgentTeams” phrasing required. The plugin registers the closed-namespace /agent-teams host command, so the Web GUI slash menu shows an agent-teams placeholder with an input hint: pick it (or type the command), describe the goal, and press Enter.

/agent-teams research the pricing pages of three competitors

The command pipeline claims the line, then preserves that exact input as an ordinary user follow-up so it remains visible in the main chat. The gesture boundary adds the deterministic activation directive at pre-step, so the first model request follows the staged planning protocol without a mandatory helper call. The invocation is also durably logged (command/run / command/done).

Surfaces without command adjudication (for example the headless CLI) get the same deterministic activation through a gesture boundary: any genuine user message starting with /agent-teams activates the protocol for the rest of the text. Mid-sentence mentions stay ordinary prose.

Historical panels require saved team state or archives. Sessions from early versions that deleted teams without retaining archives do not yet support reconstructing the full panel from logs.

Configuration

Defaults work without extra setup. A trusted profile can override member behavior:

- id: agent-teams
  config:
    stateDir: .agent-teams
    memberProvider: spawn
    memberModel: deepseek-v4
    memberMaxDepth: 0
    maxMembers: 8
    toolPolicies:
      researcher:
        allow: [read, glob, grep]
      implementer:
        deny: [web_search]

memberMaxDepth defaults to 0: team members cannot create nested subagents. It counts levels relative to the member: 1 permits a member's direct children, and the limit also covers runtime/code-tool calls. It cannot exceed the Host's absolute depth budget: a member already occupies Host delegation depth 1, so allowing one descendant level also requires the Host setting subagent.maxDepth — Plugins → Subagent → Limits → "Maximum recursion depth", or config.maxDepth on the subagent entry of the profile's Cordis patch — to be at least 2. The effective number of descendant levels is min(memberMaxDepth, max(0, hostMaxDepth − memberDepth)); a delegation tool that declares its own maxDepth overrides the Host setting, and Host setting changes apply on the next delegation attempt. When the Host refuses a member's delegation because of depth, the tool result names the attempted depth, the current limit and the setting to raise. Default members report through team messages only, avoiding duplicate native parent reports. Idle roster members make no model requests. Task assignments start distinct turns; coordination joins the nearest model step. Acceptance and consumption are tracked separately. Removal/archive drains the selected branch and its pending input before reporting success.

toolPolicies is owner configuration: reusable per-member tool policies keyed by id. A member selects one by id — tool_policy on agent_teams_add_member, a member row of an inline plan, or a profile member row. The Captain model can select a declared policy but can never submit raw allow/deny lists or invent one at runtime.

This is model tool visibility and invocation policy for global tools, not an OS sandbox or an authorization boundary.

memberProvider is the sub-agent runtime backend (spawn / fork), not an LLM provider. Cross-LLM-provider routing uses the optional provider + model fields of agent_teams_add_member; memberModel is only a model default for all members. A member on the captain's current provider/model inherits the captain's reasoning effort, while a changed provider or model automatically uses the target model's default. To request a particular effort, pass the optional reasoning_effort field — one of the target model's supported effort ids, or "default" to force the model's own default.

slashCommand: false disables the deterministic /agent-teams activation surfaces (slash command and gesture boundary), leaving the natural-language trigger as the only entry point.

Boundaries

See docs/usage.md for the full tool reference, state model, Web UI behavior, configuration, and known limits.

Plugin development Skill

Community upgrade, audit, benchmark, testing and release skills are vendored with a pinned source revision. See skills/README.md for local rules and CONTRIBUTING.md for the contribution workflow.

The repository also ships the open Agent Skills package dsh-plugin-development:

npx skills add NanmiCoder/dsh-agent-teams --skill dsh-plugin-development

Documentation

Guide Covers
Usage Architecture, UI behavior, tools, configuration, limits, and validation
Verification Offline, composition, real e2e, and GUI verification
Plugin development Human-readable guide built from this plugin
README writing Repository documentation conventions

Development

pnpm install
pnpm build
pnpm verify

Named multi-role profiles

Configure one or more complete team profiles in cordis.patch.yml. A profile always supplies the roster (independent provider/model/role/reasoning effort). Set taskPlanning: captain when the Captain should derive the DAG from the user's goal; omit it or set taskPlanning: seed to keep a fixed template workflow:

profiles:
  demo-delivery:
    description: Ship a small feature
    protocol: Discuss requirements, review, test, then prepare release; do not deploy automatically.
    members:
      - name: analyst
        model: gpt-5.6-sol
        role: Analyze requirements
      - name: implementer
        model: gpt-5.6-terra
        role: Implement the approved solution
    tasks:
      - id: requirements
        subject: Requirements discussion
        assignee: analyst
      - id: implementation
        subject: Implement solution
        assignee: implementer
        dependencies: [requirements]

Use an explicit profile flag: /agent-teams --profile demo-delivery implement the feature. The first ordinary token is never treated as an implicit profile. Normal command runs call agent_teams_create({ profile, approval: "required" }): the roster and seed/Captain-designed DAG remain staged, no child session is created, and no task is claimed. Edit the plan in the activity panel using the host model catalog, return to chat so the Captain asks what to revise and then atomically updates the same draft, discard it, or click Approve & Run. Return/discard actions cancel any planning turn still running; discard also parks model-facing context that forbids silently creating a replacement team. Approval resolves the final provider/model/reasoning choices, commits the roster, and creates each member session only when its first task is ready. A running team is stopped from its own panel header through a confirmation dialog rather than from the composer. Direct tool clients may pass approval: "automatic" for the legacy immediate path. Failed review/test tasks do not unlock downstream work; automatic repair/review tasks do not depend on the failed review.

License

MIT

dsh-agent-teams (NanmiCoder/dsh-agent-teams)

正在搜索数据库…

这是什么?dsh-agent-teams 是一个 DeepSeek Harness 插件,它把当前的 Harness 会话变成一个「队长」,由它生成持久的子智能体队员,把目标拆解为考虑依赖关系的任务,并通过私信协调他们,直到工作完成。
这是一个独立应用,还是插入到其他东西上的插件?它是一个扩展 DeepSeek Harness(编程智能体宿主)的插件,而不是独立应用;它在 Harness 内部加入了团队协议、13 个协调工具、一个共享任务调度器和一个实时 Web UI。
我怎么安装并开始使用它?先安装 DeepSeek Harness(推荐搭配 0.1.2-rc.1),然后把 AgentTeams 插件以 npm「next」渠道的 v0.1.16-rc.3 版本装进你的 Harness profile,重启对应 profile 的 Harness,刷新浏览器,之后直接在聊天中描述你的目标或运行 /agent-teams 即可。
我需要特定版本的 DeepSeek Harness 吗?需要,该插件绑定特定的 Harness 版本组合(推荐 Harness 0.1.2-rc.1 搭配插件 0.1.16-rc.3),构建它还需要 Node.js ^22.19.0 或 >=24。
在依赖它之前有哪些主要的坑?Harness 和插件都还处于预发布阶段,因此版本搭配很重要;团队状态基于文件存储,且只在单个 DSH 进程内序列化(并发进程编辑同一团队时不会相互协调);模型偶尔会在完成工作时不执行预期的任务状态更新。
许可证有什么特别之处吗?没有,就是标准的 MIT,没有提到任何额外限制。
共享调度器如何决定谁做什么?它会跟踪真实的运行中/空闲/就绪状态,并在某个任务的依赖完成后,以原子方式把下一个就绪任务分配给空闲成员;被中断的尝试会保持挂起并通过私信恢复,冷重启时会以全新尝试重试搁置的未完成工作。
「先规划后执行」这一步是干什么的?正常的 /agent-teams 运行会先在 Web 面板中暂存一份尚未生成的成员名单和任务 DAG 供审核;只有点击 Approve & Run,才会真正创建队员并开始调度任务。
可选的质量门禁是什么?它们为任务串联起需求、实现、验证、评审和集成契约,当某项检查失败时会自动修复并重新评审。
不同的队员可以使用不同的 LLM 服务商吗?可以,一个明确的异构团队请求(例如「后端用服务商 A/模型 X,前端用服务商 B/模型 Y」)会为每个成员分配各自的服务商和模型;否则队员直接沿用队长当前的路由。
大小
17.2 MB
星标
3K
时长
3个月
提交 · 90 天