Code Tycoon Get Code Tycoon

Blog / Sessions

How Often Parallel Claude Code Sessions Collide (Our Data)

One team, 792 Claude Code sessions, 13,412 file edits: how often two sessions edited the same file within 10 minutes, how we counted and what it can't show.

How Often Parallel Claude Code Sessions Collide (Our Data)

In seven and a half weeks of our own transcripts, 196 of 13,412 file edits (1.5%) were a second session editing a file another session had edited in the previous 10 minutes. Spread over 39 files. The number is small. The 593 files touched by more than one session over the whole period is the number that should shape how you split work.

Table of contents

Summary of the findings

Advice on parallel Claude Code sessions usually says collisions are a constant danger, or that git worktrees make them a non-issue. We wanted to know how often two sessions touch the same file in practice, so we counted in our own session transcripts.

Measure Value
Period 2026-10-02 to 2026-11-23 (about 7.5 weeks)
Sessions with model usage 792
File edits (Edit, Write, MultiEdit) 13,412
Distinct files edited 4,498
Files edited by more than one session, at any time 593 (13.2%)
Collisions: same file, two sessions, within 10 minutes 39 files, 196 edit events
Collision events as a share of all edits 1.5%

Two things stand out. First, simultaneous collisions were rare as a share of edits. Second, a file being edited by more than one session over weeks was normal: about one file in eight. Those two facts point to the same advice, which is to split work by file and merge in order, not to avoid parallel sessions.

This is one team's data, mostly one model, over a short period. It benchmarks nothing beyond this team, and it cannot tell you whether any collision caused damage. The limits section below spells out what it does not show.

We have tried to state the method plainly so you can judge the numbers yourself.

Where the data comes from

The numbers come from the Claude Code transcripts of one small team that runs its own products on Claude Code every day: the seventeen sites and stores listed on the Code Tycoon home page, plus Code Tycoon itself. Claude Code writes a transcript file per session under ~/.claude/projects; the dataset covers 1,036 transcript files. A script read them on 2026-11-23 and kept only totals. No prompt text, file names or project names are in the output, and the article shows none.

What the transcripts contained for the period:

Item Value
Transcript files read 1,036
Sessions with model usage 792
Model requests 54,344
Models Mostly Opus 5.5 (99.2% of cost); small amounts of Sonnet, Haiku and one other model
Sessions that ran at least one git commit 306
Prompts per session median 2, mean 3.5

The median of two prompts per session is worth a note. Many of these sessions were single tasks handed to a session by a task board, not long conversations. A team that works in long interactive sessions would have a different mix.

Each API message is counted once, de-duplicated by message ID, and subagent sidechains are included in the totals. For this article, only the edit counts matter, and cost does not enter into the collision question at all.

How we defined a collision

A collision in this article is the same file path edited by two different sessions within 10 minutes of each other. An "edit" is a tool call to Edit, Write or MultiEdit that changed a file. Reading a file does not count. Running a shell command that happens to change a file does not count either, because the transcript does not tell us which files a command touched.

The 10-minute window is a choice, and a rough one. It is long enough to catch two sessions that were both working on a file in the same stretch of work, and short enough that a file edited in the morning and again in the afternoon is not counted. A shorter window would give a smaller number and a longer one a larger one.

Two further points about what is counted:

  • Edit events, not incidents. If two sessions trade five edits on one file inside the window, that produces several events on one file. This is why we report 39 files and 196 events together: the events cluster on a few files.
  • Sessions are separate transcript files. A subagent working for a session is part of that session's data. Two terminals open on one repository are two sessions.

Result 1: simultaneous same-file edits

Out of 4,498 files edited, 39 had at least one collision under the 10-minute rule. Those 39 files account for 196 edit events, which is 1.5% of the 13,412 edits in the period.

Measure Value
Files with a 10-minute collision 39
Collision edit events 196
All edits in the period 13,412
Collision events as a share of edits 1.5%

How to read it. Across the period, same-window collisions touched 39 of the 4,498 files, and the edits involved were a small share of all edits.

That sounds comfortable, and the next result shows why it should not be taken as a reason to relax. Small does not mean harmless: one lost edit to a central file can cost more than a hundred clean ones. The data cannot say which kind these were, and the limits section covers that gap.

Result 2: files shared across sessions over time

The second number is the larger one. Of the 4,498 files edited in the period, 593 were edited by more than one session at some point. That is 13.2%, about one file in eight.

