docs DocsCapabilitiesGitHub
Integrations / Terminal multiplexers
Integrations / Terminal multiplexers

Terminal multiplexers

aide can add itself to the terminal multiplexer you already use, so that the session in a pane can be inspected and changed without leaving the multiplexer. One command installs each integration:

aide mux <name> install

<name> is one of rex, herdr, tmux, wezterm, zellij or kitty. Each install prints the files it wrote. What the integration acts on is the session running in the pane; see Sessions.

Rex

aide mux rex install --wire

The command writes ~/.config/rex/aide.lua and creates the key aide uses to confirm a restart requested from Rex. --wire also adds the line that loads the module to ~/.config/rex/init.lua. Without --wire, the command prints the lines for you to add.

Rex then has these Command Palette actions, each acting on the session in the current pane:

A change asks for a scope (this session, the project, or global config) and a confirmation, then restarts the agent in place.

Rex gets these actions with no keys bound; see Keys to bind some. The install stops if a binding collides with a Rex built-in or with a binding in your init.lua; pass --force to install anyway. The fields are under Multiplexer Integrations.

The install also registers aide as a trusted resume source in Rex.

Keys

No keys are bound by default on any multiplexer, so an install never collides with your shortcuts. An install with no keys configured writes the integration files and binds nothing.

To bind a key, set mux.<name>.prefix and mux.<name>.keys in ~/.config/aide/config.yaml, then run the install again:

mux:
  tmux:
    prefix: "none"
    keys:
      menu: "alt+a"

menu shows the aide session of the current pane, or opens aide config when the pane has no session. The other actions are capabilities, sandbox, gateway, diagnostics, reload and config. With prefix: "none" each key must carry its own modifier, such as alt+a. Zellij takes single keys only, so it needs prefix: "none". The fields are under Multiplexer Integrations.

herdr

aide mux herdr install

This adds a marked block to ~/.config/herdr/config.toml (or the file named by HERDR_CONFIG_PATH). Each configured key opens a popup.

tmux, WezTerm, Zellij and kitty

aide mux tmux install
aide mux wezterm install
aide mux zellij install
aide mux kitty install

Check or remove an integration

aide mux tmux status
aide mux tmux remove

status says whether the integration is installed and lists its files. remove deletes the files aide wrote and takes its marked block out of your config, leaving the rest of the file as it was. Both work for every multiplexer. See aide mux.

Set mux.<name>.enabled: false in config.yaml to make install skip a multiplexer unless --force is passed.

The agent and the multiplexer

These integrations run outside the sandbox, as you. The agent inside the sandbox cannot talk to the multiplexer: a default guard blocks the multiplexer’s control sockets and variables. To let an agent drive panes on purpose, start it with the matching capability, for example aide --with tmux. See Sandbox and Capabilities.