/tools:tui-usefrom tools
Automates interaction with terminal programs that require keyboard input (REPLs, debuggers, TUI apps) using PTY. Supports typing, pressing keys, waiting for output, and managing multiple sessions.
Ships in tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Operate interactive terminal programs that require keyboard input — REPLs, debuggers, TUI apps, anything bash can't reach.
start → wait → type/press → wait → ... → kill
start automatically makes the new session current. Only call use when switching between multiple existing sessions.
tui-use start <cmd> # Start a program (becomes current session)
tui-use start --cwd <dir> "<cmd> -flags" # Start in directory, quote full command for flags
tui-use start --label <name> <cmd> # Start with label
tui-use start --cols <n> --rows <n> <cmd> # Custom terminal size (default: 120x30)
tui-use use <session_id> # Switch to a session
tui-use type <text> # Type text (any characters, strings)
tui-use type "<text>\n" # Type with Enter
tui-use paste "<text>\n<text>\n" # Multi-line paste (each line + Enter)
tui-use press <key> # Press a named key (enter, escape, ctrl+r, arrow_up…)
tui-use wait # Wait for screen to stabilize (default timeout: 3000ms)
tui-use wait <ms> # Custom timeout
tui-use wait --text <pattern> # Wait until screen contains pattern (preferred)
tui-use wait --debounce <ms> # Idle window before resolving (default: 100ms)
tui-use snapshot # Get current screen
tui-use snapshot --format json # JSON output
tui-use find <pattern> # Search in screen (regex)
tui-use scrollup <n> # Scroll up to older content
tui-use scrolldown <n> # Scroll down to newer content
tui-use list # List all sessions
tui-use info # Show session details
tui-use rename <label> # Rename session
tui-use kill # Kill current session
tui-use daemon status/stop/restart # Manage daemon
type <text> — sends printable characters: letters, numbers, symbols, vim commands (i, u, :wq)press <key> — sends a named control key: enter, escape, tab, backspace, arrow_up, ctrl+r, ctrl+c, f1–f10Run tui-use keys to see all valid key names.
wait blocks until the screen has been stable for 100ms (debounce), then resolves. No need for sleep.
wait returns regardless when this expires--debounce <ms> (default 100ms) — how long screen must be idle before resolving; increase for slow programsPrefer --text <pattern> for the most reliable results — it waits for a semantic signal, not just silence:
tui-use wait --text ">>>" # Python REPL ready
tui-use wait --text "(Pdb)" # pdb at prompt
tui-use wait --text "\\$" # shell prompt
Pretty format:
─── session-id ──────────────────────────────────────
What is your name?
> Alice
─── running | cursor(2,8) | fullscreen:false | title:"" ─
highlights(0):
JSON (--format json):
{
"session_id": "abc12345",
"screen": "What is your name?\n> Alice",
"cursor": { "x": 2, "y": 1 },
"changed": true,
"status": "running",
"exit_code": null,
"title": "",
"is_fullscreen": false,
"cols": 120,
"rows": 30,
"highlights": []
}
start sets current session automatically--text over plain wait — semantic signal beats silence detection"exited", don't send more inputtui-use start python3
tui-use wait --text ">>>"
tui-use type "x = 42"
tui-use press enter
tui-use wait --text ">>>"
tui-use type "print(x * 2)"
tui-use press enter
tui-use wait --text ">>>"
tui-use kill
SID1=$(tui-use start htop --label monitor)
SID2=$(tui-use start python3)
tui-use use $SID1
tui-use wait --text "PID"
tui-use type "q"
tui-use kill
tui-use use $SID2
tui-use wait --text ">>>"
tui-use type "print(1+1)"
tui-use press enter
tui-use wait --text ">>>"
tui-use type "exit()"
tui-use press enter
tui-use kill
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
terminal-automation, repl, tui, pseudo-terminal, interactive-cli
npx claudepluginhub joaquincampo/my-plugins --plugin tools7 skills in this plugin
/advisorUse when the user asks to consult the advisor, wants transcript-aware strategic guidance, wants a second opinion on ongoing agent work, provides a transcript for review, is stuck, is choosing between candidates, or wants to know whether completed work is ready. Always run the advisor as a separate GPT-6 Astra agent with the exact recovered advisor system prompt./artifactUse when building or improving HTML/CSS artifacts, React pages, dashboards, landing pages, explainers, demos, SVG diagrams, UI prototypes, or visual outputs where design quality, subject-specific treatment, responsive behavior, and render verification matter./browser-useAutomates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, or extract information from web pages./codex-model-routingUse when spawning Codex subagents or Codex threads and choosing among GPT-5.6 Luna, Terra, and Sol, plus Spark and GPT-6 Astra, with the appropriate effort. Use this with orchestrating-subagents whenever delegation involves model overrides, reasoning effort, Explore agents, checker/fixer loops, or fan-out work./kanban-processUse when the user asks to use a kanban process, track development work on a GitHub board, work from the agent board, proactively track tasks and deferred findings, runs `/kanban-process`, or when the project is already configured to use this workflow./orchestrating-subagentsUse when session work decomposes into delegable units (many token-heavy steps with compact results) or the user asks to delegate to subagents. Invoke before context fills, not after.2 plugins ship this exact skill · first indexed Oct 18, 2026
Other plugins' skills for the same job