| 1 | # dsh-agent-teams bundle patch: mounts the agent-teams plugin into the host |
| 2 | # composition of a dsh profile. The plugin registers its `agent_teams_*` tools |
| 3 | # into the shared `tools` registry and one usage section into the global |
| 4 | # system prompt, so every session of the profile can drive AgentTeams through |
| 5 | # natural language ("用 AgentTeams 做 X"). |
| 6 | # |
| 7 | # Install: `dsh plugin --profile <name> add <this package>` (npm or a local |
| 8 | # path). The `dsh plugin` command pnpm-installs the package into the profile |
| 9 | # and reconciles it into the profile's `dsh.profile.bundles` layer list. |
| 10 | - insert: |
| 11 | - id: agent-teams |
| 12 | # Node-resolvable package name — must stay in sync with package.json |
| 13 | # `name`. Quoted because `@` is a reserved indicator in YAML and cannot |
| 14 | # open a plain scalar. |
| 15 | name: '@nanmicoder/dsh-agent-teams' |
| 16 | config: |
| 17 | # Team state lives under `<session workspace>/<stateDir>/<teamId>/` |
| 18 | # (team.json + inbox/*.jsonl mailboxes). |
| 19 | stateDir: .agent-teams |
| 20 | # Provider used to spawn member subagents ('spawn' or 'fork'). |
| 21 | memberProvider: spawn |
| 22 |