I run all my projects with Claude Code on one home server: 6 cores, 15 GB RAM, Debian 13, no GPU. /tmp is tmpfs, so it eats RAM too. Right now that's a few web apps (Next.js 16 + Supabase + Vercel), a Shopify store, a browser game and a mobile app (Expo, Android emulator for testing). Often 2 or 3 projects have sessions running at the same time.
THE SETUP
- Sessions run in tmux via a session manager, and I follow them from my phone with Remote Control
- Each project has one lead session (Opus) that works through a task list on its own, often all night
- The lead starts up to 2 builder subagents, each in its own git worktree. Merges go back to main
- Reviews: 1 to 3 reviewer agents per task depending on size, max 2 review rounds. Small findings go into one "sweep" task instead of a new task each
- Agents talk to each other through a mail/file-reservation tool so they don't edit the same files
- I wrote my own Claude Code plugin with all the rules, gates and scripts, so every project works the same way
THE CHECKS EVERY TASK HAS TO PASS
- tsc --noEmit, lint (Biome), Vitest, next build, pnpm audit
- Playwright e2e, but only the specs the change touches. I keep a map of source files to test areas (55 areas), and a new file must join an area in the same commit
- e2e stops at the first failure while iterating. The full suite runs once per batch, before main
- UI tasks: screenshot check against the approved design mockups at 390 and 1440 px, on a production build on its own port
- Mobile screens: every state (5 to 25 per screen) on the Android emulator with Maestro flows, and screenshots compared to the mockups
- DB changes: pgTAP tests on a throwaway local Supabase in Docker
HOW HEAVY JOBS ARE SHARED
- Every heavy step (build, test suite, e2e, emulator flows) from every project goes through one machine-wide queue. Each job has a cost (1 or 2 units) and the queue only lets so many units run at once
- Test runners read their worker count from the queue (3 workers)
- e2e has its own lock with priority, so a run someone waits for goes before background runs
- The lead rotates to a fresh session at 3 compactions, after 8 hours, or when its pace drops below half its own average. It writes a handover file and starts its successor itself
THE NUMBERS
- Fresh lead on web work: about 9 tasks/hour for the first 3 hours, then down to about 5/hour
- Last night, mostly app screens: 12 tasks in 8.8 hours, and 5.6 of those hours were spent waiting in the queue
- Emulator alone is about 2.2 GB RAM. Add two builders with their own Metro bundlers (one per worktree, different ports), a Next build and Playwright from another project, and the machine runs low
- When memory gets low, Claude Code kills idle background shells, so my watcher scripts die quietly
THE PROBLEMS
- Queue time. The bottleneck isn't the model, it's waiting for CPU/RAM
- One emulator. Every app screen state goes through it, one flow at a time
- Memory. 15 GB isn't enough for emulator + 2 worktrees with Metro + builds + e2e across projects
- Sessions wear out. Context fills, pace drops, so I rotate every few hours
WHAT I'D LIKE TO KNOW
- What does your setup look like for long autonomous runs across several projects? One big machine, several machines, or cloud (and roughly what does it cost)?
- How do you share CPU and RAM between projects so one doesn't block the others?
- How do you test mobile screens without one emulator being the bottleneck? More emulators, cloud devices (Firebase Test Lab, BrowserStack, EAS), or fewer states per task?
- Do you run the full checks on every task, or batch them? Where did you draw the line?
- Any tricks for keeping Metro/emulator/Playwright memory down?
- What made the biggest difference in speed for you?
Thanks.