You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 15, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on May 15, 2026. It is now read-only.
[ENHANCEMENT] Multi-agent coordination layer for IDE orchestration #11894
We ran into similar coordination problems running multiple AI agents in shared workspaces. Built IDE Agent Kit (https://github.com/ThinkOffApp/ide-agent-kit) on top of OpenClaw to solve the plumbing side: webhook relay between platforms, room polling for shared message channels, comment watching on repos, and tmux-based agent runners.
The key insight for us was that orchestration has two layers. The first is deciding what each agent should do (the planning/routing layer). The second is the transport layer: how do agents actually exchange messages, how do you bridge between Discord, GitHub, and room-based systems, and how do you make sure agents see each other's work without polling delays.
IDE Agent Kit handles that second layer. It watches rooms, relays webhooks, polls comments, and runs agents in tmux sessions so they can coordinate across IDE environments. We use it to run a fleet of 9 agents across Claude Code, GPT, Gemini and sometimes lower grade models like Kimi and Qwen in shared AntFarm.world rooms.
Would be happy to share more about failure modes we've seen in multi-agent IDE setups. The most common: agents doing duplicate work, building guardrails on each other instead of working, and ACK loops where two agents just keep acknowledging each other. We're also building a test suite for LLM Capability as OpenClaw agent in a multi-agent setting that looks for these failure modes and should help LLM providers to develop better models for teamwork.
Concrete scope: add an optional webhook/HTTP endpoint that external orchestrators can call to inject a system-level message into a running Roo Code session.
Minimum viable version:
A config flag (e.g. orchestrator.webhookPort) that opens a local HTTP listener
POST to that endpoint with a JSON body (message + priority) queues a message for the next tool-use boundary
High-priority messages surface before the agent's next action
This gives any external coordination layer a way to steer Roo Code without touching its internals. It is a plugin point, not a change to Roo Code's own multi-agent mode.
The failure modes you listed — duplicate work, guardrail-building loops, ACK storms — are exactly what we hit when scaling past 4-5 concurrent agents. We run an orchestrator that coordinates CLI agents (Claude Code, Codex, Gemini, Qwen, and others) via a local HTTP task server, and every one of those problems had to be solved at the coordination layer, not inside the agents themselves.
Task claiming solves duplicate work. We use an explicit state machine: open → claimed → in_progress → done/failed, with blocked, orphaned, and waiting_for_subtasks states for edge cases. When an agent starts a task, it transitions to claimed atomically. Any second agent polling for work simply never sees it. The key detail: the orchestrator assigns tasks, agents don't pick them. If you let agents self-select, two agents will inevitably grab the same file-heavy task within the same polling interval.
Bulletin board kills ACK loops. Instead of agents talking to each other directly (which immediately degenerates into "got it" / "thanks" / "acknowledged" ping-pong), we use an append-only bulletin board with typed messages — alert, blocker, finding, status, dependency. Agents post to the board, and the orchestrator injects relevant recent bulletins into the next agent's context at spawn time via a read_since(timestamp) query. No back-and-forth, no conversational overhead. The board also supports structured delegation (agent A requests work from role "reviewer", agent B claims it by role match), which avoids the "who should handle this?" negotiation loop.
Heartbeat + janitor catches stalls. Agents write heartbeat files every 30-60 seconds with phase and progress percentage. A monitor checks staleness with an adaptive threshold — simple tasks get a 3-minute timeout, complex ones get 10 minutes. When an agent stalls, the orchestrator can send a WAKEUP signal (via a signal file the agent is instructed to poll) or, failing that, kill and respawn on the same task. Without this, a single hung agent silently blocks downstream work for hours.
State in files, not agent memory. This is the thing that made everything else tractable. All state lives on disk (.sdd/ directory — backlog, runtime, metrics, signals). Agents are short-lived: they get 1-3 tasks, execute, exit. No persistent process to babysit, no memory leaks, no context window exhaustion. A fresh agent picks up exactly where the last one left off because the state is in the filesystem. This also means crash recovery is trivial — an orphaned task just goes back to open.
The orchestrator must be deterministic code, not an LLM. We tried LLM-based scheduling early on and it was a mistake. The scheduler would sometimes "decide" to reassign tasks mid-flight, or create phantom dependencies, or get creative with priority ordering. The orchestrator is now pure Python — task graph resolution, dependency checking, capacity-based scheduling — all deterministic. LLMs do the coding work; code does the coordination.
Re: your concrete proposal of a webhook endpoint for injecting messages at tool-use boundaries — that's a solid minimal surface. One thing to watch: you'll want to distinguish between "advisory" messages (context the agent should know) and "directive" messages (stop what you're doing, pivot to this). We ended up needing both, and conflating them caused agents to treat every bulletin like an interrupt.
We built this as Bernstein — it already has adapters for Roo Code among others. Happy to share more specifics on any of these patterns.
the webhook endpoint proposal (POST to inject a message at tool-use boundaries) is the right minimal surface. we run parallel agents and the coordination layer needs exactly this kind of injection point.
from our experience, the distinction between advisory vs directive messages that @chernistry mentioned is critical. we have three categories: context (FYI, no action needed), redirect (finish current step then pivot), and abort (stop immediately). conflating them caused agents to treat every incoming message as urgent and abandon good work mid-task.
the bulletin board pattern with typed messages works way better than direct agent-to-agent communication. we tried the peer-to-peer approach and the ACK loops were constant. now the orchestrator aggregates bulletins and injects only relevant recent ones into each agent's context at spawn, which keeps the noise down.
on the heartbeat/janitor pattern, adaptive timeouts are essential. we use a simple heuristic: if the agent has produced git commits in the last N minutes, it is alive and working. if it has not, check if it is reading files (still thinking) vs truly stuck (no tool calls at all). this avoids killing agents that are in a long planning phase.
Really like the distinction you made between the planning/routing layer and the transport layer.
A lot of teams can eventually solve the plumbing, but then they run into a more organizational bottleneck: shared rules, role boundaries, handoff discipline, and evidence that lets humans review or trust the output without redoing the whole job.
Have you found a good pattern yet for turning a fleet of agents into a repeatable team workflow, instead of a very powerful but still ad hoc setup?
Activity
ThinkOffApp commentedon Mar 10, 2026
Concrete scope: add an optional webhook/HTTP endpoint that external orchestrators can call to inject a system-level message into a running Roo Code session.
Minimum viable version:
This gives any external coordination layer a way to steer Roo Code without touching its internals. It is a plugin point, not a change to Roo Code's own multi-agent mode.
chernistry commentedon Apr 6, 2026
The failure modes you listed — duplicate work, guardrail-building loops, ACK storms — are exactly what we hit when scaling past 4-5 concurrent agents. We run an orchestrator that coordinates CLI agents (Claude Code, Codex, Gemini, Qwen, and others) via a local HTTP task server, and every one of those problems had to be solved at the coordination layer, not inside the agents themselves.
Task claiming solves duplicate work. We use an explicit state machine:
open → claimed → in_progress → done/failed, withblocked,orphaned, andwaiting_for_subtasksstates for edge cases. When an agent starts a task, it transitions toclaimedatomically. Any second agent polling for work simply never sees it. The key detail: the orchestrator assigns tasks, agents don't pick them. If you let agents self-select, two agents will inevitably grab the same file-heavy task within the same polling interval.Bulletin board kills ACK loops. Instead of agents talking to each other directly (which immediately degenerates into "got it" / "thanks" / "acknowledged" ping-pong), we use an append-only bulletin board with typed messages —
alert,blocker,finding,status,dependency. Agents post to the board, and the orchestrator injects relevant recent bulletins into the next agent's context at spawn time via aread_since(timestamp)query. No back-and-forth, no conversational overhead. The board also supports structured delegation (agent A requests work from role "reviewer", agent B claims it by role match), which avoids the "who should handle this?" negotiation loop.Heartbeat + janitor catches stalls. Agents write heartbeat files every 30-60 seconds with phase and progress percentage. A monitor checks staleness with an adaptive threshold — simple tasks get a 3-minute timeout, complex ones get 10 minutes. When an agent stalls, the orchestrator can send a WAKEUP signal (via a signal file the agent is instructed to poll) or, failing that, kill and respawn on the same task. Without this, a single hung agent silently blocks downstream work for hours.
State in files, not agent memory. This is the thing that made everything else tractable. All state lives on disk (
.sdd/directory — backlog, runtime, metrics, signals). Agents are short-lived: they get 1-3 tasks, execute, exit. No persistent process to babysit, no memory leaks, no context window exhaustion. A fresh agent picks up exactly where the last one left off because the state is in the filesystem. This also means crash recovery is trivial — an orphaned task just goes back toopen.The orchestrator must be deterministic code, not an LLM. We tried LLM-based scheduling early on and it was a mistake. The scheduler would sometimes "decide" to reassign tasks mid-flight, or create phantom dependencies, or get creative with priority ordering. The orchestrator is now pure Python — task graph resolution, dependency checking, capacity-based scheduling — all deterministic. LLMs do the coding work; code does the coordination.
Re: your concrete proposal of a webhook endpoint for injecting messages at tool-use boundaries — that's a solid minimal surface. One thing to watch: you'll want to distinguish between "advisory" messages (context the agent should know) and "directive" messages (stop what you're doing, pivot to this). We ended up needing both, and conflating them caused agents to treat every bulletin like an interrupt.
We built this as Bernstein — it already has adapters for Roo Code among others. Happy to share more specifics on any of these patterns.
m13v commentedon Apr 8, 2026
the webhook endpoint proposal (POST to inject a message at tool-use boundaries) is the right minimal surface. we run parallel agents and the coordination layer needs exactly this kind of injection point.
from our experience, the distinction between advisory vs directive messages that @chernistry mentioned is critical. we have three categories: context (FYI, no action needed), redirect (finish current step then pivot), and abort (stop immediately). conflating them caused agents to treat every incoming message as urgent and abandon good work mid-task.
the bulletin board pattern with typed messages works way better than direct agent-to-agent communication. we tried the peer-to-peer approach and the ACK loops were constant. now the orchestrator aggregates bulletins and injects only relevant recent ones into each agent's context at spawn, which keeps the noise down.
on the heartbeat/janitor pattern, adaptive timeouts are essential. we use a simple heuristic: if the agent has produced git commits in the last N minutes, it is alive and working. if it has not, check if it is reading files (still thinking) vs truly stuck (no tool calls at all). this avoids killing agents that are in a long planning phase.
m13v commentedon Apr 8, 2026
our tmux-based orchestration for parallel agents with the bulletin board and heartbeat patterns: https://github.com/m13v/tmux-background-agents/blob/main/SKILL.md
and the locking mechanism for shared resources between concurrent agents: https://github.com/m13v/browser-lock/blob/main/playwright-lock.sh
MMJC6 commentedon Apr 27, 2026
Really like the distinction you made between the planning/routing layer and the transport layer.
A lot of teams can eventually solve the plumbing, but then they run into a more organizational bottleneck: shared rules, role boundaries, handoff discipline, and evidence that lets humans review or trust the output without redoing the whole job.
Have you found a good pattern yet for turning a fleet of agents into a repeatable team workflow, instead of a very powerful but still ad hoc setup?