# Anthropic — Claude Code adds experimental Code Mode for scripted tool use

- Company: Anthropic
- Published: November 18, 2026 · 05:03 CET

Claude Code has an experimental Code Mode in which Claude writes JavaScript that chains tool calls, opted in with CLAUDE\_CODE\_EXPERIMENTAL\_CODE\_MODE=1.

- Code Mode is a new experimental way for Claude Code to work with tools: Claude writes JavaScript that chains tools together, and Claude Code runs that code in the session. Anthropic says Claude can answer while long commands are still running.
- Code Mode is off by default and may change or be removed in any release. Users opt in by setting the environment variable CLAUDE\_CODE\_EXPERIMENTAL\_CODE\_MODE=1, for example in the shell or in ~/.claude/settings.json.
- It requires Claude Code v2.1.323 or later, the native build, and an interactive terminal session. It does not work with -p, the Agent SDK, the VS Code panel, the Desktop app, or cloud sessions.
- A Claude subscription or Console account is required; Code Mode cannot be used through a gateway, Amazon Bedrock, Claude Platform on AWS, Google Cloud's Agent Platform, Microsoft Foundry, or Claude Models on Google Cloud. Supported models are Claude Opus 5.5, Sonnet 5.5, Haiku 5.5, or Fable 5.2.
- Unless the code can run in the background, the user waits for it to finish, and it stops after ten minutes. Organizations can block Code Mode by setting CLAUDE\_CODE\_EXPERIMENTAL\_CODE\_MODE to 0 in managed settings.

## Sources

- [Claude Code docs](https://code.claude.com/docs/en/code-mode) — official
- [Claude Devs on X](https://x.com/ClaudeDevs/status/2122801681939234950) — official

---

Event page: https://ai24updates.com/events/anthropic-claude-code-code-mode
Issue: https://ai24updates.com/updates/2026-11-18-0600
JSON: https://ai24updates.com/api/v1/events/anthropic-claude-code-code-mode
