Torna alle notizie
ProdottoAI Understanding briefing

Anthropic rilascia Claude Code v2.1.285 con nuovi controlli ambientali e correzioni di bug

L'ultima versione di Claude Code aggiunge variabili di ambiente per disabilitare WebFetch, controlli più severi del provider e decine di correzioni di stabilità su CLI, plug-in e sessioni cloud.

4 min readRead the primary source
Source-page capture accompanying Anthropic releases Claude Code v2.1.285 with new environment controls and bug fixes
Documento di origine primariaFonte registrata
Editore
github.com
Collegamento alla fonte
github.comhttps://github.com/anthropics/claude-code/releases/tag/v2.1.285
Tipo di fonte
Documento principale: un annuncio ufficiale, un documento, un documento o una pagina proprietaria che leggiamo direttamente.
ContestoComprendilo in 60 secondi

Inizia qui

Termini chiave

API (interfaccia di programmazione dell'applicazione)
Un modo strutturato con cui un sistema software invia richieste e riceve risposte da un altro sistema.
Caratteristica
Una variabile di input utilizzata da un modello per effettuare previsioni.
Richiedi
Le istruzioni di input e il contesto forniti a un modello generativo.
Mettiti alla provaQuiz sulla spiegazione dei modelli di intelligenza artificiale

Cosa è successo

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.

Dettagli della fonte: github.com ↗

Perché è importante

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

Meccanismo interattivo: come funziona realmente

Esplora la tecnologia alla base di questo sviluppo in modo interattivo.

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.
Verifica concettuale interattiva+10 Points
AI Models Explained Quiz

Which component of an AI application is the machine-learning model itself?

Cosa guardare dopo

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.

Guide e quiz correlati

Spiegazione dei modelli di intelligenza artificialeAgenti dell'intelligenza artificialePrompt EngineeringEtica dell'IAMetti alla prova ciò che sai: prova un quiz gratuito sull'intelligenza artificialeCerca un termine AI nel nostro glossarioSegui il tracker del rilascio del modello AI
Lo hai trovato utile?