Alien Desk

Guides

How to make two Claude Code tabs keep each other posted

Claude Code sessions can message each other, but you have to ask each time. Here is how that works, when pairing two tabs is worth it, and how we tested the rules that keep it safe.

When you run Claude Code in two tabs that depend on each other, say an API server in one and the web client in the other, you end up as the messenger. One tab renames an endpoint, and you copy that over to the other tab so it does not keep calling the old one.

What Claude Code does on its own

Recent versions of Claude Code let sessions on the same Mac send each other plain-text messages. You tell Claude what the other session should know, and Claude sends it. Nothing is shared automatically: no files, no history, only the text of the message.

So yes, you can do this by hand. It works well when you remember to ask. It does not help when one tab changes something and you forget the other tab depends on it.

Pairing two tabs with Alien Desk

Alien Desk's telepathy is built on that same messaging. You pick two tabs once from the … menu, and from then on each Claude knows it has a partner, where the partner works, and when to speak up.

When it fits

Two jobs where a change in one breaks the other:

We use the first three ourselves, building Alien Desk, its iPhone companion and this site in separate tabs.

When it does not fit

The rules each paired tab follows

Reading the partner's folder

Checking the partner's file means reading outside the tab's own folder, and Claude Code normally stops to ask your permission for that. In a tab you are not watching, that question just sits there.

With the Read partner's folder switch on (it is on by default, in the window where you pick the partner), Alien Desk answers that one question for you, and only that one:

To do this, Alien Desk adds one more entry to ~/.claude/settings.json when you link two tabs with the switch on, and removes it when you turn the switch off. It runs only at the moment Claude Code is about to ask.

How we tested it

Instructions to a model are easy to write and hard to trust, so we ran them: real Claude Code sessions in pairs, 562 runs, on Opus, Sonnet and Haiku.

Limits

Questions people ask

Isn't this just a Claude Code feature? The messaging is. Alien Desk adds the pairing in one click, rules that ride along with every prompt so they do not fade in a long conversation, the check-before-you-change step, and a mark you can see when a message goes out.

Does it use more tokens? A little. Each request in a paired tab carries one short paragraph of rules, plus the messages themselves.

Which terminals does it work in? Terminal, iTerm2 and Ghostty, including inside tmux. It needs a recent version of Claude Code, and it applies to tabs you are working in yourself, not to scripted claude -p runs.

More guides