Uploaded: no is a clever way to keep the answer exact. One idea for the "file dates lie" part, if you're open to it, is a local git repo with no remote and no GitHub, which compares contents instead of dates. Run this once in the project folder, and again after each upload:
git init # first time only
git add -A && git commit -m "uploaded"
Then git status --short lists exactly what changed since the last upload, and a file a chat touched and reverted doesn't show up. For a partial upload, git add only the files you really sent and commit, and the rest stay on the list.
A shared log tells each session what changed. Reading the file again right before editing is what stops session B writing over session A from an hour-old copy.
I look after internal web apps for a small company with Claude, uploaded by hand and without git. Author of claude-code-parallel-sessions, a free Claude skill.
Thanks, Odinaka! Exactly, the re-read is what protects the file. The new version, 1.1.2, also adds a search: each session reads the newest entries, then searches the log for what it is about to change instead of reading it all.
I look after internal web apps for a small company with Claude, uploaded by hand and without git. Author of claude-code-parallel-sessions, a free Claude skill.
Yes, that's the order, with one more step: each session re-reads the file right before editing it. There are no tags, though: it searches for the name of the thing and its file.
A shared log fixes stale reads, but the cost moves to the start of each session. If every session loads the whole log, the log's size is paid again by each one. Filtering it to the files a session touches keeps that flat as sessions multiply.
I look after internal web apps for a small company with Claude, uploaded by hand and without git. Author of claude-code-parallel-sessions, a free Claude skill.
Thanks, Paul! I added a search to the skill: each session reads the newest entries, then searches the log for what it is about to change instead of reading it all. The new version, 1.1.2, is online.
The "re-read a file right before editing it" rule is the one that closes the silent-overwrite gap, and it's good that it sits in CLAUDE.md as an instruction. The weak spot is that it's still advisory: a session that skips the re-read looks identical to one that did it. If you want a cheap check without git, record a hash or modified time of each file in the log entry at read time and have the session compare it right before writing. A mismatch then means "someone else touched this", and the session can stop and ask rather than overwrite. The log tells sessions what changed; the check tells them when their copy is stale.
I look after internal web apps for a small company with Claude, uploaded by hand and without git. Author of claude-code-parallel-sessions, a free Claude skill.
Uploaded: nois a clever way to keep the answer exact. One idea for the "file dates lie" part, if you're open to it, is a local git repo with no remote and no GitHub, which compares contents instead of dates. Run this once in the project folder, and again after each upload:Then
git status --shortlists exactly what changed since the last upload, and a file a chat touched and reverted doesn't show up. For a partial upload,git addonly the files you really sent and commit, and the rest stay on the list.A shared log tells each session what changed. Reading the file again right before editing is what stops session B writing over session A from an hour-old copy.
Thanks, Odinaka! Exactly, the re-read is what protects the file. The new version, 1.1.2, also adds a search: each session reads the newest entries, then searches the log for what it is about to change instead of reading it all.
Reading newest first, then searching tags, then writing. The order is the fix.
Yes, that's the order, with one more step: each session re-reads the file right before editing it. There are no tags, though: it searches for the name of the thing and its file.
Re-read before every edit, search by name not tags. That is the part that makes it hold together.
A shared log fixes stale reads, but the cost moves to the start of each session. If every session loads the whole log, the log's size is paid again by each one. Filtering it to the files a session touches keeps that flat as sessions multiply.
Thanks, Paul! I added a search to the skill: each session reads the newest entries, then searches the log for what it is about to change instead of reading it all. The new version, 1.1.2, is online.
The "re-read a file right before editing it" rule is the one that closes the silent-overwrite gap, and it's good that it sits in CLAUDE.md as an instruction. The weak spot is that it's still advisory: a session that skips the re-read looks identical to one that did it. If you want a cheap check without git, record a hash or modified time of each file in the log entry at read time and have the session compare it right before writing. A mismatch then means "someone else touched this", and the session can stop and ask rather than overwrite. The log tells sessions what changed; the check tells them when their copy is stale.
Thanks, Cristian! I added your stop-and-ask idea to the skill. The new version, 1.1.1, is online.
@lm_weblab_d3597a4313589a Thanks. The re-read is the part that checks the file as it is today, so the log only has to say where to look.