Agent♥︎Age
Catalog

SmartCLI — drive terminal TUIs

Official

by dwgx · Python

Let agents drive vim, htop, lazygit: send keys, wait on screen state, read the rendered cell grid.

io.github.dwgx/smartcli (SmartCLI) MCP Server

This MCP server (“io.github.dwgx/smartcli”) lets agents drive terminal applications such as Vim, htop, and lazygit by sending keys, waiting on screen state, and reading the rendered cell grid. It is designed for terminal automation using a PTY-based approach and screen-scraping techniques.

🛠️ Key Features

  • Send keyboard keys to terminal programs
  • Wait for specific screen state before continuing
  • Read the rendered cell grid for terminal UI content

🚀 Use Cases

  • Automate Vim interactions for agent workflows
  • Control and monitor terminal tools like htop
  • Drive TUI workflows in lazygit via terminal rendering

⚡ Developer Benefits

  • Enables AI agents to operate TUIs through terminal automation
  • Supports integration with MCP and terminal automation patterns
  • Uses related components highlighted by topics such as PTY and screen-scraping

⚠️ Limitations

  • Requires rendered terminal state/cell-grid visibility (screen-scraping dependent)

Topics

agent-skillsansiascii-artclaude-skillcliptypytepythonterminaltuiagent-toolsai-agentsconptymcpmcp-serverpexpectscreen-scrapingterminal-automation