Measure Value
Distinct files edited 4,498
Files edited by two or more sessions in the period 593
Share of files 13.2%
Of those, files with a 10-minute collision 39

The gap between 593 and 39 is the finding. Most shared files were touched by different sessions at different times: a session finishes, another starts the next day, both edit the same configuration file or route list. Only a few were touched at the same time.

This matches what you would expect from how work is organized. Some files are central: shared configuration, a main layout, an index of routes, a shared stylesheet. Every task wants to touch them a little. Sessions that run one after another handle this without trouble, because the second session reads the file as the first left it. Sessions that run at the same time, from the same checkout, are where the problem starts.

The data does not tell us which files these were, and we deliberately kept file names out of it. In our own experience the pattern is the one above, but that is a description of our work, not something this dataset proves.

What the data cannot tell you

These limits matter more than the headline numbers.

It cannot tell whether any edit overwrote another. A collision here means two sessions edited one path within 10 minutes. It does not mean one session's change was lost. If the second session re-read the file before editing, it worked from the first session's version and nothing was overwritten. If it edited from a stale picture of the file, a change may have been lost. The transcripts record the edits, not the outcome, so we cannot separate the two cases.

It does not count sessions in separate worktrees or clones. A session running in a git worktree edits a different physical file from a session in the main checkout, even when both are changing the same path in the repository. Our count matches files by path, and a worktree has its own path for every file. Two sessions in separate worktrees that both changed the same file in the repository are therefore not matched. So the 196 events describe sessions that shared a directory, and the count leaves out same-file work across worktrees. That is also the case where the merge conflict shows up later, instead of an overwrite showing up now.

It is one team. The team works in a particular way: many short, single-task sessions, one dominant model, seventeen products plus one tool. A team with five long sessions on one monorepo would see different numbers, possibly much higher.

It is a short period. Seven and a half weeks, in a period when the team's session count grew: 265 sessions in October after the start date, and 530 in November up to the 23rd. A longer run would show whether the rate holds.

The window is arbitrary. Ten minutes is a convention, not a measured threshold.

Edits are not conflicts. Even two sessions that did edit the same lines at the same time would produce a visible merge conflict if they were on separate branches, and a silent overwrite if they were in one checkout. This dataset has no way to tell the two apart.

Given all that, the right reading is modest: for this team, simultaneous same-file edits were a small share of edits, and files shared across sessions over weeks were common.

What this means for how you run parallel sessions

The pattern in the numbers, a few simultaneous collisions on top of a wide base of shared files, suggests three working rules. They are our reading of the data plus the official documentation, not conclusions the data proves.

1. Give each session its own checkout. The reliable way to rule out a same-directory overwrite is to avoid sharing a directory. The git documentation says "A git repository can support multiple working trees, allowing you to check out more than one branch at a time" (git-worktree docs). Claude Code has a built-in flag: "Pass --worktree or -w with a name to create a worktree and start Claude in it" (Claude Code worktrees docs, checked 2026-11-23). The commands in those two docs are enough to start.

2. Split by file, then check the split. Our shared-file figure says that about one file in eight gets touched by several sessions over weeks. If you plan five tasks in a day, assume some of them will want the same configuration or index file. List the files each task will touch before you start, and either sequence the tasks that share one or let one session own the shared file.

3. Merge in a deliberate order. Worktrees move a conflict from edit time to merge time. A visible merge conflict is better than a silent overwrite, but it still costs you time. Merge the most independent branch first and resolve shared-file conflicts back to back. If you hand that step to Claude, three merge-conflict skills read side by side shows how each one approaches it.

Parallel sessions also share one usage allowance, which is a separate kind of collision. Anthropic's help center says "Pro and Max plans have a five-hour session limit and a weekly limit" and that "these limits are shared across Claude and Claude Code" (Using Claude Code with your Pro or Max plan). Our post on Claude Code usage limits covers what is published about them.

If you use a manager that creates worktrees for you, Claude Squad vs ccmanager vs Conductor compares three of them. For sessions that keep running when your laptop is closed, see how to run Claude Code on a server.

Check your own transcripts

You do not need a special tool to run this count. The ingredients are in your own ~/.claude/projects folder:

  1. Read each transcript file and take every tool call to Edit, Write or MultiEdit, with its timestamp and the file path it changed.
  2. Group the edits by file path and note which session (transcript file) each one came from.
  3. For each path, look for two edits from different sessions within your chosen window.
  4. Count the files, the events, and the files touched by more than one session at any time.

