项目 / Gaurav-Gosain/tuios

Gaurav-Gosain/tuios

暂无行业标签
语言 Go标签 bubbleteacharmgomultiplexerterminalai-agentsclaude-codecodexcoding-agentsdeveloper-toolsgolangsshterminal-emulatorterminal-multiplexertiling-window-managertmux-alternativetuiwindow-manageromarchyzellij-alternative数据更新 2026-11-25 06:49:28 · 仓库 2026-11-24

一段话介绍

懂你的 AI 助手在干什么的终端窗口管理器,磁贴工作区可持久。

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
A terminal window manager that knows what your agents are doing. Tiling panes, workspaces, sessions that survive restarts, and one Inbox for every coding agent. Official only at tuios.dev and this repo. tuios has no X/Twitter account.
4,836累计星
213Fork
—峰值日增
1上榜次数

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景 — 暂未挂到行业场景库

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

我的用法
项目提供 Homebrew、AUR、Nix、Go 安装、Docker 和 GitHub Releases 预构建二进制,从源码构建需要 Go 1.26.8 或更新。
特点或设计要点
tuios 是一款终端复用工具,支持多窗格创建与拖拽调整、9 个独立工作区即时切换、Vim 风格模态窗口管理,以及 Ctrl+P 模糊搜索命令面板。
星标走势近 18 天
本站点评(非项目 README 原文)
评估智能体/助手能力时,把 tuios 放进短名单:先小范围试工具调用与权限边界,再决定是否纳入正式流程。
首次发现 2026-10-06 · 最近在榜 2026-10-06 · 语言 Go · 贡献者 Gaurav-Gosain、apps/github-actions、cr2007、SebaWag、Tim4c
agentcli

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,正文较长,已截断:保留前 20000 字符(原始 28,140 字节),完整内容见 GitHub 仓库。

<div align="center">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="./assets/brand/banner-dark.png">
    <source media="(prefers-color-scheme: light)" srcset="./assets/brand/banner-light.png">
    <img alt="tuios: a terminal window manager that knows what your agents are doing. Tilly, a small purple CRT whose screen is a tiled layout, stands beside the tuios wordmark and a tiled terminal session." src="./assets/brand/banner-light.png" width="100%">
  </picture>

  <p><strong>TUIOS: Terminal UI Operating System</strong></p>

  <a href="https://github.com/Gaurav-Gosain/tuios/releases"><img src="https://img.shields.io/github/release/Gaurav-Gosain/tuios.svg" alt="Latest Release"></a>
  <a href="https://pkg.go.dev/github.com/Gaurav-Gosain/tuios?tab=doc"><img src="https://godoc.org/github.com/Gaurav-Gosain/tuios?status.svg" alt="GoDoc"></a>
  <a href="https://deepwiki.com/Gaurav-Gosain/tuios"><img src="https://img.shields.io/badge/Ask-DeepWiki-1f6feb" alt="Ask DeepWiki"></a>
  <br>
  <a title="This tool is Tool of The Week on Terminal Trove, The $HOME of all things in the terminal" href="https://terminaltrove.com/"><img src="https://cdn.terminaltrove.com/media/badges/tool_of_the_week/png/terminal_trove_tool_of_the_week_green_on_dark_grey_bg.png" alt="Terminal Trove Tool of The Week" style="width: 250px;" /></a>
  <a href="https://trendshift.io/repositories/19270" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/repositories/19270" alt="Gaurav-Gosain/tuios on Trendshift" width="250" height="55"/></a>
</div>

<picture>
  <source srcset="./assets/demo.avif" type="image/avif">
  <img alt="TUIOS" src="./assets/demo.gif">
</picture>

TUIOS is a modern terminal multiplexer and window manager built with Go. It provides a vim-like modal interface with multiple terminal panes, workspaces, BSP tiling, kitty graphics protocol support, and a command palette, all running inside your existing terminal. A daemon keeps sessions alive, reaches sessions on your other machines, and lets the coding agents in your panes report their state and message each other.

Built on the Charm stack (Bubble Tea v2, Lipgloss v2), TUIOS features event-driven rendering for near-zero idle CPU usage, flicker-free kitty image passthrough, and comprehensive keyboard/mouse interaction.

## Documentation

