# Repository Briefing: Gaurav-Gosain/tuios
> Source: https://repoforai.com/repo/Gaurav-Gosain/tuios (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Gaurav-Gosain/tuios
- **Official Docs / Website**: https://tuios.dev
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Go
- **License**: MIT
- **Engineering Health**: A+ (91/100 · Maintenance 35/35 · Adoption 16/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.13.3 (2026-11-16) — https://github.com/Gaurav-Gosain/tuios/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: Docker, CLI, Self-Hosted
- **Momentum**: 6,887 ★ total (+9 24h / +64 7d) · 352 forks
- **Topics**: `ai-agents`, `bubbletea`, `charm`, `claude-code`, `codex`, `coding-agents`, `developer-tools`, `go`, `golang`, `multiplexer`, `omarchy`, `ssh`
- **When to Use**: Best for: Developers running several coding agents alongside shells and build jobs who want persistent sessions, remote panes, and one place to handle requests for human input. Skip if: You need exact compatibility with an established tmux setup, only need basic splits, or are looking for a model-serving platform rather than a terminal workspace.

## Overview
```text
### Architecture & Core Mechanics
TUIOS is a Go terminal multiplexer built around Bubble Tea v2's Model–View–Update loop and Lipgloss v2. PTY reader goroutines signal the UI over a buffered channel instead of making terminal content redraw on a fixed tick. `internal/app/os.go` owns workspaces and overlays, `vt/` parses ANSI and maintains scrollback, and `internal/app/render.go` composites visible layers and batches graphics output. Modal keyboard and mouse routing lives in `internal/input/`.

The daemon keeps sessions alive beyond a client attachment. It exposes a JSON verb control protocol, while `tuios mcp` provides an MCP server interface. Program status can enter through OSC 7501 or `tuios status`; shell hooks on window, session, and agent events provide a separate extension point. Charm SSH and Wish v2 are present in the Go module, and the host model supports both attaching to a complete remote session and placing a remote PTY-backed pane in a local session.

### Key Capabilities & Differentiators
The terminal layer offers nine workspaces, BSP tiling with split preselection, master-stack and scrolling layouts, zoom, and floating command popups. Vim-style copy mode works over 10,000 lines of scrollback, and OSC 133 markers allow navigation by command and output block. Kitty graphics reuse image IDs and batch synchronized output; sixel passthrough is experimental and lacks pixel-level clipping.

The distinction from a plain multiplexer is the agent workflow. Integration installation covers 19 harnesses, including Claude Code, Codex, Gemini CLI, and opencode; process and screen detection covers 24 agent CLIs. The Inbox aggregates blocked prompts, approvals, and completed turns across sessions and hosts. Helpers can run in a TUI or headlessly over ACP or the Codex app-server, and `tuios worktree new --agent` can place a helper in a separate worktree. These are integrations with external coding tools, not a bundled inference runtime.

### Trade-offs & Limitations
Against tmux, TUIOS has a clear advantage when the main job is tracking multiple coding agents and responding to them from a single view. Its tmux shim provides a path for tools such as Claude Code agent teams, not proof that existing tmux plugins and scripts will behave identically. If your priority is preserving a mature tmux setup, test that compatibility first. Rendering is also host-terminal dependent: true color is required, graphics support varies, and per-cell dimming for unfocused panes prevents use of the cheaper unfocused rendering path.

Persistence has two distinct meanings: detaching leaves a daemon-managed session running, while after a daemon restart the Inbox can offer to resume agent conversations. Do not treat that as a guarantee that every pane process survives a restart unchanged. For remote use, review `[hosts]` policy and scope pane grants (`read`, `write`, `fan`, `respond`, `admin`) to the actions each integration needs. Those grants govern actions through TUIOS; they are not a substitute for OS-level isolation.

### Hardware & Deployment Guide
For a workstation, Homebrew or a prebuilt release binary avoids the source toolchain. Release binaries cover Linux, macOS, Windows, FreeBSD, and OpenBSD; source builds need Go 1.27.3 or newer, and `go.mod` selects `go1.27.4`. Use a true-color terminal, with kitty graphics or sixel support if image output matters. The Dockerfile builds both `./cmd/tuios` and `./cmd/tuios-web` with CGO disabled and uses a non-root distroless runtime base.

The interactive Docker example uses `--rm`, so treat it as an evaluation path, not a persistence plan. Before making a self-hosted rollout depend on containers, verify the required shell and agent binaries, storage, and SSH configuration. The v0.13.1 release calls for one restart when moving from v0.12.1. v0.13.2 refined the agent thread view; v0.13.3 addresses four privately reported security issues and fixes a focus-key regression. On macOS and Linux, an upgrade from v0.13.1 or later can be applied live with `tuios daemon upgrade` after installing the new binary.
```

## Key Capabilities
```text
- Rendering: PTY events drive Bubble Tea v2 updates; viewport culling skips off-screen and minimized panes.
- Workspace layout: Nine workspace slots with BSP, master-stack, and horizontal scrolling layouts.
- Agent observability: Hook installation covers 19 harnesses; process and screen detection covers 24 agent CLIs.
- Human interaction: The cross-host Inbox collects approvals, questions, messages, errors, and completed turns.
- Remote control: SSH-backed hosts can provide whole sessions or individual panes; host policy governs cross-machine actions.
- Terminal history: Vim-style navigation over 10,000 lines of scrollback and OSC 133 command/output block navigation.
```

## Quick Start / Clone
```bash
brew install tuios
```
