PaPoo
cover

Claude Code’s new mode feels useful, but the permission story is doing the real work

What caught my eye isn’t the JavaScript part. It’s that Anthropic is quietly testing a different shape of agent loop: fewer tiny tool calls, more batching, and a lot less context churn. That sounds genuinely useful for the kind of repetitive multi-file work Claude Code already does. But it also shifts where you have to trust the system, and that’s the part I’d read twice.

The obvious pitch is token efficiency. If Claude can write a little script that chains searches, edits, and test runs together, then yes, the model probably wastes less context on the mechanical back-and-forth. The reported examples in the article point in that direction. I believe that. What I’m less ready to believe is any implied general speedup. The source itself says it is not faster on a tiny task, and that feels right. You can save tokens without making the whole experience feel snappier.

The more interesting wrinkle is permissions. In normal tool use, the model asks for a call, sees the result, then decides. In this mode, the script is what gets reviewed up front in some cases, and the actual values only appear later when the code runs. That matters more than the marketing language suggests. A lot of agent safety assumptions are built around each discrete tool call being visible and policy-checkable. If you collapse several calls into one script, you’re not removing the need for auth or audit. You’re just moving the enforcement boundary. Ravi Madabhushi’s pushback in the article seems exactly right to me: this does not make MCP irrelevant; it changes how much context the model gets and how much can be discarded.

I also think the local-session angle is the real strategic choice here. Anthropic could have made this another remote execution story, but it didn’t. Running against Claude Code’s built-in tools and permission system means the developer machine stays part of the trust model. That’s probably why the feature is fenced in so hard: interactive terminal only, experimental, opt-in, no project-level switch, and excluded from a bunch of other surfaces. That restriction makes it feel less like a general platform capability and more like a controlled experiment to see whether the “agent writes code to orchestrate itself” pattern is actually better than per-call tool use.

If I were trying this, I’d use it first on tasks that are already annoyingly procedural: search, filter, edit, test, repeat. I would not treat it as a blanket upgrade. The article’s example of a git push reaching a hook as a chained shell command is exactly the kind of detail that makes me cautious. Once you let generated code become the orchestrator, your hooks and deny rules need to inspect the whole command string more carefully. That’s not a theoretical footnote. It’s the whole game.


Reference: Claude Code Adds Experimental Code Mode to Orchestrate Tool Calls with JavaScript

同じ著者の記事