DEV Community

Running several Claude Code sessions on one site without git: a shared log that also tracks what's uploaded

LM web lab on November 23, 2026

Most advice about parallel Claude Code sessions starts with "use git worktrees". That's good advice if you use git. A lot of people who build sites...
Collapse
 
yaelezerzer profile image
Yael Ezerzer •

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"
Enter fullscreen mode Exit fullscreen mode

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.

Collapse
 
robertpaschal profile image
Odinaka Robert Nnamani •

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.

Collapse
 
lm_weblab_d3597a4313589a profile image
LM web lab • • Edited

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.

Collapse
 
robertpaschal profile image
Odinaka Robert Nnamani •

Reading newest first, then searching tags, then writing. The order is the fix.

Thread Thread
 
lm_weblab_d3597a4313589a profile image
LM web lab •

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.

Thread Thread
 
robertpaschal profile image
Odinaka Robert Nnamani •

Re-read before every edit, search by name not tags. That is the part that makes it hold together.

Collapse
 
paul_irolla_6b5ae261d0224 profile image
Paul Irolla •

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.

Collapse
 
lm_weblab_d3597a4313589a profile image
LM web lab • • Edited

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.

Collapse
 
crisstiank profile image
Cristian K •

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.

Collapse
 
lm_weblab_d3597a4313589a profile image
LM web lab •

Thanks, Cristian! I added your stop-and-ask idea to the skill. The new version, 1.1.1, is online.

Collapse
 
paul_irolla_6b5ae261d0224 profile image
Paul Irolla •

@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.