返回全部动态

Claude Code 2.1.248 发布:新增受限模式与多项修复

原标题:2.1.248

Claude Code Changelog一手来源产品发布质量 79

AI 摘要

Anthropic 发布了 Claude Code 2.1.248 版本更新,新增了受限模式、缓存 TTL 设置、自托管运行器标签覆盖等多项功能,并修复了多个与提示缓存、会话管理、MCP 服务器、权限提示等相关的 bug。此次更新提升了 Claude Code 的安全性、稳定性和用户体验。

以上摘要由 AI 生成,可能存在误差。事实请以原文为准。

正文节选

- Added `--restricted` (or `CLAUDE_CODE_RESTRICTED=1`): removes the built-in tools that run commands or code and `WebFetch` (unless named in `--tools`), keeps file tools inside the working directory, refuses `bypassPermissions`, and ignores user, project and local settings files - Added `experimental.cacheTtl` (`"5m"` or `"1h"`) to agent frontmatter: a per-agent prompt cache TTL used when no subagent TTL setting is configured - Added `claude self-hosted-runner --client-label <label>` (or `SELF_H


发布时间:—
抓取时间:2026-09-07 03:46
来源机构:Anthropic
阅读原文raw.githubusercontent.com