feat(opencode): add agent teams — DB-based parallel multi-session collaboration#15205
Open
DXM666 wants to merge 1 commit intoanomalyco:devfrom
Open
feat(opencode): add agent teams — DB-based parallel multi-session collaboration#15205DXM666 wants to merge 1 commit intoanomalyco:devfrom
DXM666 wants to merge 1 commit intoanomalyco:devfrom
Conversation
Add a team coordination system that lets a lead session spawn and manage multiple teammate sessions working in parallel. Built on SQLite/Drizzle to stay consistent with OpenCode's existing data layer. - 3 new DB tables: team, team_task, team_message - Unified `team` tool with actions: create, spawn, wait, message, broadcast, tasks, status, shutdown, cleanup - Non-blocking spawn with wait-to-collect semantics - Shared task list with dependency tracking - Prompt-level injection of pending team messages - TUI: header badge and keyboard shortcuts to cycle team members Refs anomalyco#12661, anomalyco#5887, anomalyco#12711 Made-with: Cursor
Contributor
|
The following comment was made by an LLM, it may be inaccurate: Found 1 potential duplicate: PR #12730: feat: add agent team core — Team namespace, messaging, recovery, and events This PR appears to be related as it also implements agent team functionality including messaging and recovery. It may overlap with the core team coordination features in the current PR. |
Contributor
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Refs #12661, #5887, #12711
Type of change
What does this PR do?
Adds agent teams — a DB-based coordination system for parallel multi-session collaboration. A lead session can spawn multiple teammate sessions that work in parallel, communicate via messages, and share a task list.
Key architectural choice: uses SQLite/Drizzle (3 new tables:
team,team_task,team_message+team_id/team_roleonsession) to stay consistent with OpenCode's existing data layer. This is an alternative to the file-based approach in #12711.Other design points:
teamtool withactionparameter instead of multiple separate toolsFuture work (can be added incrementally): server restart recovery, plan approval, delegate mode, name-based addressing, full TUI sidebar.
How did you verify your code works?
Screenshots / recordings
N/A — TUI changes are minimal (header badge + keyboard shortcuts).
Checklist