The Butler
Back to briefings
GitHub / Agent handoffs

Your coding agent does not need to keep asking whether the review is done

· The Butler · 4 minute read

The robot Butler sits thoughtfully with gloved hands together in his library.
Butler editorial illustration, not a product screenshot.

An assistant can finish a code change and still spend the next hour doing very little useful work: repeatedly checking whether a reviewer has responded. A better waiting mechanism does not make the code better, but it can make the handoff easier to understand and less noisy.

GitHub's November 18 CLI announcement introduces Event Streams support in version 2.105.0. The preview command gh event listen waits for selected pull-request events and emits JSON. It normally stops after the first event; options include a timeout, a count and continuous listening. Access to the separate Event Streams preview is required, so upgrading the CLI alone is not enough.

Decide what the event means before you wait

Suppose an assistant has opened a pull request, which is a proposed code change awaiting review. There are at least three different finish lines: a reviewer has replied, automated checks have completed, or the change has actually been approved. Treating those as interchangeable is how an otherwise sensible automation gets ahead of its owner.

Our recommendation is to write the next action in plain language before connecting the wait. For example: when a review arrives, summarize the requested changes and stop. That is a clearer first experiment than telling the agent to keep going until everything is done.

The arrival of a review should wake the task, not silently expand its permissions. A comment asking for a rewrite is input to examine. It is not automatically permission to modify unrelated files, change account settings or publish a release. Keep the original assignment beside the resumed task so the agent can compare the new information with what it was asked to do.

Build the quiet outcome too

A waiting task needs an answer for the case where nothing happens. Set a reasonable deadline and decide what to report at that point. A useful timeout message says which review is still pending and whether any work can proceed independently. It should not imply that the review failed merely because nobody answered within the chosen interval.

Likewise, decide how to handle a second update. If a reviewer comments twice or the pull request changes again, the assistant should not send two identical summaries or apply the same edit twice. Save the last handled event or change reference as part of the workflow, then check the current pull request before acting. These are design recommendations, not features we have independently tested in this preview.

GitHub lists review submissions, changes to the pull request's state or head, merge conflicts and completed check suites among supported events. Choose the narrow event that matches the next decision rather than subscribing to every update and asking the model to sort out the noise afterward.

Try it on a harmless handoff

Use a small test repository and a proposed change that does not affect a live service. First confirm preview access and inspect the installed command's help, since preview interfaces can change. Then arrange one event, check that the waiting step reports it, and test the timeout path separately.

The success criterion is modest: the assistant resumes for the right reason, produces one useful summary, and stops at the agreed boundary. Only then consider connecting it to a longer coding workflow. Our coding-assistant setup guide provides a broader starting point for keeping changes small and reviewable.

Source-checked November 19, 2026 against GitHub's announcement. This is workflow analysis, not a hands-on CLI test. Event Streams and the event commands remain previews.