Claude Code 2.1.147: Workflow Tool, Background Sessions, Code Review

Claude Code 2.1.147 introduces the Workflow tool for multi-agent orchestration, replaces /simplify with /code-review, hardens sandboxes, and ships 30+ fixes for PowerShell, background sessions, and enterprise login.

Claude Code 2.1.147: Workflow Tool, Background Sessions, Code Review

TL;DR

  • New Workflow tool for deterministic multi-agent orchestration (opt-in via environment variable)
  • Pinned background sessions now persist when idle and restart to apply updates
  • /code-review replaces /simplify with effort levels and GitHub PR comment support
  • Major sandbox hardening, PowerShell fixes, and 30+ bug fixes across UI and agent tools

New

  • Workflow tool — deterministic multi-agent orchestration; set CLAUDE_CODE_WORKFLOWS=1 to enable
  • /code-review command — reports correctness bugs at chosen effort level (e.g., /code-review high); use --comment to post findings as inline GitHub PR comments
  • Pinned background sessions — now stay alive when idle, restart in place for Claude Code updates, and only shed under memory pressure after non-pinned sessions

Fixed

  • REPL and Workflow tool sandboxes hardened against prototype-pollution and thenable-based escapes
  • Enterprise login restrictions (forceLoginOrgUUID, forceLoginMethod) now enforced against third-party-provider and API-key sessions
  • & character in ! command output now displays correctly — fixes copy-paste of URLs from commands like gcloud auth login on headless machines
  • Unknown slash commands now show error messages in headless/SDK mode instead of silently failing
  • PowerShell tool now works on Windows with pwsh installed via winget or Microsoft Store
  • PowerShell tool no longer drops output for commands relying on default formatter
  • Windows: "Yes, and don't ask again" for PowerShell script invocation now writes matching rules for subsequent runs
  • MCP server pagination no longer drops resources, templates, and prompts past page 1
  • Full-screen strobing in attached background sessions on Windows Terminal while Claude streams — fixed
  • Windows: removing background-job worktree no longer follows NTFS junctions into main repo
  • Auto mode no longer suppresses AskUserQuestion when user or skill explicitly relies on it
  • Pasted text now delivered to agents as actual content instead of [Pasted text #N] placeholder
  • Backgrounded sessions no longer re-prompt for tool permissions already granted with "don't ask again"
  • GNOME Terminal right-click and middle-click paste now inserts text correctly
  • CLAUDE_CODE_SUBAGENT_MODEL now applies to teammate processes spawned by agent teams
  • Slash commands followed by tab or newline no longer treated as unknown commands
  • Spacing and layout glitches fixed in /plugin, /status, /mobile, /sandbox, and /permissions menus
  • Stripped images no longer prompt model to repeatedly re-read missing media

Improved

  • Auto-updater now retries transient network failures, reports specific error categories and OS error codes on failure, and shows current version when update fails
  • Diff rendering performance improved for large file edits
  • Prompt history no longer records consecutive duplicate entries
  • /effort slider now opens at your current effort level instead of wrong level
  • /theme dialogs now respond to Esc key

Update: Claude Code updates automatically; no manual action required.

Source: Claude Code