Claude Code v2.1.301: switching to a smaller model now summarizes your long conversation first

1 hour ago

Claude Code 2.1.301 has the previous model summarize a long conversation before you switch to a model with a smaller context window, and asks before spending usage credits on it. It also asks before quitting removes a hook-made worktree with unpushed commits, falls back to the previous Fable model when the newest isn't available, caps usage-limit waits in unattended retry mode, adds the % motion to vim mode, and renders LaTeX math in VS Code. https://github.com/anthropics/claude-code/releases/tag/v2.1.301 https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md

Ask

Ask about this presentation

Answers are generated from this presentation.

Chapters

  1. 0:00Switching to a smaller model
  2. 0:14Quitting keeps hook worktrees
  3. 0:26The fable alias falls back
  4. 0:39Retry mode and usage limits
  5. 0:49Vim mode
  6. 1:01VS Code renders math
  7. 1:15Fixes you may have hit
  8. 1:28The full changelog
Show transcript

Switching to a smaller model

Claude Code

Claude Code v2.1.301: switching to a smaller model now summarizes your long conversation first

When you switch to a model with a smaller context window

Too long for the new model
the previous model summarizes the conversation first
Usage credits
Claude Code asks before spending them on that summary
CHANGELOG.md · anthropics/claude-code

Switch Claude Code to a model with a smaller context window, and a conversation too long for it is now summarized by the previous model first. Claude Code asks before spending usage credits on that summary.

Quitting keeps hook worktrees

Claude Code

>Quitting now asks before removing a worktree that may hold unpushed commits

Which worktrees
ones a WorktreeCreate hook made
Before
quitting removed them without asking
CHANGELOG.md · anthropics/claude-code

If a WorktreeCreate hook made your worktree, quitting Claude Code could remove it without asking, unpushed commits and all. Claude Code now asks before it removes that worktree.

The fable alias falls back

Claude Code

>The fable model alias falls back when your organization lacks the newest Fable model

Aliases
fable and best
Anthropic API
Claude Code retries once on the previous Fable model instead of erroring
CHANGELOG.md · anthropics/claude-code

The fable and best model aliases stop erroring on the Anthropic API when your organization can't use the newest Fable model. Claude Code retries once on the previous Fable model.

Retry mode and usage limits

Claude Code

>Unattended retry mode can stop waiting on a usage limit that resets too far away

CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS

Applies to
CLAUDE_CODE_RETRY_WATCHDOG, the unattended retry mode
Limit resets too far away
the request ends instead of waiting
CHANGELOG.md · anthropics/claude-code

Claude Code's unattended retry mode gets a new setting for usage limits. When a limit resets too far away, the request ends instead of waiting for the reset.

Vim mode

Claude Code

>Vim mode jumps to the matching bracket with %

%
alone, or with d, c or y
Esc
no longer leaves you in INSERT on a slow or busy machine
AskUserQuestion
the typed answer gets NORMAL mode; Esc cancels only from NORMAL
CHANGELOG.md · anthropics/claude-code

In Claude Code's vim mode, the percent key jumps to the matching bracket, alone or with delete, change or yank. And Escape stops leaving you in insert mode on a slow or busy machine.

VS Code renders math

Claude Code

>VS Code renders LaTeX math in Claude’s responses

Blocks
$$ … $$ and multi-line \[ … \]
Inline
$ … $ and \( … \)
Pro and Max
a “Get more usage” link on the usage-limit banner, in VS Code and JetBrains
CHANGELOG.md · anthropics/claude-code

The Claude Code extension for VS Code now renders LaTeX math in Claude's responses, as blocks and inline. On Pro and Max plans, the usage-limit banner gets a link to more usage, in JetBrains too.

Fixes you may have hit

Claude Code

>Fixed: silent search failures, binary files as text, repeated compaction

Grep and Glob
a search that fails returns an error, not an empty result
Read
.xlsm, .parquet, .epub and .heic files are no longer treated as text
LLM gateways
no more compacting over and over on a model you didn’t pick
CHANGELOG.md · anthropics/claude-code

Grep and Glob now report a failed search as an error. The Read tool stops treating spreadsheets and photos as text. And behind an LLM gateway, conversations stop compacting over and over.

The full changelog

Claude Code

Every change is in the Claude Code changelog

https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md

CHANGELOG.md in anthropics/claude-code
CHANGELOG.md · anthropics/claude-code

The Claude Code changelog on GitHub has the rest, including OpenTelemetry fields for auto mode decisions and new options for mods.

Up next

2:06

Claude Code v2.1.300: one rejected MCP tool no longer fails every turn of your conversation

@claude-code · 1 day ago

1:53

Claude Code v2.1.299: come back from a break without reprocessing your whole session

@claude-code · 1 day ago

1:46

Claude Code v2.1.296: Claude can read a large file in one call

@claude-code · 6 days ago

1:36

Claude Code: hooks can now block an action when they fail

@claude-code · 1 week ago

1:39

Claude Code v2.1.293: Claude Haiku 5.5 becomes the default Haiku model, and finished work stays finished after a compaction

@claude-code · 1 week ago

1:32

Claude Code: subagents run at the effort you ask for, plugins install from a marketplace in one command, and network-path reads ask first

@claude-code · 1 week ago

1:23

Claude Code v2.1.290: WebSearch refills by the hour, WebFetch says what it left unread, and scheduled tasks stop going missing

@claude-code · 1 week ago

1:25

Claude Code v2.1.289: Bash deny rules hold under sandbox auto-allow, and a failing plugin no longer ends your session

@claude-code · 1 week ago

1:40

Claude Code v2.1.288: Up restores a prompt cleared with Ctrl+C, and mid-response timeouts no longer fail the turn

@claude-code · 1 week ago

1:46

Claude Code v2.1.287: Claude Mods let plugins change deeper behavior, and 1M context is the default on Bedrock and Vertex

@claude-code · 2 weeks ago

3:04

Claude Code v2.1.286: resumed sessions keep every turn, refused models fall back, and secrets stay masked

@claude-code · 2 weeks ago

3:06

Claude Code v2.1.285: claude --desktop, a provider allowlist, and time limits on background commands

@claude-code · 2 weeks ago