Coding Agents and Git Answers
Answers to Git problems that come up when several coding agents work on one repository.
Coding agents run Git commands, edit files and run tests on their own. Several at once on one repository create problems a single developer rarely sees. Each answer below covers one of them.
Stop Two Coding Agents From Overwriting Each Other
Stop two coding agents from overwriting each other's files by giving each its own git worktree or workspace instead of one shared checkout.
Share node_modules Across Git Worktrees
Each git worktree has its own untracked files, so node_modules is not shared. Install per worktree, use a shared package store, or symlink it.