{"version":1,"type":"story","url":"https://digestai.news/story/anthropic-adds-code-mode-to-claude-code-for-javascript-tool-chains","json":"https://digestai.news/story/anthropic-adds-code-mode-to-claude-code-for-javascript-tool-chains.json","markdown":"https://digestai.news/story/anthropic-adds-code-mode-to-claude-code-for-javascript-tool-chains.md","slug":"anthropic-adds-code-mode-to-claude-code-for-javascript-tool-chains","headline":"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.\n\nCode 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.","keyPoints":["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"],"whyItMatters":"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.","category":{"slug":"agents","name":"Agents & Tools","url":"https://digestai.news/category/agents"},"entities":{"companies":["Anthropic"],"models":["Claude Opus 5.5","Sonnet 5.5","Haiku 5.5","Fable 5.2"],"people":[]},"firstPublishedAt":"2026-11-18T06:53:28Z","updatedAt":"2026-11-18T06:53:28Z","sourceCount":3,"hasPrimarySource":false,"sources":[{"outlet":"MarkTechPost","title":"Anthropic Adds Code Mode to Claude Code: Claude Now Chains Tool Calls in JavaScript","url":"https://marktechpost.com/2026/11/17/anthropic-claude-code-code-mode-javascript-tool-calls","publishedAt":"2026-11-18T06:53:28Z","type":"press","primary":false,"lead":true},{"outlet":"tech.yahoo.com","title":"7 ways Claude Code can help you run a small business — without writing a single line of code","url":"https://tech.yahoo.com/ai/claude/articles/7-ways-claude-code-help-051500788.html","publishedAt":"2026-11-15T21:15:00Z","type":"press","primary":false,"lead":false},{"outlet":"note.com","title":"The Era of Customizing AI Tool Interfaces: Decoding the Screen Rendering of Claude Code's New 'mod' Feature","url":"https://note.com/glad_daphne1995/n/n241f2c44f194?hl=en","publishedAt":"2026-11-14T01:50:00Z","type":"press","primary":false,"lead":false}],"sourceNotes":null,"discussions":[],"thread":{"title":"Claude Code's Code Mode Evolution","url":"https://digestai.news/thread/anthropic-adds-code-mode-to-claude-code-for-javascript-tool-chains","storyCount":2},"cite":{"text":"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","publisher":"Digest AI","title":"Anthropic adds Code Mode to Claude Code for JavaScript tool chains","datePublished":"2026-11-18T06:53:28Z","url":"https://digestai.news/story/anthropic-adds-code-mode-to-claude-code-for-javascript-tool-chains"},"generatedBy":"Written by Digest AI's editorial model from the linked sources; the sources are the record.","license":"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"}