Native Multiplexing

VerifiedSafe

Native splits and panels for terminals, replacing tmux. Keybindings, session persistence, vi copy mode.

Sby Skills Guide Bot
DevelopmentAdvanced
7/22/2026
Claude CodeCursorCodex
#terminal-multiplexer#keybindings#session-persistence#pane-layout#tmux-compat

Recommended for

Automated summary

Describes nyxterm's native multiplexing module (windows, splits, panes, vi copy mode, session persistence) that replaces tmux, including its default keybinds and pane-tree model.

Strengths

  • Gives the full default keybind table (Ctrl+Space prefix, splits, Ctrl+Shift+h/j/k/l navigation, zoom, detach) plus the hard rule that no binding may shadow xterm escape sequences
  • Specifies the binary PaneTree model precisely (vertical/horizontal Split with f32 ratio, Leaf typed as PTY/Webview/mpv) and keeps grid logic content-type agnostic
  • Details session persistence: 60 s autosave, Engram backend with SQLite fallback, named topic keys, and an explicit list of what must not be persisted
  • Documents the vi copy-mode state machine (motions, visual selections, yank via wl-copy/xclip/OSC 52) and the deliberate divergences from tmux

Limitations

  • A deeply internal skill tied to the nyxterm codebase: it assumes PaneTree, Engram and the Tauri command surface already exist
  • Some referenced features (Webview and mpv leaves, plugin API) are marked Phase 3 or epic #21 and are not yet implemented
  • Does not cover tmux control mode or external tmux-cli style scripting, which are intentionally dropped
When to use it

Load it when working on the multiplex module, keybinds, session persistence, or the pane grid logic in nyxterm.

When not to use it

Don't use it to configure real tmux or another terminal emulator, or for any task unrelated to nyxterm multiplexing.

Security analysis

Safe
Quality score84/100

This is a design/spec document for a native multiplexing feature (tmux-like splits, copy mode, session persistence). It contains no shell commands to execute, no curl|sh, no destructive operations, and no credential exfiltration. Clipboard access via wl-copy/xclip/OSC 52 and persistence to Engram/SQLite are ordinary terminal features, and the doc even explicitly forbids persisting secrets in scrollback. No declared tools means no meaningful execution surface for an agent to abuse.

No concerns found

How this analysis is made

Examples

Add a keybind
Add a `prefix !` keybind that breaks the current pane out into its own window, following the multiplexing skill's keybind defaults and the rule that no binding may shadow xterm escape sequences. Validate it at config-load.
Extend session persistence
Extend the session autosave so it also records each pane's title, using the nyxterm/session/<session-id>/layout Engram topic key described in the multiplexing skill, and make sure secrets, pty fds and in-flight AI requests stay out of the snapshot.
Debug copy mode
In the multiplex module's vi copy mode, `y` isn't reaching the system clipboard on Wayland. Walk through the yank path (wl-copy → xclip → OSC 52 fallback) from the multiplexing skill and tell me where it breaks.

name: multiplexing description: Native windows/splits/panes (absorb tmux). Load when touching multiplex module, keybinds, or session persistence. triggers:

  • tmux
  • multiplex
  • split
  • pane
  • "copy mode"
  • session
  • "Ctrl+Space"
  • workspace

Multiplexing

Goal: absorb tmux into the core. Users on this stack today run Ghostty → tmux → shell. We collapse that to nyxterm → shell.

