I almost built a screenshot app. Twice.
I take a lot of screenshots. Most of my prompts to Claude start with one: a bug, a design, a Slack thread I want it to read.
This week I almost built a screenshot app. It was the second time.
The first time
The first time, I wanted my screenshots to work differently, and I was ready to build an app to do it. Claude pointed out that macOS could already do it. No app needed.
Get the next note like this by email.
about one a week · no spam · one-click out · or rss
The second time
Since the Mac Mini stays home, most of my work happens on the Mini. My laptop SSHes into it over Tailscale, and Claude Code runs on the Mini.
That works great, except for screenshots. I take them on the laptop, but Claude runs on the Mini:
- Pasting doesn't work. Claude reads the clipboard of the machine it runs on. The screenshot is on the laptop's clipboard, and that never crosses SSH.
- Dragging doesn't work either. Dragging a file into the terminal pastes its laptop path, like
/Users/adam/Desktop/Screenshot.png. That file doesn't exist on the Mini.
So I'd been uploading each screenshot to a website and pasting the link. Every time.
I had a plan for this: an app that saves screenshots somewhere both machines can read. But this time I didn't ask for the app. I described the problem and asked what we could do about it. That's the idea from Bring me the problem, not the solution, and it worked again.
No app, just three pieces that already exist
Claude's answer didn't need any new software from me:
- A shared folder. Syncthing syncs one folder between all my Macs, peer to peer. It found the Mini over Tailscale on its own.
- The same path everywhere. My Macs don't all have the same username, so the folder lives at
/Users/Shared/Screenshots, which exists on every Mac. A path from the laptop is a real file on the Mini. - The path on the clipboard. A small watcher on the laptop copies each new screenshot's path to the clipboard.
Now I press Cmd+Shift+4, then Cmd+V in the SSH terminal, and Claude opens the image. The file gets to the Mini in about a second.
It took a few tries
It didn't work the first time. Here's what broke, in order:
- Cmd+V pasted nothing. The file had synced, but Cmd+Shift+4 saves a file without touching the clipboard, and an image on the clipboard can't cross SSH anyway. That's why the watcher exists.
- The test file never arrived. Syncthing waits 10 seconds to batch changes, and my test deleted the file before that. We dropped the delay to 1 second.
- The path showed up late. macOS doesn't save the file until the floating thumbnail in the corner goes away, about 5 seconds. We turned the thumbnail off.
- The path came out garbled. macOS puts an invisible special space (U+202F) before "PM" in screenshot names. The watcher mangled it at first, and even after we fixed that, it turned into a plain space over SSH. So the watcher now renames each screenshot to a name with no spaces, like
Screenshot-2026-12-02-at-12.19.42PM.png.
To test each fix, I took a screenshot of the laptop's Claude session and pasted it to the Mini's Claude session. They debugged it together, and I carried the screenshots between them.
Set it up yourself
If you SSH into one Mac from others, over Tailscale or anything else, here's the whole setup.
On every Mac, install Syncthing, save screenshots as files to the shared folder, and turn off the thumbnail:
$ brew install syncthing $ brew services start syncthing $ mkdir -p /Users/Shared/Screenshots $ defaults write com.apple.screencapture location /Users/Shared/Screenshots $ defaults write com.apple.screencapture target file $ defaults write com.apple.screencapture show-thumbnail -bool false $ killall SystemUIServer $ syncthing cli config folders add --id screenshots --label Screenshots --path /Users/Shared/Screenshots $ syncthing cli config folders screenshots fswatcher-delays set 1
On each laptop, add the machine you SSH into. Get its ID by running syncthing device-id there:
$ syncthing cli config devices add --device-id <MINI-ID> --name "Mac Mini" $ syncthing cli config folders screenshots devices add --device-id <MINI-ID>
On the machine you SSH into, approve each laptop:
$ syncthing cli show pending devices $ syncthing cli config devices add --device-id <LAPTOP-ID> --name "Laptop" $ syncthing cli config folders screenshots devices add --device-id <LAPTOP-ID>
Then the watcher. I didn't write it myself, and you don't need to either. Paste this into Claude Code on each laptop:
1After every screenshot, I want its file path on my clipboard. Screenshots save to /Users/Shared/Screenshots.2 31. brew install fswatch42. Write ~/bin/screenshot-path-to-clipboard.sh. It watches /Users/Shared/Screenshots with fswatch (Created and Renamed events). For each new .png whose name has whitespace (skip dotfiles, .stfolder and .stversions), it waits until the file size stops changing, then renames it with mv -n so the name has no whitespace: every space and U+202F becomes "-", and the "-" before AM/PM is dropped. Then it copies the new full path to the clipboard with printf '%s' | pbcopy. Files that already have no whitespace are ignored, so the rename doesn't loop.53. Set LANG and LC_ALL to en_US.UTF-8 in the script, or pbcopy mangles U+202F.64. Run it at login with a LaunchAgent (RunAtLoad, KeepAlive, /opt/homebrew/bin on PATH, LANG in EnvironmentVariables) and load it with launchctl bootstrap.75. Test it with screencapture -x into the folder, and show me pbpaste.Then take a screenshot and press Cmd+V in your SSH terminal. Use Cmd+V, not Ctrl+V: Cmd+V pastes the laptop's clipboard as text, and that path is all you need.
Twice now
Both times, the app I was about to build already existed in pieces. The first time it was a macOS setting. This time it was a sync tool, a folder every Mac already has and a short script.
I only found out because I described the problem instead of asking for the app. If I'd asked Claude to build a screenshot app, it would have built me a good one. I'd be maintaining it for years.
Liked this? Get the next note by email.
about one a week · no spam · one-click out · or rss