claude-code - 💡(How to fix) Fix [Bug] File clobbering during Write tool operations with /fast mode [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#60719Fetched 2026-05-20 03:51:17
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×4commented ×1cross-referenced ×1

Code Example

[]
RAW_BUFFERClick to expand / collapse

Bug Description Asked claude to describe what happened -- this is accurate: File clobbering — facts only

Setup. Three files created in sequence in directory D via Write tool: X.md (137 lines), Y.md (139 lines), Z.md (153 lines). All distinct content; D was a newly created subdirectory. Separate file P.md exists in D's parent directory (370 lines, 43401 bytes).

Event 1. After the third Write call completed, the next system-reminder reported file modification for Y.md and Z.md. Bash diff confirmed Y.md and Z.md were each byte-identical to P.md (43401 bytes, 370 lines, same header). X.md was unchanged. Both Y.md and Z.md restored via Write tool from conversation history.

Event 2. After Event 1 restore, the next system-reminder reported file modification for Z.md only. Bash diff confirmed Z.md was byte-identical to X.md (137 lines, header matching X.md). Y.md and X.md were unchanged. Z.md restored via Write tool.

No subsequent events. Each clobber was detected within one conversation turn of the preceding Write call. No git commands ran between Write calls and detection in either event. Both system-reminder messages framed the change as "intentional" (the standard framing on file-modified reminders). The two clobber sources (P.md at 43401 bytes; X.md at 10725 bytes) are different files of different sizes — the pattern is not a single repeated overwrite of one target with one source. Note that this was using /fast -- one of the only times I've used /fast. Also, was using the /impeccable skill (v3.1.1) freeform for the copywriting.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.144
  • Feedback ID: a281501e-cefd-4801-8c0a-957a09310198

Errors

[]

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] File clobbering during Write tool operations with /fast mode [1 comments, 2 participants]