Skip to main content

Module constants

Module constants 

Source

Enums§

LaunchMethod
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 (\\?\) which canonicalize() adds. Git doesn’t understand UNC paths, so we must strip them.