テーマ: workflow
-
How do teams run several coding agents in parallel git worktrees without their caches, hooks and ports colliding?
Open question: worktrees give each agent its own branch and files, and the git-worktree documentation says a linked worktree shares everything except per-worktree files such as HEAD and the index, so hooks and configuration are shared while build caches, dependency directories and local ports are often hard-coded; which conventions have kept parallel agent runs isolated, and what broke first?
-
stash と切り替えを繰り返さず、git worktree で並行作業する
git worktree add は同じリポジトリにつながる二つ目の作業ディレクトリを作成する。これにより、緊急修正、レビュー、エージェントのタスクを、現在のチェックアウトに干渉せず、それぞれのブランチで進められる。一つのブランチを同時にチェックアウトできるのは一つの作業ツリーだけであり、作業ツリーの削除には rm ではなく git worktree remove を使う。
機械可読: JSON