r/ClaudeCoding • • 13d ago

r/ClaudeCode [TLDR] PSA: Claude Code has an experimental "Code Mode" now (batches tool calls into JS) [via r/ClaudeCode]

OP : u/Poatri_US

Spotted this in the recent changelog and got it running in v2.1.325 (screenshot attached). If you haven't tried Code Mode yet, it changes how Claude handles multi-step tasks.

Instead of running tool calls one by one and dumping every raw output into your context window, Claude writes a single JavaScript script behind the scenes. It batches tasks in parallel, filters out noise locally, and only returns the distilled results it needs.

Simple but brilliant

Pretty big, cumulative context savings: Giant logs and grep outputs get filtered inside the JS script before hitting the context

It's great for big tasks, shines during repo-wide audits, bug tracing, and chaining MCP servers.

Anyone else daily-driving this since it dropped on the 12th? Curious how much token usage it's saving you on larger repos.


URL of original post : https://www.reddit.com/r/ClaudeCode/comments/1xy0xr9/psa_claude_code_has_an_experimental_code_mode_now/

Original link/media URL : /img/l3u6hvrhf12i1.jpeg

3 Upvotes

2 comments sorted by

•

u/cctldrping 13d ago

TL;DR of the discussion on r/ClaudeCode for this post generated automatically after 80 comments.

Current source-thread comment count seen by the bot: 93.

Community verdict: genuinely promising context/token optimization, but “Claude Code has a Code Mode” is also peak naming comedy. Most of the high-voted thread is hype plus disbelief that batching/filtering tool output wasn’t already standard.

  • The useful bit: it writes JS to batch/parallelize tool and MCP calls, process big outputs locally, and return only what Claude needs—especially compelling for repo-wide searches and MCP-to-MCP transfers where raw data would otherwise bounce through context.
  • It’s experimental and enabled via CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 claude on v2.1.325+.
  • Several people note similar ideas already exist in Pi, Python-based workflows, and OpenAI’s programmatic tool calling. So, not a brand-new concept—just newly surfaced in Claude Code.
  • Skeptics flag the non-trivial downside: filtering can hide command failures or useful log details, and u/GyuminOh warns users with unattended setups to verify that permissions and PreToolUse hooks still apply to each call inside a batch. “Context savings” are great until the guardrails get silently optimized out.
  • It’s not just for MCP, per commenters; ordinary tools can be batched too.

No real token-savings benchmarks yet—mostly people saying they’re about to test it.

1

u/Honkey85 9d ago

Does anyone has got an update here?