Two cautions. If you use worktrees, note that the same logical file will have different absolute paths in different worktrees, so compare paths relative to each session's repository root. And keep your output to counts, as we did. Transcripts contain your prompts and file contents, and you will not want those in a shared document.

If you would rather not write the script, Code Tycoon reads Claude Code and Codex transcript folders locally and alerts "the moment two sessions edit the same file or work in the same module," as its README puts it. The self-hosted version is free and runs with npx code-tycoon. The alerts are part of the views on the home page.

What a collision costs when it happens

We have no cost data for collisions in the dataset, so this section is about mechanisms and not measurement.

When two sessions in one checkout edit the same file, one of three things happens. If the second session re-reads the file first, nothing is lost, and the cost is a re-read. If it edits from a stale picture, either the edit fails to apply, which costs a retry, or it applies against changed text and produces a wrong result that someone has to find. The third case is the expensive one, because it can survive until review.

When the sessions are on separate branches, the same overlap becomes a merge conflict, which is visible, and which you resolve once. The cost is your time, not a wrong result.

This is why isolation is cheap insurance, and why the number of simultaneous collisions in the data is not the whole story. One silent overwrite in a central file can cost more than the extra disk and setup time for a worktree. The reverse also applies: if your sessions already work in separate worktrees and your tasks do not share files, the figures here do not apply to you.

Frequently asked questions

How often do parallel Claude Code sessions edit the same file?

In our transcripts, 593 of 4,498 edited files (13.2%) were edited by more than one session over seven and a half weeks. Edits to the same file by two sessions within 10 minutes were rarer: 39 files and 196 events, 1.5% of 13,412 edits. This is one team's usage and not a general rate.

Do parallel sessions overwrite each other's changes?

Our data cannot say. It records that two sessions edited one path within 10 minutes, not whether the second edit discarded the first. Sessions that share one checkout can overwrite each other if one edits from a stale picture of a file. Separate worktrees prevent that on disk and turn overlap into a merge conflict.

Do git worktrees prevent collisions?

They prevent two sessions from writing to the same files on disk, because each worktree is a separate checkout. They do not prevent two branches from changing the same lines, which shows up as a merge conflict, and they do not isolate things outside git such as ports or a local database.

Why did you use a 10-minute window?

It is a convention. It is long enough to catch two sessions working on a file in the same stretch of work and short enough to ignore a file edited in the morning and again in the afternoon. A shorter window would give a smaller number and a longer one a larger one.

Does this data apply to my team?

Possibly not. It covers one small team's sessions over seven and a half weeks, mostly on one model, with a median of two prompts per session. Teams with long interactive sessions on one large repository may see higher rates. Count your own transcripts with the steps above.

Are the sessions in this data run in worktrees?

The collision count does not cover sessions that ran in separate worktrees or clones, since those edit different physical files. It describes sessions that shared a directory. Same-file work across worktrees would appear later as merge conflicts, which this dataset does not measure.

Can Claude Code warn me when two sessions edit the same file?

We found no such warning in the Claude Code documentation we read. Claude Code's agent view shows session states such as Working and Needs input (agent view docs). Code Tycoon alerts on two sessions editing one file or module.

Key takeaways

  • In about 7.5 weeks of one team's transcripts, 39 files and 196 edit events were same-file edits by two sessions within 10 minutes, 1.5% of 13,412 edits.
  • 593 of 4,498 edited files (13.2%) were edited by more than one session over the period. Sharing over time was common; sharing at the same moment was rare.
  • The data cannot show whether any edit overwrote another, and it does not count sessions in separate worktrees or clones.
  • One checkout per session, a file-based split of tasks, and a deliberate merge order cover the cases the data points at.
  • Treat these as one team's numbers. Count your own transcripts before drawing conclusions for your setup.

To see collisions in your own sessions, self-host Code Tycoon, or read Claude Squad vs ccmanager vs Conductor for tools that give each session its own worktree.

Related articles


About this research

Anton Goldshtein is a two-time founder who previously bootstrapped a company to $100M in revenue. His team runs its own products on Code Tycoon every day.

The numbers come from our own Claude Code transcripts, read on 2026-11-23, covering 2026-10-02 to 2026-11-23: 792 sessions and 13,412 file edits from one small team. Only totals were kept, with no prompt text, file names or project names. The documentation quotes were read on 2026-11-23. The figures describe one team's real work.

Content reviewed and updated: 2026-11-26


Keep reading