Load a Python workspace
tmuxp 1.74.0 · Source
Install tmuxp as a Python tool, with Python 3.10 or newer and tmux 3.2 or newer available on the host:
$ uv tool install tmuxpThe tool environment owns tmuxp’s dependencies. Keep a separately installed MCP application in its own environment if its libtmux requirement differs.
Describe the workspaceLink to section
Save this upstream example as workspace.yaml:
session_name: 2-pane-verticalwindows: - window_name: my test window panes: - echo hello - echo helloLoad it detached on a dedicated socket, without changing your attached session:
$ tmuxp load \ -L workspace-guide \ -d \ workspace.yamlThe -L value selects the tmux server and -d prevents attachment. Reserve
that socket name for this example. Omit -d when you want tmuxp to attach or
offer its normal client-switching flow.
Inspect the created session:
$ tmux -L workspace-guide list-sessionsWhen finished, remove only the example session:
$ tmux -L workspace-guide kill-session -t '=2-pane-vertical'Saved workspaces and exportLink to section
tmuxp load accepts file paths and names resolved through its configuration
search. Use an explicit path while learning the format so the loaded file is
unambiguous.
Use tmuxp freeze for a session you want to capture as a starting
configuration.
It offers YAML or JSON output. Inspect the generated command lists and paths
before using the export later.
The upstream load reference covers append, session-name, socket, and attachment options. The freeze reference covers output choices.