# Anthropic adds Code Mode to Claude Code for JavaScript tool chains

Digest AI · Agents & Tools · published 2026-11-18T06:53:28Z

Canonical: https://digestai.news/story/anthropic-adds-code-mode-to-claude-code-for-javascript-tool-chains

## Summary

It lets developers write JavaScript that chains multiple tool calls—like Bash, Read, or Edit—into a single program. This cuts round-trips in multi-step tasks but requires opt-in via the environment variable `CLAUDECODEEXPERIMENTALCODEMODE=1` or a settings file.

Code Mode runs in an interactive terminal session (native build only) and supports **Claude Opus 5.5, Sonnet 5.5, Haiku 5.5, and Fable 5.2**. Background code can execute for up to **2 hours**, but waiting code stops after **10 minutes**. Anthropic notes no benchmark savings but cites an independent test showing **11.1k tokens** of system-tool context with Code Mode versus **24.6k** without. The feature is unavailable on Bedrock, Google Cloud, or IDEs like VS Code. Auto mode reviews code as a whole, not individual calls, while other modes prompt for permission per tool call.

## Key points

- Code Mode chains JavaScript tool calls in Claude Code v2.1.323, reducing round-trips for developers
- Opt-in via `CLAUDECODEEXPERIMENTALCODEMODE=1` or settings file; supports Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.2
- Background code runs for 2 hours, but waiting code stops after 10 minutes; unavailable on Bedrock or IDEs

## Why it matters

Code Mode streamlines complex workflows for developers using Anthropic’s tools, potentially cutting token usage and latency in multi-step tasks. Its terminal-only, opt-in nature limits broad adoption but may appeal to power users.

## Sources

1. [Anthropic Adds Code Mode to Claude Code: Claude Now Chains Tool Calls in JavaScript](https://marktechpost.com/2026/11/17/anthropic-claude-code-code-mode-javascript-tool-calls) (MarkTechPost, 2026-11-18)
2. [7 ways Claude Code can help you run a small business — without writing a single line of code](https://tech.yahoo.com/ai/claude/articles/7-ways-claude-code-help-051500788.html) (tech.yahoo.com, 2026-11-15)
3. [The Era of Customizing AI Tool Interfaces: Decoding the Screen Rendering of Claude Code's New 'mod' Feature](https://note.com/glad_daphne1995/n/n241f2c44f194?hl=en) (note.com, 2026-11-14)

Part of the developing story: [Claude Code's Code Mode Evolution](https://digestai.news/thread/anthropic-adds-code-mode-to-claude-code-for-javascript-tool-chains) (2 stories)

## Cite

Digest AI, "Anthropic adds Code Mode to Claude Code for JavaScript tool chains", 18 November 2026, https://digestai.news/story/anthropic-adds-code-mode-to-claude-code-for-javascript-tool-chains

---

Written by Digest AI's editorial model from the linked sources; the sources are the record. Headlines, digests and key points are written by Digest AI and may be quoted with a link to the story page. Linked articles belong to their publishers. Terms: https://digestai.news/terms#reuse
JSON: https://digestai.news/story/anthropic-adds-code-mode-to-claude-code-for-javascript-tool-chains.json
