
很多人没看懂 Claude Code 新出的 Code Mode 到底牛在哪。 它表面上是让 Claude 写 JS 去调工具,本质上是终于治好了 Agent 的“上下文垃圾桶”毛病。 以前查个跨文件 Bug,AI 调一次 Bash 或 Read,就把几千行日志全塞进自己脑子里,再来回跑十几轮,越聊越傻还狂烧 Token。 现在开启 Code Mode,Claude 直接写一段本地 JS,把并发搜索、结果过滤全在后台跑完,只把最后最精炼的那几行吐回给自己。 模型还是那个模型,但它终于学会在看结果之前,先自己拿筛子过滤一遍了。
Check out Code Mode, a new, experimental way for Claude Code to work with tools. Claude writes scripts that chain your tools together in sophisticated ways, and it can answer you while long commands are still running. Opt in with CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 code.claude.com/docs/en/code…














