anthropics / anthropics/claude-agent-sdk-typescript

Updates on Streaming Tool Output?

Open
#351 0 comments 3 reactions 0 assignees View on GitHub
duplicate enhancement
Dominant language
Shell
Stars
1.8k
Forks
226
PR merge metrics
No merged PRs in 30d

Description

Hi, is there any progress on streaming tool output while a tool is still running?

Right now it looks like the SDK gives me "tool started" and then the final content/result when the tool is done. What I am looking for is the stdout/stderr lines while the command is running.

Example: if a tool runs something like `npx create ...`, `npm install`, a build, or a dev server startup, the command prints useful lines while it runs. In the SDK those lines seem to be hidden until the tool finishes.

I found these related issues:

- #343
- #213

So maybe this is already tracked, but I wanted to ask:

- Is this currently possible with the SDK?
- If not, is it planned?
- Is there a recommended workaround for now?

Main use case: showing real command output in a UI instead of a spinner until the final `tool_result`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.