MI

mstsirkin/interminai

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

57 stars 品質 69 トレンド 20GPL-2.0

AI(interminai)のためのインタラクティブなターミナル - 画面キャプチャと...

概要

インタラクティブなCLIアプリケーションとのプログラム的な相互作用を可能にするターミナルプロキシ。 インタラクティブなgit rebaseを実行するために、インターミニを使用してAIエージェント(Claude) インターミニを用いたAIエージェント(Claude)がインタラクティブなgdbデバッグを実行 多くの強力なCLIツールは、人的相互作用を必要とする - vimは、キーストローク、git rebase -iがエディタを開き、aptは確認を求め、TUIアプリケーションはキーボード入力に応答します。 これらのツールは、単純なシェルスクリプトで自動化できません。 - フルスクリーンインターフェイスを開く - ユーザーの入力を待ちます - 動的メニューとプロンプトを表示 - 端末のエミュレーションが必要です 擬似ターミナル(PTY)で任意のインタラクティブプログラムをラップし、画面の出力をテキストとしてキャプチャし、入力を送信し、表示を読み込む簡単なAPIを提供します。 これにより、AIエージェント、スクリプト、または自動システムが、vim、git、デバッガ、構成ウィザード、およびその他のインタラクティブ端末アプリケーションと相互作用することができます.

概要(AI 翻訳)

インタラクティブなCLIアプリケーションとのプログラム的な相互作用を可能にするターミナルプロキシ。

インタラクティブなgit rebaseを実行するために、インターミニを使用してAIエージェント(クロード)

インタラクティブなgdbデバッグを実行するために、インターミニを使用してAIエージェント(クロード)

それが何をしているか

多くの強力な CLI ツールは、人的相互作用を必要とする - vim はキーストロークを待ちます, [[git rebase -i]] エディタを開きます, [[apt]]]] 確認を求める, TUI アプリケーションはキーボード入力に応答します. これらのツールは、単純なシェルスクリプトで自動化できません。

  • フルスクリーンインターフェイスを開けて下さい
  • ユーザーの入力を待ちます
  • 動的メニューとプロンプトを表示
  • ターミナルエミュレーションを要求して下さい

**interminaiは擬似ターミナル(PTY)の相互プログラムを包むことによってこれを解決し、スクリーンの出力をテキストとして捕獲し、入力を送信し、表示を読むために簡単なAPIを提供しました。 これにより、AIエージェント、スクリプト、または自動システムが、vim、git、デバッガ、構成ウィザード、およびその他のインタラクティブ端末アプリケーションと相互作用することができます。

コア機能

  • 画面キャプチャ: 現在のターミナル表示を ASCII テキストとして読む
  • 入力制御: キーストローク、コマンド、および制御シーケンスを送信する

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

interminai - 🌀 an Interactive Terminal for AI

A terminal proxy that enables programmatic interaction with interactive CLI applications.

AI agent (Claude) using interminai to perform an interactive git rebase

AI agent (Claude) using interminai to perform interactive gdb debugging

What It Does

Many powerful CLI tools require human interaction - vim waits for keystrokes, git rebase -i opens an editor, apt asks for confirmation, TUI applications respond to keyboard input. These tools can’t be automated with simple shell scripts because they:

  • Open full-screen interfaces
  • Wait for user input
  • Show dynamic menus and prompts
  • Require terminal emulation

interminai solves this by wrapping any interactive program in a pseudo-terminal (PTY), capturing its screen output as text, and providing a simple API to send input and read the display. This allows AI agents, scripts, or automated systems to interact with vim, git, debuggers, configuration wizards, and any other interactive terminal application.

Core Capabilities

  • Screen capture: Read the current terminal display as ASCII text
  • Input control: Send keystrokes, commands, and control sequences
  • Process management: Start, monitor, signal, and stop wrapped processes
  • Daemon mode: Run in background for long-lived interactive sessions
  • Terminal emulation: Basic PTY with ANSI escape sequence handling

Use Cases

  • AI agents editing files with vim
  • Automated git operations (git rebase -i, git add -i, git commit)
  • Interactive package management (apt, yum)
  • Debugging with gdb or lldb
  • Configuration wizards (rclone, raspi-config)
  • TUI applications (htop, tmux, screen)
  • Any CLI tool that requires keyboard interaction

Installation

Quick Install

npx skills add mstsirkin/interminai

Works with Claude Code, Cursor, Codex, Gemini CLI, GitHub Copilot, and other skills-compatible agents. Tested on Linux but should work on any Unix-like OS (Linux, macOS, or Windows Subsystem for Linux).

Gemini CLI 0.65.0 requires interactive approval for shell commands that reuse generated socket paths. For unattended runs, use the MCP integration instead; see Gemini CLI command approval.

Manual Install

interminai is available in two implementations with identical functionality:

  • Rust (recommended) - Fast, zero dependencies, single binary
  • Python - Easier to modify, requires Python 3.6+

Choose the one that best fits your needs.

Prerequisites:

  • Rust toolchain (rustc 1.70+, cargo)
  • Linux or macOS (requires PTY support)

Build from source:

# Clone the repository
git clone 
cd rust

# Build release binary
cargo build --release
GitHub で README 全文を見る

推奨ツール

別のキーワードを試すか、フィルタを外してください。

インストール

npx skillfish add mstsirkin/interminai
MCP 初心者?mcpskill.org のガイドから始めましょう →