anthropics / anthropics/claude-code

"Only you see that command's output" caveat is repeated once per tool result in a batch

Open
#94,338 0 comments 0 reactions 0 assignees View on GitHub
area:tools bug platform:macos
Dominant language
Python
Stars
145k
Forks
23.1k
PR merge metrics
PR metrics pending

Description

**What happened**
In batches of six to twelve Bash calls the same caveat sentence was appended six to twelve times in a row, and again once per Read of a persisted output. It adds context tokens without new information.

**Expected**
Once per batch.

**Repro**
Run several Bash calls in one message.

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue in the Claude Code CLI with several Bash calls in one message, then inspect where tool results and persisted-output Reads receive the caveat. Verify the batching boundary and ensure the caveat appears once per batch rather than once per result; repeat the repro with six to twelve calls and persisted output to confirm the fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.