Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Scope iTerm automation to the caller tab and pane. Use when working in iTerm and the task involves the current tab, caller pane, non-disruptive splits, preserving focus, routing commands to the right pane, or avoiding interference with another visible iTerm pane.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-19 | ✗→✓ | ▲ Improved | -41% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -23% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -32% | 0% |
| case-14 | ✗→✓ | ▲ Improved | -65% | 0% |
| case-15 | ✗→✓ | ▲ Improved | -2% | 0% |
Use this skill to keep iTerm automation scoped to the pane and tab that invoked the agent. iTerm does not provide a cmux-style workspace API, so the practical workspace unit is the current iTerm tab.
Anchor on the caller pane first. If the agent process has no TTY, use the current iTerm session as a fallback and say so before making visible changes.
bashiterm-control identify iterm-control list
identify reports:
caller_tty: local terminal TTY if available.resolved_caller.resolution: caller-tty, caller-fallback-current, or another explicit resolution.current: iTerm's current session.Build layout additively from the caller/current pane. Prefer commands that create the pane already running the intended command:
bashiterm-control split --target caller --direction right --command "zsh -lc 'cd /repo && exec codex'" iterm-control grid --target caller --rows 2 --cols 2 --command "zsh -lc 'cd /repo && exec codex'"
Avoid focus-changing AppleScript unless the user explicitly asks to move focus. When a target is ambiguous, stop and ask for the pane/session id or use a badge or screenshot to verify.
Use this order for target selection:
session:<id> from a fresh list or identify.tty:<path> from a fresh list or identify.caller when identify resolved by caller-tty.current only when the task is explicitly about the currently focused iTerm pane.Do not send commands to another pane just because it is visually near the caller. iTerm pane geometry is not exposed reliably through AppleScript.
caller-fallback-current as focus-based and user-visible.list, screenshot, or visible output.Other measured skills in the registry, with their headline benchmark lift.