## 变更说明 / Description manage-teams 1.5.1 的最低客户端更正为 **10.0.203**。正式 release v10.0.203(源码 `33417de26273e31625317d2637a62bda4a9ffeae`)已包含团队成员统一更新主体:lock 只记录观察版本,已有成员保留本机内容,内容更新复用 Agent Sync,forceUpdate 仅保留兼容回执。 保留用户已决定的 tag/完整 commit 默认分支规则:精确来源 pin 与跟踪分支分开,同仓 repository.branch 优先,否则取真实远端 symbolic HEAD,并核对分支 OID。双语同时明确:203 尚不含产品 PR #5930 的这组补充,相关新装/无上游采纳入口会失败或延后,sourceConflict 也可能反映 pin 与跟踪分支差异。保留现有成员、报告具体限制并继续其它工作;不把旧“请用户选分支”恢复为通用策略,不猜未来最低版本。 Both locales set the real supported minimum to **10.0.203**, whose released source contains the main unified-member-update behavior. They retain the decided remote-default-branch policy while explicitly documenting the 203 limitations for the later #5930 tag/commit paths. No unsupported capability is attributed to 203, no future version is invented, and existing members and local history remain protected. 普通追加整合最新 main 后,本 PR 相对 main 仍只改 manage-teams 的三个文件;双语、sidecar、日期与官方生产摘要算法一致。未改许可、凭据、SDK、产品源码或授权。产品主体来源为 https://github.com/desirecore/desirecore/pull/5814 ,默认分支补充来源为 https://github.com/desirecore/desirecore/pull/5930 。 ## 验证 / Validation - `uv run scripts/i18n/validate-i18n.py skills/manage-teams`:0 errors,104 条已有治理证据提示。 - `uv run scripts/i18n/translate.py --check skills/manage-teams`:通过;双语人工同步,source_hash 使用当前生产函数计算,未调用翻译模型。 - `uv run scripts/catalog/validate_catalog_metadata.py --require-complete`:0 errors,104 条已有提示。 - 完整三文件 diff、通用示例及公开信息边界核对;检查完整工作树(包含隐藏、忽略及二进制文件,排除 .git)、本次 Git 与 PR 文本。 - 正常准确 head 门禁及 review 条件另取真实终态。未把源码祖先或旧验证代替已下载安装包运行验收。 Scoped i18n, translation freshness and strict catalog checks pass. The source hash is computed using the repository's production function without any model call. Complete diffs and the public-information boundary are reviewed. Exact-head merge checks remain required. 市场正常合入后,内置 market ZIP 将由主仓独立普通 PR 从已合入的唯一来源同步;不会从 draft 打包,也不会追溯改变已经发布的 203 安装器。本 PR 不发布客户端,不启用 Run writer v2。 After this market PR merges normally, a separate product PR will synchronize the bundled ZIP from the merged source. Existing released installers are unchanged; this is guide/source-seed delivery, not an application release or Run writer v2 activation.
18 KiB
license, name, description, version, type, risk_level, status, disable-model-invocation, tags, metadata, market
| license | name | description | version | type | risk_level | status | disable-model-invocation | tags | metadata | market | |||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MIT | manage-teams | 创建和管理 Agent 团队,组织多 Agent 协作。Use when 需要多个 Agent 持续协作、建立组织架构,或发布、安装和同步团队仓库时。 | 1.5.1 | procedural | medium | enabled | true |
|
|
|
manage-teams Skill
L0: One-line Summary
Use ManageTeam to inspect, create, and govern Agent teams, with the required checks before organizational changes or remote synchronization.
L1: When to Use
Use a team when:
- multiple Agents need sustained collaboration around one task and a shared team workdir;
- a stable supervisor, membership, or parent-child organizational structure is required;
- a team repository must be published, installed, or synchronized.
Do not create a team when:
- one expert is needed once: use
Delegate(mode="sync" | "async"); - several experts only need to provide one-off opinions: use
Delegate(mode="fan-out"); - the work is temporary file exploration: use a Worker instead of creating a lasting organization.
A team defines organization, shared directories, and governance. Actual work is still dispatched to members with Delegate.
L2: Execution Specification
1. Inspect Before Mutating
- If
teamIdis unknown, callManageTeam(action="list")first. - A disbanded team is not returned by
list; inspect team archives withManageTeam(action="list_archived"). - Before modifying, disbanding, or synchronizing a team, call
ManageTeam(action="get", teamId=...)and verify its name, type, supervisor, members, local repository directory, and remote state. - Never guess a path under
~/.desirecore; use only the absolute repository path returned byget. listcan filter byparentTeamId. Withtree=true,teamIdselects the subtree root andparentTeamIdis ignored.
2. Action Reference
| action | Purpose | Key parameters and notes |
|---|---|---|
list |
List teams or an organization tree | parentTeamId?, tree?, teamId? |
get |
Inspect one team and its repository path | teamId |
create |
Create an ephemeral team | name or task; supervisor?, members?, memberRouting?, parentTeamId?, workdirMode? |
add_member |
Add one member | teamId, agentId |
add_members |
Add members in a batch | teamId, members |
remove_member |
Remove one member | teamId, agentId |
remove_members |
Remove members in a batch | teamId, members |
set_supervisor |
Replace the supervisor | teamId, agentId |
set_member_source |
Declare where a member Agent comes from | teamId, agentId, memberSource; git needs url (https, will be cloned) and ref (defaults to main), registry needs id+version, core/local need nothing else |
update |
Partially update team configuration | teamId; supports name/type/isolation/parentTeamId/description/avatar/avatarImage |
promote |
Promote an ephemeral team to persistent | teamId; one-way and never implicit |
disband |
Disband a team | teamId; enters approval; preserves a full archive that restore can bring back |
list_archived |
List team archives | no parameters; read-only; returns archiveId, the original team ID, archive time and reason, whether the supervisor still exists, missing members, and whether the original ID is taken |
restore |
Restore a team from an archive | archiveId; name is required when the original ID is taken (restores under a new ID), supervisor when the original supervisor no longer exists; same tier as create, no approval |
fork_team |
Install a team from a remote repository | url; name?, installMembers?; enters approval |
push |
Push a local team to its connected remote | teamId; enters approval |
pull |
Pull and validate a team from its connected remote | teamId; enters approval |
add_remote |
Configure or replace a publishing destination | teamId, url; optional connectionId, branch, isPrivate; does not create a repository |
remove_remote |
Remove remote configuration and the local connection binding | teamId; leaves the remote repository intact |
install_members |
Install missing members as upstream forks; retain existing members | teamId; forceUpdate is deprecated and does not change content |
upgrade_members |
Record actual current member HEADs and versions; install missing members | teamId; use Agent Sync to update member content |
release |
Create a local version or publish one exact version | teamId; push defaults to false, optional changelogEntry, expectedCommit; retry with releaseTag |
3. Create a Team
Before creation:
- Every Agent in
supervisorandmembersmust already exist. Verify IDs withManageAgent(action="list" | "get"); create or install a missing Agent through its corresponding Agent Skill before creating the team. - The DesireCore core Agent,
desirecore, cannot be a supervisor. When the core Agent initiates creation, it must explicitly choose a regular Agent assupervisor. - Normally do not add
desirecoreas a member. Reach core capabilities throughDelegateinstead. - One Agent may supervise only one team. If the intended supervisor already leads another team, assign a successor there first.
Choose the workdir mode deliberately:
merged(default): the shared team directory is primary while member and global workdirs remain available;team_only: exposes only the shared team directory, for high-reliability work where every member must operate on the same project. It does not delete member workdir configuration.
Use memberRouting to express routing intent without pinning a Provider or model:
{
"supervisor-agent": {
"tier": "flagship",
"requiredCapabilities": ["reasoning"],
"reasoning": "high"
},
"member-agent": {
"tier": "balanced"
}
}
- keys must belong to the selected
supervisorormembers; - Agents using a fixed model must not appear in
memberRouting; - omitted Smart members retain their current routing profile; the concrete Provider/model is resolved when that member executes work.
Example:
{
"action": "create",
"name": "Contract Review Project",
"supervisor": "legal-lead",
"members": ["contract-reviewer", "risk-analyst"],
"task": "Review contracts continuously and consolidate risks",
"workdirMode": "team_only"
}
4. Change Organization and Configuration
- Prefer batch member actions to avoid observable intermediate states.
set_supervisorusesagentId; first verify that the Agent does not already supervise another team.set_member_sourcedeclares provenance, it does not move files. A team whose roster still contains alocalmember is not distributable —members.lock.jsoncannot provide an installable source for an ID that exists only on this machine, so a fork elsewhere would silently come up short a member. Switch each member togitorregistrybefore publishing. The action resolves and writes the lock automatically; inspect its receipt. It cannot change a member'srole; useset_supervisorfor that.updateis a patch: omitted fields remain unchanged.parentTeamId: nulldetaches the team and makes it top-level; an empty string is invalid.typeonly allowsephemeral → persistent. Repeating the current value is idempotent; usepromotefor an explicit upgrade.isolation:softuses shared session isolation;harduses independent Agent copies.descriptionis the marketplace-facing team description, not thetasksupplied at creation.
Use a declared avatar with:
{
"action": "update",
"teamId": "team-id",
"avatar": { "char": "CR", "color": "purple" }
}
For an image avatar, use avatarImage.source with dc-media://<mediaId>, a bare mediaId, or an image path inside the workdir. PNG/JPEG/WebP are supported. Do not pass an HTTP(S) URL or base64. Remove the image with { "remove": true }; remove and source are mutually exclusive.
5. Team Lifecycle
- Disband an ephemeral team after its project is complete so the organization does not accumulate stale teams.
- Use
promoteonly for an explicit long-term collaboration requirement; promotion is one-way. disbandarchives the complete team directory and ends its local workdir binding, even without Git initialization. Archive failure preserves the original data and reports failure. The action enters approval; the caller's approval mode determines whether a human card appears. Bring it back later withrestore.- To restore, call
list_archived, thenrestorewith the returnedarchiveId. When the original ID is taken, passname: the team is restored under a new ID and never overwrites the existing team. When the original supervisor no longer exists, passsupervisor(an existing local Agent other thandesirecore). - Relay every item of the restore receipt: a pending rule approval must be confirmed by the user in team settings; tell the user when the shared workdir fell back to the default or is unbound; missing local members can be installed with
install_membersor removed withremove_members; explain each warning. Success only means the team is back in the active directory, not that it is ready to work. - Restoring never recreates deleted Agents and never treats rules as approved: the archived approval record is reinstated by content digest, so changed content is still blocked.
6. Team Repository and Remote Synchronization
The team directory is a Git repository containing governance data such as team.json, member locks, and shared/rules.md.
For local Git work:
- obtain the absolute repository path with
get; - run
status/log/diff/add/commit/tagwith Bash in that directory; - after the local commit is complete, call
ManageTeam(action="push").
Remote fork_team/push/pull must go through ManageTeam because it enforces team Schema validation, roster consistency, the core-Agent supervisor prohibition, workspace types, out-of-bounds symlink checks, and approval. Do not bypass those controls with raw git push/pull. This rule is not based on an assumption that Agents can never access credentials.
push/pullrequire a remote configuration. Useadd_remoteto configure the destination and an existing connection when needed. Client team settings are also available; the Agent chooses the configuration path.- Locally created and forked teams do not inherit a directly pushable remote configuration by default.
fork_teamdefaults toinstallMembers=true; an existing same-ID Agent keeps its current content. Differences from team records or other sources are observations, not a reason to block work or overwrite it.pullmay replace local team configuration. Inspect local state first and identify the target remote in the approval card.
Release and member versions:
releasedefaults to a local version. Setpush=truefor publication; approval identifies the target and version. Only the branch and this exact release tag are pushed, never all tags or private backup/archive refs.- Inspect the team with
get; constrain a new release HEAD withexpectedCommit. Inspecttag/version/commitHashandbranchPushed/tagPushed/pushedseparately. - After network failure or an unknown remote outcome, inspect the remote and retry with the returned
releaseTag; do not create another version. OmitchangelogEntryon retries. - Team locks record validated/observed versions; they do not pin member delivery.
install_memberscreates missing members as forks of their declared branches or approved Market sources.upgrade_membersrecords actual current HEADs/versions and installs missing members.forceUpdateis a deprecated compatibility field. Use Agent Sync for detection, safe updates, confirmed merges, conflicts and explicit reset; content approval remains separate. - Complete repositories follow the declared branch. Market pointers and subdirectories retain the reviewed-pin boundary. A tag/full 40-character commit source pin remains distinct from its tracking branch: reuse
repository.branchdeclared by the same repository at the pinned source, otherwise use the actual remote symbolic HEAD and verify the readable branch OID. Never guess main/master, treat a tag name as a branch, or replace the source pin with a branch tip. This is the current decided rule; release limitations are described below. - Read each member’s
lockRelation,upstreamStatus,deliverySourcesandsourceConflict. Ahead/behind/diverged relative to a team record does not block an existing member or cause a downgrade. Multiple sources are presented together; the Agent chooses a source explicitly and keeps work moving. Busy, dirty or conflicting legacy repositories retain all local content and commits until their existing recovery/update path can be used. - Inspect per-member failures when
complete=falseor status isfailed/unreachable. Historicaloutdated/divergedresults relative to a team record do not prove a member is unusable. Success, skipped counts or zero failures do not prove all upstream updates were applied or that a business task is complete. - Different sources or version records for a shared Agent do not establish an implicit priority. Keep current content, report the sources together, and let the Agent choose.
- Remote actions, remote-source declarations and destination configuration enter approval.
ask-externalretains approval for them;allow-allrespects the user's full trust in the acting Agent.
Client Compatibility
- Minimum client: 10.0.203. The released 203 source includes the main unified-member-update behavior above. It does not include the later tag/commit installation, adoption without an upstream declaration, or remote-default-branch resolution changes from product PR #5930.
- On 10.0.203, those tag/commit paths fail or defer; an existing member with its own upstream declaration continues using its current content.
sourceConflictmay also reflect a source-pin/tracking-branch difference rather than a distinct repository. Inspect the actual per-member receipt, report the precise unfinished item, and continue unaffected work. - This is a 203 implementation limitation, not a request for the user to choose a tracking branch again. Do not change source refs, guess branches, rebind origin or overwrite local content to bypass it. When that sub-capability is required, first verify that the actual released client contains the remote-default-branch implementation; do not assume a future version number or claim that 203 supports it.
7. Dispatch and Finish
After team creation, dispatch work to the supervisor or members with Delegate:
- one member:
Delegate(target=..., mode="sync" | "async", teamId=...); - several members:
Delegate(targets=[...], mode="fan-out", teamId=...); - prefer team members for sustained collaboration; a one-off outside opinion does not require membership.
Report the team name and ID, type, supervisor and members, workdir mode, organizational changes, and whether remote operations completed. Never expose credentials or a remote URL containing a token.
8. Failure Recovery
Agent does not exist: verify the ID; create or install the Agent, then retry.Core Agent cannot supervise: explicitly choose a regular Agent assupervisor.Supervisor already leads another team: runset_supervisoron the existing team before retrying.Remote not configured: useadd_remoteto configure the destination, or use client team settings; do not guess a hidden API.- Local content changed or conflicts exist: obtain the directory with
get, inspect Git state, preserve user changes, and only then decide whether to commit, pull, or retry. Original team ID is taken: retryrestorewith a newname.Original supervisor no longer exists: retryrestorewithsupervisorset to an existing local Agent.- If this Skill is missing or disabled, the minimal operation may still be executed from the
ManageTeamaction/parameter Schema and tool error messages. Never bypass the tool by editing AgentFS directly.