<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Coop Engineering]]></title><description><![CDATA[Coop Engineering]]></description><link>https://coopwork.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/6b11a897877807b42959c92d/dd79c72a-283b-4a3f-bec2-41d30b57dd33.png</url><title>Coop Engineering</title><link>https://coopwork.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 22:47:20 GMT</lastBuildDate><atom:link href="https://coopwork.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Six ways to stop AIs from overwriting each other in a shared repo]]></title><description><![CDATA[Six practical ways to keep several people's AIs from overwriting each other on one project: intent, reservations, collision warnings and more.]]></description><link>https://coopwork.hashnode.dev/six-ways-to-stop-ais-from-overwriting-each-other-in-a-shared-repo</link><guid isPermaLink="true">https://coopwork.hashnode.dev/six-ways-to-stop-ais-from-overwriting-each-other-in-a-shared-repo</guid><category><![CDATA[AI]]></category><category><![CDATA[mcp]]></category><category><![CDATA[claude]]></category><category><![CDATA[Collaboration]]></category><dc:creator><![CDATA[Antonio]]></dc:creator><pubDate>Thu, 03 Dec 2026 17:41:24 GMT</pubDate><content:encoded><![CDATA[<p>When two people code with AI on the same project, the AIs don't know about each other. Each one reads the files, makes a plan and writes. If both decide to touch <code>billing.py</code> in the same hour, the second write wins and nobody notices until something breaks.</p>
<p>Git helps after the fact, but merge conflicts are a bad way to find out that two people's AIs spent an hour on the same thing. These are the techniques I ended up using while building <a href="https://coopwork.ai">Coop</a>, a shared workspace where each teammate connects their own AI (Claude, ChatGPT, Claude Code and others) to one project through MCP. Most of them work even if you don't use Coop.</p>
<h2>1. Say what you're about to do, before doing it</h2>
<p>The cheapest coordination is announcing intent. Before an AI starts on a request, it writes one sentence somewhere the others can see: "Adding rate limiting to the public routes".</p>
<p>In Coop this is a tool called <code>start_turn</code>, and the server's instructions tell every AI to call it at the start of each user message. Without a tool, a shared <code>NOW.md</code> file that each AI updates works surprisingly well, as long as you tell every AI to read it first.</p>
<p>The point isn't the tool. It's that the intent is visible before the first file is touched.</p>
<h2>2. Reserve files, with an expiry</h2>
<p>Announcing intent isn't enough when two AIs need the same file. The next step is a lightweight lock: "I'm working on <code>src/billing/</code> for the next hour".</p>
<p>A few rules make reservations useful instead of annoying:</p>
<ul>
<li><strong>They expire.</strong> An AI that crashes or a person who closes the laptop shouldn't block the team. One hour by default, eight maximum.</li>
<li><strong>They're advisory for reading, enforced for writing.</strong> Anyone can read a reserved file; a write from someone else is refused with a message that says who holds it and until when.</li>
<li><strong>Folders count.</strong> Reserving <code>src/billing/</code> covers everything inside it.</li>
</ul>
<p>When a write is refused, put the next step in the message itself: coordinate in the team channel or work on something else. The AI reads the error, so make it useful.</p>
<h2>3. Detect collisions even without reservations</h2>
<p>Most of the time nobody reserves anything. So the server also tracks which session touched which file and when. If a second session edits a path another session edited recently, both get a warning along these lines:</p>
<blockquote>
<p>Lucía (with Claude Code) also touched <code>billing.py</code> 4 min ago ("Fixing the ads test"). Re-read the file before continuing and coordinate in the channel.</p>
</blockquote>
<p>MCP has no push, so the warning rides along in the result of the next tool call each AI makes. The one who just wrote sees it immediately; the other sees it on its next call, whatever that call is.</p>
<h2>4. Give every AI the same "since you were here" summary</h2>
<p>An AI that joins a shared project cold will happily redo something a teammate finished yesterday. The fix is to make the first response of every session include what changed since that person's last visit: files edited by whom, versions saved, tasks closed, notes left.</p>
<p>This is the single most useful thing I've added. It turns "start from zero" into "here's where the team is".</p>
<h2>5. Make versions personal</h2>
<p>Every save is a git commit signed with the person's name, not "AI" or a shared bot. When something breaks, you know whose session to ask, and the person can look at their own AI's conversation for context.</p>
<p>It also makes the history readable for the non-programmers on the team, as long as the AI writes commit messages in plain language. Telling it so in the instructions is enough.</p>
<h2>6. Write for the people who aren't in the chat</h2>
<p>The other people on the team never see your AI's conversation. Two habits help:</p>
<ul>
<li><strong>Tasks and notes in plain language.</strong> A short title a non-programmer understands, with technical details in a separate field.</li>
<li><strong>A summary at the end of each turn.</strong> One sentence for what was asked, one to three for what was done. In Coop the AI calls <code>finish_turn</code>; with plain files, an append-only <code>ACTIVITY.md</code> does the job.</li>
</ul>
<h2>The minimal version</h2>
<p>If you just want to try this with a teammate tomorrow, without any tooling:</p>
<ol>
<li>A <code>NOW.md</code> where each AI writes what it's starting.</li>
<li>A <code>LOCKS.md</code> with <code>path → person → until</code>.</li>
<li>An <code>ACTIVITY.md</code> where each AI appends a two-line summary at the end of each turn.</li>
<li>A line in each AI's instructions: read all three first, update them as you go.</li>
</ol>
<p>It's clunky, but it prevents most collisions. Coop does the same thing with tools, live presence and warnings that arrive inside each AI's chat, and it works across different AIs: one person on Claude, another on ChatGPT, a third on Claude Code. The connector is <code>https://coopwork.ai/mcp</code> and the first project is free.</p>
]]></content:encoded></item></channel></rss>