[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

  1. using claude -p --debug outputs debug content to stdout, not stderr.
  2. using claude -p --verbose has no effect.

Steps to Reproduce

  1. Try this:
claude -p --debug --model haiku "Hello there, what's your name?" 2> stderr.out
  1. 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.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