Full documentation is available at **[tuios.dev](https://tuios.dev)** (hosted) or in the [`docs/`](./docs/) folder. To try tuios without installing it, take the guided tour at **[tuios.dev/learn](https://tuios.dev/learn)**: the real app, compiled to WebAssembly, with a practice shell in every pane. Already installed it? Run `tuios tutor` for the same tour in your own terminal. It changes nothing on your machine.

What changed in v0.10.1 is in the [release notes](docs/release-notes/v0.10.1.md).

### Quick Links
- **[Getting Started](https://tuios.dev/docs/getting-started)**: Install and first session
- **[Keybindings](docs/KEYBINDINGS.md)**: Default keys and how to rebind them
- **[BSP Tiling](docs/BSP_TILING.md)**: Tiling with preselection and split control
- **[Layout Modes](docs/LAYOUT_MODES.md)**: BSP, master-stack and scrolling layouts, every window, multifocus
- **[Configuration](docs/CONFIGURATION.md)**: Customize keybindings, themes, and behavior
- **[Hooks](docs/HOOKS.md)**: Run shell commands on window, session and agent events
- **[Themes](docs/THEMES.md)**: Built-in themes and custom theme JSON
- **[Glyph sets](docs/GLYPHS.md)**: The characters the chrome is drawn with
- **[CLI Reference](docs/CLI_REFERENCE.md)**: All command-line options
- **[Tape Scripting](docs/TAPE_SCRIPTING.md)**: Automate workflows
- **[Sessions](docs/SESSIONS.md)**: Daemon mode, attach/detach, other machines, and what survives
- **[Agents](docs/AGENT_STATE.md)**: Running coding agents in tuios: state, the Inbox, approvals, fleets, other machines, grants and MCP
- **[Program Status](docs/PROGRAM_STATUS.md)**: OSC 7501 from any program, `tuios status`, and the reports tuios sends to its own terminal
- **[tmux Shim](docs/TMUX_SHIM.md)**: Run tools that drive tmux, such as Claude Code agent teams
- **[Control Protocol](docs/protocol.md)**: JSON verb protocol for driving the daemon
- **[Architecture](docs/ARCHITECTURE.md)**: Technical design

<details>
<summary>Table of Contents</summary>

<!--toc:start-->
- [Installation](#installation)
- [Features](#features)
- [Quick Start](#quick-start)
- [Architecture](#architecture)
- [Performance](#performance)
- [Development](#development)
- [Contributors](#contributors)
- [License](#license)
<!--toc:end-->

</details>

## Installation

### Package Managers

**Homebrew (macOS/Linux):**
```bash
brew install tuios
```

**Homebrew, ghostty build (Linux only):** `tuios` built with the [libghostty-vt emulator](./docs/ghostty-vt.md). It installs a binary with the same name as the `tuios` formula. Uninstall the formula first.
```bash
brew uninstall tuios
brew install gaurav-gosain/tap/tuios-ghostty
```

**Arch Linux (AUR):**
```bash
yay -S tuios-bin
```

**Nix:**
```bash
nix run github:Gaurav-Gosain/tuios/v0.10.1#tuios   # a release
nix run github:Gaurav-Gosain/tuios#tuios          # the latest main
nix run nixpkgs#tuios                             # the nixpkgs package
```

Put a release tag after the repo name to build that release. Without a tag, Nix builds the newest commit on `main`.

### Other Methods

```bash
# Quick install script (Linux/macOS, and Windows from Git Bash or PowerShell with WSL)
curl -fsSL https://raw.githubusercontent.com/Gaurav-Gosain/tuios/main/install.sh | bash

# Go install
go install github.com/Gaurav-Gosain/tuios/cmd/tuios@latest

# Docker
docker run -it --rm ghcr.io/gaurav-gosain/tuios:latest
```

**[GitHub Releases](https://github.com/Gaurav-Gosain/tuios/releases)**: Pre-built binaries for Linux, macOS, Windows, FreeBSD and OpenBSD, with a `checksums.txt`. The `tuios-ghostty_*` archives are `tuios` built on the [libghostty-vt emulator](./docs/ghostty-vt.md), for Linux, macOS and Windows on amd64 and arm64.

**Building from source** needs Go 1.26.8 or newer.

**Updating.** If you installed with the quick install script or a release
binary, `tuios update` fetches the newest release and puts it in place
(`tuios update --check` just reports). Everything else has a package manager
that owns the binary, so use that instead; `tuios update` detects which you have
and prints the right command rather than overwriting it.

**Images on Windows.** The console host built into Windows drops sixel images
before tuios sees them. To let them through, take `conpty.dll` and
`OpenConsole.exe` for the architecture of your `tuios.exe` (x64, x86 or arm64)
from the
[Microsoft.Windows.Console.ConPTY](https://www.nuget.org/packages/Microsoft.Windows.Console.ConPTY)
package, at `runtimes/win-<arch>/native/conpty.dll` and
`build/native/runtimes/<arch>/OpenConsole.exe`, and put both in the folder that
holds `tuios.exe`. tuios then opens panes through them, as Windows Terminal
does. Without both files, panes use the built-in ConPTY. The daemon looks for
the two files when it starts, so run `tuios kill-server` after adding them.

### Shell Completions

`tuios completion <shell>` prints a completion script for bash, zsh, fish or
PowerShell. Besides subcommands and flags, it completes values such as session
names for `--session` and configured hosts for `--host`.

```bash
# Bash (needs the bash-completion package)
tuios completion bash > ~/.local/share/bash-completion/completions/tuios

# Zsh (the directory must be on your $fpath, before compinit runs)
tuios completion zsh > "${fpath[1]}/_tuios"

# Fish
tuios completion fish > ~/.config/fish/completions/tuios.fish
```

```powershell
# PowerShell: add this line to your $PROFILE
tuios completion powershell | Out-String | Invoke-Expression
```

Start a new shell afterwards. Run `tuios completion <shell> --help` for more
options, or see the [CLI reference](docs/CLI_REFERENCE.md#tuios-completion).

**Requirements:** A terminal with true color support. Kitty graphics and sixel support recommended (Ghostty, Kitty, WezTerm).

## Features

![TUIOS](./assets/tuios.gif)

<table>
  <tr>
    <td width="50%"><a href="https://tuios.dev/docs/layout-modes"><img src="https://tuios.dev/shots/overview.webp" width="400" alt="tuios with four tiled panes: a git diff, a Go file, test output and a build. The sidebar lists the session, its files and four agents with their states."></a><br><b>Panes and the rail.</b> Tiled panes, and every agent's state at a glance.</td>
    <td width="50%"><a href="https://tuios.dev/docs/agent-inbox"><img src="https://tuios.dev/shots/inbox.webp" width="400" alt="The tuios Inbox listing an approval marked risky, a question and an errored agent, with the reason the approval is risky."></a><br><b>The Inbox.</b> Everything your agents wait on, in one list.</td>
  </tr>
  <tr>
    <td width="50%"><a href="https://tuios.dev/docs/agent-inbox#reviewing-an-agents-changes"><img src="https://tuios.dev/shots/review.webp" width="400" alt="The tuios review view: a file list on the left and a highlighted diff on the right, with keys for notes, hunks and files."></a><br><b>Review.</b> Read an agent's changes and send notes back to it.</td>
    <td width="50%"><a href="https://tuios.dev/docs/configuration"><img src="https://tuios.dev/shots/settings.webp" width="400" alt="The tuios settings page searched for theme. The Theme row carries a dot because it differs from the default."></a><br><b>Settings.</b> Every option on one page, applied at once.</td>
  </tr>
</table>

Each picture is a capture that tuios made of itself. Click one to read its docs page.

### Core
- **Multiple Terminal Panes**: Create, resize, drag, and organize terminal sessions
- **9 Workspaces**: Independent workspace isolation with instant switching
- **Modal Interface**: Vim-inspired Window Management and Terminal modes
- **Command Palette**: Fuzzy-searchable action launcher (<kbd>Ctrl</kbd>+<kbd>P</kbd>)
- **Launcher**: Fuzzy search everything on `$PATH` plus your installed desktop apps (<kbd>Alt</kbd>+<kbd>Space</kbd>), ranked by what you actually run. <kbd>Enter</kbd> starts it; <kbd>Tab</kbd> opens a shell with the command typed but not entered, so you can add arguments. App icons are drawn where the terminal supports kitty graphics.
- **Pane Zoom**: Zoom any pane with <kbd>z</kbd> (WM mode) or <kbd>Prefix</kbd>+<kbd>z</kbd>. It takes 95% of the screen by default; set `appearance.zoom_size = 100` for fullscreen. A fullscreen zoom hides the shared borders, and the dockbar shows a **Z** indicator.
- **Session Rail**: A sidebar with sessions, terminals, files, git state and agents, on by default on the right (`appearance.sidebar.enabled`)
- **Settings Page**: Change options in the app with <kbd>Prefix</kbd>+<kbd>,</kbd>
- **Popups**: `tuios popup -- fzf` runs a command in a floating pane that closes when it exits

### Agents
The guide is [docs/AGENT_STATE.md](docs/AGENT_STATE.md).
- **Agent State**: Panes running a coding agent show whether it is working, waiting for you, done or errored, as a shape in the title and a row on the rail. `tuios integration install` wires 19 harnesses (Claude Code, Codex, Gemini CLI, opencode and more) to report it, and tuios detects 24 agent CLIs by their process and screen
- **Program Status (OSC 7501)**: Any program can say what it is doing with the Program Status Protocol, or with `tuios status working --app build --progress 40`. A build, a deploy script or `brew` then shows on the rail and in the Inbox like an agent. tuios also reports its panes to a terminal that reads the protocol, such as Rex ([docs](docs/PROGRAM_STATUS.md))
- **Inbox**: <kbd>Prefix</kbd>+<kbd>i</kbd> lists everything waiting for you in every session and on every machine: approvals, questions, mail, errors, finished turns. <kbd>Prefix</kbd>+<kbd>o</kbd> jumps to the oldest. Answer a prompt from there without going to the pane, and with `[agents.approvals]` answer Claude Code, opencode, Kilo and Qwen Code permission requests with one key
- **Questions and Messages**: `tuios ask-human` puts a question with fixed answers in your Inbox. Agents mail each other with `tuios send-agent-message`, and `tuios ask-agent` asks one and waits for its answer. It never types into a pane waiting on a prompt, and replies from you are marked verified
- **Helper Agents**: `tuios start-agent` starts a helper beside you, in its TUI or headless over ACP or the Codex app-server, and `tuios worktree new --agent` gives it a worktree of its own. `tuios fan` starts one prompt in several agents at once, to try different harnesses on the same task
- **Resume**: After a daemon restart, the Inbox offers to resume each agent conversation that was running
- **Pane Grants**: Say what an agent's pane may do through tuios (`read`, `write`, `fan`, `respond`, `admin`), and give a helper less with `--grants`
- **MCP Server**: `tuios mcp` serves the same surface as MCP tools, read-only and held to the agent's own session unless you say otherwise
- **tmux Shim**: `tuios tmux-shim` runs tools that drive tmux, such as Claude Code agent teams, with their panes opened as tuios panes
- **Session Stash**: `tuios stash put` keeps a file for the session, so another agent can still open it
- **Agent Skill**: `tuios --skill` prints the short guide an agent in a pane reads to drive tuios, and `tuios --skill TOPIC` the rest, recipes included. To move your tmux, zellij or herdr settings over, tell your agent: "Run `tuios --skill config` and move my tmux settings over."

### Machines
- **Hosts**: `tuios hosts add` names another machine, reached over ssh. `tuios hosts tailnet` lists the machines on a Tailscale tailnet
- **Remote Sessions**: `tuios attach --host build api` draws a session on another machine in this client, and `-s HOST:SESSION` sends any command there
- **Hosted Panes**: `tuios new-window NAME --host build` runs one pane's process on another machine, in a session here
- **Global Sessions**: `tuios new NAME --global` holds panes from several machines ([docs](docs/SESSIONS.md))
- **Agents on Other Machines**: `tuios start-agent -s build:api` runs an agent there, its Inbox items show here, and `tuios worktree pull` brings its work back. Each machine's `[hosts]` policy says what the others may do

### Tiling
- **BSP Tiling**: Binary Space Partitioning with spiral layout
- **Scrolling Layout**: niri-style columns on an infinite horizontal strip ([docs](docs/LAYOUT_MODES.md))
- **Master-Stack Layout**: One master pane with the rest stacked beside it
- **Smart Auto-Split**: Aspect-ratio-aware splitting (opt-in)
- **Shared Borders**: tmux-style separator lines between panes (`--shared-borders`)
- **Preselection**: Control where the next pane spawns
- **Equalize Splits**: Reset all splits to balanced ratios

### Scrollback & Copy Mode
- **Vim-Style Copy Mode**: Navigate 10,000-line scrollback with hjkl, search down with `/` and up with `?`, yank with `y`
- **Multi Copy Mode**: Copy mode on every pane of the multifocus set at once. Search once, select with `v`/`V` in each pane, and yank all selections as plain text, markdown or JSON, to the clipboard or a file ([docs](docs/LAYOUT_MODES.md#multi-copy-mode))
- **Mouse Wheel Scrollback**: The wheel scrolls history with no mode entered; typing or reaching the bottom returns to live output
- **Interactive Scrollbar**: Click or drag the right border to jump to scroll position
- **Selection Auto-Scroll**: Drag selection above/below pane to scroll
- **Scrollback Browser**: OSC 133-aware command/output block navigation
- **Scroll Position Indicator**: Shows offset/total on the bottom border

### Graphics & Protocols
- **Kitty Graphics Protocol**: Full image rendering with flicker-free video playback. `mpv --vo=kitty` works (both shm and base64), and [youterm](https://github.com/Gaurav-Gosain/youterm) works.
- **Sixel Graphics**: Sixel image passthrough (experimental, no pixel-level clipping yet)
- **Kitty Keyboard Protocol**: Progressive enhancement (CSI u) with push/pop/query support. Fish 4.x compatible; Shift+printable bypasses the protocol and sends text directly.
- **Synchronized Output**: Mode 2026 prevents screen tearing
- **Shared Memory Support**: `t=s` passthrough for mpv `--vo-kitty-use-shm`
- **Animation Frames**: A guest's `a=f` frame edits are forwarded to the host, so a program that patches its own image costs a rectangle instead of a whole bitmap. TUIOS also patches guests that only retransmit. Panes are told whether the host carries frame edits through `TUIOS_KITTY_ANIMATION`, because the host's reply is not relayed back into the pane and a guest cannot find out for itself.
- **Terminal Queries**: OSC 4 palette, OSC 10-12 colors, CSI 14/16/18t sizing, DA1/DA2
- **Experimental**: Kitty text sizing protocol (OSC 66). Basic passthrough works but has known issues with scrollback and window repositioning
- **Kitty Animation Protocol**: Frame transmission, composition, and control (a=f, a=a, a=c), with damage-patch streaming for animated guests

### Session Management
- **Daemon Mode**: Persistent sessions with detach/reattach (like tmux)
- **Session Resurrection**: Sessions come back after a daemon restart or reboot with their structure and working directories ([docs](docs/SESSIONS.md))
- **Go to anything**: One list of agents, sessions, workspaces and panes (<kbd>Prefix</kbd>+<kbd>G</kbd>; <kbd>Prefix</kbd>+<kbd>S</kbd> opens it on the sessions)
- **Layout Templates**: Save/load window arrangements with working directories and startup commands
- **Layout CLI**: `tuios layout list`, `tuios layout delete`, `tuios layout export`

### Automation
- **Tape Scripting**: DSL for recording and replaying terminal workflows
- **Tape Recording**: Record live sessions (<kbd>Prefix</kbd>+<kbd>T</kbd> <kbd>r</kbd>)
- **Headless Execution**: `tuios tape exec` runs a tape against a running daemon session
- **Layout Export**: Convert layouts to tape scripts for sharing

### Discovery & Navigation
- **Which-Key Popup**: Hold the prefix key to see the chords available (`appearance.whichkey_enabled`, [docs](docs/KEYBINDINGS.md))
- **App Launcher**: <kbd>Alt</kbd>+<kbd>Space</kbd> runs anything on `$PATH`, frecency-ranked, with desktop-entry names and icons
- **Keybind Manager**: <kbd>Prefix</kbd>+<kbd>k</kbd> in-app, or `tuios keybinds doctor` and `tuios keybinds explain <key>` from the shell
- **Multifocus**: Broadcast typing to several panes at once, `Ctrl`+`Shift`+click to select ([docs](docs/LAYOUT_MODES.md#multifocus))

### More
- **Showkeys Overlay**: Display pressed keys for presentations
- **Spotlight**: Light one area of the screen and dim the rest, for demos and recordings (`[spotlight]` config table)
- **Screenshots**: `tuios screenshot` renders a pane to PNG, SVG, ANSI, HTML or text
- **Dock Components**: Your own commands drawn in the dock, updated on events, from a running command, or by polling ([examples](examples/dock/README.md))
- **Customizable Keybindings**: TOML configuration with Kitty protocol support
- **Hooks**: Run shell commands on ten events, including window, workspace, attach and agent state changes ([docs](docs/HOOKS.md))
- **Mouse Support**: Wheel scrollback, drag-to-select with copy on release, double-click word and triple-click line, window drag, resize, scrollbar
- **SSH Server Mode**: Remote terminal multiplexing
- **Web Terminal Mode**: Browser-based access (separate `tuios-web` binary)
- **Themes**: Bundled themes plus custom themes from JSON, with chrome designed for truecolor, 256 and 16 colours and for light themes ([docs](docs/THEMES.md))
- **Host Colours**: tuios asks your terminal for its colours, passes them to programs that ask, and follows its light and dark switch
- **Backgrounds**: `appearance.background` paints empty cells with the theme's background or a colour of your own, per surface if you like
- **Motion**: `appearance.motion` is `none`, `ba
↑