Ar9av

Termmirror — AI skill for Claude Code

AI community

Terminal for Agents - MCP server giving AI agents real interactive terminal sessions - PTY, TUIs, REPLs, SSH, even another agent's CLI - with a live web view a human can watch and type into.

How to install Termmirror

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Ar9av/termmirror and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Termmirror does

Terminal for Agents - MCP server giving AI agents real interactive terminal sessions - PTY, TUIs, REPLs, SSH, even another agent's CLI - with a live web view a human can watch and type into.

Alternatives in AI

  • CLI Continues — resume any AI coding session in another tool — Claude Code, Copilot, Gemini, Codex, Cursor 1.5k ★
  • Agentboard — Web GUI for tmux optimized for AI agent TUIs, with support for iOS safari and mac w/ keyboard shortcuts 410 ★
  • Quarkus Agent MCP — A standalone MCP server that enables AI coding agents to create, manage, and interact with Quarkus application 50 ★

README

termmirror

An MCP server that gives AI agents real interactive terminal sessions — and a live web view where a human can watch those sessions and type into them.

Most agent tooling can only run commands that exit on their own. Anything that prompts, redraws, or waits for a keystroke is out of reach: installers, `ssh` with a password challenge, `pdb`, `vim`, a package manager's configuration screen — and another agent's CLI. termmirror keeps real PTY sessions open so an agent can work them the way a person does, one keystroke at a time, while a human can look over its shoulder and step in when needed.

![One agent driving another agent's CLI, watched live in the browser](docs/driving-claude-code.jpg)

*One agent driving a Claude Code session through termmirror — it accepted the trust prompt, asked a question, and read the answer off the screen. The browser view is live, and typing in it goes straight to the same terminal.*

![A vim session driven keystroke by keystroke](docs/driving-vim.jpg)

*A full-screen TUI under the same tools: the agent opened `vim`, moved to the end of the file, entered insert mode, and typed a line.*

Features

  • Real PTY sessions. Backed by node-pty with a headless terminal emulator holding screen state. No tmux or other external dependency.
  • Built for TUIs. Alternate-screen detection, key encoding for control and navigation keys, and scrollback that unwraps soft-wrapped lines.
  • Reliable waiting. wait returns once a program has responded and settled, so the screen you read reflects your input rather than the state before it.
  • Live web view. Any session can be watched in the browser as it runs. Typing in the page goes straight to the PTY, so a human can take over and hand back.
  • Agent-to-agent. Designed so one agent can drive another agent's CLI through a multi-turn conversation.
  • Browser sessions too. The same three properties for a real Chrome window: the agent drives it by accessibili