文章摘要
manaflow-ai/cmux是一个基于Ghostty的macOS终端工具,支持垂直标签页和AI编程代理通知功能。该项目托管在GitHub上,旨在为开发者提供更高效的AI辅助编程体验。
文章总结
cmux:基于Ghostty的macOS终端应用,支持垂直标签和AI编程代理通知
项目简介
cmux是一款基于Ghostty的macOS终端应用,主打垂直标签布局和AI编程代理通知功能。它通过原生Swift/AppKit开发,提供高性能的终端体验,并支持与Ghostty配置兼容。项目开源,采用AGPL-3.0许可证。
核心功能
垂直标签与分屏
- 侧边栏显示工作区、Git分支、监听端口和最新通知。
- 支持水平和垂直分屏(快捷键:
⌘ D或⌘ ⇧ D)。
AI代理通知系统
- 终端通过OSC序列或CLI(
cmux notify)接收通知。 - 未读通知会高亮标签页和面板(蓝色圆环标识),支持快速跳转(
⌘ ⇧ U)。
- 终端通过OSC序列或CLI(
内置浏览器
- 可拆分浏览器面板,支持脚本化操作(基于agent-browser API)。
脚本化控制
- 提供CLI和Socket API,支持创建工作区、分屏、发送按键等自动化操作。
安装方式
- 推荐:下载DMG安装包,拖拽至应用目录。
- Homebrew:
shell brew tap manaflow-ai/cmux brew install --cask cmux
快捷键示例
| 功能 | 快捷键 |
|----------------|-----------------------|
| 新建工作区 | ⌘ N |
| 分屏 | ⌘ D(右) / ⌘ ⇧ D(下) |
| 浏览器聚焦 | ⌘ L |
| 通知面板 | ⌘ I |
项目背景
开发者因同时运行多AI编程代理(如Claude Code)时,原生通知缺乏上下文而设计cmux。其优势在于:
- 原生性能:非Electron应用,低内存占用。
- 兼容性:直接读取Ghostty配置(主题、字体等)。
- GPU加速:基于libghostty实现流畅渲染。
许可证
AGPL-3.0,详情见LICENSE文件。
评论总结
以下是评论内容的总结:
正面评价
创新性与实用性
- "This looks cool...using vertical tabs in a terminal window seems nice" (rubyn00bie)
- "vertical tabs are a great idea for ghostty!" (warthog)
用户体验良好
- "Gave this a run and it was pretty intuitive" (dchu17)
- "Just took it for a spin, thought it was pretty nice" (pupppet)
功能扩展建议
- "Would love to be able to color the sidebar tab" (pupppet)
- "Can I make the notifications work with Gemini CLI and Kiro CLI too?" (AM1010101)
负面评价
技术问题与缺陷
- "it's a buggy mess...Can't switch top tabs, can't close tabs" (twostorytower)
- "Some quirks with the tab dragging...a drop-target indicator would help" (pupppet)
操作不便
- "Ctrl-Cmd-] is too hard to press" (arjie)
- "It's not obvious/easy to open browser dev tools" (johnthedebs)
其他观点
与现有工具的比较与整合
- "Have you looked into zmx?...Uses libghostty as well" (jvican)
- "Good idea, but I don't want to move to another terminal now, will stick with Ghossty" (goro-7)
开发效率与更新速度
- "18 (!) releases in two days. This is some really fast coding" (reconnecting)
- "I like what you did here and with your direction with the stack" (blorenz)
个性化需求
- "any idea how I might script
git worktreeinto the new-pane action?" (gavmor) - "Does this support the new Claude Code agent teams feature?" (boloust)
- "any idea how I might script
总结:评论普遍认可垂直标签的创新性和实用性,但也指出了技术缺陷和操作不便的问题。部分用户建议功能扩展或与现有工具整合,同时也有用户对开发速度和个性化需求提出了关注。