Change8

v2.1.147

Claude Code
2 features27 fixes7 improvementsclihooksmcpsdk

Summary

This release introduces the new Workflow tool for deterministic multi-agent orchestration, which is enabled via an environment variable. It also renames and enhances the code review command to /code-review, allowing for effort-level specific feedback and direct PR commenting. Numerous stability fixes address issues across enterprise login, command parsing, PowerShell execution on Windows, and background session management.

New Features

  • Added the Workflow tool for deterministic multi-agent orchestration (requires setting CLAUDE_CODE_WORKFLOWS=1 to enable)
  • Renamed the /simplify command to /code-review, which now reports correctness bugs at a chosen effort level (e.g., /code-review high) and supports posting findings as inline GitHub PR comments via the --comment flag

Bug Fixes

  • Fixed enterprise login restrictions not being enforced against third-party-provider and API-key sessions
  • Fixed ampersand (&) in command output displaying as &, which broke copy-pasting URLs from commands like gcloud auth login on headless machines
  • Fixed unknown slash commands silently doing nothing in headless/SDK mode; they now display an error message
  • Fixed /help rendering a broken tab header and showing only one command per page on small terminals when not in fullscreen mode
  • Fixed shell snapshot dropping user functions whose names start with a single underscore, breaking aliases referencing them
  • Fixed plugin agents declaring multiple Agent(...) types in tools: frontmatter dropping all but the last entry
  • Fixed hook if conditions like PowerShell(git push*) never matching
  • Fixed PowerShell tool dropping output for commands that rely on the default formatter
  • Fixed Windows setting for "Yes, and don't ask again" on PowerShell script invocation not writing a matching rule for subsequent runs
  • Fixed PowerShell tool failing on Windows with exit code 1 when pwsh is installed via winget or the Microsoft Store
  • Fixed /effort opening with the slider on the wrong level; it now starts at the current effort level
  • Fixed paginating MCP servers dropping resources, templates, and prompts past page 1
  • Fixed full-screen strobing in attached background sessions on Windows Terminal while Claude is streaming
  • Fixed Windows behavior where removing a background-job worktree followed NTFS junctions into the main repo
  • Fixed /background refusing sessions whose only typed input was a skill or custom slash command
  • Fixed auto mode suppressing AskUserQuestion when the user or skill explicitly relies on it
  • Fixed /theme New custom theme and color editor dialogs not responding to Esc
  • Fixed an uncaught exception at the end of streaming sessions when running via the Agent SDK
  • Fixed a rare hang when waiting for scroll to settle on Windows
  • Fixed stale and doubled rows in the agent view list on Windows when background session results contain wide (CJK) characters
  • Fixed pasted text being delivered to agents as an unreadable [Pasted text #N] placeholder instead of the actual content
  • Fixed plugin component counts in claude plugin details and /plugin being doubled when a plugin's manifest listed overlapping paths
  • Fixed backgrounded sessions re-prompting for tool permissions already granted with "don't ask again"
  • Fixed GNOME Terminal right-click and middle-click paste not inserting text
  • Fixed CLAUDE_CODE_SUBAGENT_MODEL not applying to teammate processes spawned by agent teams
  • Fixed slash commands followed by a tab or newline being treated as an unknown command
  • Fixed stripped images prompting the model to repeatedly re-read media that was no longer present

Improvements

  • Pinned background sessions now stay alive when idle, restart in place to apply Claude Code updates, and are shed under memory pressure only after non-pinned sessions
  • Hardened REPL and Workflow tool sandboxes against prototype-pollution and thenable-based escapes
  • Improved auto-updater: retries transient network failures, reports specific error categories and OS error codes on failure, and shows the current version on failure
  • Improved diff rendering performance for large file edits
  • Prompt history no longer records consecutive duplicate entries when recalling and resubmitting the same prompt
  • Fixed /effort opening with the slider on the wrong level — it now starts at your current effort
  • Fixed several spacing and layout glitches in the /plugin, /status, /mobile, /sandbox, and /permissions menus

Claude Code Documentation

Claude Code v2.1.147 - What's New - Change8