Skip to content

v0.5.0

Choose a tag to compare

@hueyexe hueyexe released this 18 Mar 01:12
· 89 commits to main since this release

Hooks, Context Injection, and Coordination

The lead now stays aware of team state across turns. Three hooks wired into the plugin:

  • experimental.chat.system.transform injects 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.compacting preserves team context when OpenCode compacts long conversations. The model remembers it's leading (or part of) a team after compaction.
  • shell.env sets ENSEMBLE_TEAM, ENSEMBLE_MEMBER, ENSEMBLE_ROLE, and ENSEMBLE_BRANCH in 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_approval column on team_member
  • directory field added to ToolDeps for project root access
  • SDK bumped to @opencode-ai/plugin 1.2.27

Full Changelog: v0.4.0...v0.5.0