Emacs config for managing git worktrees with chat-first AI assistants (Claude, Gemini, or any CLI you map in vibemacs-worktrees-chat-assistants). Codex-specific plan/apply helpers have been removed; chat buffers now just launch the configured commands.
For custom setup scripts when creating worktrees, add a worktrees.json file:
{
"setup-worktree": [
"pnpm i",
"cp $ROOT_WORKTREE_PATH/.env.local .env.local",
"cp -r $ROOT_WORKTREE_PATH/.clerk ."
]
}Worktrees are created under ~/.vibemacs/worktrees/<repo-name>/:
- Worktrees:
~/.vibemacs/worktrees/<repo-name>/<worktree-name>/ - Metadata:
~/.vibemacs/worktrees-metadata/<hash>/worktree.json - Registry:
~/.vibemacs/projects.json - Per-project scripts:
.vibemacs/worktrees.jsoninside a repo defines setup/run/archive commands
When batch-compiling with a custom EMACSLOADPATH, keep built-ins on the path:
EMACSLOADPATH=$PWD: emacs -Q --batch -l init.el -f batch-byte-compile etc/worktrees-*.elRun the fast suite (byte-compile + git + layout ERT) with:
make test