How to manage secrets with worktrees:
Files that are untracked in Git will NOT be copied over to new worktrees (Codex, Claude Code, & Conductor included)
Claude Code introduced .worktreeinclude, which uses glob syntax to copy untracked files into new directories - these can be .env files, secrets, or anything else you don't want in Git (s/o
@ClaudeDevs)
Here's how to get started:
1. Add .worktreeinclude to your project
2. Specify which files to copy (same syntax as .gitignore)
3. New worktrees will have these files copied over automatically
@conductor_build supports .worktreeinclude for Claude AND Codex - one config, two harnesses!
We also have a setting called "files to copy" if you don't like random dotfiles cluttering up your projects :)
Here's how you can use "files to copy" and .worktreeinclude to worktreemax