termmirror is an MCP server designed to provide AI agents with robust, interactive terminal sessions, bridging the gap for tools that require continuous input, redrawing, or keystrokes—like installers, `ssh` with password challenges, debuggers, or text editors. Unlike most agent tooling limited to non-interactive commands, termmirror keeps real PTY sessions alive, enabling agents to navigate complex terminal user interfaces (TUIs) and command-line interfaces (CLIs) as a human would, keystroke by keystroke. A key feature is its live web view, allowing humans to observe an agent's session in real-time and even take over input when necessary, facilitating seamless collaboration.
主要功能
01Reliable `wait` mechanism for settled screen states post-input
020 GitHub stars
03Advanced TUI support including alternate-screen detection and key encoding
04Designed for agent-to-agent CLI interactions
05Real PTY sessions with headless terminal emulation
06Live web view for human observation and intervention
使用案例
01Providing human operators with real-time visibility and direct input capability into agent-controlled terminal sessions
02Enabling AI agents to interact with interactive command-line tools like `ssh`, `vim`, `pdb`, and package managers
03Allowing one AI agent to drive the CLI of another AI agent (e.g., Claude Code)