Skip to content

Commit 536becd

Browse files
tonyxiaoclaude
andcommitted
Add worktree convention to AGENTS.md; gitignore .worktrees/
Always use `.worktrees/` at the repo root for git worktrees, not `.claude/worktrees/`. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Committed-By-Agent: claude
1 parent 5a7dfda commit 536becd

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ private/
2323

2424
# Local cred storage
2525
.credentials/
26+
27+
# Git worktrees
28+
.worktrees/

AGENTS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ reporting back. Don't just push and return — keep polling `gh pr checks` or
6060

6161
- All serializable inputs/outputs (Zod schemas, JSON wire format) must use **snake_case** field names.
6262

63+
## Worktrees
64+
65+
When creating git worktrees, always use `.worktrees/` at the repo root — **not** `.claude/worktrees/`.
66+
67+
```sh
68+
git worktree add .worktrees/<name> <branch>
69+
```
70+
6371
## Key Gotchas
6472

6573
- `tsx` fails on `apps/supabase``?raw` imports pull in Deno-only code. Other packages work fine with `npx tsx`.

0 commit comments

Comments
 (0)