跳到正文
AgentLab·· 2025-11-04

Claude Code 2.0.32: Grep 增加偏移分页与默认输出限制

AgentLab 分析摘要

Grep 的 Tool Schema 新增 `offset`,可先跳过指定数量的行或条目,再由 `head_limit` 限制结果;`-n` 默认显示行号,`head_limit` 默认值改为由 `cap` 实验值决定。调用方因此可以用窗口式分页读取结果,并需考虑默认结果条数可能变化。官方发布说明另提到恢复 output styles、增加启动时 companyAnnouncements 设置,以及修复 PostToolUse Hook 进度消息更新;没有对应代码概览可进一步确认其实现位置。

分析与证据

分析已完成

AgentLab · claude-code 2.0.32

来源:AgentLab · agentlab.dairui1.com