Ghostty-based macOS terminal with vertical tabs and notifications for AI coding agents https://cmux.com
Find a file
Pratik Pakhale b9c656b90c
feat: cmux.json for custom commands (#2011)
* Pre-launch app for browser UI test on headless CI runners

XCUIApplication.launch() blocks ~60s then fails on headless WarpBuild
runners because foreground activation requires a GUI login session.

Apply the same pre-launch strategy used for the display resolution test:
- CI shell launches the app with env vars before running xcodebuild
- Test detects pre-launched app via manifest, uses activate() instead of
  launch() to avoid killing and relaunching the app
- Falls back to clicking the window for focus via accessibility framework

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Revert "Pre-launch app for browser UI test on headless CI runners"

This reverts commit a540e2fd99aaa1395b91a8d50caa797cdd7551b8.

* feat: cmux.json for custom commands

* tests: add cmux  json tests

* fix: pr review feedback: validation, translations, input handling, and palette improvements

  - Fix Danish ("Overfladedef inition") and Norwegian ("rotmapp") translation typos
  - Add empty-string check for baseCwd fallback in command palette handlers
  - Coalesce \r\n into single Return keypress in sendInput
  - Redact command text from timeout log to prevent secret leakage
  - Add decode-time validation: reject hybrid/empty commands, ambiguous layout
    nodes, wrong split children count, and empty pane surfaces
  - Namespace custom command IDs with "cmux.config.command." prefix
  - Forward command description to palette subtitle when available
  - Update tests for new validation rules and ID prefix

* fix: address PR review feedback — per-window config isolation, blank validation, ancestor walk,
  palette sanitization

* fix: fallback to current dir cmux.json watching if no any cmux.json found in full acesor walk

* ci: trigger CI for fork PR

* Add directory trust for cmux.json command confirmation

The confirm dialog now shows the actual command text and has an "Always
trust commands from this folder" checkbox. When checked, future confirm
commands from that directory skip the dialog.

Trust is scoped to the git repo root if the cmux.json is inside a repo,
so trusting once covers all subdirectories. Non-git directories are
trusted by exact path. Global config is always trusted.

Trusted directories are persisted in ~/Library/Application Support/cmux/
trusted-directories.json.

* Add trusted directories section to Settings

Shows all trusted directories with per-directory revoke buttons and a
Clear All option. Placed in a "Custom Commands" section between
Automation and Browser in Settings.

* Replace trusted directories list with editable textarea

One path per line, with a Save button that activates on changes.
Users can add, remove, or edit paths directly.

* Auto-save trusted directories on edit, remove Save button

Matches the behavior of other textarea settings (browser host
whitelist, external URL patterns) which auto-save via @AppStorage.

* Sanitize command text in confirm dialog against BiDi attacks

Strip zero-width and BiDi override characters from the command preview
so the dialog shows exactly what will be executed.

---------

Co-authored-by: austinpower1258 <austinwang115@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Lawrence Chen <lawrencecchen@users.noreply.github.com>
2026-03-24 22:28:46 -07:00
.claude/commands Add contributor credits to release skills (#319) 2026-02-22 16:18:44 -08:00
.github Remove fork PR guards from CI workflows (#2092) 2026-03-24 21:08:06 -07:00
AppIcon.icon Regenerate app icons from Icon Composer (#1005) 2026-03-06 04:30:54 -08:00
Assets.xcassets Regenerate app icons from Icon Composer (#1005) 2026-03-06 04:30:54 -08:00
CLI Add Codex CLI hooks integration (#2103) 2026-03-24 22:27:44 -07:00
cmuxTests feat: cmux.json for custom commands (#2011) 2026-03-24 22:28:46 -07:00
cmuxUITests Revert Sparkle manual update dialog flow from #1908 (#2090) 2026-03-24 20:44:54 -07:00
daemon/remote Fix SSH remote CLI and loopback proxy follow-ups 2026-03-17 01:58:50 -07:00
design Regenerate app icons from Icon Composer (#1005) 2026-03-06 04:30:54 -08:00
docs docs: remove outdated Claude Code hooks section from notifications (#2053) 2026-03-24 20:54:51 -07:00
ghostty@bc9be90a21 Merge origin/main into feat-cmux-themes-command 2026-03-13 17:22:12 -07:00
GhosttyTabs.xcodeproj feat: cmux.json for custom commands (#2011) 2026-03-24 22:28:46 -07:00
homebrew-cmux@a5f372ecfa Fix CI: remove broken tests for deleted function, fix review comments 2026-03-15 21:08:02 -07:00
node_modules Update app and tooling 2026-01-29 17:36:26 -08:00
Resources feat: cmux.json for custom commands (#2011) 2026-03-24 22:28:46 -07:00
scripts reload.sh: default to build-only, add --launch flag (#2097) 2026-03-24 21:45:48 -07:00
skills Document browser navigation verification loop (#974) 2026-03-05 20:57:18 -08:00
Sources feat: cmux.json for custom commands (#2011) 2026-03-24 22:28:46 -07:00
tests Remove fork PR guards from CI workflows (#2092) 2026-03-24 21:08:06 -07:00
tests_v2 Add regressions for v1 panel focus preservation 2026-03-13 21:55:45 -07:00
vendor Customizable number shortcuts (#1951) 2026-03-22 14:54:54 -07:00
web feat: cmux.json for custom commands (#2011) 2026-03-24 22:28:46 -07:00
.gitignore Add homepage wall of love, FAQ, blog post, footer redesign, and SEO improvements 2026-02-21 06:16:38 -08:00
.gitkeep chore: update release skill metadata 2026-02-21 04:21:11 -08:00
.gitmodules Fix frozen terminals after split churn (#12) 2026-02-13 16:45:31 -08:00
.vercelignore Add Vercel ignore 2026-01-29 17:50:35 -08:00
AGENTS.md agents 2026-01-22 03:18:02 -08:00
bun.lock Update app and tooling 2026-01-29 17:36:26 -08:00
CHANGELOG.md Add configurable sidebar tint color with light/dark mode support (#1465) 2026-03-15 15:48:57 -07:00
CLAUDE.md reload.sh: default to build-only, add --launch flag (#2097) 2026-03-24 21:45:48 -07:00
cmux-Bridging-Header.h Rename to cmux and add About panel 2026-01-26 03:05:03 -08:00
cmux.entitlements fix: remove restricted web-browser entitlement (#1727) 2026-03-18 02:32:58 -07:00
CONTRIBUTING.md reload.sh: default to build-only, add --launch flag (#2097) 2026-03-24 21:45:48 -07:00
ghostty.h Update ghostty to v1.3.0 (#1142) 2026-03-09 21:32:54 -07:00
LICENSE Add dual licensing (AGPL + commercial) (#2021) 2026-03-23 18:53:39 -07:00
package.json Add nightly update channel workflow and adopt AGPL licensing 2026-02-14 02:43:03 -08:00
Package.resolved Initial commit: macOS terminal app with vertical tabs using libghostty 2026-01-22 01:16:24 -08:00
Package.swift Rename to cmux and add About panel 2026-01-26 03:05:03 -08:00
PROJECTS.md Reversion all 1.x.x to 0.x.x for pre-launch versioning 2026-02-17 18:31:05 -08:00
README.ar.md Add dual licensing (AGPL + commercial) (#2021) 2026-03-23 18:53:39 -07:00
README.bs.md Add dual licensing (AGPL + commercial) (#2021) 2026-03-23 18:53:39 -07:00
README.da.md Add dual licensing (AGPL + commercial) (#2021) 2026-03-23 18:53:39 -07:00
README.de.md Add dual licensing (AGPL + commercial) (#2021) 2026-03-23 18:53:39 -07:00
README.es.md Add dual licensing (AGPL + commercial) (#2021) 2026-03-23 18:53:39 -07:00
README.fr.md Add dual licensing (AGPL + commercial) (#2021) 2026-03-23 18:53:39 -07:00
README.it.md Add dual licensing (AGPL + commercial) (#2021) 2026-03-23 18:53:39 -07:00
README.ja.md Add dual licensing (AGPL + commercial) (#2021) 2026-03-23 18:53:39 -07:00
README.km.md Add dual licensing (AGPL + commercial) (#2021) 2026-03-23 18:53:39 -07:00
README.ko.md Add dual licensing (AGPL + commercial) (#2021) 2026-03-23 18:53:39 -07:00
README.md Add dual licensing (AGPL + commercial) (#2021) 2026-03-23 18:53:39 -07:00
README.no.md Add dual licensing (AGPL + commercial) (#2021) 2026-03-23 18:53:39 -07:00
README.pl.md Add dual licensing (AGPL + commercial) (#2021) 2026-03-23 18:53:39 -07:00
README.pt-BR.md Add dual licensing (AGPL + commercial) (#2021) 2026-03-23 18:53:39 -07:00
README.ru.md Add dual licensing (AGPL + commercial) (#2021) 2026-03-23 18:53:39 -07:00
README.th.md Add dual licensing (AGPL + commercial) (#2021) 2026-03-23 18:53:39 -07:00
README.tr.md Add dual licensing (AGPL + commercial) (#2021) 2026-03-23 18:53:39 -07:00
README.vi.md Add dual licensing (AGPL + commercial) (#2021) 2026-03-23 18:53:39 -07:00
README.zh-CN.md Add dual licensing (AGPL + commercial) (#2021) 2026-03-23 18:53:39 -07:00
README.zh-TW.md Add dual licensing (AGPL + commercial) (#2021) 2026-03-23 18:53:39 -07:00
THIRD_PARTY_LICENSES.md add third-party licenses and update bonsplit submodule 2026-02-14 20:33:40 -08:00
TODO.md Reapply "Merge pull request #239 from manaflow-ai/issue-151-ssh-remote-port-proxying" 2026-03-12 15:54:26 -07:00

cmux

A Ghostty-based macOS terminal with vertical tabs and notifications for AI coding agents

Download cmux for macOS

English | 日本語 | Tiếng Việt | 简体中文 | 繁體中文 | 한국어 | Deutsch | Español | Français | Italiano | Dansk | Polski | Русский | Bosanski | العربية | Norsk | Português (Brasil) | ไทย | Türkçe | ភាសាខ្មែរ

X / Twitter Discord

cmux screenshot

▶ Demo video · The Zen of cmux

Features

Notification rings

Panes get a blue ring and tabs light up when coding agents need your attention
Notification rings

Notification panel

See all pending notifications in one place, jump to the most recent unread
Sidebar notification badge

In-app browser

Split a browser alongside your terminal with a scriptable API ported from agent-browser
Built-in browser

Vertical + horizontal tabs

Sidebar shows git branch, linked PR status/number, working directory, listening ports, and latest notification text. Split horizontally and vertically.
Vertical tabs and split panes
  • Scriptable — CLI and socket API to create workspaces, split panes, send keystrokes, and automate the browser
  • Native macOS app — Built with Swift and AppKit, not Electron. Fast startup, low memory.
  • Ghostty compatible — Reads your existing ~/.config/ghostty/config for themes, fonts, and colors
  • GPU-accelerated — Powered by libghostty for smooth rendering

Install

Download cmux for macOS

Open the .dmg and drag cmux to your Applications folder. cmux auto-updates via Sparkle, so you only need to download once.

Homebrew

brew tap manaflow-ai/cmux
brew install --cask cmux

To update later:

brew upgrade --cask cmux

On first launch, macOS may ask you to confirm opening an app from an identified developer. Click Open to proceed.

Why cmux?

I run a lot of Claude Code and Codex sessions in parallel. I was using Ghostty with a bunch of split panes, and relying on native macOS notifications to know when an agent needed me. But Claude Code's notification body is always just "Claude is waiting for your input" with no context, and with enough tabs open I couldn't even read the titles anymore.

I tried a few coding orchestrators but most of them were Electron/Tauri apps and the performance bugged me. I also just prefer the terminal since GUI orchestrators lock you into their workflow. So I built cmux as a native macOS app in Swift/AppKit. It uses libghostty for terminal rendering and reads your existing Ghostty config for themes, fonts, and colors.

The main additions are the sidebar and notification system. The sidebar has vertical tabs that show git branch, linked PR status/number, working directory, listening ports, and the latest notification text for each workspace. The notification system picks up terminal sequences (OSC 9/99/777) and has a CLI (cmux notify) you can wire into agent hooks for Claude Code, OpenCode, etc. When an agent is waiting, its pane gets a blue ring and the tab lights up in the sidebar, so I can tell which one needs me across splits and tabs. Cmd+Shift+U jumps to the most recent unread.

The in-app browser has a scriptable API ported from agent-browser. Agents can snapshot the accessibility tree, get element refs, click, fill forms, and evaluate JS. You can split a browser pane next to your terminal and have Claude Code interact with your dev server directly.

Everything is scriptable through the CLI and socket API — create workspaces/tabs, split panes, send keystrokes, open URLs in the browser.

The Zen of cmux

cmux is not prescriptive about how developers hold their tools. It's a terminal and browser with a CLI, and the rest is up to you.

cmux is a primitive, not a solution. It gives you a terminal, a browser, notifications, workspaces, splits, tabs, and a CLI to control all of it. cmux doesn't force you into an opinionated way to use coding agents. What you build with the primitives is yours.

The best developers have always built their own tools. Nobody has figured out the best way to work with agents yet, and the teams building closed products definitely haven't either. The developers closest to their own codebases will figure it out first.

Give a million developers composable primitives and they'll collectively find the most efficient workflows faster than any product team could design top-down.

Documentation

For more info on how to configure cmux, head over to our docs.

Keyboard Shortcuts

Workspaces

Shortcut Action
⌘ N New workspace
⌘ 18 Jump to workspace 18
⌘ 9 Jump to last workspace
⌃ ⌘ ] Next workspace
⌃ ⌘ [ Previous workspace
⌘ ⇧ W Close workspace
⌘ ⇧ R Rename workspace
⌘ B Toggle sidebar

Surfaces

Shortcut Action
⌘ T New surface
⌘ ⇧ ] Next surface
⌘ ⇧ [ Previous surface
⌃ Tab Next surface
⌃ ⇧ Tab Previous surface
⌃ 18 Jump to surface 18
⌃ 9 Jump to last surface
⌘ W Close surface

Split Panes

Shortcut Action
⌘ D Split right
⌘ ⇧ D Split down
⌥ ⌘ ← → ↑ ↓ Focus pane directionally
⌘ ⇧ H Flash focused panel

Browser

Browser developer-tool shortcuts follow Safari defaults and are customizable in Settings → Keyboard Shortcuts.

Shortcut Action
⌘ ⇧ L Open browser in split
⌘ L Focus address bar
⌘ [ Back
⌘ ] Forward
⌘ R Reload page
⌥ ⌘ I Toggle Developer Tools (Safari default)
⌥ ⌘ C Show JavaScript Console (Safari default)

Notifications

Shortcut Action
⌘ I Show notifications panel
⌘ ⇧ U Jump to latest unread

Find

Shortcut Action
⌘ F Find
⌘ G / ⌘ ⇧ G Find next / previous
⌘ ⇧ F Hide find bar
⌘ E Use selection for find

Terminal

Shortcut Action
⌘ K Clear scrollback
⌘ C Copy (with selection)
⌘ V Paste
⌘ + / ⌘ - Increase / decrease font size
⌘ 0 Reset font size

Window

Shortcut Action
⌘ ⇧ N New window
⌘ , Settings
⌘ ⇧ , Reload configuration
⌘ Q Quit

Nightly Builds

Download cmux NIGHTLY

cmux NIGHTLY is a separate app with its own bundle ID, so it runs alongside the stable version. Built automatically from the latest main commit and auto-updates via its own Sparkle feed.

Report nightly bugs on GitHub Issues or in #nightly-bugs on Discord.

Session restore (current behavior)

On relaunch, cmux currently restores app layout and metadata only:

  • Window/workspace/pane layout
  • Working directories
  • Terminal scrollback (best effort)
  • Browser URL and navigation history

cmux does not restore live process state inside terminal apps. For example, active Claude Code/tmux/vim sessions are not resumed after restart yet.

Star History

Star History Chart

Contributing

Ways to get involved:

Community

Founder's Edition

cmux is free, open source, and always will be. If you'd like to support development and get early access to what's coming next:

Get Founder's Edition

  • Prioritized feature requests/bug fixes
  • Early access: cmux AI that gives you context on every workspace, tab and panel
  • Early access: iOS app with terminals synced between desktop and phone
  • Early access: Cloud VMs
  • Early access: Voice mode
  • My personal iMessage/WhatsApp

License

cmux is open source under AGPL-3.0-or-later.

If your organization cannot comply with AGPL, a commercial license is available. Contact founders@manaflow.com for details.