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

1 month 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.

Ask about this presentation

Chapters

Show transcript
  1. 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.

    Slide text
    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
  2. 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.

    Slide text
    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
  3. 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.

    Slide text
    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
  4. 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.

    Slide text
    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
  5. 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.

    Slide text
    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
  6. 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.

    Slide text
    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
  7. 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?

    Slide text
    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

What happened in AI today, in your inbox

One short email each evening. Read it and you’re caught up.

Built with ❤️ in New York