cli-anything-iterm2-ctl

Automate iTerm2 sessions by sending text, reading output, and managing layouts.

1|Updated Jun 13, 2025
One-click install
npx skills add https://github.com/quazfenton/binG --skill cli-anything-iterm2-ctl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-anything-iterm2-ctl
Source: https://github.com/quazfenton/binG/tree/main/.agents/skills/CLI-Anything-main/CLI-Anything-main/skills/cli-anything-iterm2-ctl
Command: npx skills add https://github.com/quazfenton/binG --skill cli-anything-iterm2-ctl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a deterministic CLI harness to send text to iTerm2 sessions, read live terminal output and scrollback, and manage windows, tabs, and panes without manual GUI operations.

Core Features & Use Cases

  • Send text to iTerm2 sessions and read live output across multiple panes and windows
  • Manage layouts: create, arrange, broadcast across panes, and navigate windows
  • Support tmux -CC workflows and macOS dialogs for automation and scripting
  • Inspect session state to orient a user in a workspace and perform quick checks

Quick Start

Orient in an existing iTerm2 workspace, then send a command and read the live output.

Frequently Asked Questions about cli-anything-iterm2-ctl

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate iTerm2 sessions to send text and read live output?

Automate iTerm2 sessions via a deterministic CLI to send text, read live output, and manage layouts without manual GUI operations. This enables interactive terminal orchestration and multi-pane workspace setups.

Can I manage iTerm2 window layouts and broadcast commands across panes from the command line?

Yes, you can manage layouts by using the CLI to create, arrange, and broadcast commands across multiple panes. It also supports navigating windows and inspecting session state to orient users in complex workspaces.

What do I need to run deterministic CLI commands for iTerm2 session management on macOS?

You need macOS with iTerm2 installed, the iTerm2 Python API enabled, and the cli-anything-iterm2 package to execute actions. These prerequisites allow the CLI to interface directly with the terminal application.

Does this iTerm2 automation CLI support tmux workflows and macOS dialogs?

Yes, the CLI supports tmux -CC workflows and macOS dialogs for automation and scripting. This allows for seamless integration with existing terminal multiplexer setups and native macOS dialog interactions.

What is the best way to inspect iTerm2 session state for automated workspace checks?

The best way to inspect session state is using the CLI to orient in an existing iTerm2 workspace and perform quick checks. This provides deterministic feedback for automated session orchestration.