Download Latest Version v0.2.128 source code.zip (437.0 kB)
Email in envelope

Get an email when there's a new version of Claude Agent SDK for Python

Home / v0.2.127
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-07-24 688 Bytes
v0.2.127 source code.tar.gz 2026-07-24 355.2 kB
v0.2.127 source code.zip 2026-07-24 437.0 kB
Totals: 3 Items   792.9 kB 0

Bug Fixes

  • Fixed premature stdin closure when background tasks are in flight: query() no longer closes stdin on the first result frame when background tasks (e.g. run_in_background: true subagents) are still running. Previously, closing stdin too early caused SDK-MCP tool calls from background tasks to fail with "Stream closed" and silently bypassed PreToolUse hooks. Stdin now stays open until all in-flight tasks complete and the final result frame arrives (#1103)

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.219

PyPI: https://pypi.org/project/claude-agent-sdk/0.2.127/

:::bash
pip install claude-agent-sdk==0.2.127
Source: README.md, updated 2026-07-24