Retour aux Actualités
ProduitBriefing AI Understanding

Anthropic publie Claude Code v2.1.285 avec de nouveaux contrôles d'environnement et corrections de bugs

La dernière version de Claude Code ajoute des variables d'environnement pour désactiver WebFetch, des contrôles plus stricts des fournisseurs et des dizaines de correctifs de stabilité dans l'interface de ligne de commande, les plugins et les sessions 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
Document de source principaleSource enregistrée
Éditeur
github.com
Lien source
github.comhttps://github.com/anthropics/claude-code/releases/tag/v2.1.285
Type de source
Document principal : une annonce officielle, un document, un dépôt ou une page de première partie que nous lisons directement.
ContexteComprenez cela en 60 secondes

Commencez ici

Termes clés

API (interface de programmation d'applications)
Une manière structurée permettant à un système logiciel d'envoyer des requêtes et de recevoir des réponses d'un autre système.
Caractéristique
Variable d'entrée utilisée par un modèle pour faire des prédictions.
Invite
Les instructions d'entrée et le contexte fournis à un modèle génératif.
Testez-vousQuiz sur les modèles d'IA expliqués

Que s'est-il passé

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.

Détails de la source: github.com ↗

Pourquoi c'est important

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

Mécanisme interactif : comment cela fonctionne réellement

Explorez de manière interactive la technologie sous-jacente à ce développement.

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.
Vérification de concept interactive+10 Points
AI Models Explained Quiz

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

Que regarder ensuite

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.

Guides et quiz associés

Modèles d'IA expliquésAgents IAPrompt EngineeringÉthique de l'IATestez ce que vous savez : essayez un quiz gratuit sur l'IARecherchez un terme d'IA dans notre glossaireSuivez le suivi des versions du modèle AI
Vous avez trouvé cela utile ?