<?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: Arun</title>
    <description>The latest articles on DEV Community by Arun (@offrun).</description>
    <link>https://dev.to/offrun</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%2F4182969%2F1ac3ca39-f1c5-4740-a46f-8207258f2290.png</url>
      <title>DEV Community: Arun</title>
      <link>https://dev.to/offrun</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/offrun"/>
    <language>en</language>
    <item>
      <title>How to run two Claude Code accounts on one machine (and what doesn't carry over)</title>
      <dc:creator>Arun</dc:creator>
      <pubDate>Fri, 27 Nov 2026 07:32:52 +0000</pubDate>
      <link>https://dev.to/offrun/how-to-run-two-claude-code-accounts-on-one-machine-and-what-doesnt-carry-over-468b</link>
      <guid>https://dev.to/offrun/how-to-run-two-claude-code-accounts-on-one-machine-and-what-doesnt-carry-over-468b</guid>
      <description>&lt;p&gt;Point &lt;code&gt;CLAUDE_CONFIG_DIR&lt;/code&gt; at a second folder and Claude Code runs as a second account, with its own login, settings and history. This post covers the setup, what stays behind in your first folder, and how to keep an eye on each login's usage.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I build a Mac app called Offrun, which does this folder bookkeeping for you. Everything below works with the plain CLIs; there's a short note about the app at the end.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Tested on macOS with Claude Code 2.1.332 and Codex CLI 0.172.0.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why two accounts
&lt;/h2&gt;

&lt;p&gt;Claude plans limit Claude Code twice: over a session window that resets every few hours, and over a week. Run two or three agents at once and a session can run out halfway through a task:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;You've hit your limit · resets 3am
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you have a second account, say a work seat and a personal plan, you'll want to carry on with the other one. You may also want the opposite: keep a client repository on the work seat and side projects on your own plan, so neither eats the other's limit.&lt;/p&gt;

&lt;p&gt;Claude Code won't switch accounts by itself, and by default it knows one login per machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;Claude Code keeps its state in one config folder, &lt;code&gt;~/.claude&lt;/code&gt; by default. Set &lt;code&gt;CLAUDE_CONFIG_DIR&lt;/code&gt; and it uses another folder instead. A new, empty folder means a new, signed-out Claude Code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;CLAUDE_CONFIG_DIR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;~/.claude-work claude -p &lt;span class="s2"&gt;"hi"&lt;/span&gt;
&lt;span class="c"&gt;# Not logged in · Please run /login&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So start it once on the new folder and sign in as the second account:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;CLAUDE_CONFIG_DIR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;~/.claude-work claude
&lt;span class="c"&gt;# then, inside Claude Code:&lt;/span&gt;
/login
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;From then on, start it with the variable for the work account and without it for your default one. An alias saves the typing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;alias&lt;/span&gt; claude-work=&lt;span class="s1"&gt;'CLAUDE_CONFIG_DIR=~/.claude-work claude'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run &lt;code&gt;/status&lt;/code&gt; inside a session when you want to be sure which account you're on.&lt;/p&gt;

&lt;h2&gt;
  
  
  What stays behind in the first folder
&lt;/h2&gt;

&lt;p&gt;The new folder starts empty, and almost everything you've set up over time lives in the old one. Here's where things are:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Lives in the config folder (one per account)&lt;/th&gt;
&lt;th&gt;Lives in the repository (shared by both)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Sign-in state&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;CLAUDE.md&lt;/code&gt; in the repo&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;.claude.json&lt;/code&gt;: user-scope MCP servers, per-project state&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;.claude/settings.json&lt;/code&gt; in the repo&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Your personal &lt;code&gt;settings.json&lt;/code&gt; and &lt;code&gt;CLAUDE.md&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;.mcp.json&lt;/code&gt; (project MCP servers)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Skills, commands, agents, plugins&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Session history (&lt;code&gt;projects/&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;MCP servers are the easiest to miss. Same machine, two folders:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp list
&lt;span class="c"&gt;# claude.ai Google Drive: ... - ✔ Connected&lt;/span&gt;
&lt;span class="c"&gt;# (8 servers in total)&lt;/span&gt;

&lt;span class="nv"&gt;CLAUDE_CONFIG_DIR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;~/.claude-work claude mcp list
&lt;span class="c"&gt;# No MCP servers configured. Use `claude mcp add` to add a server.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three ways to deal with it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Put shared setup in the repo.&lt;/strong&gt; Anything in the repository's &lt;code&gt;CLAUDE.md&lt;/code&gt;, &lt;code&gt;.claude/settings.json&lt;/code&gt; and &lt;code&gt;.mcp.json&lt;/code&gt; is read by every account. This is the cleanest fix for anything project-specific.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add user-scope MCP servers again&lt;/strong&gt; in each account: &lt;code&gt;CLAUDE_CONFIG_DIR=~/.claude-work claude mcp add -s user ...&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Symlink the personal files&lt;/strong&gt; you want both accounts to share:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ln -s ~/.claude/settings.json ~/.claude-work/settings.json
ln -s ~/.claude/CLAUDE.md     ~/.claude-work/CLAUDE.md
ln -s ~/.claude/skills        ~/.claude-work/skills
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Don't symlink &lt;code&gt;.claude.json&lt;/code&gt;. It holds that account's own state, which is the thing you're trying to keep apart.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where the login actually is (macOS)
&lt;/h3&gt;

&lt;p&gt;On a Mac the sign-in isn't a file in the folder. It's in the login Keychain, one entry per config folder. On my machine:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Claude Code-credentials            (the default ~/.claude)
Claude Code-credentials-37df6bfa   (another folder)
Claude Code-credentials-4ce12427   (another folder)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So deleting a folder doesn't delete its login. If you're cleaning up an account, remove its entry in Keychain Access as well.&lt;/p&gt;

&lt;h2&gt;
  
  
  Codex works the same way, with one difference
&lt;/h2&gt;

&lt;p&gt;Codex uses &lt;code&gt;CODEX_HOME&lt;/code&gt;. Unlike Claude Code, it won't create the folder for you:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;CODEX_HOME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;~/.codex-work codex login
&lt;span class="c"&gt;# Error loading configuration: CODEX_HOME points to "/Users/you/.codex-work", but that path does not exist&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Create it first:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mkdir -p ~/.codex-work
&lt;span class="nv"&gt;CODEX_HOME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;~/.codex-work codex login
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Pick the account by folder
&lt;/h2&gt;

&lt;p&gt;If the split is "work repos on the work seat", a shell function can choose for you based on where you are. In &lt;code&gt;~/.zshrc&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="s2"&gt;"$PWD"&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt;
    &lt;span class="nv"&gt;$HOME&lt;/span&gt;/work/*&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="nv"&gt;CLAUDE_CONFIG_DIR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;~/.claude-work &lt;span class="nb"&gt;command&lt;/span&gt; claude &lt;span class="s2"&gt;"$@"&lt;/span&gt; &lt;span class="o"&gt;;&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    *&lt;span class="o"&gt;)&lt;/span&gt;            &lt;span class="nb"&gt;command&lt;/span&gt; claude &lt;span class="s2"&gt;"$@"&lt;/span&gt; &lt;span class="o"&gt;;&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;esac&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;command claude&lt;/code&gt; runs the real binary rather than calling the function again. Anything under &lt;code&gt;~/work&lt;/code&gt; now starts on the work account, and everything else on your default one.&lt;/p&gt;

&lt;h2&gt;
  
  
  History doesn't move between accounts
&lt;/h2&gt;

&lt;p&gt;Each folder keeps its own session history, so &lt;code&gt;claude --resume&lt;/code&gt; on one account won't list conversations from the other. When a limit stops you mid-task, the other account starts from nothing.&lt;/p&gt;

&lt;p&gt;One thing that helps: before switching, ask the agent that's about to run out to write a short handoff file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Write HANDOFF.md: the goal, what's done, what's left,
the files you changed and anything you were about to try.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then start the other account in the same repo and tell it to read &lt;code&gt;HANDOFF.md&lt;/code&gt;. It's a minute of writing instead of re-explaining the task from memory.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keeping an eye on each account's usage
&lt;/h2&gt;

&lt;p&gt;Run &lt;code&gt;/usage&lt;/code&gt; inside a session to see how much of the session window and the week that account has used, and when each resets. With two accounts you run it twice, once per folder:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude          &lt;span class="c"&gt;# then /usage&lt;/span&gt;
claude-work     &lt;span class="c"&gt;# then /usage&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There's no single view of both, so it's easy to forget the second account until the first one stops.&lt;/p&gt;

&lt;h2&gt;
  
  
  A note on terms
&lt;/h2&gt;

&lt;p&gt;Each account is yours, on its own plan and its own terms. Check your provider's terms for how they expect accounts to be used.&lt;/p&gt;

&lt;h2&gt;
  
  
  About Offrun
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://offrun.dev/multiple-claude-code-accounts/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=multiple-accounts-2026-11" rel="noopener noreferrer"&gt;Offrun&lt;/a&gt; is a Mac app I'm building that runs Claude Code, Codex, Antigravity CLI, Grok Build and Muse Code with the logins you already have. It uses the same folders described above: add each login in Settings, and each one gets its own folder. Home lists every login's usage and when it resets, and when one hits its limit, the chat moves to your next login and tells you so. The agent signs in through its own login; Offrun never reads, copies or stores your tokens.&lt;/p&gt;

&lt;p&gt;Everything in this post works without it, so try the plain version first.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I checked and what I didn't
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What&lt;/th&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;An empty &lt;code&gt;CLAUDE_CONFIG_DIR&lt;/code&gt; folder is signed out, and &lt;code&gt;.claude.json&lt;/code&gt; is created inside it&lt;/td&gt;
&lt;td&gt;Run&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;User-scope MCP servers don't carry over to a new folder&lt;/td&gt;
&lt;td&gt;Run (&lt;code&gt;claude mcp list&lt;/code&gt; in both)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The per-folder &lt;code&gt;claude()&lt;/code&gt; function picks the folder by path&lt;/td&gt;
&lt;td&gt;Run in zsh&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;CODEX_HOME&lt;/code&gt; must exist first; an empty one reports "Not logged in"&lt;/td&gt;
&lt;td&gt;Run&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;One Keychain entry per config folder on macOS&lt;/td&gt;
&lt;td&gt;Seen in Keychain on my machine&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Symlinked &lt;code&gt;settings.json&lt;/code&gt;, &lt;code&gt;CLAUDE.md&lt;/code&gt; and &lt;code&gt;skills&lt;/code&gt; being picked up by the second account&lt;/td&gt;
&lt;td&gt;Not run end to end&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;/status&lt;/code&gt;, &lt;code&gt;/usage&lt;/code&gt; and &lt;code&gt;--resume&lt;/code&gt; behaviour per account&lt;/td&gt;
&lt;td&gt;Not run for this post&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This post was drafted with AI (Claude), and the commands in it were run to check the results.&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>codex</category>
      <category>ai</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Running Claude Code and Codex in parallel on one repo: git worktree gotchas and cross-review</title>
      <dc:creator>Arun</dc:creator>
      <pubDate>Tue, 13 Oct 2026 19:02:50 +0000</pubDate>
      <link>https://dev.to/offrun/running-claude-code-and-codex-in-parallel-on-one-repo-git-worktree-gotchas-and-cross-review-41eg</link>
      <guid>https://dev.to/offrun/running-claude-code-and-codex-in-parallel-on-one-repo-git-worktree-gotchas-and-cross-review-41eg</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;I build a Mac app called Offrun. Everything in this post works with plain git and the agent CLIs; there's a short note about Offrun at the end.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Run Claude Code and Codex on the same repository at the same time and you hit three things fairly quickly:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Both agents edit the same files, and one agent's changes break the other's working tree.&lt;/li&gt;
&lt;li&gt;One account hits its usage limit and the work stops halfway.&lt;/li&gt;
&lt;li&gt;Asking the agent that wrote a diff to review it tends to miss the same things it missed while writing it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This post handles them one at a time: give each agent its own git worktree, have a different agent review the uncommitted diff, and split logins so a limit doesn't stop you. At the end there's a table of what I actually ran and what I didn't.&lt;/p&gt;

&lt;p&gt;Tested on macOS with git 2.50.1, Claude Code 2.1.296 and Codex CLI 0.162.1.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. One worktree per agent
&lt;/h2&gt;

&lt;p&gt;A git worktree is an extra working directory attached to the same repository (the same &lt;code&gt;.git&lt;/code&gt;). Each branch gets its own folder, so agents can edit freely in their own folder without touching each other's working tree.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~/work/app
git worktree add ../app-refactor -b refactor
git worktree add ../app-bugfix   -b bugfix
git worktree list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/Users/me/work/app           c5cd751 [main]
/Users/me/work/app-bugfix    c5cd751 [bugfix]
/Users/me/work/app-refactor  c5cd751 [refactor]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then start one agent per folder:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ../app-refactor &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; claude      &lt;span class="c"&gt;# first terminal&lt;/span&gt;
&lt;span class="nb"&gt;cd&lt;/span&gt; ../app-bugfix   &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; codex       &lt;span class="c"&gt;# second terminal&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Claude Code has a &lt;code&gt;-w&lt;/code&gt; / &lt;code&gt;--worktree [name]&lt;/code&gt; option that creates a worktree for the session itself. Codex has no equivalent, so this post sticks to plain git, which works for both.&lt;/p&gt;

&lt;p&gt;Put worktrees next to the repository rather than inside it. If you do put them inside, add the folder to &lt;code&gt;.gitignore&lt;/code&gt;, or the main working tree will show it as untracked.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The gotchas
&lt;/h2&gt;

&lt;p&gt;Everything in this section was run against a throwaway repository.&lt;/p&gt;

&lt;h3&gt;
  
  
  The same branch can't be checked out in two worktrees
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git worktree add ../dup refactor
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fatal: 'refactor' is already used by worktree at '/tmp/.../app-refactor'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Git refuses to let two worktrees, and so two agents, share a branch. That's a useful safety net. If you want two attempts from the same starting point, create a second branch with &lt;code&gt;-b&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;.env&lt;/code&gt; and &lt;code&gt;node_modules&lt;/code&gt; don't come along
&lt;/h3&gt;

&lt;p&gt;A new worktree only checks out tracked files. A &lt;code&gt;.env&lt;/code&gt; listed in &lt;code&gt;.gitignore&lt;/code&gt; isn't there, and neither is &lt;code&gt;node_modules&lt;/code&gt; from your last &lt;code&gt;npm install&lt;/code&gt;. When an agent's first move fails with "missing environment variable" or "module not found", this is usually why.&lt;/p&gt;

&lt;p&gt;A small function in &lt;code&gt;~/.zshrc&lt;/code&gt; creates the worktree and copies &lt;code&gt;.env&lt;/code&gt; in one go. Copying &lt;code&gt;.env&lt;/code&gt; as is would also copy its &lt;code&gt;PORT&lt;/code&gt;, so every worktree's dev server would ask for the same port; the function gives each worktree a free port of its own instead:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;wt&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;local&lt;/span&gt; &lt;span class="nv"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$1&lt;/span&gt; root dest port
  &lt;span class="nv"&gt;root&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;git rev-parse --show-toplevel&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;return&lt;/span&gt;
  &lt;span class="nv"&gt;dest&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"${root}-${name}"&lt;/span&gt;
  git worktree add &lt;span class="s2"&gt;"$dest"&lt;/span&gt; -b &lt;span class="s2"&gt;"$name"&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;return&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; -f &lt;span class="s2"&gt;"$root/.env"&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
    &lt;span class="c"&gt;# Copy .env without its PORT, then give this worktree a free port of its own&lt;/span&gt;
    &lt;span class="nv"&gt;port&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;3001 + RANDOM % 200&lt;span class="o"&gt;)&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;while&lt;/span&gt; lsof -iTCP:&lt;span class="nv"&gt;$port&lt;/span&gt; -sTCP:LISTEN -t &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt; &lt;span class="nv"&gt;port&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;port + 1&lt;span class="o"&gt;)&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;done&lt;/span&gt;
    grep -v &lt;span class="s1"&gt;'^PORT='&lt;/span&gt; &lt;span class="s2"&gt;"$root/.env"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"$dest/.env"&lt;/span&gt;
    &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"PORT=$port"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;"$dest/.env"&lt;/span&gt;
  &lt;span class="k"&gt;fi&lt;/span&gt;
  &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"$dest"&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ~/work/app &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; wt refactor    &lt;span class="c"&gt;# creates ~/work/app-refactor with .env and its own PORT&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I left dependency installation out because it differs per project. A package manager with a shared store, like pnpm, keeps disk use down as you add worktrees.&lt;/p&gt;

&lt;h3&gt;
  
  
  The stash is shared between worktrees
&lt;/h3&gt;

&lt;p&gt;There's one &lt;code&gt;.git&lt;/code&gt;, so there's one stash. A &lt;code&gt;git stash&lt;/code&gt; made in another worktree showed up in the main worktree's &lt;code&gt;git stash list&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git -C ../app-x stash -q
$ git stash list           # in the main worktree
stash@{0}: WIP on x: c5cd751 init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Agents use &lt;code&gt;git stash&lt;/code&gt; and &lt;code&gt;git stash pop&lt;/code&gt; more often than you'd think. To stop one session popping another session's stash, add a line to the agent instruction files (&lt;code&gt;CLAUDE.md&lt;/code&gt;, &lt;code&gt;AGENTS.md&lt;/code&gt;) while you run in parallel: don't use stash; park work in progress with a temporary commit instead.&lt;/p&gt;

&lt;h3&gt;
  
  
  A worktree with changes can't be removed
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git worktree remove ../app-refactor
fatal: '../app-refactor' contains modified or untracked files, use --force to delete it
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;--force&lt;/code&gt; removes it, along with any uncommitted changes. Run &lt;code&gt;git -C ../app-refactor status&lt;/code&gt; before reaching for it. When the work is done, merge, then &lt;code&gt;git worktree remove ../app-refactor&lt;/code&gt; and &lt;code&gt;git branch -d refactor&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Deleting the folder doesn't remove the worktree
&lt;/h3&gt;

&lt;p&gt;If an agent runs &lt;code&gt;rm -rf&lt;/code&gt; on its worktree folder instead of &lt;code&gt;git worktree remove&lt;/code&gt;, git keeps the worktree registered, and its branch stays checked out there:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ rm -rf ../app-x
$ git worktree list
/Users/you/work/app    42905a0 [main]
/Users/you/work/app-x  42905a0 [x] prunable
$ git worktree add ../app-x2 x
fatal: 'x' is already used by worktree at '/Users/you/work/app-x'
$ git worktree prune
$ git worktree add ../app-x2 x      # works now
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;git worktree prune&lt;/code&gt; clears registrations whose folder is gone. Agents reach for &lt;code&gt;rm -rf&lt;/code&gt; more readily than for the git subcommand, so add a line next to the stash rule in &lt;code&gt;CLAUDE.md&lt;/code&gt; / &lt;code&gt;AGENTS.md&lt;/code&gt;: remove worktrees with &lt;code&gt;git worktree remove&lt;/code&gt;, and if one is already gone, run &lt;code&gt;git worktree prune&lt;/code&gt;. Thanks to fable7 in the comments for this one and for the &lt;code&gt;PORT&lt;/code&gt; fix above.&lt;/p&gt;

&lt;h3&gt;
  
  
  One more
&lt;/h3&gt;

&lt;p&gt;Several agents starting dev servers will fight over the same port (3000 and so on). The &lt;code&gt;wt&lt;/code&gt; function above gives each worktree its own &lt;code&gt;PORT&lt;/code&gt; in &lt;code&gt;.env&lt;/code&gt;, which helps when the app reads its port from there.&lt;/p&gt;

&lt;p&gt;Some dev servers make this worse by hiding it. Vite, by default, moves to the next free port when its own is taken, and an agent that then opens &lt;code&gt;localhost:5173&lt;/code&gt; to check its UI can end up looking at the other worktree's server. With Vite 8.3.5, a second server asked for a busy port prints &lt;code&gt;Port 5301 is in use, trying another one...&lt;/code&gt; and starts on 5302. Reading &lt;code&gt;PORT&lt;/code&gt; from the copied &lt;code&gt;.env&lt;/code&gt; in &lt;code&gt;vite.config&lt;/code&gt; and setting &lt;code&gt;strictPort&lt;/code&gt; makes it fail loudly instead:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// vite.config.js&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;defineConfig&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;loadEnv&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'vite'&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;default&lt;/span&gt; &lt;span class="nf"&gt;defineConfig&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;mode&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;env&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;loadEnv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;cwd&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;server&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;PORT&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="mi"&gt;5173&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;strictPort&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;!!&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;PORT&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With &lt;code&gt;PORT=5301&lt;/code&gt; in &lt;code&gt;.env&lt;/code&gt; and another server already on 5301, this exits with &lt;code&gt;Error: Port 5301 is already in use&lt;/code&gt;. Thanks to &lt;a class="mentioned-user" href="https://dev.to/bickov"&gt;@bickov&lt;/a&gt; on daily.dev for this one.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Have a different agent review the uncommitted diff
&lt;/h2&gt;

&lt;p&gt;An agent reviewing its own diff tends to carry its own assumptions into the review. In my experience a model from a different company misses different things, which is what makes it useful as a reviewer.&lt;/p&gt;

&lt;h3&gt;
  
  
  Codex as the reviewer
&lt;/h3&gt;

&lt;p&gt;Codex CLI has a &lt;code&gt;review&lt;/code&gt; subcommand. According to its help, &lt;code&gt;--uncommitted&lt;/code&gt; reviews staged, unstaged and untracked changes together:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ../app-refactor
codex review --uncommitted
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use &lt;code&gt;--base main&lt;/code&gt; to review against a base branch, or &lt;code&gt;--commit &amp;lt;SHA&amp;gt;&lt;/code&gt; for a single commit.&lt;/p&gt;

&lt;h3&gt;
  
  
  Claude Code as the reviewer
&lt;/h3&gt;

&lt;p&gt;Claude Code runs non-interactively with &lt;code&gt;-p&lt;/code&gt; (&lt;code&gt;--print&lt;/code&gt;), so you can pipe the diff in:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git add -N .                &lt;span class="c"&gt;# so untracked files show up in the diff&lt;/span&gt;
git diff HEAD &lt;span class="o"&gt;|&lt;/span&gt; claude -p &lt;span class="s2"&gt;"Review this diff. Point out bugs, missing tests and type mismatches. Don't change any code."&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;git add -N .&lt;/code&gt; (intent-to-add) is needed because &lt;code&gt;git diff HEAD&lt;/code&gt; leaves out untracked files. I checked with a new file &lt;code&gt;new.ts&lt;/code&gt; and an edit to the existing &lt;code&gt;package.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git diff HEAD --stat
 package.json | 1 +

$ git add -N . &amp;amp;&amp;amp; git diff HEAD --stat
 new.ts       | 1 +
 package.json | 1 +
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Without it, the reviewer sees a diff with every new file silently missing. That's easy to overlook, so run &lt;code&gt;add -N&lt;/code&gt; first.&lt;/p&gt;

&lt;h3&gt;
  
  
  What to do with the review
&lt;/h3&gt;

&lt;p&gt;Let the reviewer point things out, and nothing more. Send the fixes back to the original agent, or make them yourself. If the reviewer edits code directly, you're back to the first problem: two agents touching the same files. Read the findings and pick the ones worth acting on before passing them along, so one off-target comment doesn't send the work sideways.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Plan for usage limits
&lt;/h2&gt;

&lt;p&gt;Claude and Codex both cap usage over a period, and running agents in parallel gets you there faster. With more than one login, you can switch to another login when one runs out.&lt;/p&gt;

&lt;h3&gt;
  
  
  Separate config folders, separate logins
&lt;/h3&gt;

&lt;p&gt;Both CLIs let you move their config and credentials with an environment variable: &lt;code&gt;CLAUDE_CONFIG_DIR&lt;/code&gt; for Claude Code, &lt;code&gt;CODEX_HOME&lt;/code&gt; for Codex. Pointing each at an empty folder confirmed the login state is separate:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;$ &lt;span class="nv"&gt;CLAUDE_CONFIG_DIR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/tmp/cfgA claude auth status
&lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="s2"&gt;"loggedIn"&lt;/span&gt;: false,
  ...
&lt;span class="o"&gt;}&lt;/span&gt;
$ &lt;span class="nv"&gt;CODEX_HOME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/tmp/cfgB codex login status
Not logged &lt;span class="k"&gt;in&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So make an alias per login:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;alias&lt;/span&gt; claude-b=&lt;span class="s1"&gt;'CLAUDE_CONFIG_DIR=$HOME/.claude-b claude'&lt;/span&gt;
&lt;span class="nb"&gt;alias&lt;/span&gt; codex-b=&lt;span class="s1"&gt;'CODEX_HOME=$HOME/.codex-b codex'&lt;/span&gt;

claude-b auth login      &lt;span class="c"&gt;# sign in with the second account&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Session history is stored per config folder too, so &lt;code&gt;claude-b&lt;/code&gt; knows nothing about what &lt;code&gt;claude&lt;/code&gt; did. That's the next problem.&lt;/p&gt;

&lt;h3&gt;
  
  
  When you switch mid-task, leave a handoff yourself
&lt;/h3&gt;

&lt;p&gt;After a limit forces a switch, the new session doesn't know what the old one tried. I haven't tested copying session history files between config folders, so I won't recommend it. What reliably works is having the agent write its state to a file before the limit hits:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&amp;lt;!-- HANDOFF.md --&amp;gt;
&lt;span class="gu"&gt;## Goal
&lt;/span&gt;Move the auth middleware to TypeScript

&lt;span class="gu"&gt;## Done
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;Migrated src/auth/session.ts, 0 type errors

&lt;span class="gu"&gt;## Tried and failed
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;Staying on jose v4 breaks the ESM import. Needs v5

&lt;span class="gu"&gt;## Next
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;Migrate src/auth/token.ts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add a line to &lt;code&gt;CLAUDE.md&lt;/code&gt; (or similar) saying to update &lt;code&gt;HANDOFF.md&lt;/code&gt; at the end of each unit of work. Then tell the session on the new login "read &lt;code&gt;HANDOFF.md&lt;/code&gt; and carry on", and it picks up what the last session tried.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. What stays manual
&lt;/h2&gt;

&lt;p&gt;All of the above gets you parallel agents, but some things stay manual:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Opening each terminal tab to see which agent is working and which is waiting on you&lt;/li&gt;
&lt;li&gt;Checking each CLI separately to see which login is close to its limit&lt;/li&gt;
&lt;li&gt;Typing the commands to create worktrees, copy &lt;code&gt;.env&lt;/code&gt;, run reviews and clean up, every time&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I built a Mac app that puts these in one place.&lt;/p&gt;

&lt;h2&gt;
  
  
  About Offrun
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://offrun.dev/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=parallel-agents-2026-10" rel="noopener noreferrer"&gt;Offrun&lt;/a&gt; is a Mac app I'm building. It runs Claude Code, Codex, Antigravity CLI, Grok Build and Muse Code on your Mac with the logins you already have. Each chat gets its own git worktree, and one screen shows which agents are working, which are waiting on you, and how much usage each login has left. Pick another agent as the reviewer and its findings on the uncommitted diff land in the chat; the reviewer only points things out and never edits or merges code.&lt;/p&gt;

&lt;p&gt;It's free with no card, though you need your own agent subscriptions. It runs on any Mac with macOS 14 or later, Apple Silicon or Intel, and asks you to sign in to an Offrun account (Google or email) on first launch.&lt;/p&gt;

&lt;p&gt;Everything in this post works without Offrun, so try it with plain git first.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I checked and what I didn't
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What&lt;/th&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Same branch can't be in two worktrees, &lt;code&gt;.env&lt;/code&gt; doesn't come along, stash is shared, a worktree with changes can't be &lt;code&gt;remove&lt;/code&gt;d, a deleted worktree stays registered until &lt;code&gt;prune&lt;/code&gt;, &lt;code&gt;git diff HEAD&lt;/code&gt; omits untracked files until &lt;code&gt;add -N&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Run against a test repository&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The &lt;code&gt;wt&lt;/code&gt; function, including a per-worktree &lt;code&gt;PORT&lt;/code&gt; that skips ports in use&lt;/td&gt;
&lt;td&gt;Run in zsh&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;CLAUDE_CONFIG_DIR&lt;/code&gt; and &lt;code&gt;CODEX_HOME&lt;/code&gt; separate the login state&lt;/td&gt;
&lt;td&gt;Checked with empty folders&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;codex review --uncommitted&lt;/code&gt; and &lt;code&gt;claude -w&lt;/code&gt; exist and do what's described&lt;/td&gt;
&lt;td&gt;Checked with &lt;code&gt;--help&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What the models actually say when reviewing via &lt;code&gt;codex review&lt;/code&gt; and &lt;code&gt;claude -p&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Not run (command shape only)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Vite moving to the next port when its port is taken, and failing with &lt;code&gt;strictPort&lt;/code&gt; and &lt;code&gt;PORT&lt;/code&gt; from &lt;code&gt;.env&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Run with Vite 8.3.5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Other dev servers clashing over a port&lt;/td&gt;
&lt;td&gt;Not tested&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This post was drafted with AI (Claude), and the commands in it were run to check the results.&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>codex</category>
      <category>git</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
