write tool before read on auto-included files fails
Status Closed — not planned
Maintainer reply None cached
Activity 4 comments · opened May 31, 2025 · closed Jan 2, 2026
The write tool fails if Claude hasn't previously read the file, but the file being included in context via CLAUDE.md doesn't count for that, so the model tries writing, fails, re-reads the file, then writes. This is a big waste of time and tokens for workflows that heavily rely on editing auto-included files like a memory file.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