Claude Code v2.1.147: Pinned Sessions, /code-review, and Dozens of Fixes

Claude Code v2.1.147 (released May 21) is a substantial maintenance release with one new feature, one renamed command, and a long tail of fixes covering Windows, PowerShell, MCP servers, and more.
Pinned Background Sessions
You can now pin background sessions (Ctrl+T in agent mode). Pinned sessions stay alive when idle, are restarted in-place to apply Claude Code updates, and are only killed under memory pressure after unpinned sessions. This is useful for long-running agent workspaces you don't want accidentally evicted.
/simplify Becomes /code-review
The old /simplify slash command (which tried to cleanup and fix code) has been removed. It's replaced by /code-review, which reports correctness bugs at a chosen effort level. Run /code-review high for deep analysis, or /code-review low for quick checks. Pass --comment to post findings as inline GitHub PR comments.
Auto-Updater Improvements
The auto-updater now retries transient network failures, reports specific error categories and OS error codes on failure, and shows the current version when an update fails. This should reduce silent update failures and give you actionable error messages.
Performance & Behavior
- Improved diff rendering performance for large file edits.
- Prompt history no longer records consecutive duplicate entries — pressing arrow-up and re-submitting the same prompt won't add another copy.
- Pasted text is now delivered correctly instead of the placeholder
[Pasted text #N]. - The CLI's auto-mode no longer suppresses
AskUserQuestionwhen the user or a skill relies on it — answers are now treated as intent signal.
Key Fixes
- Enterprise login:
forceLoginOrgUUIDandforceLoginMethodsettings now work against third-party-provider and API-key sessions. - Shell snapshot: User functions starting with a single underscore are no longer dropped, fixing broken aliases that reference them.
- PowerShell: The tool no longer drops output for commands relying on the default formatter. The 'Yes, and don't ask again' dialog now writes matching rules on subsequent runs. Fixes exit code 1 when
pwshis installed via winget or the Microsoft Store. - MCP servers: Paginating MCP servers no longer drops resources, templates, and prompts past page 1.
- Windows: Removes background-job worktrees without following NTFS junctions into the main repo. Fixes full-screen strobing in attached background sessions on Windows Terminal while streaming. Fixes stale/doubled rows in agent view list with wide (CJK) characters.
- Plugin agents: Multiple
Agent(...)types intools:frontmatter are now all registered, not just the last one. - Hooks: Fixes
ifconditions likePowerShell(git push*)matching correctly; previously onlyPowerShell(*)worked. - Background sessions:
/backgroundno longer rejects sessions whose only input was a skill or custom slash command. - Streaming: Fixes an uncaught exception at the end of streaming sessions when using the Agent SDK.
- GNOME Terminal: Right-click and middle-click paste now insert text.
- Subagent model:
CLAUDE_CODE_SUBAGENT_MODELnow applies to teammate processes spawned by agent teams. - Slash commands: Unknown slash commands in headless/SDK mode now show an error instead of silently doing nothing. Commands followed by tab or newline are no longer treated as unknown.
- Misc:
/helprenders correctly on small terminals./effortstarts at the correct level./themedialog responds toEsc. Stripped images no longer cause the model to repeatedly re-read missing media.&in!command output displays properly for copy-pasting URLs. Plugin component counts are no longer doubled. Backgrounded sessions don't re-prompt for already-granted tool permissions.
📖 Read the full source: GitHub Claude-Code
👀 See Also

DeepSeek-V4 Pro and Flash: 1.6T Parameters, 1M Token Context, Hybrid Attention
DeepSeek-V4-Pro (1.6T params, 49B active) and V4-Flash (284B params, 13B active) support 1M token context. New hybrid attention (CSA + HCA) reduces single-token inference FLOPs to 27% and KV cache to 10% of DeepSeek-V3.2.

ChatGPT Workspace Agents Free Preview Ends Today — How It Compares to OpenClaw and Hermes
OpenAI's ChatGPT Workspace Agents free preview ends May 6, switching to credit-based pricing. The Reddit post compares it to OpenClaw, Hermes, and managed platforms like BetterClaw for team vs. personal use.

Anthropic's New Claude Subscription Credits: Agent SDK and claude -p Get Separate Capped Pool Starting June 15
Starting June 15, Claude subscribers get a separate monthly credit for Agent SDK and claude -p usage: $200/mo for Max 20x, $100 for Max 5x, $20 for Pro. Usage stops when credit depletes unless extra billing is opted in. Interactive Claude Code and chat remain on the subscription pool.

Georgia Court Order Contains AI-Hallucinated Legal Citations
A Georgia Supreme Court appeal revealed a trial court order contained at least five citations to nonexistent cases and five more to cases that don't support their cited propositions, with the prosecutor's proposed order containing the same errors.