# Claude Code adds Code Mode for batch tool calls

Digest AI · Marketing & Small Business · published 2026-11-15T20:17:00Z

Canonical: https://digestai.news/story/claude-code-adds-code-mode-for-batch-tool-calls

## Summary

On November 12, 2026, Claude Code introduced a new feature called **Code Mode**. Instead of directly calling tools like Bash or file reading one by one, Claude now writes JavaScript code to perform these tool calls and executes them in batches. This change aims to automate repetitive tasks more efficiently. The official documentation provides examples such as editing multiple files at once, narrowing down search results before reading them, or handling independent instructions simultaneously. While Code Mode is suitable for multi-stage automation, it may not offer significant benefits for single tasks. The feature is currently experimental and has usage restrictions, including requiring a specific version of Claude Code, supported models, and certain account conditions. Despite these limitations, the design ensures that permission rules remain intact to maintain safety and security.

## Key points

- Claude Code added **Code Mode** on November 12, 2026
- Allows writing JavaScript code for batch tool calls in terminal sessions
- Suitable for multi-stage automation but not suitable for single tasks

## Why it matters

This feature can help automate repetitive tasks more efficiently by consolidating parallelizable confirmations and filtering results within a single piece of code, aligning with the goal of reducing waste.

## Sources

1. [Latest AI Explanation Code Mode in Claude Code](https://note.com/automate_works/n/nea935fc232f5?hl=en) (note.com, 2026-11-15)

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, "Claude Code adds Code Mode for batch tool calls", 15 November 2026, https://digestai.news/story/claude-code-adds-code-mode-for-batch-tool-calls

---

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/claude-code-adds-code-mode-for-batch-tool-calls.json
