Claude Code + iTerm2

Claude Code in iTerm2, without hunting for the right tab

iTerm2 is on back2vibing’s exact-return list. When a Claude Code session in one of your tabs finishes or asks for input, you go back to that tab, not just the iTerm2 window.
$ brew tap builtby-win/back2vibing https://github.com/builtby-win/back2vibing && brew install --cask back2vibing
Install via Homebrew macOS

Every Claude Code session on one rail

Run Claude Code in iTerm2 the way you already do. Each session gets a tab on the Session Rail with a status: needs you, working, ready, or blocked.

Return to the exact tab or pane

iTerm2 is on the supported list. With Pro, picking a session takes you back to its exact tab or pane instead of just bringing a terminal forward.

Many tabs, one clear answer

When five iTerm2 tabs each hold a Claude Code session, the Session Rail names which one is waiting. Pro returns you to that tab.

Set up Claude Code in iTerm2

  1. 1

    Install and grant Accessibility

    Install back2vibing and start the 14-day Pro trial. Grant Accessibility access when asked; it is how the app returns to the correct window, tab, or pane.
  2. 2

    Choose iTerm2 as your terminal

    Open the Workspaces tab in settings and choose iTerm2 under Terminal app. That is where agents you launch from back2vibing appear.
  3. 3

    Check the Claude Code integration

    Open Agents. Claude Code should show Active. If it shows Needs setup, use the repair action there, then start a fresh Claude Code session.
  4. 4

    Run the first check

    Start Claude Code in iTerm2, send a short prompt, switch to another app, and let it finish. The session should appear on the rail, and choosing it should take you back to where Claude Code was running.

Pricing and free trial

Every new install includes a 14-day free trial of the full app, then a $19 one-time lifetime license. Exact terminal tab and pane return, pop-up cards, Chat, and Harness mode are all included in the trial and lifetime license. After the trial, live status on the Session Rail, completion sounds, and macOS notifications keep working without a key.

Frequently asked questions

Does back2vibing work with Claude Code in iTerm2?

Yes. Claude Code is a supported agent and iTerm2 is a supported terminal. back2vibing tracks Claude Code through its agent hooks, so iTerm2 does not need a plugin.

I keep many Claude Code tabs open in iTerm2. Does that work?

That is the main use case. Each running session gets its own tab on the Session Rail with its own status, so you can see which iTerm2 tab needs you before you switch.

Can I run tmux inside iTerm2?

Yes. Pick your terminal and set Multiplexer to tmux in the Workspaces tab, and tmux panes are an exact-return target. See the tmux page for details.

What if Claude Code finishes and nothing shows up?

Open Agents and confirm Claude Code is Active, run the repair action if one is offered, then start a new Claude Code session. Existing sessions do not always pick up a newly installed or repaired hook.