# Tabs

<PanelBar />

A tab is a view inside a pane: an agent, a terminal, a browser, a file you opened, or a file's diff. Each pane can hold any number of tabs. Switch between them with <KeyCombo keys={["⌘", "A"]} /> and <KeyCombo keys={["⌘", "D"]} />.

Next to the tabs is the right-hand panel. Toggle it with <KeyCombo keys={["⌘", "⇧", "B"]} />. It has three tabs of its own:

- **Details**: what's changed, the branch, git actions, and the history graph
- **Files**: the pane's file tree
- **Changes**: every file the agent touched. Click one to open its diff as a tab.

There's no fixed limit on how many terminals or agents you run in one pane. Each terminal and agent tab is its own process, so your machine's RAM and CPU are the real cap, not Pane. Rule of thumb: another tab for more work on the same feature, another pane (its own worktree and branch, see [Panes and Worktrees](/docs/panes-and-worktrees)) for a new feature.

## Split tab groups

Arrange tabs side by side within a pane, VS Code style. Any tab can join a split: agents, terminals, browsers, files and diffs. Run two agents next to each other, or keep a diff open beside the agent writing the code.

### Drag and drop

Grab a tab and drag it over the tab area:

- Drop on the **left, right, top, or bottom edge** of a group to split in that direction. The highlighted band shows where the new group goes.
- Drop on the **center** of another group to move the tab into it.
- Drop **between tabs** in a strip to reorder. The indicator line shows exactly where the tab lands, including after the last tab.

Drag the divider between groups to resize them.

### Keyboard

| Action | macOS | Windows / Linux |
|--------|-------|-----------------|
| Split right | ⌘\ | Ctrl+\ |
| Split down | ⌘⇧\ | Ctrl+Shift+\ |
| Move focus between groups | ⌘⌥ Arrow keys | Ctrl+Alt+Arrow keys |
| Zoom the focused group | ⌘⇧Z | Ctrl+Shift+Z |

Zoom temporarily expands the focused group to the full tab area (tmux prefix+z, same idea). Press it again to restore the layout; splitting or moving focus to another group also exits zoom.

Existing tab shortcuts act on the focused group: <KeyCombo keys={["⌘", "A"]} /> and <KeyCombo keys={["⌘", "D"]} /> cycle its tabs, <KeyCombo keys={["⌘", "⇧", "1-9"]} /> jumps to one, <KeyCombo keys={["⌘", "W"]} /> closes the active one.

The layout (splits, sizes, active tab per group, focused group) persists per pane across restarts. The pinned terminal at the bottom of each pane stays where it is; it never joins a split.

## Changes

<DiffPreview />

Press <KeyCombo keys={["⌘", "⇧", "B"]} /> and open **Changes** in the side panel. It lists every file changed in the pane's worktree, with lines added and removed, and refreshes whenever the agent writes to disk. Click a file to open its diff as a tab, split or unified. You can also pick a commit range to see what changed across several commits.

## Files

**Files** in the same side panel is the worktree's file tree, with search, rename, move and drag and drop. Click a file to open it in an editor tab: Monaco, the editor behind VS Code, with syntax highlighting and auto-save. Markdown, Mermaid, notebooks, images and PDFs open as previews. It's for quick edits and checks, not a full IDE.

## Browser

In-app webview for previewing your running app. No need to switch windows — see your dev server output right next to the terminal.

## Terminals

<TerminalPreview />

Your terminals and agent sessions, each a real terminal. Run any CLI agent: Claude Code, Codex, Cursor Agent, Aider, Goose, or any custom command. Each terminal keeps its last 2,500 lines on screen, and Pane saves the output so it's still there after you restart.

Terminals render inline images from agents that produce them. Sixel, iTerm2, and kitty graphics protocols are all supported. Charts, diagrams, and screenshots display directly in the terminal output.

<Toggle title="Tab keyboard shortcuts">
| Tab | macOS | Windows / Linux |
|-----|-------|-----------------|
| Terminal | ⌘⌥1 | Ctrl+Alt+1 |
| Files | ⌘⌥2 | Ctrl+Alt+2 |
| Claude Code | ⌘⌥3 | Ctrl+Alt+3 |
| Codex | ⌘⌥4 | Ctrl+Alt+4 |
| Cursor Agent | ⌘⌥5 | Ctrl+Alt+5 |
</Toggle>
