Enums§
- Launch
Method - Terminal launch methods for AI tool execution.
Constants§
- CLAUDE_
SESSION_ PREFIX_ LENGTH - Claude native session path prefix length threshold.
- CONFIG_
KEY_ BASE_ BRANCH - Git config key templates for metadata storage.
- CONFIG_
KEY_ BASE_ PATH - CONFIG_
KEY_ INTENDED_ BRANCH - MAX_
SESSION_ NAME_ LENGTH - Maximum session name length for tmux/zellij compatibility. Zellij uses Unix sockets which have a ~108 byte path limit.
Functions§
- default_
worktree_ path - Generate default worktree path:
../<repo>-<branch>. - format_
config_ key - Format a git config key by replacing
{}with the branch name. - launch_
method_ aliases - Build the alias map for launch methods. First letter: i=iTerm, t=tmux, z=Zellij, w=WezTerm Second: w=window, t=tab, p=pane For panes: h=horizontal, v=vertical
- sanitize_
branch_ name - Convert branch name to safe directory name.
- strip_
unc - Strip Windows UNC path prefix (
\\?\) whichcanonicalize()adds. Git doesn’t understand UNC paths, so we must strip them.