| ▲ | zephen 4 hours ago | |
An interesting technique. The problems discussed by both Simon and Paul where the browser can absolutely trash any directory you give it is perhaps the paradigmatic example where git worktree is useful. Because you can check out the branch for the browser/AI agent into a worktree, and the only file there that halfway matters is the single file in .git which explains where the worktree comes from. It's really easy to fix that file up if it gets trashed, and it's really easy to use git to see exactly what the AI did. | ||