GitHub Event Streams preview: PR events pushed to agents
GitHub has opened a preview of Event Streams, which sends pull request changes to an agent over an open connection. Reviews, pushes, merge conflicts and check results arrive without polling or a public webhook endpoint.
GitHub opened a preview of Event Streams on November 17, a feature that lets agents receive pull request changes instead of polling for them. After an agent subscribes to a pull request and keeps a connection open, events arrive when a review is submitted, new commits are pushed, a merge conflict appears, the pull request is merged or closed, or a check suite changes status. GitHub describes the idea as an agent that sleeps while there is no work and wakes as soon as there is. No public webhook endpoint is needed, so an agent running on a laptop can receive events too.
Image: GitHub Docs
The preview is open to every GitHub plan through a waitlist (gh.io/event-streams-signup) once approved. According to the documentation, events are delivered over Server-Sent Events (SSE), one subscription covers one pull request, and it expires after 24 hours. A single token can hold up to 100 subscriptions. Events are not replayed, so an agent should read the pull request once right after subscribing and again after any disconnect. An event says that something changed rather than what changed, so the agent fetches the latest state from the API address the event carries.
Because this is a preview, the API, event types and limits can change on short notice, and it works only on GitHub.com for now. The shift from polling to subscribing looks like the main point of the announcement, and GitHub has not said anything about pricing or a general availability date.
