Skip to content
Tech News
← Back to articles

Show HN: TUI-use: Let AI agents control interactive terminal programs

read original get AI Terminal Assistant Kit → more articles
Why This Matters

tui-use is a groundbreaking tool that enables AI agents to interact seamlessly with terminal-based programs, including full-screen TUIs and interactive shells. By bridging the gap between AI automation and traditional CLI tools, it enhances the capabilities of AI-driven workflows, making complex terminal tasks more accessible and automatable for both developers and consumers.

Key Takeaways

tui-use Like BrowserUse, but for the terminal. tui-use gives agents access to the parts of the terminal that bash can't reach — every REPL, installer, and TUI app built for humans.

What is tui-use?

AI agents can run shell commands, read files, and call APIs. But they stall the moment a program asks for input — because most CLI tools were built for humans, not agents.

tui-use fills that gap. Spawn any program in a PTY, observe its screen as plain text, send keystrokes — all from the command line. If a human can operate it in a terminal, an agent can too.

Use cases:

REPL sessions — Run code in Python, Node, psql, or redis-cli, inspect the output, and keep going. No more one-shot scripts when you need an interactive session.

— Run code in Python, Node, psql, or redis-cli, inspect the output, and keep going. No more one-shot scripts when you need an interactive session. Interactive scaffolding tools — Step through npm create , cargo new , create-react-app , and any other CLI wizard that asks questions before doing anything.

— Step through , , , and any other CLI wizard that asks questions before doing anything. Database CLIs — Connect to psql or mysql, run queries, check schemas, without needing a separate API or ORM layer.

— Connect to psql or mysql, run queries, check schemas, without needing a separate API or ORM layer. SSH + remote interactive programs — SSH into a server and keep operating interactive programs on the other end, not just run one-off commands.

— SSH into a server and keep operating interactive programs on the other end, not just run one-off commands. TUI applications — Navigate vim, lazygit, htop, fzf, and other full-screen programs that were never designed to be scripted.

... continue reading