Source Intelligence

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.

All of v2.1.51 Home All releases olderv2.1.50 v2.1.52newer
Claude Code v2.1.51

.worktreeinclude File Support

What

A new configuration file that specifies gitignored files to copy into git worktrees, solving the problem of missing config files or local secrets in worktree-based workflows.

Usage
# Create .worktreeinclude in your project root
# List gitignored files/patterns that should be copied to worktrees:
.env
.env.local
config/local.json
Details
  • Placed at the project root alongside .gitignore
  • When a worktree is created, files matching .worktreeinclude patterns that are also gitignored are automatically copied from the main working directory into the worktree
  • Blank lines and lines starting with # are treated as comments
  • Uses git ls-files --others --ignored --exclude-from=.worktreeinclude to identify matching files
Evidence

New function lc4 reads .worktreeinclude and copies files (search for ".worktreeinclude")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.51 →