# I run 10-20 Claude Code sessions at once and they kept fighting over my phone, so every device got a lock and a Pause button — retained record

> Retained reddit record from reddit:ClaudeCode.

Canonical: https://highsignal.app/data/records/2632a9bfa0295d0a

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:ClaudeCode)  published 2026-10-13 13:01 ingested 2026-10-14 02:42

[original source ↗](https://www.reddit.com/r/ClaudeCode/comments/1x4w0w7/i_run_1020_claude_code_sessions_at_once_and_they/)

## retained text



```
I run somewhere between 10 and 20 Claude Code sessions at once. A lot of them end up driving a GUI: clicking through a Mac app, setting something up on my Android phone, poking at a Quest headset over adb. Past a handful of sessions they started grabbing the same device at the same time. One would open an app while another was halfway through typing a password, and I couldn't tell whether my phone was mine or some agent's.

What fixed it:

- One lock per device. A session has to take the lock before it drives. On the phone and headset the lock lives on the device itself over adb, so sessions on different machines see the same lock. Waiters queue in order, and a live lock can't be stolen.
- A banner on the device saying which session is driving and what it's doing, after a short countdown with an "I'm busy" button.
- Pause, Talk and Cancel on that banner, enforced by PreToolUse hooks rather than asking the model nicely. Pause kills the in-flight peekaboo command, then the hook denies every screen action until I resume. Talk messages reach the agent inside the deny reason.

For the Mac I use peekaboo instead of the built-in computer use, mostly because it can click inside browsers.

Writeup with the code and recordings of the countdown: https://blog.alastor.space/helping-20-ai-agents-controlling-one-phone/

I wrote it, so take it as a showcase post. Curious how other people handle several sessions sharing one device.
```



document fetched 2026-10-14 00:40 · canonical https://reddit.com/r/ClaudeCode/comments/1x4w0w7/i_run_1020_claude_code_sessions_at_once_and_they
