Source Intelligence
Sweep 28 Aug 2026 · 00:00Z Build v2.1.250 478 read Stable v2.1.236 Latest v2.1.250 Next v2.1.250 Feeds RSS JSON llms.txt

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

Prompt capture

EnterWorktree tool description

27 model strings share this prompt, byte for byte.

v2.1.122 34 lines 2182 chars sha256 47a19d7b7e8b Plain text Whole capture

1Use this tool ONLY when explicitly instructed to work in a worktree — either by the user directly, or by project instructions (CLAUDE.md / memory). This tool creates an isolated git worktree and switches the current session into it.
3## When to Use
5- The user explicitly says "worktree" (e.g., "start a worktree", "work in a worktree", "create a worktree", "use a worktree")
6- CLAUDE.md or memory instructions direct you to work in a worktree for the current task
8## When NOT to Use
10- The user asks to create a branch, switch branches, or work on a different branch — use git commands instead
11- The user asks to fix a bug or work on a feature — use normal git workflow unless worktrees are explicitly requested by the user or project instructions
12- Never use this tool unless "worktree" is explicitly mentioned by the user or in CLAUDE.md / memory instructions
14## Requirements
16- Must be in a git repository, OR have WorktreeCreate/WorktreeRemove hooks configured in settings.json
17- Must not already be in a worktree
19## Behavior
21- In a git repository: creates a new git worktree inside `.claude/worktrees/` with a new branch based on HEAD
22- Outside a git repository: delegates to WorktreeCreate/WorktreeRemove hooks for VCS-agnostic isolation
23- Switches the session's working directory to the new worktree
24- Use ExitWorktree to leave the worktree mid-session (keep or remove). On session exit, if still in the worktree, the user will be prompted to keep or remove it
26## Entering an existing worktree
28Pass `path` instead of `name` to switch the session into a worktree that already exists (e.g., one you just created with `git worktree add`). The path must appear in `git worktree list` for the current repository — paths that are not registered worktrees of this repo are rejected. ExitWorktree will not remove a worktree entered this way; use `action: "keep"` to return to the original directory.
30## Parameters
32- `name` (optional): A name for a new worktree. If neither `name` nor `path` is provided, a random name is generated.
33- `path` (optional): Path to an existing worktree of the current repository to enter instead of creating one. Mutually exclusive with `name`.