Back to browse
GitHub Repository

tui-use lets agents interact with programs that expect a human at the keyboard — REPLs, debuggers, TUI apps, and anything else bash can't reach.

246 starsTypeScript

TUI-use: Let AI agents control interactive terminal programs

by dreamsome·Apr 8, 2026·52 points·37 comments

AI Analysis

●●●BangerBig BrainSolve My Problem

Headless xterm rendering lets agents navigate TUI apps like vim without stalling.

Strengths
  • Inverse-video span detection lets agents identify selected menu items without guessing cursor position.
  • Snapshot model simplifies the interaction loop compared to managing async stdout streams.
  • Works with existing AI coding agents like Claude Code via a dedicated plugin.
Weaknesses
  • Node.js dependency adds overhead compared to lightweight Rust or Go binary alternatives.
  • No built-in retry logic for when agents misinterpret the rendered screen state.
Target Audience

AI agent developers, power users of CLI coding assistants

Similar To

pexpect · repl.js · BrowserUse

Similar Projects

Developer Tools●●Solid

Babysit – let coding agents operate a TUI

PTY screenshots and expect patterns let agents operate TUIs without human help.

Big BrainNiche Gem
yusukeshibata
3021d ago