Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Runtimes

Runtimes determine where and how mux executes agent workspaces.

RuntimeIsolationBest For
LocalAll workspaces share the project directoryQuick edits to your working copy
WorktreeEach workspace gets its own directoryRunning multiple agents in parallel
SSHRemote execution over SSHSecurity, performance, heavy parallelism

Choosing a Runtime

When creating a workspace, select the runtime from the dropdown in the workspace creation UI.

Init Hooks

Init hooks can detect the runtime type via the MUX_RUNTIME environment variable:

  • local — Local runtime
  • worktree — Worktree runtime
  • ssh — SSH runtime

This lets your init hook adapt behavior, e.g., skip worktree-specific setup when running in local mode.