Skip to Content
Settings

Settings

WorktreeWise provides extensive configuration options to customize your worktree creation defaults, editor integrations, AI coding agents, terminal shells, Git behavior, and text encoding.

To open Settings:

  • Click on File → Settings in the application menu.
  • Or press the keyboard shortcut Shift + S.

All settings are automatically persisted to local configuration and applied across your repositories.


Worktrees Settings

The Worktrees settings tab configures the default folder structure and naming convention used when creating new worktrees.

Worktree settings

Naming Patterns

When you create a worktree, WorktreeWise generates its directory path automatically based on a configurable naming pattern. This keeps your workspace organized and ensures consistent folder hierarchies across teams.

Supported Placeholders

PlaceholderDescriptionExample Replacement
{repo}The name of the primary repositorymy-project
{branch}The sanitized branch or tag namefeature-auth

Built-in Pattern Options

WorktreeWise comes with several preconfigured naming templates:

  1. {repo}__wt__{branch} (Default): Produces folder names like my-project__wt__feature-auth. The double-underscore delimiter makes it easy to visually distinguish repository root, worktree marker (wt), and branch name.
  2. {repo}__{branch}: Produces folder names like my-project__feature-auth.
  3. {repo}-wt-{branch}: Produces folder names like my-project-wt-feature-auth.
  4. wt__{repo}__{branch}: Produces folder names like wt__my-project__feature-auth, clustering all worktrees together when sorted alphabetically in a parent directory.

Adding Custom Naming Patterns

You can define your own naming pattern to match your organization’s folder conventions:

  1. In Settings → Worktrees, expand the pattern dropdown.
  2. Type your desired pattern in the input box at the bottom of the popup (for example, worktrees/{branch} or wt-{repo}-{branch}).
  3. Click the + (Add) button.
  4. Your custom pattern is immediately saved and available for selection.
  5. To delete a custom pattern, hover over it in the list and click the red trash icon.

Editors Settings

The Editors settings tab allows you to configure external IDEs and code editors so you can launch any worktree with a single click.

Editor settings

Supported Editors

WorktreeWise supports a wide variety of modern development environments:

  • VS Code Family: Visual Studio Code, Cursor, Windsurf, VSCodium.
  • JetBrains Family: WebStorm, IntelliJ IDEA, Rider, PyCharm, CLion, PhpStorm, RubyMine, GoLand, Android Studio.
  • Modern Text Editors: Zed, Sublime Text, Brackets.

Automatic Detection (Scan)

Click the Scan button in the top-right corner to trigger automatic editor detection (editors:detect-all). WorktreeWise scans standard system installation directories, user application paths, and the system PATH to identify installed editors.

  • When an editor is detected, a green Found badge appears along with the detected version.
  • Detected editors are enabled automatically.

Enabling or Disabling Editors

  • Click on any editor card to toggle its active state.
  • Enabled editors display a highlighted blue border and appear in the Open in menu in the Worktree list.
  • Disabled editors are excluded from action menus, keeping your interface clean.

Configuring Custom Executable Paths

If an editor is installed in a non-standard location or portable directory:

  1. Click the Pencil icon (✏️) on the editor card.
  2. Enter the absolute path to the executable file.
  3. Click Edit to save.

Example Paths by Operating System

EditorWindowsmacOSLinux
VS CodeC:\Program Files\Microsoft VS Code\bin\code.cmd/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code/usr/share/code/code
CursorC:\Users\%USERNAME%\AppData\Local\Programs\cursor\resources\app\bin\cursor.cmd/Applications/Cursor.app/Contents/Resources/app/bin/cursor/usr/bin/cursor
WindsurfC:\Users\%USERNAME%\AppData\Local\Programs\windsurf\bin\windsurf.cmd/Applications/Windsurf.app/Contents/Resources/app/bin/windsurf/usr/bin/windsurf
WebStormC:\Program Files\JetBrains\WebStorm\bin\webstorm.bat/Applications/WebStorm.app/Contents/MacOS/webstorm/opt/webstorm/bin/webstorm
IntelliJ IDEAC:\Program Files\JetBrains\IntelliJ IDEA\bin\idea64.exe/Applications/IntelliJ IDEA.app/Contents/MacOS/idea/opt/idea/bin/idea.sh
Sublime TextC:\Program Files\Sublime Text\subl.exe/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl/usr/bin/subl

AI Agents Settings

The AI Agents tab enables and configures terminal-based AI coding assistants that run directly inside worktree-scoped panes.

AI-agent settings

Supported AI Coding Agents

WorktreeWise includes first-class support for 7 popular AI coding agents:

  1. Claude Code (claude):
    • Command: claude
    • Installation: npm install -g @anthropic-ai/claude-code
    • Requirement: Node.js 18 or later
  2. Codex (codex):
    • Command: codex
    • Installation: npm install -g @openai/codex
  3. Cursor CLI (cursor):
    • Command: cursor-agent
    • Windows Installation: irm 'https://cursor.com/install?win32=true' | iex (PowerShell)
  4. Antigravity CLI (antigravity):
    • Command: agy
    • Installation: irm https://antigravity.google/cli/install.ps1 | iex (PowerShell)
  5. Qwen Code (qwen):
    • Command: qwen
    • Installation: npm install -g @qwen-code/qwen-code@latest
    • Requirement: Node.js 22 or later
  6. Kimi Code (kimi):
    • Command: kimi
    • Installation: npm install -g @moonshot-ai/kimi-code
    • Requirement: Node.js 22.19 or later
  7. OpenCode (opencode):
    • Command: opencode
    • Installation: npm install -g opencode-ai

Agent Configuration & Testing

  • Auto-detection: WorktreeWise checks which agent binaries are present in your system PATH.
  • Toggle State: Use the switch on each card to enable or disable agents for terminal sessions.
  • Custom Arguments: Click the pencil icon to specify custom binary paths or CLI arguments (e.g., flags to specify default models or custom config paths).
  • Test Agent Execution: Click Test on any agent card to run a diagnostic check. WorktreeWise executes the binary in a sandboxed test run and outputs stdout/stderr so you can verify authentication and installation health before starting real tasks.

Shell Settings

The Shell settings tab controls which command-line shell is launched inside embedded terminal panes.

Shell settings

Shell Detection & Selection

WorktreeWise automatically discovers installed shells across standard platform paths:

  • Windows: PowerShell (pwsh), Windows PowerShell (powershell), Command Prompt (cmd), Git Bash (git-bash), WSL (wsl).
  • macOS & Linux: Zsh (zsh), Bash (bash), Fish (fish), Nushell (nu), POSIX Shell (sh).

Click on any detected shell card to make it the active shell for all newly opened embedded terminals.

Custom Shell Path

If you use a specialized shell or custom installation directory:

  1. Enter the absolute path in the Custom shell path input field.
  2. Click the folder icon to browse the filesystem if preferred.
  3. Click Apply to activate the custom shell.

Git Settings

The Git tab configures the path to the Git binary used for all worktree operations, log queries, branch listings, and diffs.

Git settings

Git Executable Path

By default, WorktreeWise relies on the git executable found in your system PATH. If you need to point to a specific Git installation (e.g. Git for Windows with specific credentials or a custom toolchain):

  • Windows: C:\Program Files\Git\bin\git.exe
  • macOS / Linux: /usr/bin/git or /usr/local/bin/git

Encoding Settings

The Encoding settings tab specifies the character encoding used when reading Git command output and commit logs.

Encoding settings

Supported Character Encodings

Select your preferred encoding from the dropdown (default is UTF-8). Supported options include:

  • Unicode: UTF-8, UTF-16, UTF-32
  • Western & European: ASCII, ISO-8859-1 through ISO-8859-16, Windows-1250 through Windows-1258, CP437, CP850, CP852, CP865, CP866
  • East Asian: Shift JIS, EUC-JP, ISO-2022-JP, GB2312, GBK, GB18030, Big5, ISO-2022-CN, ISO-2022-KR
  • Cyrillic: KOI8-R, KOI8-U, MacCyrillic
  • Other: TIS-620, VISCII, MacRoman