Skip to content
hkuds avatar

Cli Anything Iterm2 Ctl

Stateful CLI harness that sends text, reads live output, and manages iTerm2 panes, windows, tmux, and preferences.

CCM score
58 of 100
skills.sh installs
571
GitHub stars
67.7K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers command groups for app, window, tab, session, profile, arrangement, tmux, broadcast, menu, and pref, plus a REPL mode
  • Includes app snapshot, which returns each session's name, directory, foreground process, role label, and last output line in one call
  • Requires macOS, iTerm2, and the iTerm2 Python API enabled, with --json output for agent use
  • Designed for agents that orient in an existing workspace, run commands, read scrollback, or automate panes instead of answering from memory

Install

$ npx -y skills add hkuds/cli-anything --skill cli-anything-iterm2-ctl -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

cli-anything-iterm2

Stateful CLI harness for iTerm2. Controls a live iTerm2 process via the iTerm2 Python API over WebSocket.

Prerequisites

  1. macOS + iTerm2 running: brew install --cask iterm2
  2. Python API enabled: iTerm2 → Preferences → General → Magic → Enable Python API
  3. Install: pip install cli-anything-iterm2 (or pip install -e . from source)

Basic Syntax

cli-anything-iterm2 [--json] <group> <command> [OPTIONS] [ARGS]

Always use --json for machine-readable output (required for agent use).

Command Groups

Details

Repository
github.com/hkuds/cli-anything
Category
CLI & Terminal
First seen
Jun 3, 2026

Questions

What does the cli-anything-iterm2-ctl skill do?

It gives an agent the cli-anything-iterm2 commands to control a live iTerm2 process. It can send text to sessions, read live output and scrollback, manage windows, tabs and split panes, run tmux -CC workflows, and read or write iTerm2 preferences.

How do I install the cli-anything-iterm2-ctl skill?

Run npx -y skills add hkuds/cli-anything --skill cli-anything-iterm2-ctl -y in your project. Once installed, the agent can orient in an existing iTerm2 workspace, send commands, and read pane output.

What do I need before using this skill with iTerm2?

You need macOS with iTerm2 running and the iTerm2 Python API enabled under Preferences, General, Magic. You also need to install the cli-anything-iterm2 package with pip.

Where does this skill stand in the CLI & Terminal category?

It is listed in the CLI & Terminal category alongside herdr, gws-shared, opentui, cf-cli and pnpm. It sets itself apart by focusing on sending text to iTerm2 sessions and reading live output, including the app snapshot command that summarizes every session in one call.

More from hkuds/cli-anything

All 51

Similar to Cli Anything Iterm2 Ctl

More CLI & Terminal