tarunai-connect-iterm2

Control live iTerm2 terminal sessions with JSON outputs.

Updated May 25, 2026
One-click install
npx skills add https://github.com/tharunramagiri/tarunai-connect --skill tarunai-connect-iterm2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tarunai-connect-iterm2
Source: https://github.com/tharunramagiri/tarunai-connect/tree/main/iterm2/agent-harness/tarunai_connect/iterm2_ctl/skills
Command: npx skills add https://github.com/tharunramagiri/tarunai-connect --skill tarunai-connect-iterm2

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill solves the challenge of enabling AI agents to reliably interact with live iTerm2 environments, including reading terminal state, sending commands, and managing complex workspace layouts.

Core Features & Use Cases

  • Terminal Session Control: Send text, inject bytes, read visible screens, retrieve scrollback history, and coordinate shell workflows through iTerm2.
  • Workspace Automation: Create and manage windows, tabs, split panes, layouts, broadcasts, dialogs, preferences, and tmux -CC integrations.
  • Use Case: An AI coding agent can inspect an existing developer workspace, identify running services, execute commands in the correct pane, and collect output without manual terminal interaction.

Quick Start

Ask the iTerm2 skill to snapshot my current workspace and show all active sessions with their processes and latest output.

Frequently Asked Questions about tarunai-connect-iterm2

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

FAQPage Schema
How do I automate iTerm2 terminal sessions with an AI agent?

You can automate iTerm2 terminal sessions by using an AI agent to inspect live workspaces, send commands, manage panes, and retrieve scrollback output through the iTerm2 Python API.

Can I read terminal output and send commands to specific iTerm2 split panes?

Yes, you can read visible screens, retrieve scrollback history, send text, and inject bytes into specific iTerm2 split panes to coordinate complex shell workflows programmatically.

Does this approach work with tmux integration for workspace automation?

Yes, workspace automation supports tmux -CC integrations, allowing AI agents to manage windows, tabs, split panes, layouts, and broadcasts within your tmux sessions.

What do I need to set up before controlling iTerm2 through an AI agent?

You need iTerm2 Python API access enabled on your macOS system to allow agents to interact with live terminal environments and return structured JSON outputs.

How do I snapshot my current iTerm2 workspace to identify running services?

You can snapshot your workspace to inspect existing developer environments, identify active sessions and their processes, and collect the latest terminal output without manual interaction.

What are the limitations of AI-driven terminal automation in iTerm2?

This terminal automation requires iTerm2 Python API access and is limited to macOS environments, relying on structured JSON outputs for reliable agent-driven control of desktop workflows.