The same directory reaches this process under three names on Windows and only two of them compare equal. A pane and the OS say `C:\Users\x\repo`; Git for Windows is MSYS2, so `rev-parse --show-toplevel` and `--git-common-dir` say `C:/Users/x/repo` whatever shell asked; and `fs::canonicalize`, which is what `Host::canonicalize` was, says `\\?\C:\Users\x\repo`. `Path` forgives the first two of each other — it compares, hashes and prefix-matches by component, and both separators end one, which also covers a UNC share, a `\\wsl$` path and a `subst` drive. It does not forgive the third: `\\?\C:` parses as `Prefix::VerbatimDisk` where `C:` is `Prefix::Disk`, so it matches neither, by equality, by hash or by `starts_with`. Every cache in the SCM layer is keyed by exactly that comparison, so a root that came in past `canonicalize` and a root that came out of `git` name one repository and share nothing. `core::path_spelling` settles it once, at the boundary each path is created at rather than at each of the places one is later compared: `git_path` for everything `rev-parse` prints, and `LocalHost:: canonicalize` on its way out — `\\?\` is a Win32 API escape hatch, not part of a path's identity, and what the call is *for* (a junction, a `subst` drive, an 8.3 name, a symlink) is untouched. `GitStatusCache`, where a repository actually gets its identity, insists on it for its own keys too, so a caller that resolves a path cannot re-open the gap. The spelling landed on is the plain one, which is also what `ParseDisplayName` takes and the only one a person recognises in a tooltip; `ui::path_display::native_separators` now delegates its half of the rule rather than restating it in the other crate. What this is and is not. Traced through every production route by which a `\\?\` path could become a repo key: it cannot become a *pane cwd*, which is what keys `GitStatusCache` and reaches `overlay.cwd`. The kernel cwd probe is a `None` stub off macOS and Linux, so on Windows the cwd comes only from OSC 7 or the agent hook stream and neither resolves; the CLI refuses to canonicalize on purpose; restore, window state and the sidebar never do. So the diff overlay's re-read loop, and the panel and commit detail failing to recognise their own repository, are reachable today only where something resolves a path first — which in this tree is the tests. A separate CPU measurement on a real GUI agrees: zero `git.exe` spawns, idle or loaded, overlay open or closed. The one production route that does resolve and does reach a repo key is `editor_open_on_host`, which stores the canonicalized path as `OpenFile::path`; `scm_editor_target` then looks its parent up in `GitStatusCache` and misses, so on Windows a focused editor never subscribed to its repository's `.git` watch. That is a missing subscription rather than extra work: with the panel or the file tree also on screen their watch covers it, and alone it leaves the SCM data stale until something else asks. The rest of the value is the invariant and the tests. The caches were one resolved path away from splitting a repository in two at any of four surfaces, with no test anywhere holding them to a single spelling. Also worth naming, because the gate this was found behind blamed the wrong half: stripping `\\?\` *is* the fix, and slash direction is not what breaks a `PathBuf` — `path_equality_already_forgives_case_slashes_ and_a_trailing_separator` pins that, so a later change here cannot quietly start folding what `Path` already folds, or stop folding what it does not. The tests are ungated, deliberately. Windows is the only platform with three spellings and was the only one not running the comparison, which is how this lived; a `#[cfg(unix)]` on any of them would put it back. Where one needs a repository it runs `git init` in a temp directory rather than reading the checkout it is in. Found while un-gating the window and pane tests in #791, which left `scm::detail::detail_gpui_tests`, `scm::panel::a_settled_source_control_ panel_reaches_render_idle` and `diff_overlay::render_idle_gpui_tests` gated on this divergence.
tty7
A terminal workbench: persistent sessions, remote work, agents.
Pure Rust · GPU rendering on Zed's gpui · VT core from Alacritty
English · 简体中文
Why
A background server owns your shells and panes — not the window. Everything below follows from that.
- Performance — ~2× the throughput of Alacritty, Ghostty, or Kitty (benchmarks)
- Persistent sessions — quit or reboot; your shells and supported agent sessions keep running, no tmux
- Agent-aware — Claude Code, Codex & co.: status, notifications, and git context for every repo at once
- Scriptable by agents — one agent opens a pane for another, hands off a task, waits, and reads the result, with or without the GUI running
- Editor-grade input — suggestions, completion, highlighting, history search, with no plugin to install
- Remote development — files, repos, panes, and git data stay on the remote machine, over a native SSH stack
- Git beside the terminal — source control, diffs, and worktrees without leaving the window
Install
Native builds for macOS, Windows, and Linux on Releases:
| macOS | …-macos-arm64.dmg · …-x86_64.dmg |
drag into Applications |
| Windows | …-setup.exe · portable ….zip |
|
| Linux | …-x86_64.AppImage |
chmod +x and run — X11/Wayland libraries bundled |
What's inside
| Agent-aware | per-pane detection (19 CLIs) · status dot · notifications · branch + diff · tray icon when input is needed · resume after reboot · tab sidebar grouped by repository |
| CLI + Skills | bundled tty7 CLI · agent skill · run streams a command and exits with its code · split · send · wait --until free · capture |
| Editor-grade input | ghost suggestions from history · explained tab completion · syntax highlighting · multi-line editing · click places the caret · ⌃ R fuzzy history |
| Window | tabs & splits · ⌘ P palette · ⌘ F scrollback search · ⌘ J panel with process tree and listening ports · 13 themes, your own YAML, iTerm2 import · IME |
| Shell integration | injected when a pane starts, nothing to install · prompt marks · working directory · exit codes · command-finished notifications · zsh, bash, fish, PowerShell, WSL, remote panes |
| Remote workspaces | remote files, repos, changes, diffs, worktrees, tabs, and panes · reconnect from any client and continue where you left off |
| SSH | native russh stack: profiles with keychain secrets · SFTP panel · port forwarding · jump hosts · one-time, unprivileged tty7-server install |
| Git | panel follows the focused pane · stage, commit, amend, branch, push, stash · side-by-side or unified diffs · commit graph with cherry-pick, revert, and reset · a new worktree opens its own tab |
Supported agents
Detection is free: brand avatar, branch + diff, tab title.
Status takes one click under Settings → Agents to install that agent's hook,
and brings the status dot, notifications, the tray icon, tty7 wait, and resume
after a reboot. Fork needs both — the agent's own fork command, and the hook
that tells tty7 which session to fork.
The full support matrix, all nineteen
| Agent | Detected | Status · resume | Fork |
|---|---|---|---|
| Claude Code | ✓ | ✓ | ✓ |
| Codex | ✓ | ✓ | ✓ |
| Grok | ✓ | ✓ | ✓ |
| OpenCode | ✓ | ✓ | ✓ |
| Oh My Pi | ✓ | ✓ | ✓ |
| Droid | ✓ | ✓ | ✓ |
| Qwen Code | ✓ | ✓ | ✓ |
| Goose | ✓ | ✓ | ✓ |
| Gemini | ✓ | ✓ | |
| Copilot | ✓ | ✓ | |
| Kimi Code | ✓ | ✓ | |
| Pi | ✓ | ✓ | |
| Aider | ✓ | ||
| Amp | ✓ | ||
| Cursor | ✓ | ||
| Auggie | ✓ | ||
| Hermes | ✓ | ||
| Vibe | ✓ | ||
| Antigravity | ✓ |
None of them are wrapped or proxied — the agent you start is the agent you get,
in a normal PTY, with its own interface. An agent launched through a wrapper
script can be mapped to one by name with agent_commands in config.json.
Documentation
Full documentation lives in docs/ —
keyboard shortcuts ·
config.json ·
CLI reference. The agent-facing CLI interface is also
documented in skills/tty7/SKILL.md.
Install the skill with:
npx skills add l0ng-ai/tty7 # install
npx skills update tty7 # update later
Benchmarks
Same machine, same day, same 155×40 grid — Apple M1 Pro, macOS 26.3.1, five-run averages (2026-07-04):
| tty7 | Alacritty | Ghostty | Kitty | |
|---|---|---|---|---|
Plaintext I/O — 11 MB cat (lower = better) |
95 ms | 239 ms | 179 ms | 185 ms |
| DOOM-fire frame rate (higher = better) | 888 fps | 485 fps | 552 fps | 617 fps |
| Cold-launch memory | 116 MB¹ | 105 MB | 128 MB | 130 MB |
¹ GUI 105 MB + the persistent server 11 MB.
Methodology and one-command reproduction: scripts/bench/.
Built on gpui and alacritty_terminal · Apache-2.0 · Discord · Changelog