iterm-control

iterm-control is a skill for Codex from antonio-mello-ai/iterm-ai-agents-bundle. It costs 81 tokens per session (1,175 once invoked), scanned A, original, MIT.

A control tool for iTerm, the macOS terminal app, including its windows, tabs, sessions, and panes.

In plain words
What is it for?
It can list and focus sessions, create tabs, windows, splits, and grids, close selected targets, set badges, send commands, run health checks, and take screenshots.
Why use it?
It lets an agent inspect and manage terminal layouts and targets without writing AppleScript commands by hand.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: reads .claude/ paths; mentions Codex.

Good fit It can list and focus sessions, create tabs, windows, splits, and grids, close selected targets, set badges, send commands, run health checks, and take screenshots.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/antonio-mello-ai/iterm-ai-agents-bundle/iterm-control
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add antonio-mello-ai/iterm-ai-agents-bundle --skill iterm-control
Clone the repo
git clone --depth 1 https://github.com/antonio-mello-ai/iterm-ai-agents-bundle

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for iterm-control

README.md
[![agentmods](https://agentmods.dev/badge/skills/antonio-mello-ai/iterm-ai-agents-bundle/iterm-control/github.svg)](https://agentmods.dev/skills/antonio-mello-ai/iterm-ai-agents-bundle/iterm-control)
Your own site
<a href="https://agentmods.dev/skills/antonio-mello-ai/iterm-ai-agents-bundle/iterm-control"><img src="https://agentmods.dev/badge/skills/antonio-mello-ai/iterm-ai-agents-bundle/iterm-control/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for iterm-control

Your own site · 80×15
<a href="https://agentmods.dev/skills/antonio-mello-ai/iterm-ai-agents-bundle/iterm-control"><img src="https://agentmods.dev/badge/skills/antonio-mello-ai/iterm-ai-agents-bundle/iterm-control.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,175 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00081 $0.01175
Opus 5 $0.00041 $0.00588
Sonnet 5 $0.00016 $0.00235
Haiku 4.5 $0.00008 $0.00118

Measured 10d ago against content hash 12a1f6ddeb4c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

iterm-control scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/iterm-control/SKILL.md · 122 lines

How it starts

The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.

iTerm Control

Use this skill to control iTerm topology and pane state through the bundled CLI. Prefer the CLI over hand-written AppleScript.

Quick Start

skills/iterm-control/scripts/iterm-control identify
skills/iterm-control/scripts/iterm-control health
skills/iterm-control/scripts/iterm-control list
skills/iterm-control/scripts/iterm-control focus --target session:<id>
skills/iterm-control/scripts/iterm-control badge --target caller --text "Regi"
skills/iterm-control/scripts/iterm-control tab --target caller --command "zsh -lc 'cd \"$PWD\" && exec codex'"
skills/iterm-control/scripts/iterm-control window --target caller --command "zsh -lc 'cd \"$PWD\" && exec codex'"
skills/iterm-control/scripts/iterm-control split --target caller --direction right --command "zsh -lc 'cd \"$PWD\" && exec codex'"
skills/iterm-control/scripts/iterm-control grid --target caller --rows 2 --cols 2 --command "zsh -lc 'cd \"$PWD\" && exec codex'"
skills/iterm-control/scripts/iterm-control screenshot --output /tmp/iterm-check.png

When installed locally, the same script is usually available at:

~/.agents/skills/iterm-control/scripts/iterm-control
~/.claude/skills/iterm-control/scripts/iterm-control
~/.codex/skills/iterm-control/scripts/iterm-control

Targeting

Use explicit targets for mutating actions:

  • caller: the terminal that invoked the agent, matched by TTY when possible.
  • current: iTerm's current session in the current window.
  • session:<id>: exact iTerm session id from list or identify.
  • tty:<path>: exact TTY path, for example tty:/dev/ttys003.

If caller cannot be matched because the agent runtime is not attached to a TTY, the CLI falls back to iTerm's current session and reports caller-fallback-current in JSON. Treat that as user-visible focus and verify before destructive actions.

Common Tasks

Create a right split and start a command:

iterm-control split --target caller --direction right --command "zsh -lc 'cd /path/to/repo && exec codex'"

Read the full file on GitHub · 122 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 122 lines · 81 tokens per session scan A 12a1f6ddeb4c

Subscribe to this mod's changes

iterm-control is a skill published in the GitHub repository antonio-mello-ai/iterm-ai-agents-bundle (2 stars, last pushed 2mo ago), licensed MIT. It adds 81 tokens to every session and 1,175 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

stay-within-limits

Use when long-running or parallel agent work must respect 5-hour and weekly usage limits by checking usage between waves, pausing near the cap, and resuming only when the window is clear.

BuilderIO/skills · 45 tokens

obsidian-bases

Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.

kepano/obsidian-skills · 63 tokens

crisis-holding

Draft crisis holding statements, journalist Q&A posture, and what-not-to-say guidance from confirmed incident facts, with a hard legal-counsel gate. Builds each statement through proven crisis-comms frameworks (holding-statement anatomy, SCCT, CAP order, the legitimate non-answer, bridge/flag/block).

elvisun/newsjack · 67 tokens

find-journalists

Build, refine, dedupe, and enrich small fit-checked journalist lists for newsjack campaigns. Uses the newsjack CLI (preferred) or the medialyst MCP for news search and journalist enrichment, and falls back to a best-effort local mode with no verified contacts; the agent owns how returned data is organized.

elvisun/newsjack · 69 tokens

agent-estate

Perpetual autonomous work loop for Claude Code — no end condition, no memory regression, no context overfill. Maintains a persistent ledger across all sessions.

majiayu000/claude-skill-registry · 36 tokens

story-origin-check

Recover the first public timestamp and canonical major coverage for a newsjacking signal, then decide whether newer coverage is the same story, a different story, or a materially new development.

elvisun/newsjack · 40 tokens