Skip to content

feat(agent-team): add Agent Teams 0.5.5-rc.1 with shared tasks and Lead inbox - #151

Open
Vincent-chk wants to merge 7 commits into
zai-org:mainfrom
Vincent-chk:feat/agent-team-plugin
Open

Vincent-chk wants to merge 7 commits into
zai-org:mainfrom
Vincent-chk:feat/agent-team-plugin

Conversation

@Vincent-chk

@Vincent-chk Vincent-chk commented Nov 1, 2026 •

Copy link
Copy Markdown

Plugin type (required) / 插件类型(必填)

  • UI Plugin / 是 UI 插件 — provides MCP Apps interactive pages / 提供 MCP Apps 交互页面
  • Standard plugin / 普通插件(非 UI)
  • Not applicable / 不适用

Affected plugin name(s) / 涉及的插件名称:agent-team

Summary / 改动内容

Adds Agent Teams(智能体团队)0.5.5-rc.1, a release candidate for review and runtime acceptance. The plugin gives a Lead named teammate sessions, a shared task board, member messaging, and an MCP Apps panel. Registration is limited to external_plugins/agent-team/, assets/agent-team/icon.png, and the matching marketplace.json entry (developer-tools, EN/zh-CN).

The current candidate fixes two user-visible failures: creation/recovery could launch or dispose a teammate incorrectly, and a Lead waiting for a teammate received only a wake-up signal while the actual result remained queued until a later hook.

create task → spawn teammate with task ID → get/claim → execute → complete/report
                                                                ↓
                       Lead accepts ← wait_agent returns member messages
  • wait_agent returns pending Lead messages, including results from idle members; coordinator and proxy share durable receipts with inbox hooks. Responses are batched by encoded byte size. Partial receipt-write failure returns the result with a warning instead of losing its text.
  • The first spawn now supplies the complete on-demand collaboration guidance: create a shared task before delegated work, claim it, report completion, and record independent Lead acceptance. This is agent guidance, not a new hard runtime task gate.
  • Recovery preserves creation identity and confirmation budgets, avoids duplicate startup when receipts are missing, and fences stale coordinator operations after lock loss. Model selection continues to follow the Lead each turn; official coding-plan credentials cannot be inherited by CLI teammates and produce an explicit solo fallback.
  • EN/Chinese READMEs, /team, coordination skill, manifests and catalog are synchronized to 0.5.5-rc.1.

Evidence / 验证

  • Before: wait_agent could return only {timedOut:false} while the member result was still pending; the Lead repeated requests or used intermediate files. After: regression tests cover pending and in-flight results, idle members, concurrent proxy/coordinator consumption, hook deduplication, cancellation/isolation, byte-limited batches, and partial receipt failure.

  • Source: immutable commit 04c8e2697e4678ff9b5894a04f86e80899f556f6. All 32 submitted plugin files match the frozen candidate's per-file SHA-256 fingerprint. The locally retained standalone ZIP has SHA-256 c15e633fb98163f63bcc851fadfc2dc8694318a5cab96a6cca41df1015062196; deterministic double-pack and ZIP CRC checks passed. The marketplace build uses its own ZIP layout/timestamp policy, so its ZIP hash is reported separately.

  • Source acceptance run: env -u NO_COLOR npm test -- --retry 1 --hookTimeout 30000 — 964/964 tests, 75/75 files. An initial default-budget run had timing/resource failures; the three affected files passed an isolated 76-test recheck before the final full run. The reported final command permits one retry and a 30-second setup budget.

  • Native ZCode CLI 0.17.1 accepted the update from 0.5.4 to 0.5.5-rc.1; all 32 installed cache files match the candidate fingerprint. Installation acceptance does not establish the new model-driven workflow's E2E result.

  • Outstanding: after restarting ZCode, the owner will run this candidate's E2E in a new non-project session. Verify task creation/claim/completion and Lead acceptance, immediate result visibility before the Stop hook, and follow-up reuse of the same member. See the acceptance steps.

  • Marketplace checks on the updated branch: pnpm install --frozen-lockfile with pinned pnpm 10.33.2 completed; python3 scripts/validate.py passed for 53 plugins; native zcode plugins validate external_plugins/agent-team --json returned ok:true; git diff --check passed. The branch is based on latest main 0cc58d6.

  • Official marketplace build_zip + build_index_entry produced the agent-team artifact successfully: 32 files, all matching the source fingerprint, CRC valid, identical on a second pack. Marketplace ZIP SHA-256: ac189a8128dc28daa0b783b162baaf34c9f4ec3ffa7de4af536c3b9b7f17dc84.

  • Full-market build limitation: pnpm build stops at the unchanged photocraft plugin because rustup is unavailable. Consequently python3 scripts/build_dist.py also stops at photocraft: incomplete build. These full-market commands are not reported as passing; no unrelated plugin or toolchain change is included.

