How is Trek different from cmux or tmux?
Trek vs cmux and tmux
cmux and tmux are terminals, so any coding agent that runs in a terminal runs in them. cmux is a native macOS terminal built on Ghostty with notifications for agents, and tmux is a terminal multiplexer whose sessions keep running after you disconnect. Trek is an app rather than a terminal. It runs the agent CLIs itself and shows their work as threads, with a terminal beside each one.
At a glance
Because cmux and tmux are terminals, many rows below read “Whatever the agent in it does”. The agent’s own interface decides how approvals, undo and worktrees work there.

Where they are alike
All three run the agent CLIs you install, and all three are open source. In each, an agent can run on a remote machine as well as your own. cmux and Trek each have a browser pane that agents can drive, and line comments on a diff that go back to an agent. Both also offer computer use on a Mac, which cmux gives to Claude Code and Codex sessions.
Where they differ
In cmux and tmux you see each agent’s own terminal interface, with its own keys and screens. Trek reads the agent’s protocol and shows its approvals, plans and diffs in a thread. cmux’s preview rewrite, cmux NEXT, adds agent chats with messages, tool calls and diffs.
What cmux or tmux does better
- Any agent that runs in a terminal works as it is, in its own interface.
- tmux sessions keep running after you detach or an SSH connection drops, so agents on a server go on working.
- Everything is scriptable. cmux has a CLI and a Unix socket for every command, and tmux has send-keys, capture-pane, hooks and control mode.
- cmux is a native Swift and AppKit app that draws with libghostty and reads your Ghostty config.
- cmux works on remote machines over SSH and mosh, attaches to remote tmux sessions, and offers cloud machines on paid plans.
- cmux restores windows, panes and working directories after a relaunch, and supported agents resume from their saved session IDs.
What Trek does better
- Approvals, questions and plans come to Trek from the agent itself, so the inbox says what each one needs. cmux rings a pane when the agent in it sends a signal.
- Each turn’s changes show in the thread, and undoing a turn restores its files in a git repository. In cmux and tmux, undo is whatever the agent in the pane does.
- A thread can work in a new git worktree on a branch of its own, picked when it starts (worktrees). cmux’s docs show a custom command you write to add one.
- It runs on Windows 11 as well as macOS 13 and later, with Linux in preview. cmux needs macOS 14 or later.
- Beside the agent CLIs, a thread can run a model on an API key, or a local one from Ollama, LM Studio or llama.cpp. cmux and tmux run whatever agent you start in a pane.
FAQ
Can cmux run open-weight models?
In its preview rewrite, cmux NEXT, yes. You point an agent at any server that speaks the OpenAI-compatible Chat Completions API, on the Mac, on your own GPU machine or on your team’s server. Trek’s own agent loop drives Ollama, LM Studio and llama.cpp models.
Does an agent’s own terminal interface show in a Trek thread?
No. A Trek thread runs the agent through its own protocol, such as Claude Code’s stream-json, Codex’s app-server or ACP, so the agent’s own key bindings and full-screen interface aren’t there.
Sources
- Trek
- cmux
- cmux README
- cmux licence
- cmux llms.txt
- cmux pricing
- cmux getting started
- cmux iOS
- cmux Cloud
- cmux SSH
- cmux remote tmux
- cmux custom commands
- cmux configuration
- cmux changelog
- cmux notifications
- cmux browser automation
- cmux computer use
- cmux API
- cmux NEXT
- cmux NEXT agents
- cmux NEXT open-weight models
- cmux NEXT plans
- tmux
- tmux licence
- tmux manual