What changed
agents 0.34.0, the Cloudflare Agents SDK, came out on November 20, 2026.
- Pi 1.6 is required. Pi 1.5 is no longer supported. Once a conversation runs on Pi 1.6, Pi 1.5 cannot run its tool calls or model requests, so you cannot roll a deployment back past this release. Roll forward instead.
- Tools that wait. A Pi tool can park until a signal arrives or a deadline passes, and the agent sleeps meanwhile. Deliver signals with
harness.signal().
- Sessions from an existing history.
harness.root(), sessions.create() and sessions.fork() take Pi's init.
- MCP re-authorization. A request that needs the user to sign in again throws
MCPAuthorizationRequiredError with a link in error.authUrl. A failed server stays failed until reconnectMcpServer(id).
- No error details to clients. Failed requests now return a generic 500, or a 1011 close for WebSockets. Use the new
onFetchError() to choose the response.
claudeCode() now defaults to claude-sonnet-5-5, since claude-sonnet-4-5 retires on November 30, 2026.
- Examples move off the Workers AI models retired on November 20, 2026.
@cloudflare/think 0.24.0 shipped the same day. It requires agents 0.34.0 or newer and @cloudflare/computer ^0.10.0.
Prerequisites
- A Cloudflare Workers project using the
agents package
- Your model provider key or Workers AI binding as you have it set up today
Steps
- Update
agents and the Pi packages together.
npm install agents@0.34.0 @earendil-works/pi-durable@1.6.0 @earendil-works/pi-ai@1.6.0 @earendil-works/pi-schema@1.6.0 @earendil-works/chord@1.6.0
Test on a staging deployment first. After a conversation has run on Pi 1.6 you cannot go back to 0.33.
- Deliver signals with
harness.signal() rather than (await harness.pi()).signal().
- Call
harness.root() before reaching the root through harness.pi().
- Catch
MCPAuthorizationRequiredError from callTool(), readResource() and getPrompt(), and send the user to error.authUrl. It extends UnauthorizedError, so existing instanceof UnauthorizedError checks still match. Give users a way to try again, such as a Reconnect button that calls this.reconnectMcpServer(id).
- If you relied on error details in failed responses, implement
onFetchError(request, error) to choose what to send, for example only in local development.
- If you use Think, update it with Computer and rename the backend:
- import { WorkerJavaScriptBackend } from "@cloudflare/computer/backends/worker-javascript";
+ import { CodemodeBackend } from "@cloudflare/computer/backends/codemode";
Rename host modules from ws: to codemode:, such as ws:tools to codemode:tools.
Test it
Make an MCP server ask for sign-in again, for example by revoking its token. The tool call should throw MCPAuthorizationRequiredError with an authUrl. Then make a request handler throw: the client should get a generic Internal Server Error body, while the full error stays in your logs.
Not confirmed
- The release notes do not say whether conversations started on Pi 1.5 keep working unchanged after the upgrade.