How to Use Git Worktree? And How It's used by AI Agents?

How does git worktree work and how it helps AI agents work faster and without conflicts