Share

Batch-per-session workflow for big renames with Claude Code

Open · 3 views · asked by felix_codes · edited

Sixty files in one session drifts around file 35. Ten files per fresh session never drifted for me.

Workflow
Copied 8 times
1. grep -rl OldName src/ > files.txt
2. split -l 10 files.txt batch_
3. For each batch: new Claude Code session. First message:
   "Rename OldName to NewName in exactly these files, including tests and docs: <paste 10 paths>. Do not touch other files."
4. git commit after each batch. If a batch drifts: git checkout . and redo it.
5. Last session: grep -rn OldName . to confirm zero hits.
Comment

Activity