github cloudflare/agents agents@0.35.0

latest releases: @cloudflare/ai-chat@0.12.4, @cloudflare/think@0.25.0, @cloudflare/worker-bundler@0.2.7...
one hour ago

Minor Changes

  • #3988 17862ac Thanks @mattzcarey! - New and changed APIs. See the docs.

    • Experimental ThinkHarness (agents/harness/think) replaces AiSdkHarness, which is removed; it takes extensions (Code Mode) and a tracing option.
    • Experimental agents/tasks: state is now status, failed is error, cancelled is aborted, waiting is pending; stored runs migrate.
    • Tasks, Sessions and agents/streams take an optional name, for more than one in an object.
    • Experimental agents/context: freezeSystemPrompt, refreshSystemPrompt and reminder move from ContextBlocks to the new Context.
    • Sessions: addCompaction() throws on an anchor that can never apply, and a read from the root throws past 200,000 visible messages.
    • Browser: CdpConnection has on() and waitFor(), send() is typed, and Browser takes a hostObserver.
    • One SQLite row holds up to 8 MB (was 2 MB); ROW_MAX_BYTES and enforceRowSizeLimit are removed from agents/chat (use ROW_VALUE_BYTES).
    • getAgentToolChunks answers a page at a time: pass the last afterSequence until a call returns no chunks.
    • Agent tools: eventDelivery: "terminal" works for detached runs, and Think.startAgentToolRun takes a signal.
    • On connect a tab is sent at most 10,000 stored chunks of finished agent-tool runs, after the handshake; a longer run shows its status and summary.
    • Experimental agents/observability/pi: piTracing() records a Pi harness's runs as OpenTelemetry GenAI spans.
    • Pi harness: the peer ranges are ~1.8.0; the Pi session store migrates when it opens, so roll forward.
    • OpenCode harness: opencode 2.4.3; upgrade @opencode/sdk and @opencode/plugin to 2.2.3 or later with it.
    • useAgent and AgentClient wait up to 15 s for the handshake (was 4 s).
    • A Worker that extends Think bundles without just-bash; install it only for Bash skill scripts.
  • #3988 17862ac Thanks @mattzcarey! - Upgrade agents, @cloudflare/ai-chat and @cloudflare/think together. See Upgrading from ai-chat 0.12 and Upgrading Think from 0.24.

    • @cloudflare/ai-chat and @cloudflare/think need agents 0.35.0 or later; agents/chat is internal and exports less.
    • An agent from the previous release migrates its storage in place at its first start; rolling back afterwards is not supported.

Patch Changes

  • #3988 17862ac Thanks @mattzcarey! - Fixes.

    • Work cut off by a reset resumes within seconds, a failing job stops retrying and reaches onJobError, and jobs work in sub-agents.
    • AgentWorkflow runs and stubs, the MCP RPC transport and getAgentByName survive an Agent reset.
    • Sub-agents: many started at once no longer stall, they work under a jurisdiction, and deleteSubAgent() empties their storage.
    • Agent-tool runs cut off by a reset re-attach to their child and end once; a run whose child cannot stay up ends error.
    • A tab joining a running reply gets live chunks and each request's end once, also after a stop or a reconnect.
    • The MCP client refuses more private addresses, .internal names and URLs with credentials.
    • Voice: a provider's stream error sent as a plain object reaches a voice client as the generic stream error on newer AI SDK 7 releases.
    • x402: payment caps, offer selection and UTF-8 tokens are fixed; with @x402/core 2.23+ upgrade @x402/core and @x402/evm together.

Don't miss a new agents release

NewReleases is sending notifications on new releases.