Skip to content
hkuds avatar

Cli Anything Iterm2

Stateful CLI harness that sends text, reads output, and manages iTerm2 panes, tabs, and tmux sessions.

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

Own this skill? Claim it

What it does

  • Covers iTerm2 command groups for app, window, tab, session, profile, arrangement, tmux, broadcast, menu, and preferences
  • 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 Python API enabled under Preferences, General, Magic
  • Designed for agents orienting in an existing workspace, sending commands, reading scrollback, or automating panes

Install

$ npx -y skills add hkuds/cli-anything --skill cli-anything-iterm2 -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
Categories
CLI & Terminal, Workflow Automation
First seen
Jun 3, 2026

Questions

What does the cli-anything-iterm2 skill let an agent do in iTerm2?

cli-anything-iterm2 lets an agent send text to live iTerm2 sessions, read terminal output and scrollback, manage windows, tabs and split panes, run tmux -CC workflows, and broadcast keystrokes to several panes. It also reads and writes iTerm2 preferences and shows macOS dialogs.

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

Run npx -y skills add hkuds/cli-anything --skill cli-anything-iterm2 -y in a project to install it. Once installed, the agent can use the cli-anything-iterm2 commands to act on iTerm2 instead of answering from memory.

What do I need before cli-anything-iterm2 can control iTerm2?

cli-anything-iterm2 needs macOS with iTerm2 running, and the iTerm2 Python API enabled under Preferences, General, Magic. The commands themselves are installed with pip install cli-anything-iterm2.

How does cli-anything-iterm2 help an agent find out what is running in my iTerm2 workspace?

cli-anything-iterm2 offers app snapshot, which returns every session's name, current directory, foreground process, role label and last output line in one call. An agent can orient in an existing workspace without reading each pane in full.

Where does cli-anything-iterm2 sit in the CLI and Terminal category?

cli-anything-iterm2 is listed in the CLI and Terminal category on Claude Marketplaces. Its own focus is driving iTerm2 directly, covering panes, tmux and preferences.

More from hkuds/cli-anything

All 51

Similar to Cli Anything Iterm2

More CLI & Terminal