Command reference
kersist COMMAND [NAME]
Persistent tmux sessions via system-level systemd.
create NAME
Create a new persistent tmux session in the current directory and attach to it. KERSIST records the session layout and the command running in each pane.
kersist create dev
attach NAME
Adopt an existing tmux session: make it persistent without touching it. Layout and running commands are recorded as the saved configuration.
kersist attach dev
ls
List all KERSIST-managed sessions and any unmanaged tmux sessions.
kersist ls
start NAME
Start (or recreate) a managed session from its saved configuration. Use after stop, or after dropping from the last pane if you did not exit the shell deliberately.
kersist start dev
stop NAME
Stop a managed session but keep its configuration. Deliberately stopped sessions stay stopped across reboots.
kersist stop dev
restart NAME
Stop and recreate a managed session from its saved configuration.
kersist restart dev
drop NAME
Stop managing a session. The tmux session keeps running but KERSIST will no longer restart it or track its lifecycle.
kersist drop dev
status NAME
Show the live lifecycle state of one managed session: kernel state, systemd unit state, boot persistence, tmux session state, attached clients, and the recorded command.
kersist status dev
Name: dev
State: running
Systemd: active
Boot: yes
TMUX: running
Attached: no
Command: /bin/bash /usr/local/bin/kersist-web
exec NAME COMMAND...
Run a command inside a managed tmux session without attaching to it. This is not attach: attach connects your terminal to the session; exec runs one command and reports its exit status. If the session is not running, KERSIST returns an error rather than starting a new one. Arguments are passed exactly as given, with each argument preserved individually.
kersist exec dev pwd
kersist exec dev python3 /srv/app/worker.py
Version & help
kersist --version
kersist --help