Skip to content
AI Primer
release

Claude Code 2.1.158 adds auto mode for Bedrock, Vertex, and Foundry

Anthropic followed Claude Code 2.1.157 with 2.1.158, enabling auto mode on Bedrock, Vertex, and Foundry for Opus 4.7 and 4.8. The paired releases also add local plugin scaffolding and auto-load plus fixes for image handling and sandbox permission prompts.

4 min read
Claude Code 2.1.158 adds auto mode for Bedrock, Vertex, and Foundry
Claude Code 2.1.158 adds auto mode for Bedrock, Vertex, and Foundry

TL;DR

  • ClaudeCodeLog's 2.1.158 release note says Claude Code's new auto mode now works on Bedrock, Vertex, and Foundry for Opus 4.7 and 4.8, gated behind CLAUDE_CODE_ENABLE_AUTO_MODE=1 in Anthropic's changelog.
  • The bigger functional update landed a few hours earlier, when ClaudeCodeLog's 2.1.157 post added 33 CLI changes, including local plugins in .claude/skills that now auto-load without marketplace publishing.
  • According to ClaudeCodeLog's 2.1.157 changelog thread, 2.1.157 also added claude plugin init <name> plus /plugin autocomplete, turning local plugin setup into a first-class CLI path.
  • That same changelog thread also says Anthropic fixed two annoying reliability issues: zero-byte or corrupt pasted images now degrade into text placeholders, and sandbox network permission prompts stop appearing in auto and bypass-permissions mode for desktop, IDE, and SDK users.
  • ClaudeCodeLog's 2.1.158 diff summary shows the follow-up release was tiny in code surface, just one added env var plus prompt text nudging the model to use ripgrep-based grep for search tasks.

You can read the official 2.1.158 changelog entry, inspect the CLI surface diff, and compare it with the 2.1.157 release post, which bundled plugin scaffolding, image-handling fixes, and fewer spurious permission dialogs into a much fatter update.

Auto mode

The headline change in 2.1.158 is narrow but useful: auto mode now extends beyond Anthropic's own surface to Bedrock, Vertex, and Foundry, specifically for Opus 4.7 and 4.8. The switch is still opt-in, via CLAUDE_CODE_ENABLE_AUTO_MODE=1, per ClaudeCodeLog's changelog citation and the linked official changelog.

That makes 2.1.158 look less like a standalone release and more like a fast follow to widen provider coverage for a capability Claude Code already had elsewhere.

Plugins in .claude/skills

2.1.157 did the heavier lifting. The plugin changes break into three concrete pieces:

  • .claude/skills plugins now auto-load, no marketplace publish step required, according to ClaudeCodeLog's summary.
  • claude plugin init <name> scaffolds a new plugin directly in that local path, per the changelog thread.
  • /plugin autocomplete now covers subcommands, installed plugins, and known marketplace plugins, again per the changelog thread.

ClaudeCodeLog's CLI surface update also notes new scaffold-related flags like --author, --author-email, --description, and --with, which suggests Anthropic is tightening the loop from local prototype to reusable plugin package.

Reliability fixes

The most visible fixes in 2.1.157 target failure modes that interrupt a run instead of merely degrading output.

  • Corrupt or zero-byte images pasted through paste, MCP, or file dialogs no longer crash requests. They become text placeholders instead, according to ClaudeCodeLog's fixes list.
  • Sandbox network permission prompts are suppressed in auto and bypass-permissions mode for the desktop app, IDE extensions, and SDK, per the release summary and the full changelog thread.
  • Long and resumed conversations got a performance pass that removes redundant message-rendering recomputations, according to the improvement note.

The same release also cleaned up agent-session edge cases, including parked subagents that blocked retirement, orphaned worktrees under .claude/worktrees/, and --resume flows that failed to report running background subagents, all listed in ClaudeCodeLog's detailed changelog.

Prompt and CLI surface

The diff posts add a smaller but interesting signal: Anthropic is still changing prompt wiring and CLI surface even in these point releases.

For 2.1.158, ClaudeCodeLog's metadata post says prompt tokens rose 5.4 percent and the tool share of prompt tokens climbed from 84.6 percent to 85.4 percent, while the grep tool description was updated to explicitly recommend ripgrep-based grep for search tasks.

For 2.1.157, the prior metadata post logged new env vars including CLAUDE_CODE_SYNC_PLUGINS, CLAUDE_CODE_SYNC_PLUGINS_INSTALL_TIMEOUT_MS, and CLAUDE_CODE_SYNC_PLUGINS_MCP_TIMEOUT_MS, plus a new claude-plugin- model slug prefix. That is new information beyond the human-written changelog, and it hints that plugin sync and plugin-specific model plumbing are still evolving under the hood.

Share on X