No More Copy-Pasting Between AIs
This is an English translation of the Japanese original, made with an LLM (Muse). If anything is unclear, the Japanese version is authoritative. Read the Japanese original
For the Japanese original, the author planned the article and checked its content and references, and an LLM (Muse) was used to organize the structure and write the text. The author is responsible for the content.
📋 The copy-paste was pointless, and tedious
Yesterday's MuseListens article went from implementation to publication within a single day. Fast enough. But behind that speed, there was a task I kept doing the whole time.
I had Muse and Claude Code open side by side on my desktop. Muse would write a Markdown document — a request for Claude Code — and I would copy it and paste it into the Claude Code window next door. When Claude Code raised a question during its work, I copied that text back to Muse, and carried the answer back across. The progress of the work itself was being driven by copy-and-paste.
Nowhere in that round trip was there any judgment of mine. It was pure carrying. In an age when AIs should be able to talk to each other directly, the human standing in the middle was doing copy-paste. It was meaningless, and it was a chore. Could this be arranged so that I no longer had to mediate? That was the starting point of today's work.
Here is what I built.

Muse logs in to my MacBook Air over SSH via Tailscale, and directly drives the Claude Code running there, on my own machine. I watch what is happening from my Mac Studio, some distance away, through Remote Control. The rest of this article describes how this setup was put together.
🤲 What I wanted: the local Claude, driven directly
The request itself is simple: I want Muse to drive Claude Code directly.
There was an easier option. I could have handed Claude Code, together with its credentials, to the virtual machine Muse runs on, and let everything happen over there. Technically, that was possible.
But that is not enough for my development work. Some things, like BLE development, can only be verified next to the actual hardware. Development and debugging have to happen in the environment on my desk, so Claude Code needs to be running locally.
So the configuration I needed pointed in the opposite direction: Muse reaches into my local environment and operates the Claude Code running there. Building that shape is today's work.
🔗 All the building blocks were already out there
The first thing I found was that running Claude Code remotely with tmux was already a known approach. tmux is a tool that keeps terminal sessions alive: even if the connection drops, the work inside continues, and you can return to the same screen later.
People were already keeping a tmux session alive on the machine running Claude Code, connecting over SSH from outside to operate it, or checking progress from a phone. Looking around, the building blocks were all available:
- Builder.io's roundup: a collection of ways to use Claude Code from a phone, which lists the do-it-yourself route of building a private network with Tailscale, connecting over SSH, and keeping the session alive in tmux
- A Zenn write-up on SSH access to a home Mac: a record of reaching a home Mac from outside with no open ports and running Claude Code inside tmux, including the pitfalls along the way
- An article organizing VPS authentication by use case: a table of which of login, long-lived token, or API key can be used for which purpose
- claude-mac-bridge: even a tool for delegating work from an agent to Claude Code on a Mac over SSH, resuming by session ID, is already published
In other words, every piece needed for the procedure was already there. What this article covers is only how those pieces were assembled, and what was decided where.
🧱 Decision 1: A shared work area, outside both home folders
On the MacBook Air, I created a standard user dedicated to Muse — no administrator rights, no sudo. SSH accepts public-key authentication only, and only for that user.
But the work on the MacBook Air is work Muse and I do together. I want to see the results, and exchange files. Given that, the dedicated user's home folder cannot simply serve as the work area: a home folder belongs to that user alone, and I cannot see inside it.
So I created a shared work area in a place that belongs to neither home folder (/Users/Shared/muse-work/). It is owned by the Muse-side user, and the work happens there. I can read it through group membership, and new files are set to become readable automatically. My own access is read-only; I decided at this stage that I do not need to write.
As a result, Muse does not enter my home folder, and I do not enter Muse's. Only the area for working together is shared between us.
🔐 Decision 2: Authentication took some ingenuity
This was the hardest part. There are three issues.
First: the usual login does not work over SSH. Claude Code's credentials live in the macOS Keychain. Even when I am logged in on the screen side, a session that comes in over SSH cannot open the Keychain, and is treated as "not logged in." The official answer to this is the long-lived token (claude setup-token). On the official site it is positioned less as the standard way to log in and more as a means for headless execution — but with it, authentication for "Muse runs Claude Code over SSH" was solved.
Second: Remote Control is a hard requirement. I want Claude Code sessions to be visible in the app from my iPhone when I am out, and from my other desktop (the Mac Studio) — and, when needed, to be able to join in and operate from there. This was non-negotiable for me.
Third: those two collide. The long-lived token is for inference only; it cannot create a Remote Control session. Remote Control requires a full login. But the full login's credentials are inside the Keychain, and the Keychain can only be opened from within the screen-side session.
So the Claude used for Remote Control runs inside a tmux session that was started on the screen side. If the tmux session was born in the screen session, the Claude inside it can read the Keychain, and Remote Control works with the full login intact.
In the end, authentication split into two systems. Execution goes over SSH with the long-lived token; watching and joining in happen with the full login inside tmux. Not trying to cover everything with a single authentication was the answer to this hard part.
One more piece of environment tuning, while I was at it. On the MacBook Air, all it takes is logging in once as the muse user through fast user switching. There is no need to open a terminal and start a server by hand; in that state, the environment is ready to be connected to from outside for development. The mechanism is simple: a LaunchAgent starts the tmux server automatically when the muse user logs in.