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 }}
Repository navigation
[Feature]: CLI event stream for agent status (orca events subscribe) #37016
Tools that supervise many Orca agents from outside the app (CLI scripts, coordinator agents in a terminal) have no push channel for agent state. Plugins can subscribe to agent.status.changed, but the CLI cannot, so external monitors poll orca worktree ps --json / orchestration worker-show on a timer. With ten workers that is constant traffic and still up to one interval late when an agent starts waiting for input.
Newline-delimited JSON, first line an ack (subscription_started), then one line per event with the same payload plugins receive.
Explicit loss signal: if the reader falls behind, emit events_lost and close, so the client resubscribes and reconciles with a snapshot (worktree ps --json) instead of silently missing transitions.
Works against paired servers with --environment, like the other commands.
Activity
0xAlbertChen commentedon Nov 30, 2026
Strong +1. Event subscriptions are essential for scaling external orchestration without expensive polling.
Repeated CLI calls to inspect every agent, terminal, worker, and task become increasingly inefficient as the fleet grows.
For a target fleet of up to 100 concurrent agent seats, we need:
This would also make integration with Prometheus, Grafana, and external workflow engines much easier.
The goal is to move from polling-based monitoring to reliable event-driven orchestration.
Related: #9228, #37407.