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.
- Tool
- Claude Code
- Category
- Coding agents
- 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
| Fact | Detail |
|---|---|
| Product | Claude Code, described in the repository as an agentic coding tool that lives in your terminal |
| Version | v2.1.295 |
| Release date | October 8, 2026 |
| License | Not stated in the cited sources; the GitHub API reports no recognized license |
| Where to get it | GitHub 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_msfor cloud upstreams and an optionalmodelslist per upstream, where only listed models are sent, including on failover. - Gateway observability. The
inferenceaudit event now carriesupstream_request_id, and successful inference responses include arequest-idheader so telemetryrequest_idmatches 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 -pnow 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
| Tool | License | Pricing 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. | MIT | The 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.0 | The 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.0 | Not stated |
AiderApache-2.0 terminal pair programmer. The project describes Aider as AI pair programming in your terminal. | Apache-2.0 | Apache-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.