Keybind defaults

  • Prefix: Ctrl+Space. Configurable. (Matches the user's tmux config.)
  • Splits: prefix | = vertical, prefix - = horizontal. (Match tmux convention.)
  • Pane nav: Ctrl+Shift+h/j/k/l (no prefix needed, like vim-tmux-navigator).
  • Pane resize: prefix H/J/K/L.
  • Zoom pane: prefix z.
  • New window: prefix c.
  • Window nav: prefix 0..9, prefix n/p.
  • Session picker: prefix s.
  • Kill pane: prefix x (with confirm).
  • Detach: prefix d.
  • Copy mode: prefix [. Vi keys. v = visual, y = yank to system clipboard (via wl-copy or platform equivalent).

Critical: NO keybinds may shadow xterm escape sequences (e.g., Ctrl+M is Enter, can't be rebound). Validate at config-load.

Session persistence

  • Autosave layout (tree of panes + cwd per pane + scrollback head per pane) every 60 s.
  • Save on graceful shutdown.
  • Persistence backend: Engram (preferred), local SQLite fallback.
  • Don't persist: secrets in scrollback, pty fds, in-flight AI requests.

Reference: tmux-resurrect + tmux-continuum behavior, reimplemented natively.

Pane grid model

Window
└── PaneTree (binary tree)
    ├── Split (vertical | horizontal, ratio: f32)
    │   ├── PaneTree (left/top)
    │   └── PaneTree (right/bottom)
    └── Leaf (Pane)
        ├── PtySession id
        ├── cwd
        ├── title
        └── ...

Leaf panes can be:

  • PTY (default, terminal)
  • Webview (Phase 3)
  • mpv (Phase 3)

The grid logic is content-type agnostic. Only the leaf knows what it is.

Vi copy-mode

State machine:

  • prefix [ enters copy mode → buffer cursor at last line.
  • Vi motion: h/j/k/l, w/b/e, 0/$, gg/G, /? search.
  • v = char-visual, V = line-visual, Ctrl+v = block-visual.
  • y = yank to system clipboard (wl-clipboard on Wayland, xclip on X11, OSC 52 fallback).
  • q or Esc = exit copy mode.

Tab title and statusline

  • Tab title = window name OR auto-renamed from active pane's cwd (basename).
  • Statusline (per window): branch (cached, see git-status epic), pane index, active count.
  • Sessions list: shown in prefix s picker (fuzzy-filterable).

Persistence-on-Engram topic keys

  • nyxterm/session/<session-id>/layout — pane tree snapshot
  • nyxterm/session/<session-id>/cwd-map — pane → cwd
  • nyxterm/session/<session-id>/last-active — timestamp

Sessions are user-named (prefix S to rename) and survive restarts.

What we DON'T copy from tmux

  • The control mode / tmux-cli external scripting → use the Tauri command surface directly.
  • Plugin manager (TPM) → plugins live in nyxterm's plugin API (epic #21), not tmux.
  • Status-bar plugin ecosystem → native modules instead.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/native-multiplexing-mrwakg1t/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/native-multiplexing-mrwakg1t' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/native-multiplexing-mrwakg1t/download' --output '.skill-downloads/native-multiplexing-mrwakg1t/SKILL.md.part' && mv '.skill-downloads/native-multiplexing-mrwakg1t/SKILL.md.part' '.skill-downloads/native-multiplexing-mrwakg1t/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/native-multiplexing-mrwakg1t/SKILL.md' && test -s '.skill-downloads/native-multiplexing-mrwakg1t/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/multiplexing' && cp -R '.skill-downloads/native-multiplexing-mrwakg1t' '.claude/skills/multiplexing'

Cursor
test -f '.skill-downloads/native-multiplexing-mrwakg1t/SKILL.md' && test -s '.skill-downloads/native-multiplexing-mrwakg1t/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/multiplexing' && cp -R '.skill-downloads/native-multiplexing-mrwakg1t' '.cursor/skills/multiplexing'

Codex
test -f '.skill-downloads/native-multiplexing-mrwakg1t/SKILL.md' && test -s '.skill-downloads/native-multiplexing-mrwakg1t/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/multiplexing' && cp -R '.skill-downloads/native-multiplexing-mrwakg1t' '.agents/skills/multiplexing'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/native-multiplexing-mrwakg1t'

openskills read 'native-multiplexing-mrwakg1t'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/native-multiplexing-mrwakg1t/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills