import DocCardList from '@theme/DocCardList';

# 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.

The most common is two agents editing the same checkout. [Stop two coding agents from overwriting each other](./agents-and-git/agents-overwriting-each-other.md) gives each agent its own worktree, and [sharing node_modules across worktrees](./agents-and-git/node-modules-in-worktrees.md) keeps that setup from reinstalling dependencies in every one. [Parallel Coding Agents](/learn/parallel-coding-agents) explains the isolation model behind both.
