惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
爱范儿
爱范儿
罗磊的独立博客
美团技术团队
Jina AI
Jina AI
量子位
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
有赞技术团队
有赞技术团队
V
V2EX
阮一峰的网络日志
阮一峰的网络日志
小众软件
小众软件
IT之家
IT之家
雷峰网
雷峰网
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 司徒正美
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
月光博客
月光博客
人人都是产品经理
人人都是产品经理
博客园 - 三生石上(FineUI控件)

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
One Open Source Project a Day (No. 54): cmux - A Native M...
WonderLab · 2026-05-03 · via DEV Community
Cover image for One Open Source Project a Day (No. 54): cmux - A Native Multiplexer for the AI Agent Era

WonderLab

Introduction

"The best developers have always built their own tools." — The cmux Zen

This is the 54th article in the "One Open Source Project a Day" series. Today, we are exploring cmux.

If projects like pi-mono or Warp are redefining terminal interaction logic, cmux is building a new "physical space" for the AI Agent era. It is not just another terminal emulator; it is a highly programmable terminal and browser multiplexer. Its goal: while your AI agents (like Claude Code) are busy refactoring code, you can monitor their progress, view browser previews, and intervene in real-time—all within a native, GPU-accelerated window.

What You Will Learn

  • Why AI Agents need a dedicated multiplexer.
  • how cmux achieves seamless split-screen collaboration between terminals and browsers.
  • Using the Unix Socket API for complete programmable control over your dev environment.
  • Why "Native" performance is critical for developer efficiency in the AI age.

Prerequisites

  • Familiarity with traditional terminal multiplexers like tmux or screen.
  • Experience calling AI models or autonomous agents from the command line.
  • A macOS operating system.

Project Background

Project Introduction

cmux (likely derived from Command Multiplexer) is a lightweight, high-performance native macOS application. It integrates terminal sessions (based on the Ghostty core) and web browsers into a single unified workspace. It follows a "Primitive-First" design philosophy—instead of providing a heavy, opinionated solution, it offers basic building blocks via CLI and Socket APIs, allowing developers to craft their own ideal Agent workflows.

Author/Team Introduction

  • Team: Manaflow
  • Philosophy: Opposed to "black-box" and overly opinionated AI products, Manaflow advocates for providing "primitives" to developers, returning to the open-source spirit of "building your own tools."

Project Data

  • ⭐ GitHub Stars: 400+ (Growing fast)
  • 📦 Core Technology: Swift & libghostty
  • 📄 License: MIT
  • 🌐 Repository: manaflow-ai/cmux

Main Features

Core Utility

cmux provides a "visual home" for AI agents. It allows external programs (agents) to connect via Sockets to autonomously create splits, navigate URLs, and display custom metadata, progress bars, or logs in a dedicated sidebar.

Use Cases

  1. Agent Monitoring & Collaboration
    • Run an AI coding agent on the left while displaying the live web preview on the right.
  2. Automated Environment Setup
    • Script your environment startup: automatically split panes for API logs, frontend dev servers, and open relevant documentation URLs.
  3. Cross-Browser Session Integration
    • Import cookies and sessions from over 20 browsers, letting AI agents interact with authenticated web tools directly.

Quick Start

cmux is currently a native macOS application.

# Download the latest .dmg from GitHub Releases
# Control cmux via CLI (assuming the app is running)
cmux split-pane --horizontal
cmux open-url https://google.com

Enter fullscreen mode Exit fullscreen mode

Core Characteristics

  1. Bonsplit Layout System
    • Flexible pane and tab management supporting mixed layouts of terminals and browsers.
  2. Agent Sidebar (Sidecar)
    • A dedicated UI panel for agents to report progress, logs, and metadata without cluttering the main terminal output.
  3. Fully Programmable Control
    • Offers a Unix Socket API (v1/v2) supporting both line-based and JSON-RPC protocols for external control.
  4. GPU-Accelerated Rendering
    • Uses the libghostty engine for lightning-fast, low-latency rendering.
  5. Highly Customizable
    • Reads existing Ghostty configuration files, perfectly supporting your favorite themes and fonts.

Project Advantages

Feature cmux tmux Warp / Cursor
GUI Integration Terminal + Browser Text Only Integrated but Closed
Programmability Very High (Socket) High Lower
Performance Native Swift + GPU Fast (Minimalist) Medium (Mostly Electron)
Agent Friendly Built-in Sidecars Low High (but proprietary)

Detailed Analysis

1. Programmable Interface: Agents Commanding the UI

The heart of cmux is its /tmp/cmux.sock. A simple script can take command of the UI:

import socket
import json

# Open a URL in a new pane via JSON-RPC
command = {
    "jsonrpc": "2.0",
    "method": "v2.workspace.open_url",
    "params": {"url": "http://localhost:3000"},
    "id": 1
}
# Send this to the socket to control the UI programmatically

Enter fullscreen mode Exit fullscreen mode

2. Sidebar Primitives (Sidecars)

In cmux, agents can "claim" their own UI territory. Through the Sidecar API, an agent can display:

  • Live-generated test coverage charts.
  • Step-by-step task progress bars.
  • Discovered vulnerabilities that open the corresponding file when clicked.

This "information decoupling" significantly reduces the cognitive load on developers when monitoring autonomous agent activity.


Project Links & Resources

Official Resources

Target Audience

  • Developers building custom AI Agents.
  • Power users who frequently switch between multiple screens and windows.
  • Mac natives seeking ultimate performance and rejecting Electron-based bloat.

Find more useful knowledge and interesting products on my Homepage