AI 编程 4.0 · 优秀 2026-11-12 · GitHub

Claude Code v2.1.323: experimental Code Mode and plugin.json engines version ranges

anthropics/claude-code 11 月 12 日把 Latest 升到 v2.1.323最重的两条:实验性 Code Mode,让模型写 JavaScript 去调用工具,个人与组织都可开关;plugin.json 新增 engines["claude-code"] 版本区间,区间外插件不安装不更新不加载另有积分用尽时的停止/换积分/升级菜单claude -p 长 hook 每 30 秒心跳防宿主误判挂死,并修了一批后台会话串号token 续期误登出macOS keychain 慢导致刚登录又提示未登录的问题

打开原文回到归档

Claude Code v2.1.323: experimental Code Mode and plugin.json engines version ranges

中文导读

anthropics/claude-code 11 月 12 日把 Latest 升到 v2.1.323。最重的两条:实验性 Code Mode,让模型写 JavaScript 去调用工具,个人与组织都可开关;plugin.json 新增 engines["claude-code"] 版本区间,区间外插件不安装、不更新、不加载。另有积分用尽时的停止/换积分/升级菜单、claude -p 长 hook 每 30 秒心跳防宿主误判挂死,并修了一批后台会话串号、token 续期误登出、macOS keychain 慢导致刚登录又提示未登录的问题。

为什么值得关注

编码 agent 的工具调用开始换形状:Code Mode 用 JS 批量调工具、插件生态第一次有版本区间门槛,升级前先核对插件兼容与后台会话归属。

中文导读与价值判断锚定在条目已有摘要与抓取到的原文/摘要、作者、日期与分类信息上;未补充源材料之外的实验细节。

关键信息

English Summary

anthropics/claude-code shipped v2.1.323 on Nov 12, 2026. Headliners: Code Mode, an experimental opt-in where Claude writes JavaScript to call its tools (per-user and per-organization toggles), and engines["claude-code"] version ranges in plugin.json - plugins outside their stated range are not installed, updated, or loaded. Also new: an options menu when usage credits run out, a 30-second heartbeat for long-running hooks in claude -p/SDK sessions so hosts stop killing them as hung, plus fixes for background sessions crossing between named Anthropic profiles, sign-outs during token renewal, and the macOS keychain slowness that re-prompted login right after /login.

原文摘录 / Evidence Excerpts

What's changed

  • Added engines["claude-code"] to plugin.json: plugins outside their stated Claude Code version range are not installed, updated or loaded, and install and update pick the newest version that fits
  • Added an options menu (stop, switch to usage credits, upgrade) when a model needs usage credits that are turned off or used up
  • Added a progress heartbeat every 30 seconds while hooks run long in claude -p and SDK sessions, so a host such as Claude Desktop won't end the turn as hung
  • Fixed a session on a named Anthropic profile moving to another sign-in when /fork, the Left arrow or --bg continued it in the background; reopen any session that was open during the update
  • macOS: Fixed "Not logged in · Please run /login" coming back right after a successful /login or a token refresh when the keychain was slow to answer

证据来源

原文为 GitHub release body 全文抓取(2026-11-13T13:04:22Z),存于 vault 研究材料:DeepResearch/2026-11-13-evening-ClaudeCode-CodeMode-插件版本区间-研究材料/references/01-claude-code-v2.1.323-github-release.md(313 行完整 changelog)。Code Mode 官方文档:https://code.claude.com/docs/en/code-mode