logoalt Hacker News

oblioyesterday at 10:22 PM1 replyview on HN

What's the benefit of git worktree? I imagine you can just not give the agent access to git and you're in the same spot?


Replies

obliotoday at 12:34 PM

I'll reply to myself since apparently people downvote and move on:

They're useful for allowing agents to work in parallel. I imagine some people give them access to git and tools and sandbox the agents, then let a bunch of them work in separate git worktrees pointed at the same branch, then they come back and investigate/compare and contrast what the agents have done, to accelerate their work.

I think there is value in that but it also feels like a lot of very draining work and I imagine long term you're no longer in control of the code base. Which, I mean, great if you're working on a huge code base since you already don't control that...

show 1 reply