[BUG] code CLI debug and verbose modes do not output to stderr
Resolved 💬 3 comments Opened Jul 31, 2025 by nsheff Closed Jan 4, 2026
Environment
- Platform (select one):
- [ ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [x] Other: linux CLI
- Claude CLI version:1.0.64 (Claude Code)
- Operating System: Ubuntu 24.04
- Terminal: gnome-terminal
Bug Description
- using
claude -p --debugoutputs debug content to stdout, not stderr. - using
claude -p --verbosehas no effect.
Steps to Reproduce
- Try this:
claude -p --debug --model haiku "Hello there, what's your name?" 2> stderr.out
- and this:
claude -p --verbose --model haiku "Hello there, what's your name?"
Expected Behavior
the --debug and --verbose should output the debug code to stderr, not stdout.
Actual Behavior
- debug output is routed to stdout.
- verbose output does absolutely nothing.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