This is the Elixir libtmux implementation. Read mix.exs, the current tree and implementation contracts before editing. The core implements immutable indexed capture/filtering, bounded Linux one-shot execution, retained and managed control operations, scoped connections and a small domain action surface. Query/Tracker and planners remain planned.

Which policy applies

Each guide is the single home for its subject. CLAUDE.md links here.

Change discipline

  • Check the branch and working tree. Preserve unrelated changes.
  • Use rg, ag, or fd for searches and jq for JSON.
  • Reuse existing helpers before adding abstractions. Follow native Elixir conventions; sibling ports supply behavioral references, not syntax.
  • Keep core runtime dependencies at zero.
  • Keep observed values immutable and I/O explicit. Distinguish command acknowledgement, operation completion, and cancellation certainty.
  • Run the relevant checks and report their scope, whole-command duration, and failures or skips. A passing subset does not establish support.

Shared resources

Future tmux tests and probes must use unique, owned sockets and temporary directories, with inherited TMUX and TMUX_PANE cleared. Never use or stop the default server. Clean up only resources owned by the run and verify that owned processes exit.