产品官方一手精选

Claude Code v2.1.178 发布

v2.1.178

精选理由

Anthropic 给 Claude Code 打了补丁,新增用参数通配符限制子代理,修了一堆子代理和崩溃的 bug,后台任务也不会重启了。

Claude Code v2.1.

正文

178 新增 Tool(param:value) 语法,支持用通配符匹配工具输入参数,例如 Agent(model:opus) 可限制子代理模型。修复了子代理多个问题:查看转录时展示工具结果与进度、消息不丢失、后台运行不再重启。

改进了自动模式,子代理生成前由分类器评估,避免绕过审查。修复了因 WebSocket/OAuth 文件描述符继承导致的内存溢出崩溃。

改进了嵌套 .claude/skills 加载与命名冲突处理。

原文 · Claude Code: GitHub Releases

v2.1.178

What's changed Added Tool(param:value) syntax for permission rules to match a tool's input parameters (with * wildcard), e.g. Agent(model:opus) to block Opus subagents Skills in nested .claude/skills directories now load when working on files there; on a name clash, the nested skill appears as <dir>:<name> so both stay available Nested .claude/ directories: the agent, workflow, and output-style closest to the working directory now wins when names collide; project-scope workflow saves now target the closest existing .claude/workflows/ Improved auto mode: subagent spawns are now evaluated by the classifier before launch, closing a gap where a subagent could request a blocked action without review Improved /doctor with consistent flat tree layout across all sections, clearer section status icons, and highlighted command names Improved the skill listing truncation warning to show how many skill descriptions are affected Changed the workflow prompt keyword to use a purple shimmer highlight and trigger only on explicit phrases like "run a workflow" or "workflow:", not on any mention of the word Improved Remote Control error messages: connection failures now show a persistent red "/rc failed" indicator in the footer, and the "not yet enabled" error now explains whether it's a gate, a check failure, stale entitlement, or org policy /bug now requires a description before submitting, and no longer uses model-refusal text as the GitHub issue title Fixed a crash (out-of-memory) when the CLI inherits a stale websocket/OAuth file-descriptor environment variable from a parent process Fixed Claude in Chrome silently failing to connect when the OAuth token belongs to a different account than the Claude Code login Fixed nested .claude/skills skills with directory-qualified names being blocked by permission prompts in non-interactive runs Fixed several subagent issues: viewing a subagent's transcript now shows tool results and live progress, messages sent while it finishes its turn are no longer dropped, and backgrounding a running subagent (ctrl+b) no longer restarts it from scratch Fixed claude agents workers failing with 401 Invalid bearer token when the daemon was started from a shell with a custom API gateway via ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN Fixed compaction not honoring --fallback-model : compaction now falls back to the configured fallback model chain on overload or model-availability errors Fixed model requests continuing to fail with auth errors after credentials were refreshed outside the session, due to a stale cached request configuration Fixed background sessions created with /bg or ←← after a turn finished showing "Working" forever in the agents list Fixed CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE=1 preventing fresh marketplace installs from cloning Fixed MCP server-level specs ( mcp__server , mcp__server__* , mcp__* ) in subagent disallowedTools being silently ignored Fixed vim mode undo: u now steps through NORMAL/VISUAL-mode commands one at a time instead of merging commands in quick succession into a single undo step Fixed statusline links with custom URI schemes (e.g. vscode:// ) not opening when clicked in claude agents [VSCode] Fixed pressing Esc to dismiss a CJK IME candidate window canceling the running Claude task

产业坐标与信源核验

本条情报归属 AITOP「产品」核心栏目,重点聚焦北美前沿实验室与硅谷科技巨头。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」「中美大模型技术代差与商业化对照」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:Claude Code、Anthropic、v2.1.178、编程助手,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。

信源核验说明:本文原始信息发布自一手权威信源「Claude Code: GitHub Releases」(Tier-1 一手发布),具备高确定性参考价值。截至目前,全网已有 11 家独立信源对该事件进行交叉印证与跟进报道(含 宝玉、idoubi、IT之家 等),属于近期高关注度行业信号。

发现摘要或翻译有误? 告诉我们