CCHub Weekly · No.001

Claude Code 学会了写脚本调自己

Claude Code now writes scripts to drive its own tools

2026-11-24 · 覆盖 2026-11-17 — 2026-11-23

TL;DR (EN) — Claude Code shipped Code Mode (experimental, v2.1.323+): instead of one tool call per turn, Claude writes JavaScript that batches many calls. Also: Fable 5.2 is the new default Fable model, /code-review now reports bugs only, Opus 4.8 fast mode is removed on Nov 30, and Anthropic's IPO closed at $83/share. Case study: an AI reviewer that judged from memory — and how a 10-line repro caught it.

头条 · Code Mode:一次写脚本,代替十次来回

是什么。 以前 Claude 用工具是「调一次 → 看结果 → 再决定下一步」。Code Mode 打开后,Claude 会写一段 JavaScript,在里面并行跑命令、把上一步结果喂给下一步、只把需要的部分交回来。官方示例:找文件、改一个参数、跑测试,一段代码完成。

怎么开(需要 v2.1.323 以上的原生安装版,在终端里用):

claude --version          # 低于 2.1.323 先 claude update
CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 claude

想长期开着,把它写进 ~/.claude/settings.json 的 env 里。注意:写在项目的 settings 里不生效——官方特意这样设计,防止你 clone 的仓库偷偷替你打开。

什么时候值得开。 官方推荐三类任务:同一改动要改很多文件;搜索结果需要先过滤再给 Claude 看;几个互不依赖的命令可以同时跑。按 Ctrl+O 能看到它写的代码。

三条安全提醒(这部分比功能本身重要):

EN — Turn it on with CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 (terminal, native build, v2.1.323+). In auto mode the classifier reviews the whole script, not each call — keep your deny/ask rules for anything that must stay gated.

本月必须知道的 4 件事

1. Fable 5.2 成为默认 Fable 模型(11 月 9 日,v2.1.321)。100 万 token 上下文,输入 $8 / 输出 $40 每百万 token,缓存读取 $0.20。 EN: Fable 5.2 is now the default Fable model — 1M context, $8/$40 per Mtok.

2. /code-review 只报 bug 了(v2.1.328)。现在只报真正的 bug 和违反 CLAUDE.md 的地方,每条标 Important / Pre-existing / Nit 并附修复建议。想要「能不能写得更简洁」这类建议,改用 /simplify。 EN: /code-review now reports only bugs and CLAUDE.md violations; use /simplify for cleanups.

3. Opus 4.8 的 fast mode 11 月 30 日下线。 之后对 Opus 4.8 发 fast mode 请求会直接报错,不会自动退回普通速度。用 fast mode 跑脚本或 CI 的,这周就迁到 Opus 5.5。 EN: Opus 4.8 fast mode is removed on Nov 30 and will error, not fall back. Migrate to Opus 5.5.

4. 两个顺手的安全改进。

EN: Pipe MCP configs via stdin to keep tokens out of shell history; set onFailure: block on guard hooks.

行业 · Anthropic 上市,用官方数字

顺带一个提醒:本周有二手周报把募资额写成 813 亿美元,和官方公告对不上。涉及钱和数字的消息,我们一律只引用公司原文公告。

EN — Priced at $83 on Nov 18, trading as ANT from Nov 19, ~$93.5B gross proceeds per Anthropic's closing announcement. Some secondary roundups misreport the figure.

实战案例 · AI 审代码,也会凭记忆下结论

这是 CCHub 自己的「影子战场」训练题 A-0001:让 Claude 审一段 Flask 接口代码,再让另一个独立的 Claude 当裁判逐条打分。裁判给了 2/2 通过,同时指出交付物两处技术表述不严谨。

我们没有直接采信裁判,而是把两条结论都跑了一遍:

import sqlite3
c = sqlite3.connect(":memory:")
c.execute("create table users(id int)")
c.execute("SELECT * FROM users WHERE id = 1; DELETE FROM users")
# → 报错:You can only execute one statement at a time

可以直接拿走的做法: 让 Claude 审代码时,在提示词里加一句——

每一条关于「某个库/框架会怎样表现」的结论,附一段能直接运行的最小复现;
没有复现的,标注为「未验证」。

第二个 AI 当裁判,能抓出第一个 AI 的错;但裁判也会出错。能跑的复现,才是最后的裁判。

EN — Two AIs disagreeing isn't verification; a runnable repro is. Ask Claude to attach a minimal repro to every claim about library behaviour, and mark the rest "unverified".

出处

订阅双语周刊

每周一期,Claude 生态里真正值得读的更新与实战案例,替你读完、核实、去噪。免费。