基于 Ghostty 的终端,具有垂直标签页和通知。
Show HN: Ghostty-based terminal with vertical tabs and notifications

原始链接: https://github.com/manaflow-ai/cmux

cmux 是一款使用 Swift 和 AppKit 构建的 macOS 原生终端应用程序,专为高效的 AI 编码工作流程设计。它兼容 Ghostty,可利用现有的配置来设置主题和字体,并具有 GPU 加速以实现流畅的性能。 为了解决管理多个 AI 代理会话(如 Claude Code)的难题,cmux 引入了带有工作区信息的垂直标签页——包括 Git 分支、目录,以及最重要的代理通知。这些通知会用视觉提示(蓝色圆环和标签页亮起)突出显示,以便快速识别需要关注的内容。 除了增强的终端之外,cmux 还包含一个可编写脚本的内置浏览器,并提供 API 用于自动化交互(点击、填写表单、JS 评估),非常适合与开发服务器交互的代理。一切都可以通过 CLI 和 socket API 进行控制,以实现完全自动化。 cmux 通过 `brew` 提供,并通过 Sparkle 进行自动更新。它专为喜欢以终端为中心的工作流程,并且需要高性能解决方案来协调多个 AI 编码代理的用户设计。

## cmux:增强AI代理工作流的终端工具 开发者lawrencechen创建了**cmux**,一个基于Ghostty的macOS原生应用,旨在改善管理多个AI代码生成会话(如Claude Code & Codex)。由于通用通知和难以追踪众多终端标签而感到沮丧,cmux添加了一个垂直标签侧边栏,显示git分支、目录、端口,以及*最重要地*,每个工作空间的最新通知。 当AI代理需要输入时,相应的标签会亮起并显示蓝色圆环,以便快速识别。一个命令行工具 (`cmux notify`) 集成了代理钩子。cmux还包含一个可编写脚本的内置浏览器,镜像了agent-browser的功能,用于直接与开发服务器交互。 所有功能都可以通过CLI和socket API控制。该项目是开源的(AGPL),并在GitHub上可用:[https://github.com/manaflow-ai/cmux](https://github.com/manaflow-ai/cmux)。 还有一个演示视频:[https://www.youtube.com/watch?v=i-WxO5YUTOs](https://www.youtube.com/watch?v=i-WxO5YUTOs)。
相关文章

原文

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

Download cmux for macOS

English | 简体中文 | 繁體中文 | 한국어 | Deutsch | Español | Français | Italiano | Dansk | 日本語 | Polski | Русский | Bosanski | العربية | Norsk | Português (Brasil) | ไทย | Türkçe

cmux screenshot

  • 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
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.

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

To update later:

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

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, 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.

Shortcut Action
⌘ N New workspace
⌘ 1–8 Jump to workspace 1–8
⌘ 9 Jump to last workspace
⌃ ⌘ ] Next workspace
⌃ ⌘ [ Previous workspace
⌘ ⇧ W Close workspace
⌘ B Toggle sidebar
Shortcut Action
⌘ T New surface
⌘ ⇧ ] Next surface
⌘ ⇧ [ Previous surface
⌃ Tab Next surface
⌃ ⇧ Tab Previous surface
⌃ 1–8 Jump to surface 1–8
⌃ 9 Jump to last surface
⌘ W Close surface
Shortcut Action
⌘ D Split right
⌘ ⇧ D Split down
⌥ ⌘ ← → ↑ ↓ Focus pane directionally
⌘ ⇧ H Flash focused panel
Shortcut Action
⌘ ⇧ L Open browser in split
⌘ L Focus address bar
⌘ [ Back
⌘ ] Forward
⌘ R Reload page
⌥ ⌘ I Open Developer Tools
Shortcut Action
⌘ I Show notifications panel
⌘ ⇧ U Jump to latest unread
Shortcut Action
⌘ F Find
⌘ G / ⌘ ⇧ G Find next / previous
⌘ ⇧ F Hide find bar
⌘ E Use selection for find
Shortcut Action
⌘ K Clear scrollback
⌘ C Copy (with selection)
⌘ V Paste
⌘ + / ⌘ - Increase / decrease font size
⌘ 0 Reset font size
Shortcut Action
⌘ ⇧ N New window
⌘ , Settings
⌘ ⇧ , Reload configuration
⌘ Q Quit

This project is licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later).

See LICENSE for the full text.

联系我们 contact @ memedata.com