Workspaces & Terminal

Git workflow panel

Side-by-side or inline diff viewer, commit history, fetch/pull/push sync, one-click Ask Agent recovery, and isolated Git worktrees.

The Git panel is a first-class tab type right next to your terminal and agent sessions. Inspect working-tree changes, browse commit history, sync with remotes, and hand sync errors directly to your preferred AI agent in one click.

Open the panel

Add a new tab and choose Diff, or toggle it on the active tab:

Action macOS Linux / Windows
Toggle Git Diff panel ⌘⇧F Ctrl+Shift+F

The panel binds automatically to the current tab's working directory (including when the tab runs inside an isolated Git worktree).

The diff viewer

  • Side-by-side or inline — toggle between split and unified diff views in the panel header.
  • Syntax highlighting — automatic language detection across source files.
  • Inline hunk expansion — click context lines around a hunk to reveal surrounding code.
  • File list — jump quickly between modified files.

Changes refresh automatically every 10 seconds while visible and immediately after external saves.

Commit history

Switch to the History tab to browse paginated commits on the current branch (hash, subject, author, timestamp) and click any commit to inspect its diff.

Sync controls

The header bar shows the current branch, upstream tracking branch, and ahead/behind counts with three actions:

  • Fetch — runs automatically every 3 minutes in the background, plus on demand.
  • Pull — fast-forward pull when safe.
  • Push — pushes commits to the configured upstream.
When sync won't go
Sync intentionally refuses unsafe actions — **No upstream**, **Auth failure**, **Diverged branches**, **Local uncommitted changes**, or **Rejected non-fast-forward** — and explains why.

One-click Ask Agent

When a sync error occurs, the error toast offers an Ask Agent button. Clicking it forwards the exact error context, git output, and branch state into an active agent session (configurable between Claude, Codex, and Gemini (agy) under Settings → Agent → Git Help Agent).

Isolated Git worktrees

Need to run multiple tasks in parallel on the same repository without file conflicts? Use Launch Session… to spin up a dedicated Git worktree per tab under ~/.purplemux/worktrees/, complete with branch suggestion and dirty-checked cleanup when closing the tab. See Git worktrees & launch dialog.

What's next