Claude Code’s /auto-mode-setup teaches auto mode your project, and resume warns before it eats your 5-hour limit

1 hour ago

Claude Code 2.1.303 to 2.1.304 adds /auto-mode-setup, a guided setup that teaches auto mode about your project, and warns Pro and Max users before resuming an old conversation eats into the 5-hour usage limit. Also: claude --worktree no longer deletes a branch without asking, a Managed Agents security check in /claude-api, smoother LLM gateway support, and fixes for the auto compact window, /loop and subagents. https://github.com/anthropics/claude-code/releases/tag/v2.1.303 https://github.com/anthropics/claude-code/releases/tag/v2.1.304 https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md

Ask

Ask about this presentation

Answers are generated from this presentation.

Chapters

  1. 0:00/auto-mode-setup
  2. 0:13Resume warns about usage
  3. 0:27Worktrees and drives stay safe
  4. 0:42Check a Managed Agents agent
  5. 0:55LLM gateways
  6. 1:10Fixes you may have hit
  7. 1:25The full changelog
Show transcript

/auto-mode-setup

Claude Code

Claude Code’s /auto-mode-setup teaches auto mode your project

Reads
your project and recent sessions
Also on
Bedrock, Vertex, Foundry, the Claude apps gateway, telemetry-disabled sessions
Release v2.1.304 · anthropics/claude-code

Claude Code adds /auto-mode-setup, a guided setup that reads your project and recent sessions to teach auto mode about your environment. It also works on Bedrock, Vertex, Foundry and the Claude apps gateway.

Resume warns about usage

Claude Code

>Resuming an old conversation now warns before it eats your 5-hour limit

Who sees it
Pro and Max plans
Your choice
resume anyway, or start a new conversation
Starting fresh
Claude can look up the previous one if you refer to it
Release v2.1.304 · anthropics/claude-code

On Pro and Max plans, resuming an inactive conversation that would use a noticeable share of your five-hour limit now warns you first. Resume, or start fresh and Claude can look up the old one.

Worktrees and drives stay safe

Claude Code

>claude --worktree asks before deleting your branch, and rm -r of a drive gets the safety prompt

claude --worktree
no longer removes the worktree and its branch at exit without asking when HEAD was detached or on another branch
rm -r
of a mounted drive or a top-level folder like /Volumes, /media or /mnt/c now gets the safety prompt
Release v2.1.304 · anthropics/claude-code

After a branch switch, Claude Code's worktree mode could delete the worktree and its branch at exit without asking, losing commits. Now it asks. And deleting a whole mounted drive now gets the safety prompt.

Check a Managed Agents agent

Claude Code

>/claude-api managed-agents-secure checks an agent against Anthropic’s security guide

Compares
a Managed Agents agent’s settings with Anthropic’s published security guide
Changes
nothing; it only reports
Release v2.1.304 · anthropics/claude-code

If you build on Managed Agents, the Claude API skill gains a managed-agents-secure command. It compares your agent's settings with Anthropic's published security guide and changes nothing.

LLM gateways

Claude Code

>Claude Code works better behind LLM gateways

context_management errors
Claude Code resends the request without that field
Tool search
on by default behind a custom ANTHROPIC_BASE_URL; a 400 or 422 retries without it
Release v2.1.304 · anthropics/claude-code

Behind an LLM gateway, Claude Code now resends a request rejected with “Extra inputs are not permitted” without that field. Tool search is on by default there too, and retries without it when refused.

Fixes you may have hit

Claude Code

>Fixed: the 200k compact window, hour-long /loop wakeups, forgetful subagents

CLAUDE_CODE_AUTO_COMPACT_WINDOW
200k no longer means 100K; k and M suffixes work and bad values warn
/loop
wakeups at the 1-hour maximum no longer miss the prompt cache
Subagents
keep their latest work when messaged or resumed right after finishing
Release v2.1.304 · anthropics/claude-code

Setting the auto compact window to 200k no longer gives you 100K. Hour-long /loop wakeups stop missing the prompt cache. And subagents keep their latest work when you message them right after they finish.

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

Do you run Claude Code through Bedrock, Vertex or your own gateway?

Release v2.1.304 · anthropics/claude-code

The Claude Code changelog has the rest, including Code Review levels and new hooks for mods. So, do you run Claude Code through Bedrock, Vertex or your own gateway?

Up next

1:54

Claude Code v2.1.302 turns fork subagents on in the Agent SDK and VS Code, and standalone Claude Design closes December 14

@claude-code · 3 days ago

1:36

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

@claude-code · 4 days ago

2:06

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

@claude-code · 5 days ago

1:53

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

@claude-code · 5 days ago

1:46

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

@claude-code · 1 week 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 · 2 weeks 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 · 2 weeks 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