A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.
Rust agentagent-orchestrationaiai-agentsclaude-codecodexcoding-agentlinuxmacosmultiplayermultiplexerrustterminalterminal-emulatorterminal-multiplexertmuxtuiweztermwindows
[workspace]
members = [
"bidi",
"wasm-probe",
"bidi/generate",
"strip-ansi-escapes",
"sync-color-schemes",
"thinkterm-syntax",
"thinkterm-core",
"thinkterm-reverse-access",
"thinkterm-connect-auth",
"thinkterm-tailnet",
"thinkterm-tailnet-node",
"thinkterm-file-index",
"thinkterm-font-core",
"thinkterm-font-web",
"thinkterm-i18n",
"thinkterm-import",
"thinkterm-import-herdr",
"thinkterm-proto",
"thinkterm-render",
"thinkterm-mobile",
"thinkterm-plugin-channel",
"thinkterm-plugin-panel",
"thinkterm-plugin-sdk",
"thinkterm-plugin-server",
"plugins/diff",
"plugins/example",
"plugins/stocks",
"thinkterm-session",
"thinkterm-tab-icons",
"thinkterm-snippets",
"thinkterm-web",
"thinkterm-tui",
"thinkterm-update",
"deps/cairo",
"wezterm",
"wezterm-blob-leases",
"wezterm-cell",
"wezterm-escape-parser",
"wezterm-dynamic",
"wezterm-gui",
"wezterm-mux-server",
"wezterm-open-url",
"wezterm-ssh",
"wezterm-surface",
"wezterm-uds",
]
resolver = "2"
exclude = [
"termwiz/codegen",
"wezterm-char-props/codegen",
"deps/tailscale-rs",
]
[profile.release]
opt-level = 3
# debug = 2
# What a release ships: whole-program optimisation and no symbol table in
# the binaries, with the symbols written beside them (a .dSYM on macOS, a
# .dwp on Linux, a .pdb on Windows) for symbolicating crash reports. It
# builds into target/dist, so the everyday release profile and its cache
# stay untouched; only the final LTO link is repeated per build.
[profile.dist]
inherits = "release"
lto = "fat"
codegen-units = 1
debug = "line-tables-only"
split-debuginfo = "packed"
strip = "symbols"
# Mermaid support (merman and what only it links in) is a lot of code for
# little time: a diagram is drawn off the UI thread, and parsing one on it
# takes under 10 ms even at this level, for the longest drawn. Optimized for
# size, it adds about half as much to the binary. `dist` inherits these.
[profile.release.package.approx]
opt-level = "z"
[profile.release.package.beef]
opt-level = "z"
[profile.release.package.by_address]
opt-level = "z"
[profile.release.package.cssparser]
opt-level = "z"
[profile.release.package.dtoa]
opt-level = "z"
[profile.release.package.dtoa-short]
opt-level = "z"
[profile.release.package.dugong]
opt-level = "z"
[profile.release.package.dugong-graphlib]
opt-level = "z"
[profile.release.package.getopts]
opt-level = "z"
[profile.release.package.htmlize]
opt-level = "z"
[profile.release.package.json5]
opt-level = "z"
[profile.release.package.lalrpop-util]
opt-level = "z"
[profile.release.package.logos]
opt-level = "z"
[profile.release.package.lol_html]
opt-level = "z"
[profile.release.package.manatee]
opt-level = "z"
[profile.release.package.matrixmultiply]
opt-level = "z"
[profile.release.package.merman]
opt-level = "z"
[profile.release.package.merman-core]
opt-level = "z"
[profile.release.package.merman-render]
opt-level = "z"
[profile.release.package.nalgebra]
opt-level = "z"
[profile.release.package.palette]
opt-level = "z"
[profile.release.package.palette_math]
opt-level = "z"
[profile.release.package.pastey]
opt-level = "z"
[profile.release.package.polycool]
opt-level = "z"
[profile.release.package.precomputed-hash]
opt-level = "z"
[profile.release.package.pulldown-cmark-escape]
opt-level = "z"
[profile.release.package.rawpointer]
opt-level = "z"
[profile.release.package.roughr-merman]
opt-level = "z"
[profile.release.package.ryu-js]
opt-level = "z"
[profile.release.package.safe_arch]
opt-level = "z"
[profile.release.package.selectors]
opt-level = "z"
[profile.release.package.servo_arc]
opt-level = "z"
[profile.release.package.simba]
opt-level = "z"
[profile.release.package.unicode-vo]
opt-level = "z"
[profile.release.package.web-time]
opt-level = "z"
[profile.release.package.wide]
opt-level = "z"
[profile.dev]
debug = 0
# https://jakedeichert.com/blog/reducing-rust-incremental-compilation-times-on-macos-by-70-percent/
# Disabled because it breaks builds on Windows
#split-debuginfo = "unpacked"
[workspace.dependencies]
ahash = "0.8"
anyhow = "1.0"
assert_fs = "1.0.4"
async-channel = "2.3"
async-executor = "1.11"
async-io = "2.3"
async-task = "4.7"
async-trait = "0.1"
async_ossl = { path = "async_ossl" }
backtrace = "0.3"
base64 = {version="0.22", default-features=false }
base91 = { path = "base91" }
battery = { path = "lua-api-crates/battery" }
benchmarking = "0.4"
bintree = { path = "bintree" }
bitflags = "1.3"
block2 = "0.6"
bstr = "1.0"
bytemuck = { version="1.4", features=["derive"]}
bytes = "1.0"
cairo-rs = {version="0.18", default-features=false} # See patch.crates-io section
camino = "1.0"
cassowary = "0.3"
cc = {version="1.0", features = ["parallel"]}
cgl = "0.3"
chrono = {version="0.4", default-features=false, features=["unstable-locales", "serde"]}
clap = {version="4.0", features=["derive"]}
clap_complete = "4.4"
clap_complete_fig = "4.0"
clipboard-win = "5"
cocoa = "=0.25.0"
codec = { path = "codec" }
color-funcs = { path = "lua-api-crates/color-funcs" }
colorgrad = "0.6"
config = { path = "config" }
thinkterm-core = { path = "thinkterm-core" }
thinkterm-tailnet = { path = "thinkterm-tailnet" }
thinkterm-file-index = { path = "thinkterm-file-index" }
thinkterm-font-core = { path = "thinkterm-font-core" }
thinkterm-font-web = { path = "thinkterm-font-web" }
thinkterm-i18n = { path = "thinkterm-i18n" }
thinkterm-import = { path = "thinkterm-import" }
thinkterm-import-herdr = { path = "thinkterm-import-herdr" }
thinkterm-plugin-channel = { path = "thinkterm-plugin-channel", default-features = false }
thinkterm-plugin-panel = { path = "thinkterm-plugin-panel" }
thinkterm-plugin-sdk = { path = "thinkterm-plugin-sdk" }
thinkterm-proto = { path = "thinkterm-proto" }
thinkterm-render = { path = "thinkterm-render" }
thinkterm-session = { path = "thinkterm-session" }
thinkterm-tab-icons = { path = "thinkterm-tab-icons" }
thinkterm-snippets = { path = "thinkterm-snippets", default-features = false }
thinkterm-web = { path = "thinkterm-web" }
thinkterm-update = { path = "thinkterm-update" }
core-foundation = "=0.10.0"
core-graphics = "=0.24.0"
core-text = "=21.0.0"
criterion = "0.5"
crossbeam = "0.8"
csscolorparser = "0.6"
deltae = "0.3"
dhat = "0.3"
dirs-next = "2.0"
dns-lookup = "2.0"
downcast-rs = "1.0"
dwrote = "0.11"
embed-resource = "1.7"
emojis = "0.6"
encoding_rs = "0.8"
enum-display-derive = "0.1"
env-bootstrap = { path = "env-bootstrap" }
env_logger = "0.11"
euclid = {version="0.22", default-features=false}
fancy-regex = {version="0.14", default-features=false, features=[]}
fastrand = "2.0"
filedescriptor = { version="0.8.3", path = "filedescriptor" }
filenamegen = "0.2.6"
filesystem = { path = "lua-api-crates/filesystem" }
finl_unicode = { version = "1.3", git="https://github.com/wez/finl_unicode.git", branch="no_std" , default-features=false, features=["categories", "grapheme_clusters"]}
fixed = "1.23"
fixedbitset = {version="0.4", default-features=false}
fluent-bundle = "0.16"
fluent-langneg = "0.13"
flume = "0.11"
fnv = "1.0"
foreign-types = "0.5"
fontconfig = { path = "deps/fontconfig" }
frecency = { path = "frecency" }
freetype = { path = "deps/freetype" }
futures = "0.3"
futures-lite = "2.3"
futures-util = "0.3"
gethostname = "0.5"
getrandom = "0.3.1"
git2 = { version = "0.20", default-features = false, features = ["https", "vendored-libgit2"] }
gl_generator = "0.14"
glium = { version = "0.35", default-features = false }
governor = {version="0.5", default-features=false, features=["std"]}
guillotiere = "0.6"
harfbuzz = { path = "deps/harfbuzz" }
heapless = "0.8"
httparse = "1.10"
hdrhistogram = "7.1"
hex = {version="0.4", default-features=false}
if-addrs = "0.13"
hostname = "0.4"
http_req = "0.11"
human-sort = "0.2"
humansize = "2.1"
humantime = "2.1"
ignore = "0.4"
image = "0.25"
intrusive-collections = "0.9"
k9 = "0.12.0"
lazy_static = "1.4"
leb128 = "0.2"
lfucache = { path = "lfucache" }
libc = "0.2"
libflate = "2"
libloading = "0.8"
libssh-rs = "0.3.6"
line_drawing = "0.8"
log = "0.4"
logging = { path = "lua-api-crates/logging" }
lru = "0.16"
luahelper = { path = "luahelper" }
maplit = "1.0"
memchr = "2.7"
memmap2 = "0.9"
memmem = "0.1"
metrics = "0.23"
miniz_oxide = "0.7"
mio = "0.8"
mlua = "0.9"
mux = { path = "mux" }
mux-lua = { path = "lua-api-crates/mux" }
names = { version = "0.12", default-features = false }
nix = "0.29"
notify = "5.0.0"
ntapi = "0.4"
nucleo-matcher = "0.3"
num = "0.4"
num-derive = "0.4"
num-traits = {version="0.2", default-features=false }
objc = "0.2"
objc2 = "0.6"
objc2-app-kit = { version = "0.3", default-features = false, features = ["std", "NSApplication", "NSDockTile", "NSResponder"] }
objc2-av-foundation = { version = "0.3", default-features = false, features = ["std", "AVCaptureDevice", "AVMediaFormat"] }
objc2-core-graphics = "0.3"
objc2-foundation = "0.3"
objc2-user-notifications = "0.3"
openssl = "0.10.57"
ordered-float = {version="4.1", default-features=false}
parking_lot = "0.12"
passfd = "0.1.6"
percent-encoding = "2.3"
pest = "2.7"
pest_derive = "2.7"
phf = {version="0.11", default-features=false}
phf_codegen = "0.10"
pkg-config = "0.3"
plist = "1.7"
plugin = { path = "lua-api-crates/plugin" }
portable-pty = { path = "pty" }
pulldown-cmark = { version = "0.13.4", default-features = false }
predicates = "3.0"
proc-macro2 = "1.0"
procinfo = { path = "procinfo" }
procinfo-funcs = { path = "lua-api-crates/procinfo-funcs" }
promise = { path = "promise" }
ratatui = { version = "=0.30.0", default-features = false, features = ["std", "underline-color"] }
quote = "1.0.2"
rangeset = { path = "rangeset" }
ratelim= { path = "ratelim" }
raw-window-handle = "0.6"
rayon = "1.10"
qrcode = { version = "0.14", default-features = false }
rcgen = "0.12"
regex = "1"
reqwest = "0.12"
rustybuzz = "0.20"
resize = "0.5"
resvg = { version = "0.45.1", default-features = false }
# Mermaid diagrams in Markdown, parsed and laid out in Rust and drawn to
# SVG; resvg rasterizes them.
merman = { version = "0.7.0", default-features = false, features = ["render"] }
merman-render = { version = "0.7.0", default-features = false }
ttf-parser = "0.25"
rstest = "0.21"
ruzstd = "0.8"
rusqlite = "0.32"
serde = {version="1.0", default-features=false, features = ["derive"]}
serde-funcs = { path = "lua-api-crates/serde-funcs" }
serde_bytes = "0.11"
serde_json = "1.0"
serde_with = {version="2.0", features = ["chrono_0_4"]}
serde_yaml = "0.9"
semver = "1.0"
serial2 = "0.2"
sha1 = "0.10"
swash = "0.2"
sha2 = "0.10"
share-data = { path = "lua-api-crates/share-data" }
shared_library = "0.1"
shell-words = "1.1"
shlex = "1.1"
signal-hook = "0.3"
siphasher = "1.0.1"
smithay-client-toolkit = {version = "0.19", default-features=false}
smol = "2.0"
soketto = "0.8"
socket2 = "0.5"
spa = "0.3.1"
spawn-funcs = { path = "lua-api-crates/spawn-funcs" }
sqlite-cache = "0.1.4"
ssh-funcs = { path = "lua-api-crates/ssh-funcs" }
ssh2 = "0.9.3"
starship-battery = "0.10"
strsim = "0.11"
syn = "1.0"
tabout = { path = "tabout" }
tar = "0.4"
tempfile = "3.20"
terminfo = "0.9"
sys-locale = "0.3"
termios = "0.3"
termwiz = { version="0.24.0", path = "termwiz" }
termwiz-funcs = { path = "lua-api-crates/termwiz-funcs" }
textwrap = "0.16"
thiserror = "1.0"
time-funcs = { path = "lua-api-crates/time-funcs" }
tiny-skia = "0.11"
tokio = "1.43"
toml = "0.8"
ucd-trie = {version="0.1", default-features=false}
uds_windows = "1.1"
umask = { path = "umask" }
unicode-normalization = "0.1.24"
unicode-segmentation = "1.12"
unicode-width = "0.2"
unic-langid = "0.9"
url = "2"
url-funcs = { path = "lua-api-crates/url-funcs" }
utf8parse = "0.2"
uuid = "1.13"
varbincode = "0.1"
vtparse = { version="0.7", path="vtparse", default-features=false }
trash = "5"
walkdir = "2"
wayland-backend = "0.3.5"
wayland-client = "0.31"
wayland-egl = "0.32"
wayland-protocols = "0.32"
wayland-protocols-plasma = { version="0.3.6", features=["client"] }
wezterm-bidi = { version="0.2.3", path = "bidi", default-features=false}
wezterm-blob-leases = { version="0.1.1", path = "wezterm-blob-leases"}
wezterm-cell = { path = "wezterm-cell"}
wezterm-char-props = { path = "wezterm-char-props", default-features=false }
wezterm-client = { path = "wezterm-client" }
wezterm-color-types = { version="0.3", path = "color-types", default-features=false }
wezterm-config-derive = { version="0.1", path="config/derive" }
wezterm-dynamic = { version = "0.2.1", path = "wezterm-dynamic", default-features=false }
wezterm-dynamic-derive = { version="0.1.1", path="wezterm-dynamic/derive" }
wezterm-escape-parser = { version="0.1.0", path="wezterm-escape-parser" }
wezterm-font = { path = "wezterm-font" }
wezterm-gui-subcommands = { path = "wezterm-gui-subcommands" }
wezterm-input-types = { version="0.1", path = "wezterm-input-types", default-features=false }
wezterm-mux-server-impl = { path = "wezterm-mux-server-impl" }
wezterm-open-url = { path = "wezterm-open-url" }
wezterm-ssh = { path = "wezterm-ssh" }
wezterm-surface = { path = "wezterm-surface" }
wezterm-term = { path = "term" }
wezterm-toast-notification = { path = "wezterm-toast-notification" }
wezterm-uds = { path = "wezterm-uds" }
wezterm-version = { path = "wezterm-version" }
wgpu = "25.0.2"
uniffi = "0.32"
# The browser client. wasm-bindgen is pinned exactly: the CLI that emits
# the JavaScript glue must match the crate the wasm was built with.
wasm-bindgen = "=0.2.105"
wasm-bindgen-futures = "0.4"
js-sys = "0.3"
web-sys = "0.3"
console_error_panic_hook = "0.1"
whoami = "1.5"
winapi = "0.3.9"
window = {path="window"}
window-funcs = { path = "lua-api-crates/window-funcs" }
windows = "0.33.0"
winreg = "0.10"
x11 = "2.21"
xcb = "1.3"
xcb-imdkit = { version="0.3", git="https://github.com/wezterm/xcb-imdkit-rs.git", rev="212330f7c6c37794d78061a773e8f4f9e4785bbb"}
xkbcommon = "0.7.0"
xml-rs = "0.8"
zbus = "4.2"
zstd = "0.11"
zvariant = "4.0"
[patch.crates-io]
# We use our own vendored cairo, which has minimal deps and should just
# build via cargo.
cairo-sys-rs = {path="deps/cairo", version="0.18.0"}
# Vendored to bound allocations by the bytes present, not by declared lengths.
varbincode = {path="deps/varbincode", version="0.1.0"}
# Vendored to list every peer in the tailnet (Device::peers), which 0.6.1
# only offers as lookups by name or address, so that a forward to an actor
# that is gone is an error rather than a panic, and so that a DERP region's
# client goes with its actor, waits out a failure and moves on to the
# region's next server instead of spinning or giving up (see
# deps/tailscale-rs/PATCHES.txt).
tailscale = {path="deps/tailscale-rs/tailscale", version="0.6.1"}
ts_runtime = {path="deps/tailscale-rs/ts_runtime", version="0.6.1"}
# Vendored so that a connection notices a peer gone without a word, and a
# connect nobody waits for any more ends: 0.6.1 sets neither a timeout nor
# keep-alives on its TCP sockets.
ts_netstack_smoltcp_core = {path="deps/tailscale-rs/ts_netstack_smoltcp_core", version="0.6.1"}
# Vendored so that a peer keeps what it says about its device -- its system,
# distribution and model -- which 0.6.1 drops: Remote Hosts draws a machine
# of the tailnet by it.
ts_control = {path="deps/tailscale-rs/ts_control", version="0.6.1"}
# Vendored so that neither a DERP region nobody can reach nor a frame too
# short for what it carries panics its client (0.6.1 unwraps the outcome of
# the dial and the frame's parse), and so that a connection gone quiet is
# noticed rather than waited on for good.
ts_derp = {path="deps/tailscale-rs/ts_derp", version="0.6.1"}