Vercel AI SDK 7.1: Mid-Run Steering, Code Mode & Durable Agents
Vercel AI SDK 7.1 brings mid-run steering, sandboxed Code Mode, streamRetries, WorkflowAgent.generate(), and a fixed monthly release cadence.

Q. What changed most in Vercel AI SDK 7.1? AI SDK 7.1 adds production controls across nine categories—including mid-run steering (
experimental_createSteering), sandboxed tool orchestration (@ai-sdk/code-mode), mid-stream retries (streamRetries), and non-streamingWorkflowAgent.generate(). Vercel also introduced a fixed release cadence with monthly minor releases and an annual major release every June.
⚠️ Accuracy guardrail: This article was written on December 4, 2026, based on the official Vercel blog announcement published December 3, 2026. APIs prefixed with
experimental_(steering, decisions, batch, video, Code Mode, and low-memory streaming) may change signatures in upcoming releases, and provider-specific pricing, QuickJS sandbox cold-start latency, and large-scale workload benchmarks were not verified because the announcement does not publish those numbers.
30-second summary
- Fixed release cadence: Monthly minor releases ship on the Monday closest to the 1st (except January), with one major release each June. AI SDK 5 support ends at the end of 2026, and AI SDK 6 support ends on June 1, 2027.
- Five new harness adapters & Codex steering:
HarnessAgentadds adapters for Cline, Cursor, fx, GitHub Copilot, and Grok Build, while Codex supports mid-turn steering via its app-server. - Mid-run steering & typed decisions:
steer()injects user corrections at the next step boundary,queue()schedules follow-ups, andexperimental_decideresolves choice, score, boolean, and bounding-box questions in a single typed call. - Code Mode & stream recovery:
@ai-sdk/code-moderuns model-written JS/TS inside an isolated QuickJS sandbox to combine tool outputs before they enter context, alongsidestreamRetries,firstChunkMs, andtoolCallConcurrency. - Async batch, video & durable tracing: Background batching (
experimental_startBatch), async video generation (experimental_startVideo),WorkflowAgent.generate(), and cross-process OpenTelemetry trace stitching are now built in.

Fixed release cadence and end-of-support dates
AI SDK now follows a predictable monthly minor and annual major schedule. Each prior major release receives one year of full support with bug-fix backports, followed by six months of critical security patches only.
| Item | Schedule & Policy | Notes |
|---|---|---|
| Minor releases | Monday closest to the 1st monthly | Excludes January |
| Major releases | Annually in June | Replaces that month's minor |
| AI SDK 5 EOL | End of 2026 | Migration recommended |
| AI SDK 6 EOL | June 1, 2027 | 1-year full support window |
Five new harness adapters and first-party tools
HarnessAgent normalizes sessions, stream events, tools, and usage across coding agent runtimes so teams can swap harnesses without rewriting integration code. Version 7.1 adds Cline, Cursor, fx, GitHub Copilot, and Grok Build, and connects the Codex adapter to the Codex app-server for mid-turn experimental_steer.
| Package / API | Role | Key Capability |
|---|---|---|
@ai-sdk/harness-* |
Five new runtime adapters | Cline, Cursor, fx, Copilot, Grok Build |
@ai-sdk/tool-bash |
Sandboxed shell execution | Accepts experimental_sandbox session |
@ai-sdk/tool-web-fetch |
URL web/document reader | Supports domain allow/block lists |
toolSearch() |
On-demand tool discovery | Pairs with deferLoading: true |
For agents with large toolsets, toolSearch() and deferLoading: true avoid loading every tool definition up front, exposing matching tools only after the model searches for them.

Mid-run steering and typed decisions (experimental_decide)
Previously, correcting a long-running agent meant waiting for the turn to finish or aborting the run. Passing experimental_createSteering() to generateText, streamText, or ToolLoopAgent lets applications intervene mid-flight.
steer(text): Inserts a user message at the next step boundary without interrupting active tool executions.queue(text): Holds follow-up prompts until the current task finishes.- Idempotency via
id: Re-sending with the sameidreturns the first delivery outcome without duplication, whileuseChatstreams steering messages assteering-messageparts.
Classification workflows are streamlined by experimental_decide, which answers named choice, score, boolean, and bounding-box questions over a shared state (text, JSON, or files) in one typed call, returning probability estimates for threshold routing.
Code Mode, realtime audio, and async batch & video
When an agent chains many tools, intermediate payloads quickly bloat the context window. @ai-sdk/code-mode lets the model write JavaScript or TypeScript inside an isolated QuickJS sandbox to call tools concurrently, aggregate results, and filter large responses before anything returns to the model context. experimental_toolCallers controls which tools are callable from code_mode versus DIRECT_TOOL_CALL.

Realtime audio and persistent chat also gained major upgrades:
- Streaming speech, transcription & translation:
experimental_streamSpeechconsumestextStreamdirectly so audio plays before text generation completes, whilestreamTranscriptionandstreamSpeechTranslationhandle live audio streams;transcribenow emits word and segment timestamps. - Continuous realtime & WebSocket chat: Added continuous OpenAI Live sessions over app WebSocket relays or WebRTC, server-owned WebSocket connections, provider-managed transports, and
WebSocketChatTransportforuseChatwith cancellation and sequence-based resume. - Async batch & video:
experimental_startBatch(AI Gateway, Anthropic, Google, OpenAI, and xAI) andexperimental_startVideo(withframeImagesandinputReferences) return serializable operation handles for polling or webhook notifications.
Stream recovery controls and durable WorkflowAgent
Production stability options in 7.1 give developers finer control over execution limits and failures:
toolCallConcurrency: Caps parallel tool execution (e.g.,1for sequential file edits and reads).prepareStepoverrides: Adjuststemperature,maxOutputTokens, andreasoningper step.onStepError&firstChunkMs: Runs a dedicated callback on failed steps and aborts stalled streams if no first chunk arrives within the timeout.streamRetries&experimental_streamTextLowMemory: Retries only the failed model step after streaming starts while preserving earlier steps and emitted tokens, or skips replay buffering on single-pass long streams.- Durable agents:
WorkflowAgent.generate()adds non-streaming durable execution, andOpenTelemetryIdGeneratorin@ai-sdk/otelstitches suspended and resumed multi-process runs into a single trace.
For related Vercel agent infrastructure updates, see Vercel Workflow SDK 5.8 Speculative Execution Guide and Vercel Drives CLI & Standalone SDK Guide.
Toris's take
When to adopt AI SDK 7.1 now: If you already run AI SDK 7 or build multi-tool agents where context bloat (@ai-sdk/code-mode, toolSearch()), mid-stream failures (streamRetries, firstChunkMs), and live user corrections (steering) directly affect reliability and cost, upgrading to 7.1 delivers immediate practical value.
What to watch: Wrap experimental_ APIs behind thin internal adapters because their signatures may evolve in monthly minor releases. Teams still on AI SDK 5 should plan their upgrade path well ahead of the end-of-2026 support cutoff.
Sources
Advertisement