Run tool calls from code with Code Mode - Claude Code Docs
Claude Code’s Code Mode replaces step-by-step tool calls with JavaScript that runs commands in parallel and filters results before Claude reads them.
2 comments
Interesting to see this being adopted by Anthropic, I think the idea was popularized by this Sunil Pai blog post (blog.cloudflare.com) when he was at Cloudflare and he actually joined Anthropic just a couple of weeks ago!
"Code Mode" flips the script on how Claude approaches long-running tasks and is able to make complex tool chains that keep it free to answer you while it's ongoing.
Maybe this is something CLI users were struggling with, but I've been executing all sorts of complicated tool chains through the desktop application while building some games and it's been pretty solid at being able to answer questions from me in the middle of the run.
What does sound genuinely helpful is the potential for parallelization this allows for and will certainly see massive speed boosts for some of our more complex and write-heavy tasks.