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
- Setup, checks, and pull requests: .github/CONTRIBUTING.md.
- Documentation, user-facing text, comments, and commits: .github/WRITING.md.
- Support scripts: what may stay, their language, layout and checks: .github/SCRIPTS.md.
- Planned contracts and package boundaries: docs/design.md.
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, orfdfor searches andjqfor 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.