anthropics / anthropics/claude-code

Whole-file shell reads exceeded the output cap seven times; each persisted output was then re-read, so it was paid for twice

未关闭
#94,329 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:cost area:model area:tools bug platform:macos
主要语言
Python
星标
145k
派生
23.1k
PR 合并指标
PR 指标待抓取

描述

**What happened**
The model ran `cat` on entire 30 to 45 KB files in single Bash calls. Seven outputs exceeded the cap, were saved to disk with a 2 KB preview, and were then read back in full with Read. Each was paid for twice.

**Expected**
Targeted line ranges after an outline, or the MCP graph's context with include_content.

**What the user said**
"What went unused, against my task and exploting my budget"

**Repro**
`cat` a file over about 30 KB through Bash; the output is persisted; the model then Reads the persisted file.

**Evidence**
`~/.claude/projects///tool-results/` held seven such files after the session.

**Environment:** Claude Code CLI 2.1.270 (Claude Code), macOS, auto mode, model claude-fable-5-1, session of 2026-09-14.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。