Files
cline/apps/examples/multi-agent
Tomás Barreiro 220a21bdcf Move sdk/apps/ to apps/ (#11200)
* Move the apps to the root dir

* Update all references from sdk/apps/ to apps/

* Update dependencies

* Install bun types

* Fix types

* Fix types

* Fix linter

* Ingore apps from vscode

* Fix security warning

* Fix windows install

* Enable windows dev mode

* Revert "Enable windows dev mode"

This reverts commit a46c99282e.

* Revert "Ingore apps from vscode"

This reverts commit 47f7b265d2.

* Revert "Fix windows install"

This reverts commit 1dabba1556.

* update the repo root

* fix root dir

* fix path

* fix other path

* Fix unrelated changes

* fix: address apps move follow-up blockers (#11228)

* fix: update root app command paths

* fix: include moved apps in root checks

* fix: clean up moved app path references

---------

Co-authored-by: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com>
2026-06-03 01:49:57 +02:00
..
2026-06-03 01:49:57 +02:00
2026-06-03 01:49:57 +02:00
2026-06-03 01:49:57 +02:00
2026-06-03 01:49:57 +02:00
2026-06-03 01:49:57 +02:00

Multi-Agent War Room

A web app that spawns four specialist agents in parallel, streams their responses to the browser in real time via SSE, then feeds their findings into a synthesizer agent that produces a unified decision brief.

Agent War Room interface

Getting started

Install dependencies:

bun install
bun run build:sdk

Set an API key:

export CLINE_API_KEY="cline_..."

Run:

bun dev

Open http://localhost:3456 in your browser, enter a mission, and watch the agents work.

What it does

  1. You enter a mission in the browser
  2. The server spawns four Agent instances in parallel via Promise.all:
    • Architect (system design)
    • Security Analyst (audit)
    • Pragmatist (product)
    • Skeptic (red team)
  3. Each agent streams assistant-text-delta events to the browser via SSE, rendered in its own card
  4. Once all specialists finish, a synthesizer agent combines their findings into a unified decision brief, also streamed live

Concepts demonstrated

  • Running multiple Agent instances concurrently with Promise.all
  • Per-agent subscribe() for independent event streams
  • Server-Sent Events (SSE) to stream agent output to a browser
  • Agent composition: feeding one agent's output as input to another
  • Inline HTML frontend served from the same Node.js server (single file, no build step)

Notes

For a simpler starting point, see quickstart. For custom tools and structured workflows, see code-review-bot.