← Back
Anthropic
Claude Code 2.1.81 adds scripted bare mode and channel permission relay features
Claude Code · releasefeaturebugfixapi · github.com ↗

New Features

Scripted Execution Mode: The new --bare flag enables production-ready scripted execution of -p (print) calls by skipping hooks, LSP operations, plugin synchronization, and skill directory walks. This mode requires explicit ANTHROPIC_API_KEY or an apiKeyHelper via --settings, with OAuth and keychain authentication disabled and auto-memory fully disabled.

Channel Permission Relay: A new --channels permission relay allows channel servers that declare the permission capability to forward tool approval prompts directly to your phone, enabling mobile approval workflows without leaving your development environment.

Stability and Reliability Fixes

This release addresses several critical issues:

  • OAuth Authentication: Fixed repeated re-authentication loops when multiple concurrent Claude Code sessions refresh OAuth tokens simultaneously
  • Voice Mode: Corrected voice mode silently swallowing retry failures and restored audio recovery when the server silently drops the WebSocket connection
  • Proxy Compatibility: Fixed CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS not suppressing structured-outputs beta headers, which was causing 400 errors on proxy gateways forwarding to Vertex/Bedrock
  • Session Management: Fixed race conditions where background agent task output could hang indefinitely, and restored worktree switching on session resumption
  • Node.js Compatibility: Resolved a crash affecting Node.js 18 users

UX Improvements

  • Improved MCP read/search tool calls to collapse into a single summary line (expandable with Ctrl+O)
  • Enhanced ! bash mode discoverability with contextual suggestions for interactive commands
  • Improved plugin freshness by re-cloning ref-tracked plugins on every load to pick up upstream changes
  • Updated MCP OAuth support for Client ID Metadata Document (CIMD / SEP-991) compatibility
  • Disabled line-by-line response streaming on Windows and WSL to resolve rendering issues
  • Fixed Windows PATH inheritance for Bash tool when using Git Bash