用重度 Coding Agent 改大型仓库时,最拖慢速度、最烧 Token 的往往不是模型写代码本身,而是回合制调工具(Turn-by-Turn Tool Calling)。



This is a dev post classified by AGK Intelligence as AI dev tools (a tutorial), kept by the Dev Radar because it carries real work, not commentary.
用重度 Coding Agent 改大型仓库时,最拖慢速度、最烧 Token 的往往不是模型写代码本身,而是回合制调工具(Turn-by-Turn Tool Calling)。 以前你让 Claude Code 改个重试配置并跑单测,它得老老实实走四轮 JSON 往返:第一轮调 Grep 搜文件,把几十行路径全塞进上下文;第二轮调 Read 读文件;第三轮调 Edit 改代码;第四轮调 Bash 跑测试。每一步都要等网络往返、重新刷一遍 Prompt Cache,中间产生的大量废话输出还会把 Context Window 塞爆。 在刚更新的 Claude Code v2.1.323 里,Anthropic 悄悄上线了一个重磅实验特性:Code Mode。它彻底改掉了逐个调工具的逻辑——让 Claude 直接写一段 JavaScript 脚本,在一步之内把并发执行、结果传递、数据清洗和原生工具调用全干完。 扒了一遍官方文档和底层机制,把最核心的工程细节整理出来: 1. 底层是怎么跑的?(内部 REPL 工具) 开启后,Claude 不再直接一个个调 Bash 或 Edit,而是向内部一个叫 REPL 的工具提交一段 JS 代码。比如改个重试上限并跑测试,它会在单步内直接生成并跑完这 4 行代码: • 第一行:用内联 Shell 语法执行 rg -l "function ret
Posted by lifcc (20.3k followers) 8 days ago · 7 likes · 1k views · view the original post on X. Kept by the Dev Radar as AI dev tools.
More dev work like this
- GPU Speed of Light Roofline Analysis with NVIDIA Nsight Compute! #BigData #Analytics… — @gp_pulipaka
- Optimization Algorithm! #BigData #Analytics #DataScience #AI #MachineLearning #IoT #IIoT… — @gp_pulipaka
- Grok Bot is getting VERY good at being the BOSS of other AI tools. — @MarioNawfal
- Can you trust your AI agent to make the same decision twice? — @Gartner_inc
- Machine Learning with TensorFlow! #BigData #Analytics #DataScience #AI #MachineLearning… — @gp_pulipaka
- AI 写小说这事儿,有人直接做成了流水线,GitHub 上已经揽下 3.4K Star! — @bkdgiffug
- This is what India deserves, built with no grants and no subsidies. — @ShubhamMal72313
- The Google AI Edge Gallery team built a 100% offline language learning app with… — @antigravity
Every post is read and classified by AGK Intelligence: what it is, which market it belongs to, and whether the link is a real tool. 13.4k posts from 5k X accounts over the last 21 days, 10.1k tools, 12 markets. New posts are collected several times an hour and the full ranking is recomputed every hour — last update 2026-11-25 18:41 UTC. Full method.