---
title: "Claude Code v2.1.251 | Havoptic"
description: "Claude Code 2.1.251 now lets you control when models switch with new hook events and shows live tool execution from subagents to Remote Control clients. We've also added spend limit visibility, detail..."
image: "https://dev.havoptic.com/images/infographics/claude-code-2.1.251-2026-08-28-16x9-display.jpg"
---

# Claude Code v2.1.251

Claude Code v2.1.251 was released on August 28, 2026.

## Summary

Claude Code 2.1.251 now lets you control when models switch with new hook events and shows live tool execution from subagents to Remote Control clients. We've also added spend limit visibility, detailed prompt cache analytics, and fixed several security issues around file acce...

## Release Context

- This was the 202nd Claude Code release of 2026 tracked by Havoptic.
- It shipped 1 day after [Claude Code v2.1.250](https://dev.havoptic.com/r/claude-code-2.1.250) (August 27, 2026).
- Claude Code: ships every 0.8 days — 26 releases in the last month.

**Why it matters:** Code execution now streams live to Remote Control clients.

### Shipped around the same time

Within 3 days of this release, other AI coding tools also shipped:

- [Grok Build v1.0.15](https://dev.havoptic.com/r/grok-build-1.0.15) (August 31, 2026)
- [Grok Build v1.0.14](https://dev.havoptic.com/r/grok-build-1.0.14) (August 31, 2026)
- [Amp 2026.08.31](https://dev.havoptic.com/r/amp-space) (August 31, 2026)
- [Bolt 2026.08.31](https://dev.havoptic.com/r/bolt-2026-08-31) (August 31, 2026)
- [Kiro CLI v2.20.2](https://dev.havoptic.com/r/kiro-2.20.2) (August 31, 2026)

### Compare Claude Code

- [Claude Code vs OpenAI Codex CLI](https://dev.havoptic.com/compare/claude-code-vs-openai-codex)
- [Claude Code vs Cursor](https://dev.havoptic.com/compare/claude-code-vs-cursor)
- [Claude Code vs Gemini CLI](https://dev.havoptic.com/compare/claude-code-vs-gemini-cli)
- [Claude Code vs Kiro CLI](https://dev.havoptic.com/compare/claude-code-vs-kiro)
- [Claude Code vs GitHub Copilot CLI](https://dev.havoptic.com/compare/claude-code-vs-github-copilot)
- [Claude Code vs Devin Desktop](https://dev.havoptic.com/compare/claude-code-vs-windsurf)
- [Claude Code vs Antigravity CLI](https://dev.havoptic.com/compare/antigravity-cli-vs-claude-code)
- [Claude Code vs Grok Build](https://dev.havoptic.com/compare/claude-code-vs-grok-build)
- [Claude Code vs Cline](https://dev.havoptic.com/compare/claude-code-vs-cline)
- [Claude Code vs OpenCode](https://dev.havoptic.com/compare/claude-code-vs-opencode)
- [Claude Code vs Zed](https://dev.havoptic.com/compare/claude-code-vs-zed)
- [Claude Code vs Factory Droid](https://dev.havoptic.com/compare/claude-code-vs-factory-droid)
- [Claude Code vs Devin](https://dev.havoptic.com/compare/claude-code-vs-devin)
- [Claude Code vs Lovable](https://dev.havoptic.com/compare/claude-code-vs-lovable)
- [Claude Code vs Amp](https://dev.havoptic.com/compare/amp-vs-claude-code)
- [Claude Code vs GitHub Copilot in VS Code](https://dev.havoptic.com/compare/claude-code-vs-copilot-vscode)
- [Claude Code vs Replit Agent](https://dev.havoptic.com/compare/claude-code-vs-replit-agent)
- [Claude Code vs Bolt](https://dev.havoptic.com/compare/bolt-vs-claude-code)
- [Claude Code vs v0](https://dev.havoptic.com/compare/claude-code-vs-v0)

## Release Notes

- Added PreModelSwitch and PostModelSwitch hook events (block, confirm, or annotate a model switch); SessionStart resume hooks now receive session staleness and the estimated re-cache cost
- Added live streaming of a foreground subagent's tool calls and results to Remote Control clients (background subagents, the default, still show status only)
- Added a Spend limit bar to /usage and a ratelimits.spendlimit status line field for developers behind a Claude apps gateway with spend limits
- Added a per-session prompt-cache line to /cost (hit ratio, misses, tokens re-cached, warm/cold) and a matching promptcache object for status line scripts
- Added attach, logs, stop, respawn, and rm to claude --help; the --resume message for a running background session now names the exact claude attach <id> command
- Fixed file tools (Read, Write, Edit) following a symlink swapped inside the working directory after the permission check, which could read or write outside the approved location
- Fixed plugin commands declared in a marketplace entry being able to point outside the plugin directory; such paths are now rejected with a path-traversal error
- Fixed project settings being able to enable detailed beta tracing or raw API body logging, and a lower-scope beta tracing endpoint bypassing an OTLP collector pinned by managed settings or a host app
- Fixed the Workflow tool reading (and quoting in errors) a scriptPath outside what the session may read before the permission check ran
- Fixed Grep and Glob not applying Read(...) deny rules to files reached through a symlinked search path
- Fixed conversations getting stuck on "text content blocks must be non-empty" errors after a turn where the model produced only thinking
- Fixed the first launch on a fresh install starting in default mode instead of auto mode for accounts whose startup default is auto mode
- Fixed Opus 5 requests failing with "effort … is not supported when thinking is disabled" when effort was xhigh/max and thinking was turned off; effort is now sent as high in that case
- Fixed replying to a message Claude Desktop delivered from another session: SendMessage to that session id now delivers through Claude Desktop instead of failing with "not reachable"
- Fixed TUI lag with many parallel subagents: per-second progress ticks now replace their predecessor instead of piling up in the transcript
- Fixed agent teams: a teammate's final answer not reaching the team lead — it now arrives in the idle notification instead of a content-free "available" notice
- Fixed background subagents being unable to reply to a message from an unnamed sibling or parent agent (from was the agent type, which is not an address)
- Fixed managed-settings disableAutoMode arriving mid-session not moving an already-running auto-mode session back to default mode
- Fixed a "switch to Opus 1M for 5x more context" tip that appeared even when the current Opus model already has a 1M context window
- Fixed Claude apps gateway sessions treating a stored Anthropic profile (e.g. a Console sign-in) as active: listing it in /status and retrying gateway 401s with it, though requests never use it
- Fixed cloud sessions telling Claude the model had changed when the host was only setting the session's initial model
- Fixed Remote Control reporting a failure when an organi

[View original release](https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md)

## Other Recent Claude Code Releases

- [v2.1.332](https://dev.havoptic.com/r/claude-code-2.1.332) (November 24, 2026)
- [v2.1.331](https://dev.havoptic.com/r/claude-code-2.1.331) (November 23, 2026)
- [v2.1.330](https://dev.havoptic.com/r/claude-code-2.1.330) (November 20, 2026)
- [v2.1.329](https://dev.havoptic.com/r/claude-code-2.1.329) (November 19, 2026)
- [v2.1.328](https://dev.havoptic.com/r/claude-code-2.1.328) (November 18, 2026)

Upgrading from v2.1.251? [See all 68 releases since](https://dev.havoptic.com/r/claude-code/diff?from=2.1.251&to=latest).

[All Claude Code releases](https://dev.havoptic.com/tools/claude-code) · [All AI coding tool releases on Havoptic](https://dev.havoptic.com/)

```json
{
  "@context": "https://schema.org",
  "@type": "WebSite",
  "name": "Havoptic",
  "alternateName": "Havoptic AI Tool Releases",
  "url": "https://www.havoptic.com/",
  "description": "Havoptic tracks every release of 20 AI coding tools, from Claude Code and Codex CLI to Cursor and Copilot CLI, and explains each one in plain English within hours of shipping.",
  "publisher": {
    "@type": "Organization",
    "name": "Havoptic",
    "url": "https://www.havoptic.com/"
  },
  "potentialAction": {
    "@type": "SearchAction",
    "target": "https://www.havoptic.com/?q={search_term_string}",
    "query-input": "required name=search_term_string"
  }
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "SoftwareApplication",
  "name": "Havoptic",
  "applicationCategory": "DeveloperApplication",
  "operatingSystem": "Web",
  "offers": {
    "@type": "Offer",
    "price": "0",
    "priceCurrency": "USD"
  },
  "description": "Havoptic tracks every release of 20 AI coding tools, from Claude Code and Codex CLI to Cursor and Copilot CLI, and explains each one in plain English within hours of shipping."
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "@id": "https://www.havoptic.com/#organization",
  "name": "Havoptic",
  "url": "https://www.havoptic.com/",
  "logo": {
    "@type": "ImageObject",
    "url": "https://www.havoptic.com/og-image.jpg",
    "width": 1200,
    "height": 630
  },
  "description": "Release tracking, plain-English release notes and side-by-side comparisons for AI coding tools, updated hourly.",
  "foundingDate": "2025",
  "sameAs": [
    "https://github.com/scotthavird/havoptic.com",
    "https://x.com/havoptic"
  ],
  "founder": {
    "@id": "https://www.havoptic.com/authors/scott-havird#person"
  }
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "DataCatalog",
  "@id": "https://www.havoptic.com/#data-catalog",
  "name": "Havoptic AI Coding Tool Release Data",
  "description": "Every release of 20 AI coding tools, dated and explained in plain English within hours of shipping, plus feature comparison matrices, free to query through an API, an MCP server, feeds and a CLI. Covers Claude Code, OpenAI Codex CLI, Cursor, Gemini CLI, Kiro, GitHub Copilot CLI, Devin Desktop, Antigravity CLI, Grok Build, Cline, OpenCode, Zed, Factory Droid, Devin (cloud agent), Lovable, Amp, GitHub Copilot in VS Code, Replit Agent, Bolt, and v0.",
  "url": "https://www.havoptic.com/api-docs",
  "publisher": {
    "@type": "Organization",
    "name": "Havoptic",
    "url": "https://www.havoptic.com/"
  },
  "dataset": [
    {
      "@type": "Dataset",
      "@id": "https://www.havoptic.com/data/releases.json",
      "name": "AI Coding Tool Releases",
      "description": "Complete release history for Claude Code, OpenAI Codex CLI, Cursor, Gemini CLI, Kiro, GitHub Copilot CLI, Devin Desktop, Antigravity CLI, Grok Build, Cline, OpenCode, Zed, Factory Droid, Devin (cloud agent), Lovable, Amp, GitHub Copilot in VS Code, Replit Agent, Bolt, and v0 — including version numbers, release dates, plain-English summaries, and full changelogs. Updated hourly.",
      "url": "https://www.havoptic.com/data/releases.json",
      "distribution": {
        "@type": "DataDownload",
        "encodingFormat": "application/json",
        "contentUrl": "https://www.havoptic.com/data/releases.json"
      },
      "temporalCoverage": "2025/..",
      "creator": {
        "@id": "https://www.havoptic.com/#organization"
      },
      "maintainer": {
        "@type": "Organization",
        "name": "Havoptic",
        "url": "https://www.havoptic.com/"
      },
      "isAccessibleForFree": true,
      "license": "https://creativecommons.org/licenses/by/4.0/",
      "keywords": [
        "Claude Code",
        "OpenAI Codex CLI",
        "Cursor",
        "Gemini CLI",
        "Kiro",
        "GitHub Copilot CLI",
        "Devin Desktop",
        "Windsurf",
        "Antigravity CLI",
        "Grok Build",
        "Cline",
        "OpenCode",
        "Zed",
        "Factory Droid",
        "Devin (cloud agent)",
        "Lovable",
        "Amp",
        "GitHub Copilot in VS Code",
        "Replit Agent",
        "Bolt",
        "v0",
        "AI coding tools",
        "release history",
        "changelogs"
      ]
    },
    {
      "@type": "Dataset",
      "@id": "https://www.havoptic.com/data/feature-matrix.json",
      "name": "AI Coding Tool Feature Matrix",
      "description": "Side-by-side feature comparison data for 20 AI coding tools across categories: Core Editing, Terminal Integration, MCP Support, IDE Integrations, and Agentic Features.",
      "url": "https://www.havoptic.com/data/feature-matrix.json",
      "distribution": {
        "@type": "DataDownload",
        "encodingFormat": "application/json",
        "contentUrl": "https://www.havoptic.com/data/feature-matrix.json"
      },
      "creator": {
        "@id": "https://www.havoptic.com/#organization"
      },
      "maintainer": {
        "@type": "Organization",
        "name": "Havoptic",
        "url": "https://www.havoptic.com/"
      },
      "isAccessibleForFree": true,
      "license": "https://creativecommons.org/licenses/by/4.0/",
      "keywords": [
        "AI coding tools",
        "feature comparison",
        "Claude Code",
        "Cursor",
        "GitHub Copilot",
        "Gemini CLI",
        "Devin Desktop",
        "Windsurf"
      ]
    }
  ]
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    {
      "@type": "ListItem",
      "position": 1,
      "name": "Home",
      "item": "https://dev.havoptic.com"
    },
    {
      "@type": "ListItem",
      "position": 2,
      "name": "Claude Code",
      "item": "https://dev.havoptic.com/tools/claude-code"
    },
    {
      "@type": "ListItem",
      "position": 3,
      "name": "v2.1.251",
      "item": "https://dev.havoptic.com/r/claude-code-2.1.251"
    }
  ]
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "TechArticle",
  "headline": "Claude Code v2.1.251",
  "datePublished": "2026-08-28T15:34:26.421Z",
  "dateModified": "2026-08-28T15:34:26.421Z",
  "url": "https://dev.havoptic.com/r/claude-code-2.1.251",
  "image": "https://dev.havoptic.com/images/infographics/claude-code-2.1.251-2026-08-28-16x9-display.jpg",
  "description": "Claude Code 2.1.251 now lets you control when models switch with new hook events and shows live tool execution from subagents to Remote Control clients. We've also added spend limit visibility, detail...",
  "abstract": "Code execution now streams live to Remote Control clients",
  "isBasedOn": "https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md",
  "about": {
    "@type": "SoftwareApplication",
    "name": "Claude Code",
    "softwareVersion": "2.1.251",
    "applicationCategory": "DeveloperApplication",
    "url": "https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md",
    "releaseNotes": "- Added PreModelSwitch and PostModelSwitch hook events (block, confirm, or annotate a model switch); SessionStart resume hooks now receive session staleness and the estimated re-cache cost - Added live streaming of a foreground subagent's tool calls and results to Remote Control clients (background subagents, the default, still show status only) - Added a Spend limit bar to /usage and a ratelimits.spendlimit status line field for developers behind a Claude apps gateway with spend limits - Added a per-session prompt-cache line to /cost (hit ratio, misses, tokens re-cached, warm/cold) and a matching promptcache object for status line scripts - Added attach, logs, stop, respawn, and rm to claude --help; the --resume message for a running background session now names the exact claude attach <id> command - Fixed file tools (Read, Write, Edit) following a symlink swapped inside the working directory after the permission check, which could read or write outside the approved location - Fixed plugin commands declared in a marketplace entry being able to point outside the plugin directory; such paths are now rejected with a path-traversal error - Fixed project settings being able to enable detailed beta tracing or raw API body logging, and a lower-scope beta tracing endpoint bypassing an OTLP collector pinned by managed settings or a host app - Fixed the Workflow tool reading (and quoting in errors) a scriptPath outside what the session may read before the permission check ran - Fixed Grep and Glob not applying Read(...) deny rules to files reached through a symlinked search path - Fixed conversations getting stuck on \"text content blocks must be non-empty\" errors after a turn where the model produced only thinking - Fixed the first launch on a fresh install starting in default mode instead of auto mode for accounts whose startup default is auto mode - Fixed Opus 5 requests failing with \"effort … is not supported when thinking is disabled\" when effort was xhigh/max and thinki"
  },
  "articleBody": "- Added PreModelSwitch and PostModelSwitch hook events (block, confirm, or annotate a model switch); SessionStart resume hooks now receive session staleness and the estimated re-cache cost - Added live streaming of a foreground subagent's tool calls and results to Remote Control clients (background subagents, the default, still show status only) - Added a Spend limit bar to /usage and a ratelimits.spendlimit status line field for developers behind a Claude apps gateway with spend limits - Added a per-session prompt-cache line to /cost (hit ratio, misses, tokens re-cached, warm/cold) and a matching promptcache object for status line scripts - Added attach, logs, stop, respawn, and rm to claude --help; the --resume message for a running background session now names the exact claude attach <id> command - Fixed file tools (Read, Write, Edit) following a symlink swapped inside the working directory after the permission check, which could read or write outside the approved location - Fixed plugin commands declared in a marketplace entry being able to point outside the plugin directory; such paths are now rejected with a path-traversal error - Fixed project settings being able to enable detailed beta tracing or raw API body logging, and a lower-scope beta tracing endpoint bypassing an OTLP collector pinned by managed settings or a host app - Fixed the Workflow tool reading (and quoting in errors) a scriptPath outside what the session may read before the permission check ran - Fixed Grep and Glob not applying Read(...) deny rules to files reached through a symlinked search path - Fixed conversations getting stuck on \"text content blocks must be non-empty\" errors after a turn where the model produced only thinking - Fixed the first launch on a fresh install starting in default mode instead of auto mode for accounts whose startup default is auto mode - Fixed Opus 5 requests failing with \"effort … is not supported when thinking is disabled\" when effort was xhigh/max and thinking was turned off; effort is now sent as high in that case - Fixed replying to a message Claude Desktop delivered from another session: SendMessage to that session id now delivers through Claude Desktop instead of failing with \"not reachable\" - Fixed TUI lag with many parallel subagents: per-second progress ticks now replace their predecessor instead of piling up in the transcript - Fixed agent teams: a teammate's final answer not reaching the team lead — it now arrives in the idle notification instead of a content-free \"available\" notice - Fixed background subagents being unable to reply to a message from an unnamed sibling or parent agent (from was the agent type, which is not an address) - Fixed managed-settings disableAutoMode arriving mid-session not moving an already-running auto-mode session back to default mode - Fixed a \"switch to Opus 1M for 5x more context\" tip that appeared even when the current Opus model already has a 1M context window - Fixed Claude apps gateway sessions treating a stored Anthropic profile (e.g. a Console sign-in) as active: listing it in /status and retrying gateway 401s with it, though requests never use it - Fixed cloud sessions telling Claude the model had changed when the host was only setting the session's initial model - Fixed Remote Control reporting a failure when an organi",
  "author": {
    "@id": "https://dev.havoptic.com/#organization"
  },
  "publisher": {
    "@id": "https://dev.havoptic.com/#organization"
  },
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://dev.havoptic.com/r/claude-code-2.1.251"
  },
  "speakable": {
    "@type": "SpeakableSpecification",
    "cssSelector": [
      "h1",
      "#ssr-content p"
    ]
  }
}
```
