Core LibraryunreleasedGuides

Choose documentation 2

latest

Current version

latest
English

Unreleased libtmux has not been released. Its API may change during development. This site's structure and URLs may change too.

Choose the packages your application needs

This repository is one Dune project with separately installable opam packages. Each package has an authored manifest. Internal dependencies require the same package version, so a client or workspace adapter uses its matching core.

The core and pure workspace library have no third-party runtime dependencies. They use OCaml 5.5.2’s standard library, including Iarray, Seq, List and result. Test and documentation tools remain development dependencies.

PackageRoleRuntime dependencies
libtmuxImmutable graph, typed queries, commands and observation valuesOCaml standard library
libtmux-workspacePure configuration validation, plans and execution journalslibtmux
libtmux-unixBlocking Linux transport and workspace executorCore, workspace, standard Unix, private Linux bindings
libtmux-eioConcurrent transport and workspace executorCore, workspace, blocking transport, Eio
libtmux-jsonValidated query and workspace JSON codecsCore, workspace, Yojson
libtmux-workspace-cliInstalled tmux-workspace commandThe libraries above, Eio’s entry point and Cmdliner

Pure workspace planning depends on captured observations and an explicit tmux version. It does not start a scheduler, read files or contact tmux. Execution uses the adapter supplied by Libtmux_unix.Workspace or Libtmux_eio.Workspace. The CLI combines file loading, JSON decoding, planning and the Eio executor.

An application querying a captured graph needs only libtmux. A blocking script chooses libtmux-unix; an Eio application chooses libtmux-eio and owns its scheduler and switch. Add libtmux-json for external query documents or JSON workspaces. These integrations do not add dependencies to the pure core.

See installation, workspace examples and public interfaces. The source-install walkthrough installs all current packages; a consuming Dune project lists only the libraries it uses.

Scope policy

Prefer standard-library types and ordinary functions. Keep transport, JSON and CLI dependencies at their integration boundaries. Use the current stable OCaml compiler in 2026; older-compiler shims and compatibility matrices are excluded.

MCP integration is outside this port’s scope. The project does not ship or vendor an MCP SDK or server. Native OCaml APIs and the workspace CLI are its automation interfaces; MCP discovery and conformance are excluded from the project’s adoption and completion criteria.

Esc

Type to search.

Reference previewOpen reference