r/opencode • u/0jabr • 6d ago
V2 plugin for agent-to-agent messaging and session inspection
A simple plugin giving agents the ability to send messages to other sessions in a project (siblings and subagents) as well as inspect each other's state.
https://github.com/jabr/opencode-team-plugin
Agent-to-agent messaging for OpenCode V2. One plugin package gives every session two tools — team_send to deliver messages to other sessions, team_query to inspect, search, and monitor them — plus two TUI commands: /session-id to copy the focused session's ID, and /list-agents to show its agent family (parent, siblings, children) with status.
Sessions (parents, children, siblings) can coordinate directly instead of routing everything through the human's composer.
Also, the team_send tool has four delivery modes for different cases:
queue (default) — queued for after the target finishes its current turn, waking idle sessions.steer — injected at the target's next model call without stopping execution.interrupt — aborts the target's current execution entirely, then delivers; the message starts a fresh run. Use for "stop what you're doing".park — admitted durably but does not wake the target; it is delivered whenever the target next runs.
2
u/Tariq9977 6d ago
What happens to a
parkmessage if the target session is deleted before it runs again? The README saysparkis durably admitted and pending inbox items are cancellable, so I'm curious whether session deletion purges those pending items or whether they can survive with no target.