Skip to content
Agent Radar

Claude Code 2.1.295 adds hook blocking and gateway controls

Updated Claude Code

Summary

Claude Code v2.1.295, released October 8, 2026, adds fail-closed hooks, OSC 7501 status support and new Claude apps gateway upstream controls.

Date
MCP
Yes
Pricing
Not stated in the sources we cited.

Anthropic published Claude Code v2.1.295 on GitHub on October 8, 2026. According to the release notes, it adds a fail-closed option for hooks, terminal status reporting through OSC 7501, and more controls for the Claude apps gateway, alongside a long list of fixes.

Release facts

FactDetail
ProductClaude Code, described in the repository as an agentic coding tool that lives in your terminal
Versionv2.1.295
Release dateOctober 8, 2026
LicenseNot stated in the cited sources; the GitHub API reports no recognized license
Where to get itGitHub release; install options in the docs overview

What changed

  • Hooks can fail closed. Command and HTTP hooks accept onFailure: "block": a hook that can't start, times out, or exits with an unexpected code blocks the action instead of letting it through.
  • Terminal status. Terminals that implement the Program Status Protocol (OSC 7501) can show whether Claude Code is working, waiting on you, or done.
  • Gateway upstream controls. The Claude apps gateway gains timeouts.upstream_ttfb_ms for cloud upstreams and an optional models list per upstream, where only listed models are sent, including on failover.
  • Gateway observability. The inference audit event now carries upstream_request_id, and successful inference responses include a request-id header so telemetry request_id matches the audit log.
  • MCP reliability fixes. Remote MCP servers in headless and SDK sessions now back off up to 30s on repeated drops, and repeated pagination cursors no longer cause up to 20 requests for the same page at every connect.
  • Headless output. claude -p now prints each turn's response when the turn ends, and prints a stderr line saying what a run is waiting for when it stays open.

Questions

Does a failing hook now stop the action?

Only if you set onFailure: "block". The release notes describe it as an added option for command and HTTP hooks.

Is Claude Code open source?

Not stated in the cited sources. The repository page says the GitHub API does not report a recognized license.

How do I install it?

The docs overview lists a native install script, Homebrew (brew install --cask claude-code) and WinGet (winget install Anthropic.ClaudeCode).

For more, see the Claude Code hub, the coding agents category, and the related Cline SDK v0.0.93 launch.

Alternatives

Claude Code compared with its alternatives
ToolLicensePricing note
Claude CodeThis launchClaude Code is an agentic coding tool that runs in your terminal and works on your codebase.
—Not stated
OpenCodeOpen-source coding agent from the anomalyco/opencode repository, MIT-licensed, with a terminal client and a site at opencode.ai.
MITThe client is MIT-licensed. Model access is separate; this page does not quote a hosted plan.
ClineApache-2.0 coding agent published as an SDK, IDE extension, or CLI assistant in the cline/cline repository.
Apache-2.0The repository license is Apache-2.0. Model access is separate.
Gemini CLIOpen-source terminal AI agent that brings Gemini into the command line for coding and workflows.
Apache-2.0Not stated
AiderApache-2.0 terminal pair programmer. The project describes Aider as AI pair programming in your terminal.
Apache-2.0Apache-2.0 software. Model access is separate.

Questions

What is Claude Code?

The repository describes it as an agentic coding tool that lives in your terminal, understands your codebase, and handles routine tasks and git workflows through natural language commands.

Is Claude Code open source?

Not stated in the cited sources. The GitHub API does not report a recognized license for the repository.

Does Claude Code support MCP?

The docs overview lists connecting your tools with MCP, and the v2.1.295 release notes include MCP fixes.

Filed on Agent Radar. Claims in this note are limited to the sources above.