Skip to main content

OPTMUX

OPTMUX logo

Optimal, opinionated, batteries-included TMUX that's neat and easy for any project.

Run optmux . in any project and get its own, fully loaded TMUX: plugins installed, mouse support everywhere, and keyboard shortcuts for review tools at your fingertips while AI coding tools like Claude Code do the bulk of code generation and editing. Run dozens of tasks side by side, each in its own git worktree and window. A bell flags the one that needs you, a key takes you there, and the diff, lazygit, a shell, and your editor are right beside the work: hands-on when a task needs you, hands-off when it doesn't. Learn the OPTMUX Way to keep a real sense of the code, with your eyes and hands on the key files, even at the incredible pace AI coding tools set.

What you can do

Press You get
C-M-c A new task: a fresh git worktree, a new window, your coding tool running in it (wtcode)
C-M-g lazygit beside your coding tool, on its uncommitted files or its branch's commits (review)
C-M-d The PR diff against the default branch, in delta: scroll with the mouse, click a line number to edit it (review)
C-M-f Find: files, live grep, tags, and language-server symbols in one picker, opened in your editor at the line (Find)
C-M-x eXtract: pick a command, path, URL, or hash off the screen and type or copy it (eXtract)
C-M-s A shell in the same workdir
C-M-w The branch's PR (or the repo) on GitHub
C-M-z Zoom the pane out and back in; most panes start zoomed
C-M-o Cycle thru panes in the window, w/o losing zoom
C-t n/p Jump to the next window that rang the bell
C-M-h The tips screen: every key, plugin, and setting in one place
optmux pick Jump to any project you've run OPTMUX in, running or not (pick)
optmux warp A focused session with only one worktree's windows (warp)

Two kinds of keys above. The C-M- shortcuts above need no prefix: hold Ctrl+Alt, or Control+Option on a Mac. Everything else goes through OPTMUX's TMUX prefix, C-t (Ctrl+T), not TMUX's usual C-b, which stays free for readline: press it, let go, then the key.

And out of the box:

  • Every project is isolated: its own TMUX server, config, plugins, and saved layouts, so nothing leaks between projects.
  • Mouse everywhere: click panes, drag borders, scroll in TMUX, less, and lazygit.
  • Copy reaches your clipboard, even over SSH (OSC 52).
  • Your dotfiles stay yours: OPTMUX's git, delta, and lazygit settings apply only to what its shortcuts start.

Get started

brew install netj/tap/optmux
cd myproject
optmux .

The formula brings tmux, wtcode, lazygit, delta, a recent less, fzf, universal-ctags, and gh along. The first attach installs the plugins and shows the tips; press C-M-c to start your first task.

No Homebrew? uvx optmux . runs it straight from PyPI (bring your own tmux and tools).

Where to next

Using OPTMUX is the guide to the features above, and the reference for the optmux command. OPTMUX compiles the YAML you give it into a generated directory next to it, so there is nothing to maintain by hand.

Review changes across many tasks with ease: lazygit, the branch diff, and the PR open in the worktree you're in; diffs render in delta, and line numbers and commit hashes are links that open your editor or GitHub.

Extract what you see to repeat or copy it. A command in the tool's output, a path in an error, a URL: pick it from the screen and type it into a pane or copy it to your clipboard, locally or over SSH. It also covers which terminals support copying over SSH.

Find and open files, lines, tags, and symbols in your editor, beside your coding tool, ranked together and remembering where you left off.

Pick among many projects with optmux pick, the one command to remember on a host with several OPTMUX projects, and bring sessions back after a restart with tmux-resurrect.

Focus on one workdir with optmux warp: a session that links in only the windows of a single worktree, so an IDE or another terminal such as cmux can share a task's window.

Configure shortcuts, menus, plugins, and tool settings in the YAML under +optmux:, for one project or for all of them in ~/.optmux.yaml:

+optmux:
  +shortcuts:
    C-M-b: gh browse .
    C-M-t:
      +send_keys: pytest -x
  +env:
    EDITOR: nvim

transform.optmux.yaml shows what OPTMUX's plugins and tools can transform into: delete the # in front of the ones you like, or try the file as is with ./transform.optmux.yaml. A project's YAML is also a tmuxp config, if you'd rather start every session with the same windows and panes.

Something off? See troubleshooting. Hacking on OPTMUX itself? See developing OPTMUX.

License

MIT

Metadata

Release files for optmux 0.18.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for optmux 0.18.0
File Size Uploaded Provenance Actions
optmux-0.18.0.tar.gz 86.6 kB Without provenance Details for optmux-0.18.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for optmux 0.18.0
File Interpreter ABI Platform Actions
optmux-0.18.0-py3-none-any.whl Python 3 none any Details for optmux-0.18.0-py3-none-any.whl

Total release size: 179.7 kB

Release files / optmux-0.18.0.tar.gz

Download URL optmux-0.18.0.tar.gz
Size 86.6 kB
Tags Source
SHA-256 checksum
How to use checksums
504b523f0f6f372793b8365890a6c9b23302f24410c933db1d8132e1f3b94629
BLAKE2b-256 checksum
How to use checksums
9ae47ae0a827bb0c31ab97935dd689366f733ec4c8fd10321042ef9b38bb5d21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / optmux-0.18.0-py3-none-any.whl

Download URL optmux-0.18.0-py3-none-any.whl
Size 93.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8b44ea80c06ce4f1f45397e9d2f2e2f0ec085fd903b42eb97dab4b3ce6c3dc2
BLAKE2b-256 checksum
How to use checksums
227fa84eb27aa1526c26a8892be925372a91b6a109cac502f71f375c1745505c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for optmux 0.18.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.18.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page