@haisto/opencode-broadcast
v0.1.0
Published
OpenCode plugin enabling inter-agent messaging (broadcast tool) for parallel subagents
Maintainers
Readme
@haisto/opencode-broadcast
OpenCode 插件:让并行子代理通过 broadcast 工具互相通信(Inter-Agent Messaging)。
状态:实现完成 — 核心行为对齐 [email protected],投递为直投式(D8);端到端冒烟已通过(真实 OpenCode 会话);单测(59)/typecheck/build 全绿。细节见
AGENTS.md。
能力(对齐 [email protected])
broadcast(message="...")— 首次调用为自我介绍,之后为群发broadcast(send_to="agentB", message="...")— 定向发送broadcast(reply_to=1, message="...")— 回复消息(自动接线收件人)- 消息以真实用户消息推送到收件人会话(直投式):
[Broadcast #N from X]: 正文;收到后可直接用reply_to=N回复
开发
bun install
bun run typecheck
bun test
bun run build使用
在 OpenCode 配置中加入插件:
{
"plugin": ["@haisto/opencode-broadcast@latest"]
}架构
技术架构参照 opencode-mem:Bun + TypeScript(strict)+ OOP services 分层 + bun:test。
详见 AGENTS.md。
