Run once in a repo to setup worktree directory:
feature init
or manually:
mkdir .worktrees
echo ".worktrees/" >> .gitignore
git commit -a -m "update .gitignore"Export ANTHROPIC_API_KEY (you may put it in ~/.bashrc)
export ANTHROPIC_API_KEY="sk-ant-follow-me-on-twitter-@caffeinum"Then, to run multiple Claudes, run:
feature "refactor /app directory"It will generate an appropriate git branch name, create a git worktree in a dedicated .worktrees
directory, and then hand off to Claude to implement the feature, commit the changes, and open a pull
request, all with a single command
※ Use git worktrees to run multiple Claude sessions in parallel. Learn more (https://docs.anthropic.com/s/claude-code-worktrees)