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 with Claude don't: they keep a folder on their laptop, open several chats on it, and upload the files by hand.
That's my setup, across seven internal web apps for a small company. Two problems come with it.
The first is overwrites. Session A edits style.css. Session B read style.css an hour ago and writes its old copy back with a shell command (cp, cat >, a script). A's work is gone without any error, so nothing tells you it happened. Claude Code's own Edit and Write tools catch a stale copy; shell commands don't.
The second is deploy state. After a day with several chats, which files have changed since the last upload? File dates lie (a chat touched a file and reverted it), and each chat only remembers its own work.
What fixed it
A plain text log in the project. Every session reads the newest entries before editing and adds its own when it's done:
## 2026-03-14 16:20 — Contact form: phone number field
- Session: contact form
- Version: 2.3.8
- Files: contact.php, js/form.js, inc/version.php
- What changes: the contact form asks for a phone number (optional)
- After upload: nothing
- Uploaded: no
And a short block of rules in CLAUDE.md. Re-read a file right before editing it, even if you read it earlier. Change files only with targeted edits, never by rewriting the whole file or copying a backup over it. Bump the version on every change, so browsers reload the CSS and JS. Don't tidy up changes you didn't make; they're another session's work in progress.
With that in place, "what do I have to upload?" has an exact answer: every entry still marked Uploaded: no, from any session, each file once. "I uploaded it" flips them to yes (date).
Things that only showed up in testing
The log needs a starting entry that lists the whole site as not uploaded. Otherwise the first chat you ask says "nothing to upload", because the log is empty, while the server is months behind.
Partial uploads need their own status. If you upload everything except main.js, marking the entries as uploaded loses main.js from the next list; leaving them as not uploaded makes you re-upload everything. The skill now writes partly (date), still to upload: main.js.
If you've always dragged the whole folder to the server, your .env file is probably already online, and maybe downloadable. Setup now says so. If the site reads that file, you check whether it opens in a browser and block it, because deleting it would break the site. If nothing reads it, you delete it. Then you change every key that could be downloaded.
The skill
I packaged all of this as a Claude skill and Claude Code plugin, MIT licensed: https://github.com/lmweblab/claude-code-parallel-sessions. You tell Claude you keep several chats open on the project, and it asks how you upload, finds your version number, builds the never-upload list and writes the two files.
It's a set of rules, not a lock. Two sessions editing the same file in the same few seconds can still collide. The rules make stale copies and forgotten uploads rarer; they don't make them impossible.
Written with AI assistance (Claude), which also helped test the skill.
Top comments (11)
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.