Dependencies, permissions and provenance

MIT plugin; bundled MCP SDK and other dependencies are declared in THIRD-PARTY-NOTICES.md. Readable runtime/*.mjs files are built from the linked source repository. Requires Node ≥22 and the host-bundled ZCode CLI. The daemon uses stdio; the optional companion page listens on loopback only. Teammate model requests use the Lead's configured provider. Plugin data and documented host task-index integration are described in both READMEs; host model configuration is inspected without exposing API keys. This candidate adds no external service or user configuration surface.

Merge Danger / 合并影响

Door: two-way for repository changes; revert this PR to remove the addition. Published versions remain immutable and installed copies require explicit update/reinstallation.

Blast Radius: plugin — teammate lifecycle, Lead inbox delivery and workflow guidance. Keep the rc designation until the pending ZCode E2E is accepted.

Self-check / 自查清单

  • Unique plugin name and community ownership under external_plugins/agent-team/
  • developer-tools category; UI Plugin and affected manifest name declared
  • Manifest and marketplace version agree: 0.5.5-rc.1
  • EN/Chinese README and localized descriptions synchronized
  • No credentials or private dependencies introduced
  • Model/API/network dependencies, side effects and licenses documented
  • Static validator, native plugin validator, focused official marketplace packaging and diff checks passed
  • Full-market pnpm build and python3 scripts/build_dist.py — blocked by the unrelated photocraft Rust toolchain requirement above
  • This candidate's real ZCode task/inbox workflow E2E accepted by the owner

@panda920

panda920 commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

@Vincent-chk

Copy link
Copy Markdown
Author

升级至 0.5.0(源仓库 v0.5.0,zip sha256 ae610d0f21c4f14b004c37453194c017ca7c5b95f9e92005b254e80d33eb1c0c)。

本版要点:leadMode 三档化——auto(新默认,按需委派:未建队=普通单 agent,建队后按委派价值判断)/ always(原主动编排)/ off(完全关闭:不注入、0 团队工具);旧值统一迁移 auto;三通道(hook 注入/工具描述/skill)同步。目录结构仍为 runtime/(非 dist/),README 双语与申报章节齐备,validate.py 53 插件全过。

@panda920

panda920 commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

@Vincent-chk

Copy link
Copy Markdown
Author

再升级至 0.5.1(Release,zip sha256 53c768a7…):Lead 的已确认模型为官方套餐(不可被成员 CLI 继承)时,每会话一次性注入「单 agent 兜底」提示——Lead 直接自己干全部工作、不再浪费轮次试建队;中途切第三方模型即恢复。validate 53 插件全过。

@panda920

panda920 commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

…g execution, dual-signal lock liveness, provisioning reconcile grace
@panda920

panda920 commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

@panda920

panda920 commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

@Vincent-chk Vincent-chk changed the title feat(agent-team): add Agent Teams plugin with shared task board panel feat(agent-team): add Agent Teams 0.5.5-rc.1 with shared tasks and Lead inbox Nov 4, 2026
@panda920

panda920 commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants