Embedded Terminal Workspace
WorktreeWise includes a hardware-accelerated terminal workspace powered by XTerm.js. Each terminal pane opens with its working directory rooted in a specific worktree, enabling you to run build commands, start local servers, execute tests, or perform Git operations without managing external console windows.

Launch a Terminal
To open an embedded terminal for any worktree:
- In the Worktrees panel, locate the target worktree.
- Select the three-dot Actions menu and choose Open in Terminal.
- A terminal pane initializes immediately with its working directory set to that worktree’s root folder.
Multi-Pane Grid Layout
WorktreeWise supports concurrent multi-terminal workflows with configurable grid tiling:
Adding Terminal Panes
Select New terminal in worktree in the top toolbar to add additional panes:
- Same Worktree: Run multiple processes concurrently (for example, running a Vite dev server in pane 1 while running tests in pane 2).
- Different Worktrees: Compare commands or build outputs across different branches simultaneously.
Layout Columns
Use the layout selector in the top toolbar to adjust the grid:
| Layout Mode | Behavior |
|---|---|
| Auto | Dynamically adjusts the number of columns based on window width. |
| 1 Column | Stacks terminal sessions vertically in full-width rows. |
| 2 Columns | Splits the workspace into two side-by-side terminal columns. |
| 3 Columns | Arranges three concurrent terminal panes side by side. |
Pane Controls & Shortcuts
Each terminal pane operates as an independent session:
- Worktree Header: Identifies the attached worktree and displays its full path tooltip.
- Mode Switching: Toggle between raw Terminal shell mode and interactive AI Agent mode using the segmented control.
- Focus & Maximize: Select the Expand icon to temporarily maximize a single pane to full view; select Compress to restore the tiled grid.
- Session Termination: Select ✕ to terminate the shell process and close the pane.
- Keyboard Navigation: Press
Ctrl + PageUporCtrl + PageDownto cycle keyboard focus between open panes.
Shell Configuration & Auto-Detection
Terminal sessions run inside the default shell configured in Settings → Shell:

WorktreeWise automatically detects installed shells across platforms:
- Windows: PowerShell Core (
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). - Custom Shell: Enter an absolute path to a custom shell executable in Settings.
Related Pages
- Work with AI Agents: Switch terminal panes to interactive AI coding assistants.
- Workflows: Automate multi-step command sequences across worktrees.
- Settings Reference: Configure default shell executables and profiles.