3 ms·
> Set me back 2 weeks of work. How did this happen? Did you let the agent loose without first creating its own git worktree?
by ayewo 11mo ago
> Set me back 2 weeks of work.
How did this happen?
Did you let the agent loose without first creating its own git worktree?
- formerly_proven 11mo agotfw people are running agents outside containers
- bigcloud1299 11mo agoApologies. I meant branch. I nuked the branch. But set me back a lot of time as I thought it may be few things here and there.
- esafak 11mo agoI see! That is annoying. A good reminder to push or fork the branch for backup.
- formerly_proven 11mo agoI always set gc.auto=0 for this reason, because it means the reflog will be there if I need it (unless I accidentally delete .git)
- bigcloud1299 11mo agoYeah this something I need to get to.
- oblio 11mo agoWhat'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?
- oblio 11mo agoI'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...