Harness Notes

Steering

Updated 2026-11-22,

On this page

How to redirect, queue, stop or question an agent while it works, and how tools and extensions can feed it context. Each entry says when the input lands, what happens to running tools, and whether you can see it afterwards. Columns show each harness's main surface first, then its other surfaces.

You want toClaude Codeterminal
Change direction mid-turn
CLI (Ctrl+Enter / Ctrl+X Ctrl+S, chat:sendNow)

Timing depends on the situation; may stop running tools; kept in the transcript.

Backgroundable work keeps running in the background and Claude reads the message in the same turn.

Otherwise the turn is interrupted and the message sent next.

Before 2.1.281 it always interrupted. Requires 2.1.275 or later.

The 2.1.301 changelog fixes a mid-turn message interrupting a tool permission check being misreported to the model as a user rejection; the full cancellation ordering remains unprobed.

CLI permission prompt

Lands before the next model call; lets running tools finish.

No + comment: 'sends your comment to Claude as the reason for the denial'.

No without a comment stops the turn. Yes + comment is sent after the result.

Agent SDK (priority:'now')

Timing depends on the situation; may stop running tools; kept in the transcript.

With origin {kind:'human'} on 2.1.286 or later, shell, subagent and MCP work (plus WebFetch/WebSearch on 2.1.287+) moves to the background and the message is read in the same turn. Otherwise the turn is interrupted.

Without that origin it always interrupts.

Queue a follow-up
CLI

Timing depends on the situation; lets running tools finish; kept in the transcript.

While tools run, the message reaches Claude when they finish, in the same turn. Anything still queued at turn end goes out in typed order.

This is the 0.2.108 'real-time steering' feature under its current name.

Up takes queued entries back for editing; Esc interrupts and sends the queue right away.

A message read mid-turn appears in the rewind menu but has no checkpoint of its own.

CLI

Waits until the turn ends; lets running tools finish; kept in the transcript.

Covers queued slash commands and ! shell commands.

/model and /effort run at once and apply to the next request in the same turn; /fast applies from the next turn.

Agent SDK streamInput / -p --input-format stream-json

Timing depends on the situation; lets running tools finish; kept in the transcript.

Default priority: 'Claude reads the message in the same turn, as soon as the tool calls it is running finish'; otherwise it starts the next turn.

Several pending messages 'can merge... into one turn'.

Queued messages survive the --max-turns limit.

Agent SDK (priority:'later')

Waits until the turn ends; lets running tools finish; kept in the transcript.

'holds the message until the turn ends and sends it as a new turn'.

Agent view (claude agents)

Timing depends on the situation; lets running tools finish; kept in the transcript.

To a working session, replies 'join the session's message queue instead of interrupting'.

/model, /effort, /rename and /usage run right away; other commands wait for turn end.

A reply does not answer a permission dialog. Undeliverable plain replies are saved for the next start.

Since 2.1.287 replies arrive as queued messages.

CLI -> cloud session (claude -p --cloud <id>)

Timing not documented; kept in the transcript.

'queues the message into the session and exits'; documented for steering a long-running session.

Stop it
CLI

Takes effect immediately; stops running tools; skips remaining tool calls; kept in the transcript.

Keeps completed work and sends queued messages next.

On a permission prompt, Esc declines; on a dialog or selected footer row, it closes or deselects instead.

The changelog mentions an Interrupted row and '[Request interrupted by user]' messages; what the model sees is not documented.

CLI

Takes effect immediately; stops running tools.

'Interrupts a running operation.' When idle, it clears input, and a second press exits.

While attached to a background session it cancels the response; a double press on an empty prompt detaches.

Agent SDK interrupt() / stream-json control request

Takes effect immediately; stops running tools.

Streaming input mode only. The receipt (interrupt_receipt_v1, 2.1.205+) lists still_queued messages, which run afterwards.

A raw control request with cancel_queued:true (2.1.219+) cancels them instead.

Python: the interrupted tool's 'tool result carries the interruption message'. The partial assistant reply is kept (2.1.94).

Agent SDK canUseTool

Takes effect immediately.

PermissionResult deny with interrupt:true aborts the turn; terminal_reason is aborted_*.

Claude -p

Takes effect immediately.

'To end the turn instead, send SIGINT'.

SIGTERM instead exits 143 and leaves the turn unfinished, kills running Bash, and records no result.

Agent view peek reply '/stop', claude stop <id>

Takes effect immediately; stops running tools; skips remaining tool calls.

'stops the session at once instead of being delivered to it'.

Ask a side question
CLI (also VS Code, Remote Control, non-interactive)

Answered separately; the main run is untouched; lets running tools finish; shown on screen only.

No tools; it sees the conversation except the reply in progress.

Replays the newest 20 earlier /btw exchanges. The terminal keeps them in memory until exit; the VS Code panel survives reloads.

'f' forks it into a subagent with tools.

Feed it context (hooks, extensions, APIs)
Hooks

Lands before the next model call; lets running tools finish; hidden from you.

Exception: Stop/SubagentStop additionalContext shows as 'Stop hook feedback' and continues the turn.

Values over 10,000 characters are written to a file and passed as a path plus preview.

Saved text is replayed, not re-run, on resume.

On some models system reminders are a separate system-role message.

Hooks (async / asyncRewake)

Timing depends on the situation; lets running tools finish; hidden from you.

Output is 'delivered on the next conversation turn'; neither field is shown to the user.

asyncRewake exit 2 'wakes Claude immediately even when the session is idle'.

CLI

Arrives when its event fires; lets running tools finish.

Claude Code 'appends a <system-reminder> noting the file changed'.

The docs do not say whether the user can see it.

MCP channels (research preview)

Waits until the turn ends; lets running tools finish; kept in the transcript.

Arrives wrapped in a <channel source=...> tag.

'processed in order'; events arriving while busy are 'delivered together on the next turn'.

No acknowledgement. Shown in the terminal as an inbound line.

Agent SDK (shouldQuery:false)

Timing depends on the situation; lets running tools finish; kept in the transcript.

'held and merged into the next user message that does trigger a turn'.

Sources

Claude Code, terminal