cd /news/ai-agents/three-comments-on-my-last-post-three… · home › topics › ai-agents › article
[ARTICLE · art-177777] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Three comments on my last post, three fixes to my Claude Code skill

A developer released versions 1.1.1 and 1.1.2 of a free Claude Code skill that coordinates multiple sessions working on one site without git, adding a stop-and-ask rule when requested lines changed since the last read and a filtered log search instead of loading the whole change log. In test runs, three of three sessions stopped and asked before overwriting another session's work, up from one in three replacing it without the rule, and sessions read only the top 60 lines plus targeted searches on a 150-entry log. The update also fixed sessions reporting only their own pending uploads, which failed in all four runs before the change and succeeded in five of five after.

recommendation

Add a rule that a session stops and asks when its target lines changed since the last read, and treat an edit-tool refusal as re-read-and-retry, never force it with a shell command.

more in playbook: Working with AI coding agents
read7 min views7 publishedNov 28, 2026

A few days ago I wrote about running several Claude Code sessions on one site without git: a shared change log that also records what's already uploaded to the server, plus a short block of rules in CLAUDE.md, packaged as a free skill. The rule that matters most below is the simplest one: re-read a file right before editing it, because another session may have changed it since.

Three comments under that post led to a new version each, the same day or the next. Two pointed at gaps in the rules; the third suggested a different tool, and following it up turned up a bug in setup. Before every release I ran test sessions on sample sites with the old wording and with the new one, and the numbers below come from those runs.

Cristian's point: a session that skips the re-read looks exactly like one that did it. He suggested writing a hash or modified time into the log at read time and comparing it before writing.

I didn't add the hash or the modified time. Claude Code's own Edit and Write tools already refuse to write over a file that changed since the session read it, so that check exists for them. The gaps were elsewhere: a session that hits the refusal and gets round it with cp or a script, and a session that re-reads, finds another session's change on the very lines it was asked to edit, and goes ahead anyway because the user said to hurry.

So 1.1.1 took his stop-and-ask idea and put it in the rules. If the lines you asked for changed since the session last read them, it stops, tells you what's there now and asks which version to keep; if only other parts of the file changed, it keeps them and carries on. A refusal from the edit tool now means "re-read and start again", never "force it with a shell command".

In the test, I asked one session to change a button, had a second session change that same button first, and told the first one to hurry. Without the rule, one session in three replaced the other's work and only mentioned it afterwards. With it, three out of three stopped and asked, and when the other session had touched a different part of the file, the session went ahead and kept both changes. That's a handful of runs, so I read it as a good sign rather than proof.

Paul's point was about size: if every session loads the whole log, each one pays for its size again, and the rules ask for a look at the log before every change, not once per session. He suggested filtering it to the files a session touches.

The old rules said to read the newest entries, which kept that cost down but left it to each session how far back to go. 1.1.2 does what Paul suggested: a session reads the newest entries, then searches the rest of the log for what it's about to touch, meaning the name of the thing ("contact form") and its file. On a test log of 150 entries, sessions read the top 60 lines plus a few searches, never the whole file.

The search also catches something the newest entries miss. If an entry from weeks ago says you wanted the opposite of what you're asking now, the session quotes it and asks before changing anything; that worked in two runs out of three before the change and six out of six after.

Testing turned up a second problem too. After finishing a change, sessions liked to tell you which files to upload without being asked, and they listed only their own, so files other sessions still had waiting dropped out of the answer. None of four runs got it right. Now a session only says how many changes are waiting, counting every session's, and gives the full list when you ask "What do I have to upload?". Five out of five got that right.

Yael suggested running git init in the project folder, with no remote and no GitHub, and committing after every upload (after a partial upload, only the files you actually sent). git status --short then lists what changed since the last upload by content instead of by date.

I tried it on a sample folder and it does what she says: a file a chat changed and then put back doesn't show up. With several chats open there are two catches. A file changed again after the upload but before the commit drops off the list, because the commit records it as it is now, not as it went up. And unless you list them in a .gitignore first, git add -A stores .env and the database inside .git, so dragging the whole folder to the server takes your passwords along, history included. I'd use it as a cross-check next to the log rather than instead of it.

That second catch sent me back to what setup says about secrets already on the server, and that's where I found the worst problem of this round. Setup builds a list of files that must never go online (secrets like .env, databases, backups). For people who used to drag the whole folder to the server, those files are probably up there already, and setup said to delete them, secrets first. But a site often reads its .env on the server, and deleting it breaks the site. (I've since corrected the first post too.) Across eight test runs the advice varied from run to run: one contradicted itself in the same paragraph, and one copied the test site's passwords into its reply.

1.1.3 makes setup look at the code first. If the site reads the file, it stays. You open its full address in a browser, and if it shows or downloads, you block it (Claude gives you the lines to add to the .htaccess already on the server, or a sentence to send your host) and check again. Files nothing reads, and .git/, get deleted. Passwords and keys change last, so the new ones don't land in a file that can still be downloaded, and Claude refers to them by name (DB_PASS), never by value.

Nine runs after the change, three of them with Claude Haiku and one on a site that doesn't use .env at all, gave those steps in that order. One of those nine, an early one, gave an incomplete address to check, which could have made an exposed file look safe; I fixed the wording, and the three runs after that gave the full address. I checked the blocking lines by reading them, not on a live server.

While I was writing this post, a review caught that the same instruction still told you to delete everything else on the never-upload list from the server, the live database, the files your users uploaded and the server's own .htaccess included. In five test runs with that wording, no session actually said so: they read the code, saw what the site uses and left it alone. The text was still wrong, so 1.1.4 says what they were already doing and deletes only what the site doesn't use, like backups, test copies, .git/ and setup pages that already ran. In five runs with the new wording, one session still edited its own copy of .htaccess and said to upload it over the server's, which setup already tells it not to do, so I'm keeping an eye on that one. .git/ is now named in the never-upload list, although sessions had already left it out on their own in every run with the old wording.

The rules block in your CLAUDE.md doesn't update itself. Update the skill, then ask Claude to bring the rules in line with its template. If you followed the old advice, deleted .env on the server and the site stopped working, put it back, block it and change the keys in it.

The skill is free and MIT licensed: https://github.com/lmweblab/claude-code-parallel-sessions. Each release there lists what changed. Thanks to Cristian, Paul and Yael. If you keep several chats open on one site and the log or the rules get in your way, say so in the comments, because that's where these fixes came from.

Written with AI assistance (Claude), which also ran the test sessions.

── more in #ai-agents 4 stories · sorted by recency
── more on @claude code 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/three-comments-on-my…] indexed:0 read:7min 2026-11-28 · —