Back to News
ProductAI Understanding briefing

Anthropic releases Claude Code v2.1.285 with new environment controls and bug fixes

The latest Claude Code release adds environment variables for disabling WebFetch, tighter provider controls, and dozens of stability fixes across CLI, plugins, and cloud sessions.

4 min readRead the primary source
Source-page capture accompanying Anthropic releases Claude Code v2.1.285 with new environment controls and bug fixes
Primary-source documentSource recorded
Publisher
github.com
Source link
github.comhttps://github.com/anthropics/claude-code/releases/tag/v2.1.285
Source type
Primary document — an official announcement, paper, filing, or first-party page we read directly.
ContextUnderstand this in 60 seconds

Start here

Key terms

API (Application Programming Interface)
A structured way for one software system to send requests to and receive responses from another system.
Feature
An input variable used by a model to make predictions.
Prompt
The input instructions and context provided to a generative model.
Test yourselfAI Models Explained Quiz

What happened

Anthropic published version 2.1.285 of Claude Code, its AI‑powered coding assistant. The update introduces several new environment variables—CLAUDE_CODE_DISABLE_WEB_FETCH, CLAUDE_CODE_NONSTREAMING_TIMEOUT_RETRIES, and CLAUDE_CODE_RESUME_INTERRUPTED_TURN—plus a new CLI flag (--desktop) to launch the desktop app in the current directory. It also adds a managed setting (allowedProviders) to restrict which API back‑ends a machine may use. The release bundles more than 150 bug fixes covering plugin installation, sub‑agent behavior, cloud session resilience, artifact publishing, and UI glitches in VS Code and the desktop client.

The release adds three new environment variables. CLAUDE_CODE_DISABLE_WEB_FETCH lets operators turn off the WebFetch tool, preventing the assistant from retrieving external content—a key safeguard for air‑gapped or compliance‑heavy environments. CLAUDE_CODE_NONSTREAMING_TIMEOUT_RETRIES caps retry attempts for fallback non‑streaming requests that time out, reducing the risk of runaway network traffic. CLAUDE_CODE_RESUME_INTERRUPTED_TURN enables the CLI to automatically replay a turn that was cut off by a max‑turns limit, improving session continuity.

A new CLI flag, "claude --desktop", launches the Claude desktop application in the current working directory, streamlining the workflow for developers who prefer a GUI. The "claude plugin configure" command now displays plugin options, highlights unset values, and can ingest new settings from stdin via the "--values-stdin" option, simplifying bulk configuration.

The "allowedProviders" managed setting gives administrators the ability to whitelist specific back‑ends—Anthropic API, custom endpoints, Bedrock, Mantle, Vertex AI, Foundry, Claude Platform on AWS, or a Cloud gateway—thereby enforcing consistent model usage across an organization.

A large set of bug fixes addresses instability in plugin installation over SSH, handling of managed‑settings files, cloud session resumption after compaction, sub‑agent permission flows, artifact publishing conflicts, and numerous UI glitches in VS Code and the desktop client. These fixes collectively reduce session crashes, prevent data loss, and improve the overall user experience.

Source details: github.com ↗

Why it matters

These changes tighten security and operational control for enterprises deploying Claude Code, especially in regulated environments where unrestricted web access or uncontrolled API endpoints pose risk. By exposing granular toggles via environment variables and managed settings, administrators can enforce policies without modifying code. The extensive stability fixes improve developer productivity, reducing interruptions caused by session crashes, permission‑ loops, or inconsistent artifact handling. Together, the enhancements make Claude Code more reliable for large‑scale, collaborative coding workflows and pave the way for broader adoption in corporate settings.

Enterprise customers often require strict control over external network calls and model selection to meet security and compliance mandates. By exposing the ability to disable WebFetch and limit providers, Anthropic gives organizations concrete levers to align Claude Code with internal policies, making the tool viable for sensitive codebases.

Stability is a critical factor for developer adoption. The extensive fixes—ranging from SSH‑based plugin installs to artifact versioning and sub‑agent lifecycle handling—directly translate into fewer interruptions, less manual troubleshooting, and smoother CI/CD integration. This reduces the hidden cost of AI‑assisted development and encourages broader team usage.

The new CLI and configuration commands lower the friction for onboarding and managing Claude Code at scale. Developers can now launch the desktop app from any directory, and administrators can script bulk plugin configuration via stdin, supporting automated provisioning in large organizations.

Interactive Mechanism

Interactive Mechanism: How It Actually Works

Explore the underlying technology behind this development interactively.

Agent Lifecycle Stage:
1
User Intent & Planning: "Audit customer refund request #4092 and settle payment."
2
Tool Calling: Emits structured JSON call crm_get_transaction(id='4092').
3
Guardrail & Verification:🛡️ Paused: High-value action requires human operator sign-off.
4
Final Settlement: Refund recorded, email receipt dispatched, and audit log stored.
Core takeaway: An AI agent is not just a language model—it is a closed loop of planning, tool invocation, and environment feedback. Production systems require self-healing retries and strict human approval guardrails.
Interactive Concept Check+10 Points
AI Models Explained Quiz

In AI, what are a model's "parameters"?

What to watch next

Future releases may expand the allowedProviders list and introduce finer‑grained permission modes for sub‑agents. Watch for Anthropic’s roadmap on integrating Claude Code with additional IDEs and for any policy‑driven features that enable enterprise‑wide governance of AI‑generated code. Monitoring how the new environment variables are adopted in CI/CD pipelines will indicate the maturity of operational controls for AI‑assisted development.

Anthropic may further refine the allowedProviders setting, potentially adding role‑based access controls or dynamic policy updates that react to changing compliance requirements.

The introduction of environment‑based toggles suggests a roadmap toward more granular runtime controls, such as per‑project or per‑user flags, which could be leveraged in future CI/CD integrations.

Observing how the community adopts the new CLI flags and environment variables will indicate whether Claude Code is moving from a developer‑centric tool toward an enterprise‑grade platform with robust governance capabilities.

Related guides & quizzes

AI Models ExplainedAI AgentsPrompt EngineeringAI EthicsTest what you know — try a free AI quizLook up an AI term in our glossaryFollow the AI model release tracker
Found this useful?