Claude Code 2.1.41
**`claude auth` CLI subcommands (login/status/logout)** — enables programmatic and interactive authentication workflows without manual config file editing. This matters for automation, CI/CD, and credential rotation loops where auth state must be explicitly managed.
New primitives
claude auth logincommandInitiates interactive authentication flow
claude auth statuscommandReports current authentication state
claude auth logoutcommandClears authentication credentials
speed attribute (OTel)setting/tracingMarks fast mode visibility in traces and spans
Windows ARM64 supportcapabilityNative binary for win32-arm64 architecture
/rename auto-generationcommand enhancementSession renaming from conversation context without args
Workflow recipes
The auth CLI subcommands enable agents to manage credential lifecycle without interactive prompts, unlocking automated credential rotation, multi-account cycling, and safe session cleanup in orchestrated pipelines.
Build a CI/CD agent that (1) rotates authentication on a cron schedule by calling claude auth logout to clear stale creds, (2) uses claude auth login with piped input or environment-driven flows to re-authenticate with fresh tokens, (3) polls claude auth status to verify successful auth before launching dependent workflows, and (4) audits auth state changes in OTel/trace logs for compliance reporting.
The speed attribute exposes fast-mode execution in OTel spans, enabling agents to self-monitor performance and make runtime decisions about trading speed for quality (e.g., falling back to thorough mode if fast-mode latency regresses).
An agent that logs its own execution traces with the speed attribute, then querying those traces via OTel backend (Datadog, New Relic, Honeycomb) to detect when fast-mode runs exceed latency budgets. Agents can consume this signal to auto-switch modes, trigger escalations, or annotate outputs with confidence/speed tradeoff metadata.
Agentic relevance
The `claude auth` subcommands unlock headless credential management for agent workflows running in CI/CD or orchestration contexts where interactive login cannot be assumed. The `speed` OTel attribute enables observability of fast-mode traces, critical for agents monitoring their own execution performance. Windows ARM64 support broadens deployment surface for Claude Code agents on modern ARM-based Windows systems.
Hardening & fixes (18)
- Fixed Agent Teams using wrong model identifier for Bedrock, Vertex, and Foundry customers
- Fixed a crash when MCP tools return image content during streaming
- Fixed /resume session previews showing raw XML tags instead of readable command names
- Improved model error messages for Bedrock/Vertex/Foundry users with fallback suggestions
- Fixed plugin browse showing misleading "Space to Toggle" hint for already-installed plugins
- Fixed hook blocking errors (exit code 2) not showing stderr to the user
- Added guard against launching Claude Code inside another Claude Code session
- Fixed file resolution failing for @-mentions with anchor fragments (e.g., `@README.md#installation`)
- Fixed FileReadTool blocking the process on FIFOs, `/dev/stdin`, and large files
- Fixed background task notifications not being delivered in streaming Agent SDK mode
- Fixed cursor jumping to end on each keystroke in classifier rule input
- Fixed markdown link display text being dropped for raw URL
- Fixed auto-compact failure error notifications being shown to users
- Fixed permission wait time being included in subagent elapsed time display
- Fixed proactive ticks firing while in plan mode
- Fixed clear stale permission rules when settings change on disk
- Fixed hook blocking errors showing stderr content in UI
- Improved narrow terminal layout for prompt footer
Raw changelog
## 2.1.41 - Added guard against launching Claude Code inside another Claude Code session - Fixed Agent Teams using wrong model identifier for Bedrock, Vertex, and Foundry customers - Fixed a crash when MCP tools return image content during streaming - Fixed /resume session previews showing raw XML tags instead of readable command names - Improved model error messages for Bedrock/Vertex/Foundry users with fallback suggestions - Fixed plugin browse showing misleading "Space to Toggle" hint for already-installed plugins - Fixed hook blocking errors (exit code 2) not showing stderr to the user - Added `speed` attribute to OTel events and trace spans for fast mode visibility - Added `claude auth login`, `claude auth status`, and `claude auth logout` CLI subcommands - Added Windows ARM64 (win32-arm64) native binary support - Improved `/rename` to auto-generate session name from conversation context when called without arguments - Improved narrow terminal layout for prompt footer - Fixed file resolution failing for @-mentions with anchor fragments (e.g., `@README.md#installation`) - Fixed FileReadTool blocking the process on FIFOs, `/dev/stdin`, and large files - Fixed background task notifications not being delivered in streaming Agent SDK mode - Fixed cursor jumping to end on each keystroke in classifier rule input - Fixed markdown link display text being dropped for raw URL - Fixed auto-compact failure error notifications being shown to users - Fixed permission wait time being included in subagent elapsed time display - Fixed proactive ticks firing while in plan mode - Fixed clear stale permission rules when settings change on disk - Fixed hook blocking errors showing stderr content in UI