v0.5.0
Hooks, Context Injection, and Coordination
The lead now stays aware of team state across turns. Three hooks wired into the plugin:
experimental.chat.system.transforminjects team state (member names, statuses, task counts, anti-polling guidance) into the lead's system prompt on every LLM call. Teammates get a short role reminder.experimental.session.compactingpreserves team context when OpenCode compacts long conversations. The model remembers it's leading (or part of) a team after compaction.shell.envsetsENSEMBLE_TEAM,ENSEMBLE_MEMBER,ENSEMBLE_ROLE, andENSEMBLE_BRANCHin teammate shells.
Plan Approval
Spawn teammates with plan_approval: true. They read and explore, then send a plan to the lead for review. Approve or reject via team_message with the new approve/reject args. Tracked in DB and visible in team_status.
Graceful Shutdown
team_shutdown now sends busy teammates a shutdown message instead of immediately aborting. They finish their current task and report back. Pass force: true to abort immediately. Second call to the same member also forces.
Also in this release
- Teammates receive project guidelines from AGENTS.md in their spawn prompt (truncated to 2000 chars)
- Schema migration 4:
plan_approvalcolumn onteam_member directoryfield added toToolDepsfor project root access- SDK bumped to
@opencode-ai/plugin1.2.27
Full Changelog: v0.4.0...v0.5.0