精选75Claude Code(GitHub Releases)AI 编程与模型
Claude Code v2.1.247:新增 SendFeedback 工具
v2.1.247
What's changed
变更内容
- Added the SendFeedback tool: when something goes wrong in a session, Claude can draft a feedback report for you to review and send from /feedback (turn off with the feedbackDrafts setting)
- Added {id, text, cooldownSessions, priority} entries, tipsFile, and label to spinnerTipsOverride, so organizations can rotate their own tips alongside the built-in ones
- Added a tip on Bash permission prompts pointing to auto mode, with a one-keystroke "Yes, and switch to auto mode" option
- Added /claude-api cost-optimize to profile an existing project's Claude API spend and work through cost levers (caching, token hygiene, batch, effort, model choice) one measured change at a time
- Updated the /claude-api skill with Admin API coverage (organization members, invites, workspaces, API keys, rate limit reports, workload identity federation, CMEK)
- Fixed fast arrow-key + Enter sequences acting on the row above the one you navigated to in history search, /config, /mcp, /skills, background tasks, and /model
- Fixed sub-agents dying on a first-call model 404: they now use the session's fallback model chain, and the error returned to the parent includes the error type, status, request id, and model
- Fixed a hook or background agent that printed megabytes of error output being able to overflow the conversation and wedge the session on "Prompt is too long"
- Fixed Ctrl keyboard shortcuts not firing under non-Latin (e.g. Cyrillic) keyboard layouts in kitty-protocol terminals
- Fixed text like <35;150;7M being inserted into the prompt when a mouse report arrived split across reads right after the escape prefix
- Fixed the Bash sandbox's after-command cleanup deleting a dotfile-managed ~/.claude/settings.json symlink (nix/home-manager, stow) when it is repointed outside the sandbox's writable area
- Fixed /terminal-setup overwriting your entire Zed keymap.json instead of merging in its keybinding
- Fixed /rename silently confirming when the session registry could not be updated; it now says other sessions may still show the old name
- Fixed /compact and "Summarize from here" in sessions started with --agent summarizing under the default system prompt instead of the conversation's own
- Fixed a background session showing "opening…" forever in claude agents after its terminal host process died; the row now fails within seconds with the reason, and Enter restarts it
- Fixed unbounded memory growth when a hook's or background task's output file could not be written; the file now notes where output was lost
- Fixed /install-github-app over SSH: the copy shortcut now says how the sign-in URL was copied instead of always claiming success, and the URL appears immediately when no browser can open
- Fixed shell commands carried over from the foreground logging an internal error or showing a misleading [exited with code -1] line when they finish in background sessions
- Fixed a version-less marketplace plugin's live cache directory being deleted and recreated on a second-scope install, which could disrupt a running session using it
- Fixed Remote Control sessions started with /remote-control not reporting the working-tree diff to connected clients
- Fixed self-hosted runner sessions reporting running before Claude Code had started, which could trigger a premature "Claude is waiting for your input" notification from the Claude desktop app
- Fixed first-run setup exiting with "Unable to connect to Anthropic services" when managed settings configure Claude apps gateway sign-in and Anthropic endpoints are unreachable
- Fixed cloud sessions (Claude Code on the web, desktop and mobile apps) sometimes showing the previous permission mode when you switch modes right after sending a message
- Fixed cloud sessions going silent when the session's container restarts between turns while a background agent, shell, or monitor is still running — the resumed session now reports the lost work
- Improved plugin marketplace hardening: names containing control or invisible characters are rejected, and marketplace-supplied text in /plugin and claude plugin output is escape-safe
- Improved Bedrock, Vertex, and Foundry sessions (and any with telemetry disabled): Claude is now told when a configured MCP server failed to connect, instead of concluding its tools don't exist
- Changed Sonnet 5's default auto-compact window to its full 1M context, so sessions on the 1M window now auto-compact at about 967K tokens instead of about 934K
- Changed cross-session peer messages to collapse by default to a one-line Message from @<sender>: <first line> preview; Ctrl+O expands the full body
- Changed terminal hyperlinks in rendered markdown: link targets that point at a network or automounter path, contain a control character, or lead with an invisible character now render as plain text
- Changed the prompt-footer PR badge to skip its GitHub re-check on terminal refocus when the last check is under a minute old
- Changed analytics to stay off from startup, not only after login, when managed settings force gateway login or a custom OAuth deployment is configured
- Changed Claude apps gateway sign-in requests to identify Claude Code (a surface=claude_code device-authorization parameter and a claude-code/<version> User-Agent)
- Changed organization sign-in enforcement to exit at start when the administrator's managed settings cannot be read, even if host-supplied or per-user Windows registry settings exist
- 新增 SendFeedback 工具:当会话中出现问题时,Claude 可以起草一份反馈报告供你审阅,并通过 /feedback 发送(可通过 feedbackDrafts 设置关闭)
- 在 spinnerTipsOverride 中新增了 {id, text, cooldownSessions, priority} 条目、tipsFile 和 label,使组织可以轮换自己的提示与内置提示一起显示
- 新增关于 Bash 权限提示的提示,指向自动模式,并提供一键“是,并切换到自动模式”选项
- 新增 /claude-api cost-optimize 命令,用于分析现有项目的 Claude API 支出,并逐步通过成本杠杆(缓存、令牌卫生、批处理、努力程度、模型选择)进行可测量的调整
- 更新了 /claude-api 技能,增加了 Admin API 覆盖(组织成员、邀请、工作区、API 密钥、速率限制报告、工作负载身份联合、CMEK)
- 修复了在历史搜索、/config、/mcp、/skills、后台任务和 /model 中,快速按方向键和回车键时作用于导航到的上一行的问题
- 修复了子代理在首次调用模型时因 404 而终止的问题:现在它们会使用会话的备用模型链,并且返回给父代理的错误包含错误类型、状态、请求 ID 和模型
- 修复了钩子或后台代理打印大量错误输出可能导致对话溢出并使会话卡在“提示过长”的问题
- 修复了在 kitty 协议终端中,非拉丁(如西里尔)键盘布局下 Ctrl 键盘快捷键不触发的问题
- 修复了鼠标报告在转义前缀后跨读取分割时,文本如 <35;150;7M 被插入到提示中的问题
- 修复了 Bash 沙箱的命令后清理删除由点文件管理的 ~/.claude/settings.json 符号链接(nix/home-manager、stow)的问题,当它被重新指向沙箱可写区域之外时
- 修复了 /terminal-setup 覆盖整个 Zed keymap.json 而不是合并其键绑定的问题
- 修复了 /rename 在会话注册表无法更新时静默确认的问题;现在它会提示其他会话可能仍显示旧名称
- 修复了使用 --agent 启动的会话中,/compact 和“从此处总结”在默认系统提示下总结而不是使用对话自身提示的问题
- 修复了后台会话在其终端宿主进程死亡后,在 claude agents 中一直显示“打开中…”的问题;现在该行会在几秒内失败并显示原因,按回车可重新启动
- 修复了当钩子或后台任务的输出文件无法写入时内存无限增长的问题;现在文件会注明输出丢失的位置
- 修复了通过SSH安装GitHub应用的问题:复制快捷方式现在会说明登录URL是如何复制的,而不是总是声称成功,并且当没有浏览器可以打开时,URL会立即显示。
- 修复了从前台会话继承的shell命令在后台会话中完成时记录内部错误或显示误导性的[exited with code -1]行的问题。
- 修复了无版本的市场插件在二次作用域安装时,其活动缓存目录被删除并重新创建,这可能干扰正在使用它的运行会话。
- 修复了通过/remote-control启动的远程控制会话未向连接的客户端报告工作树差异的问题。
- 修复了自托管运行器会话在Claude Code启动前报告运行状态,这可能触发Claude桌面应用过早发送“Claude正在等待您的输入”通知的问题。
- 修复了当托管设置配置Claude应用网关登录且Anthropic端点不可达时,首次运行设置以“无法连接到Anthropic服务”退出的问题。
- 修复了云会话(Claude Code网页版、桌面和移动应用)在发送消息后立即切换模式时,有时显示之前的权限模式的问题。
- 修复了云会话在轮次之间容器重启时静默的问题,当后台代理、shell或监视器仍在运行时——恢复的会话现在会报告丢失的工作。
- 改进了插件市场加固:拒绝包含控制字符或不可见字符的名称,并且/plugin和claude插件输出中的市场提供的文本是转义安全的。
- 改进了Bedrock、Vertex和Foundry会话(以及任何禁用遥测的会话):现在会告知Claude配置的MCP服务器连接失败,而不是推断其工具不存在。
- 将Sonnet 5的默认自动压缩窗口改为其完整的1M上下文,因此1M窗口上的会话现在会在约967K令牌处自动压缩,而不是约934K。
- 将跨会话的同行消息默认折叠为一行预览:来自@<发送者>:<第一行>;Ctrl+O展开完整内容。
- 更改了渲染的Markdown中的终端超链接:指向网络或自动挂载路径、包含控制字符或以不可见字符开头的链接目标现在以纯文本形式渲染。
- 更改了提示页脚中的PR徽章,当上次检查不到一分钟时,在终端重新聚焦时跳过其GitHub重新检查。
- 更改了分析功能,使其在启动时即保持关闭,而不仅仅是在登录后,当托管设置强制要求网关登录或配置了自定义OAuth部署时
- 更改了Claude应用网关登录请求,以识别Claude Code(一个surface=claude_code设备授权参数和一个claude-code/<版本>用户代理)
- 更改了组织登录强制执行的退出时机,当管理员托管设置无法读取时,在启动时即退出,即使存在主机提供或按用户Windows注册表设置
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力