<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: memento Team</title>
    <description>The latest articles on DEV Community by memento Team (@memento_team).</description>
    <link>https://dev.to/memento_team</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4199217%2F0654546b-9bb9-4309-bcdb-f5fc7b090227.png</url>
      <title>DEV Community: memento Team</title>
      <link>https://dev.to/memento_team</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/memento_team"/>
    <language>en</language>
    <item>
      <title>"Behind!": what a restaurant kitchen teaches parallel coding agents</title>
      <dc:creator>memento Team</dc:creator>
      <pubDate>Thu, 22 Oct 2026 05:49:17 +0000</pubDate>
      <link>https://dev.to/memento_team/behind-what-a-restaurant-kitchen-teaches-parallel-coding-agents-4fk7</link>
      <guid>https://dev.to/memento_team/behind-what-a-restaurant-kitchen-teaches-parallel-coding-agents-4fk7</guid>
      <description>&lt;p&gt;Run two or three Claude Code or Codex sessions on one repository and sooner or later one of them rewrites the file the other just fixed. Neither did anything wrong. Nobody told them who had what.&lt;/p&gt;

&lt;p&gt;Kitchens solved this a long time ago with three cheap things. All three work for agents today, for free.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Stations: one worktree per session
&lt;/h2&gt;

&lt;p&gt;A cook never works on another cook's board. Give each session its own board:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git worktree add ../app-auth -b auth
git worktree add ../app-billing -b billing
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Each session starts in its own directory on its own branch. Two edits to the same file stop being a silent overwrite and become a merge you can read.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The rail: one claims file, written under a lock
&lt;/h2&gt;

&lt;p&gt;Stations alone do not stop two cooks from making the same dish. The rail does: a ticket says what is being cooked and by whom. For agents, that is one file in the main checkout, say &lt;code&gt;claims.md&lt;/code&gt;, one line per task:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;auth-refresh | session-a | 2026-10-22T14:05Z
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Add one rule to your CLAUDE.md or AGENTS.md: before you start a task, read claims.md; if the task is there, pick another; if not, append your line. Append it under a lock, so two sessions cannot claim at once:&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;flock claims.md -c 'grep -q "^auth-refresh |" claims.md || echo "auth-refresh | session-a | $(date -u +%FT%RZ)" &amp;gt;&amp;gt; claims.md'&lt;br&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
&lt;br&gt;
  &lt;br&gt;
  

&lt;ol&gt;
&lt;li&gt;"Behind!": the claim has a lease
&lt;/li&gt;
&lt;/ol&gt;
&lt;/h2&gt;


&lt;p&gt;A ticket nobody is cooking goes back on the rail. Sessions die, hit their context limit, get closed at night. So a claim carries its time, and the rule says: a claim older than, say, two hours with no commit behind it is free to take. The last thing a session does before it stops is delete its own line.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this does not fix
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The rule lives in an instruction file, so a session can skip it. Put the check in a hook if it matters.&lt;/li&gt;
&lt;li&gt;It only works on one machine, or where everyone mounts the same file.&lt;/li&gt;
&lt;li&gt;Nobody sees the whole board at a glance; you read the file.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is enough for a solo developer with a few sessions. It starts to hurt with several people, each with their own agents, on their own machines.&lt;/p&gt;

&lt;p&gt;Disclosure: I build memento Team, which does this on your own machines: &lt;a href="https://overflow.games/memento/?ref=devto" rel="noopener noreferrer"&gt;https://overflow.games/memento/?ref=devto&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>git</category>
      <category>claude</category>
    </item>
  </channel>
</rss>
