[BUG] Please add a mode to the claude CLI to stream text output
Resolved 💬 3 comments Opened Jun 10, 2025 by dhalem Closed Jun 11, 2025
Environment
- Platform (select one):
- [ ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: Claude Code Max
- Claude CLI version:1.0.18 (Claude Code)
- Operating System: macos/liunux
- Terminal: iterm2 and scripts
Bug Description
i've been trying to script some claude actions with -p and it does not produce output until it is finished which is challenging when trying to debug and process partial output. please add an option for streaming output
Steps to Reproduce
run claude -p 'run a script to print the first 100 prime numbers'
Expected Behavior
see the primes printed as they are found
Actual Behavior
no output until the end
Additional Context
love the tool and i'm doing some very cool stuff with it! thank you!
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