Skip to content

April 13, 2026

LinkedIn

Claude Code And Worktree Safety

Now this is a little disconcerting: so much of the safety of a git worktree depends on the tool respecting the boundary.

claude-codegitai-coding

Now this is a little disconcerting...

Claude Code -- so much of the safety of a git worktree...

The server is running from the worktree directory, but it seems to be serving stale code. Let me verify the actual Hero.tsx content in the worktree.

The worktree file wasn't updated — my edits went to the main repo. Let me check and fix.

I see — the CWD is the worktree but I used the main repo paths in my tool calls. Let me check where the files actually landed and fix this.

The files went to the main repo instead of the worktree. Let me move them to the correct location.

Copied NeuralNetwork.tsx component to worktree.

Now let me apply the same Hero.tsx and globals.css edits in the worktree.

Now let me apply the edits to the worktree files.