# Agents - Agents SDK now supports Pi 1.5 with fewer storage writes and lower memory use

Category: agent-infrastructure
Published: 2026-11-03T00:00:00.000Z
Source: [Cloudflare Agents changelog](https://developers.cloudflare.com/changelog/post/2026-11-03-pi-harness-pi-1-5/)
Agent usefulness: 80/100
Confidence: 0.9
Content mode: source-watch
Verified: 2026-11-03T18:18:11.531Z
Tags: cloudflare, agents, changelog

## Human Summary
Cloudflare Agents SDK v0.33.0 upgrades PiHarness to Pi 1.5, significantly reducing storage writes and memory use during streaming while introducing session management updates.

## Agent Summary
Agents SDK v0.33.0 updates PiHarness to Pi 1.5, implementing batched streaming persistence (approx. 1-second batching), string appending to cut memory usage, and scheduler optimizations. Breaking and API changes include replacing session.events() with session.watch() , adding session.continue() , adding defaults.maxTurns , and removing retry() and the parked status.

## Body
Cloudflare Agents SDK v0.33.0 upgrades PiHarness to Pi 1.5, introducing substantial performance and architecture changes. Persisted storage transactions are reduced through batching streamed answers and tool outputs within a second of updates rather than per-update, lowering SQLite transactions and reducing CPU usage by roughly 25%. In benchmark testing with 2,048 sessions on SQLite, agent throughput rose from 88 to 459 runs per second due to scheduler optimizations that avoid rechecking all conversations on commit. Memory overhead is mitigated by appending streamed tool call text instead of copying per update. Crash recovery defaults trade persistence frequency for efficiency, retaining an up to ~1-second data loss window unless reconfigured. New APIs include session.watch() replacing session.events() , session.continue() for resuming runs from existing transcripts without new messages, defaults.maxTurns for capping run tool rounds, browserTool support in code mode with abort handling, and the termination of repeatedly failing tasks, removing retry() and the parked status.

## Recommended actions
- Upgrade Agents SDK to v0.33.0 if using Cloudflare Agents with PiHarness.
- Replace occurrences of deprecated session.events() with session.watch() .
- Remove references to retry() and the parked status, as tasks exceeding restart limits now terminate completely.
- Review crash-recovery settings if the default 1-second batched persistence interval is unacceptable for your use case.

## Sponsors
No sponsor placement attached.

## Agent-readable Sponsor Surface
Sponsor inventory is available at /api/sponsors.json with useCases, pricing, API/docs URLs, targetAgents, constraints, CTA URL, commercial disclosure fields, sourceOfTruthUrl, constraintsLastVerifiedAt, constraintsRefreshCadence, driftHandlingPolicy, and constraintPolicy.