
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
What it does
- Reads the live screen with
tui_start,tui_snapshot, andtui_scrollback, returning numbered text with cursor and highlight marks - Types input with
tui_send(text, keys, or an ordered input list) and waits withtui_waitusing text, regex, idle, or exit conditions - Manages sessions with
tui_manageto 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 toolsPublic 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
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
Terminal sessions for agentsMCP serverryamgoh2 starsReal terminal sessions for agents: shells and programs with output, input, and process-tree control.
using-tmux-for-interactive-commandsSkillobra/superpowers-lab514 installsTmux-based control of interactive CLI tools like vim, git rebase -i, and REPLs through detached sessions.
tmuxSkillmitsuhiko/agent-stuff422 installsDrive interactive CLIs like Python, gdb, and lldb through tmux sessions on a private socket.
PROTEUS terminalMCP serverkarimalsalahWindows terminal sessions for agents: spawn, type, wait without polling, lean reads, screenshots.
CodemanMCP serverark0n846 starsMission control for AI coding agents: spawn, prompt, and monitor sessions across many CLIs.
interactiveMCP serverttommyth352 starsA local bridge that lets an AI agent ask the user questions and send OS notifications.