Recently it seems Claude Code is creating worktrees a lot more, particularly when dispatching work to sub-agents.
These are created at .claude/worktrees in the repo which:
- (presumably) only observe
.worktreeinclude, and not .gtrconfig
- Aren't
gitignored by default
Looking for thoughts on the best way we can get Claude Code to use gtr for these, so e.g. we can have postCreate / postCd commands run, and have everything in .gtrconfig
This could be with:
- Adding a line to
AGENTS.md
- A hook?
- A skill?