Learning resourcesReviewed · GitHub

GitHub Copilot SDK: Steering and queueing

GitHub's Steering and queueing guide helps developers build responsive Copilot SDK interfaces, but immediate messages cannot interrupt a tool call already in progress. It explains how to redirect an active agent turn, queue follow-up tasks, identify messages from other agents and interpret delivery acknowledgements. Steering is best-effort; accepted messages do not prove that the agent has consumed them.

Researched 24 Nov 2026

In short.

GitHub's Steering and queueing page is a practical guide for developers adding corrections and follow-up messages to Copilot SDK applications, with the catch that immediate delivery is best-effort. It documents enqueue as the default, explains when steering reaches the model and shows examples across several languages. Its strongest implementation details concern message acceptance, agent provenance and remote delivery limitations. It does not establish installation prerequisites, compatible SDK versions, prices or licensing terms. No examples were executed, so runtime behavior was not independently assessed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage comprises the complete supplied documentation body at [https://docs.github.com/api/article/body?pathname=/en/copilot/how-tos/copilot-sdk/features/steering-and-queueing], including its examples, API tables, best-effort steering notes and remote-provenance warning. Linked quickstart, custom-agent, hooks and persistence pages are excluded. The referenced diagram's image content was not supplied. Installation, pricing, licensing, version compatibility and runtime behavior remain unverified; no code or application was run.

The overview

Identity

Steering and queueing is a GitHub Docs feature guide for the Copilot SDK. It covers two ways to send messages while an agent is working: immediate delivery for corrections and enqueue delivery for follow-up tasks. The resource is documentation rather than a standalone application or installable extension.

The supplied source address is [https://docs.github.com/api/article/body?pathname=/en/copilot/how-tos/copilot-sdk/features/steering-and-queueing].

Assessment

The guide is useful when an application must accept input during a long agent task. It connects the delivery options to their internal scheduling behavior and explains failure-prone distinctions such as acceptance versus consumption.

It provides enough detail to choose a delivery pattern and adapt existing session code. It is not a complete introduction to installing, authenticating or operating the SDK, and its examples do not establish production reliability.

Users

The main audience is developers building chat interfaces, coding assistants or applications that coordinate multiple agents through Copilot SDK sessions. Beginners get concrete scenarios for choosing a mode; experienced developers get queue ordering, lifecycle events and provenance caveats.

Readers need enough programming knowledge to adapt asynchronous client and session examples. The page offers little introductory explanation of the broader SDK.

Capabilities

The documented modes let an application add context or corrections to active work, schedule follow-up messages in first-in, first-out order and combine both patterns in one session. When the session is idle, either mode starts a new turn immediately.

Examples cover TypeScript, Python, Go, .NET and Java. A separate provenance table also includes Rust. The TypeScript interface sketch listens for session.idle and assistant.message events and stores pending messages locally.

Using it

Requirements

Applying the examples requires a Copilot SDK client and session in the chosen language. The page shows session creation and permission handlers, but does not establish installation commands, authentication requirements, supported operating systems or minimum dependency versions.

The examples select gpt-5.4; the page does not establish that this model is mandatory or universally available. Most examples approve permission requests once, while the Java examples use APPROVE_ALL. These sample handlers need review against the application's intended permissions.

Mechanism

Immediate messages enter ImmediatePromptProcessor and are injected before the next model request within the current turn. A tool call already committed to completes first. If the turn ends before injection, the pending steering message moves to the front of the regular queue.

Enqueued messages enter the session's itemQueue. After the active turn finishes, processQueuedItems() processes them sequentially, with each message starting a full agent turn. Enqueue is the default when mode is omitted.

The optional source field identifies origin separately from delivery urgency. Identified agent sources serialize as agent-<id>; sender IDs should come from trusted application metadata rather than message text.

Setup

The examples create a client, start it where shown, create a session and send an initial prompt. Subsequent messages set mode to immediate for steering or enqueue for follow-up work. Omitting mode chooses enqueue.

For an interactive interface, the page sketches event listeners and a local pending-message list. The controls that let a user choose a mode while the session is busy are left for the application developer to implement. The linked quickstart is outside this page's supplied contents.

Example

One documented sequence starts a database-layer refactor, sends an immediate message asking the agent to preserve compatibility with the v1 API, then enqueues a request for migration scripts. The compatibility message can affect the active turn; the migration request waits for its own turn.

If a tool call is already underway, the correction takes effect only after that call completes. If the current turn finishes first, the correction becomes queued work. These are documented expectations; the sequence was not executed.

Assessment & evidence

Limitations

Steering is not a guaranteed stop mechanism: it cannot interrupt an already committed tool call and may become a later turn. The page also cautions that rapid steering messages can degrade turn quality.

A successful send acknowledgement confirms acceptance and returns a message ID; it does not prove consumption or require a visible reply. Send-and-wait can finish on an idle event without an assistant message.

Remote provenance is not guaranteed end to end. Mission Control may show source in a local echo without including it in the remote HTTP request. The interface example also lacks implemented busy-state choice controls and per-message consumption tracking.

Reasoning

The documented timing makes enqueue the more predictable choice for additional tasks, while immediate suits concise corrections to current work. Because immediate delivery waits for a model-request boundary, an interface should avoid presenting it as guaranteed prevention of an imminent action.

A further implementation implication is to distinguish pending work, accepted messages and visible assistant responses. The page establishes that these states are not interchangeable, so automatically resending an accepted message merely because no reply appears can duplicate work.

Alternatives

Within the documented SDK, choose enqueue for additional tasks and immediate for corrections or context needed during active work. For a major change of direction, the page suggests aborting the turn and starting fresh, but does not show the abort API.

The evidence does not compare competing SDKs or agent frameworks, so their relative suitability is not assessed.

Evidence

The evidence is the complete supplied GitHub documentation body, including language examples, API tables, internal queue descriptions, interface guidance and the remote-provenance warning. These support an explanation of documented behavior, not measured performance or verified runtime behavior.

The supplied source revision is sha256:945e458dadb43d39f398a504273aaf65ad074ca20271d6b2f11ed1ef8724c8e5. No code was executed, and no delivery timing, backend behavior or application outcome was tested.

Access & freshness

Costs

Costs are unknown. The page provides no subscription requirements, prices, billing units, quotas or usage estimates. Each queued message starts a full agent turn, but its charge is not specified.

The page explicitly says that source does not set billing flags. It does not establish whether immediate and enqueue delivery have different costs.

Rights

The supplied page contains no explicit license or redistribution terms for its prose, code examples or the SDK. Permission to reuse or redistribute those materials is therefore unknown from this evidence alone. Applicable official terms would need separate examination.

Freshness

The supplied page was captured on 24 November 2026 at 09:26:31.475 UTC. That timestamp establishes when the text was captured, not when GitHub last updated it.

The page supplies no publication date, last-updated date or SDK release number. Compatibility with a particular installed SDK version and changes after capture are unknown.

Actions

For an existing Copilot SDK application, begin with enqueue for follow-up tasks and expose immediate delivery for concise corrections. Show pending work and account for steering messages that become queued turns.

Before adoption, verify the relevant behavior against the installed SDK and backend: delivery during a tool call, fallback at turn completion, queue ordering and acknowledgement without a visible reply. These checks remain unperformed.

For messages from other agents, derive source IDs from trusted application metadata and verify remote propagation where needed. Review sample permission handlers, then obtain the missing installation, pricing and licensing details from the applicable official materials.

Evidence for this report

selected-page.txtselected · checked 2026-11-24