Claude Code can now block writes outside your project, and Opus 4.8 fast mode ends

3 hours ago

Claude Code v2.1.312 to v2.1.316, for developers who use Claude Code: a new setting blocks Claude's file writes outside your working directories, and fast mode on Opus 4.8 ends November 30, 2026. Also: no more overwriting a huge CLAUDE.md, effort caps that retry instead of failing, claude -p that exits 1 on failure, idle compaction in VS Code and Claude Desktop, Bedrock, Vertex and Foundry fallbacks, and Anthropic's plugins moving to claude-plugins-official. https://github.com/anthropics/claude-code/releases/tag/v2.1.312 https://github.com/anthropics/claude-code/releases/tag/v2.1.314 https://github.com/anthropics/claude-code/releases/tag/v2.1.316 https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md https://github.com/anthropics/claude-code/pull/105303

Ask about this presentation

Chapters

  1. 0:00Block writes outside the project
  2. 0:13Opus 4.8 fast mode ends
  3. 0:27Large CLAUDE.md files
  4. 0:42Effort controls
  5. 0:56Scripts and shells
  6. 1:11Idle compaction
  7. 1:24Cloud provider fixes
  8. 1:38Plugins from claude-plugins-official
  9. 1:54The full changelog
Show transcript
  1. Claude Code has a new permission setting that keeps Claude's file edits inside your working directories. Turn it on, and Write, Edit and Notebook Edit refuse any other path, in every permission mode.

    Slide text
    Claude Code

    Claude Code can now block every write outside your project

    Setting
    permissions.blockWritesOutsideWorkingDirectories
    Tools
    Write, Edit and NotebookEdit refuse paths outside the working directories
    Modes
    every permission mode
    Release v2.1.314 · anthropics/claude-code
  2. If you use fast mode on Opus 4.8, you have one month. On November 30 it starts returning an error instead of falling back to standard Opus 4.8. Opus 5.5 keeps the speedup.

    Slide text
    Claude Code

    >Fast mode on Opus 4.8 is deprecated and goes away November 30

    Deprecated
    October 30, 2026
    Removed
    November 30, 2026
    After that
    fast mode requests on Opus 4.8 return an error, with no fall back to standard Opus 4.8
    To keep the speedup
    move to Opus 5.5
    Release v2.1.316 · anthropics/claude-code
  3. A very large CLAUDE.md or rules file in a subdirectory could be overwritten after Claude saw only its start. Now the Write tool asks Claude to read the whole file first, or edit it in place.

    Slide text
    Claude Code

    >Claude no longer overwrites a huge CLAUDE.md it only partly saw

    Before
    Claude saw the start of a very large CLAUDE.md, rules file or @-included file in a subdirectory, then wrote over it
    Now
    Write asks Claude to read the whole file, or edit in place
    Release v2.1.312 · anthropics/claude-code
  4. When an admin caps a model's effort, Claude Code now drops to the allowed level and retries instead of failing every turn. Subagents can get their own effort level, and the ultrathink keyword can be switched off.

    Slide text
    Claude Code

    >More control over effort, and no more failures from an admin's cap

    Admin effort cap
    Claude Code lowers the effort, retries, and says which level it uses, instead of failing every turn
    CLAUDE_CODE_SUBAGENT_EFFORT
    sets the effort subagents run at when nothing else names one
    CLAUDE_CODE_DISABLE_ULTRATHINK
    turns the ultrathink keyword off
    Release v2.1.314 · anthropics/claude-code · Release v2.1.316 · anthropics/claude-code
  5. Three fixes for scripts. claude -p prints its startup error and exits with code one. Bash scripts with SHELLOPTS exported run past their first command. And shell commands stop when Claude Code exits.

    Slide text
    Claude Code

    >Fixed for scripts: silent exits, cut-off Bash scripts, leftover commands

    claude -p
    a startup failure prints the error and exits 1, not 0 with no output
    SHELLOPTS exported
    Bash tool scripts no longer stop after their first command
    Exit on its own
    shell commands no longer keep running on macOS and Linux
    Release v2.1.314 · anthropics/claude-code · Release v2.1.316 · anthropics/claude-code
  6. In VS Code and Claude Desktop's Code tab, a long conversation you leave idle now gets summarized. When you come back after the prompt cache expires, your next message starts from that summary.

    Slide text
    Claude Code

    >VS Code and Claude Desktop now compact a long chat while it sits idle

    When
    a conversation of 200K tokens or more is left idle
    Then
    it is summarized, and the summary is used on your next message if the prompt cache has expired
    Also on
    Bedrock, Vertex, Foundry and LLM gateways once the one-hour prompt cache is on
    Release v2.1.314 · anthropics/claude-code
  7. On Bedrock, Vertex and Foundry, a missing newest model now means an older model of the same family, not an error. And Bedrock sessions full of images compact instead of failing.

    Slide text
    Claude Code

    >Fixed on Bedrock, Vertex and Foundry: falling back instead of failing

    Bedrock and Vertex
    sonnet, opus and haiku switch to an older model when the newest isn't in your account or region
    Foundry
    with no deployment for the default Sonnet, Opus or Haiku, it uses an older model of that family
    Bedrock images
    sessions with many images drop older ones and compact, instead of failing with “Input is too long”
    Release v2.1.314 · anthropics/claude-code · Release v2.1.316 · anthropics/claude-code
  8. The Claude Code plugins marketplace now installs every plugin from Claude plugins official. Installed names keep working, Ralph Wiggum becomes Ralph Loop, and hookify now enforces block rules that used to fail silently.

    Slide text
    Claude Code

    >Anthropic's plugins now install from claude-plugins-official

    Installed ids
    name@claude-code-plugins keeps working
    Renamed
    ralph-wiggum is now ralph-loop, and scripts must use the new name
    hookify
    now enforces block rules that used to fail silently
    PR #105303, .claude-plugin/marketplace.json · anthropics/claude-code
  9. The Claude Code changelog has the rest, including dozens of terminal, VS Code and Slack fixes. If you only change one thing, I'd turn on the new write block today.

    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

    Want Claude kept inside your project? Turn on the new write block.

    Release v2.1.312 · anthropics/claude-code · Release v2.1.314 · anthropics/claude-code · Release v2.1.316 · 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