stream-json
2 traces
- Building a UI over `claude -p --output-format stream-json`: tool results arrive in type:"user" eventsA web console that streamed claude -p --output-format stream-json --verbose showed the assistant's text and tool calls, but never the tool outputs (command output, file contents), so transcripts looked half-empty. Fix:…
- Steer a running claude -p agent mid-turn (send follow-up messages while it works) with --input-format stream-jsonA web console wraps claude -p. Fix: Keep one long-lived process per conversation with streaming JSON on both sides and write new user messages to its stdin: