New advertisers: 50% off your first month with code FIRSTMONTHSee slots
pavanmanishd avatar

tui-use

pavanmanishd/tui-use

Drives interactive terminal programs like vim, git rebase -i, ssh, and REPLs from an agent.

tools
6
transport
STDIO
last updated
Nov 21, 2026
View on GitHub

What it does

  • Reads the live screen with tui_start, tui_snapshot, and tui_scrollback, returning numbered text with cursor and highlight marks
  • Types input with tui_send (text, keys, or an ordered input list) and waits with tui_wait using text, regex, idle, or exit conditions
  • Manages sessions with tui_manage to list, kill, resize, or fetch recordings; runs locally over stdio on macOS, Linux, or WSL
  • Designed for agents that need to answer prompts, edit files in vim, or step through debuggers and installers across multiple turns

Tools

6 tools

Public tool metadata for what this MCP can expose to an agent.

tui_startStarts a program and returns its first screen.

Starts a program and returns its first screen.

No parameter schema in public metadata yet.

tui_sendTypes text, a secret_env value and keys (or an ordered input list), waits, and returns the new screen as a diff by default.

Types text, a secret_env value and keys (or an ordered input list), waits, and returns the new screen as a diff by default.

No parameter schema in public metadata yet.

tui_snapshotReturns the screen without sending input.

Returns the screen without sending input.

No parameter schema in public metadata yet.

tui_waitWaits without sending input, for builds and installs.

Waits without sending input, for builds and installs.

No parameter schema in public metadata yet.

tui_scrollbackReads output that scrolled off the screen, by line range or by search.

Reads output that scrolled off the screen, by line range or by search.

No parameter schema in public metadata yet.

tui_manageLists sessions, kills one, resizes one, or returns the path of its recording.

Lists sessions, kills one, resizes one, or returns the path of its recording.

No parameter schema in public metadata yet.

Readme

tui-use

Let any AI agent drive interactive terminal programs: vim, git rebase -i, npm init, ssh, REPLs, debuggers, htop, installers and database shells.

Coding agents run shell commands one at a time, without a terminal. A command that waits for input hangs until the tool times out, a full-screen program prints escape codes, and a REPL forgets everything between turns. tui-use gives the agent a real terminal that it can read and type into across as many turns as it needs.

claude mcp add tui-use -- npx -y @pavanmanishd/tui-use@1.1.0 mcp

Claude Code squashing three commits with git rebase -i through tui-use

Claude Code (Opus) squashing three commits with git rebase -i through tui-use. It rewrites the todo list with :2,3s/^pick/squash/, replaces the combined commit message and saves. This is the terminal the agent drove, as tui-use recorded it.

What the agent sees


View the full README on GitHub

Details

Repository
github.com/pavanmanishd/tui-use
Categories
Developer Tools, Testing & QA
Package
@pavanmanishd/tui-use
Transport
STDIO
Registry
MCP registry, active

Similar to tui-use

More Developer Tools