April 8, 2026
Terminal Thunderdome incoming
Show HN: TUI-use: Let AI agents control interactive terminal programs
AI learns to drive old‑school terminal apps — fans cheer, purists yell “reinventing tmux”
TLDR: tui-use lets AI control interactive terminal apps by reading the screen and sending keystrokes, turning once-human-only tools into bot playgrounds. Commenters are split between “finally useful” and “lol, just use tmux,” with bonus jokes about gaming and hacks to save on chatbot fees — and that clash matters for real AI workflows.
New tool alert: tui-use promises to let AI “press buttons” inside those old-school, text-only apps that live in the terminal — from Python and database consoles to full-screen tools like vim and htop. It snapshots the screen as clean text, spots what’s highlighted, and sends keystrokes like a human would. In simple terms: if you can do it in a terminal, your bot can too.
Cue the split-screen drama. One camp is excited, saying this finally bridges the gap where bots choke the moment a program asks a question. User wolttam calls it “kind of fun” and hints today’s chatbots aren’t general enough to handle all the quirky prompts real tools throw at us. Fans see this as the missing steering wheel for agents.
But the terminal veterans showed up with receipts. The top snark: “In 2026: frontend web developer reinvents tmux,” a spicy dunk from mccoyb, basically saying, “We’ve had screens, sessions, and key sending forever — prove the upgrade.” Another old hand, wild_egg, says they’ve had agents using tmux for years and asks what magic this adds. Translation: cool demo, but where’s the edge?
Meanwhile, chaos gremlins abound. petcat jokes about piping prompts into Claude to dodge API fees, and mikkupikku asks the only question that matters: can it play NetHack? Whether it’s a true breakthrough or a shiny remix of ancient terminal tricks, the comment section is a five-alarm keyboard fire — and it’s glorious.
Key Points
- •tui-use enables AI agents to operate interactive terminal programs by spawning them in a PTY, reading rendered screens as plain text, and sending keystrokes.
- •It targets REPLs, interactive scaffolding tools, database CLIs, SSH sessions, and full-screen TUI applications (e.g., vim, lazygit, htop, fzf).
- •Key features include a headless xterm-based full VT rendering pipeline, a snapshot interaction model, inverse-video highlights, and rich key input support.
- •Installation is available via npm or from source; an optional Claude Code plugin integrates via a self-hosted marketplace and requires the CLI.
- •Under the hood, a daemon manages PTY sessions and communicates with the CLI over HTTP; snapshots include metadata like highlights, window title, and fullscreen detection.