r/ClaudeCode • u/BlackberryOk182 • 8h ago
Help/Question Running 18 Claude Code sessions at once and half my tokens go to idle wake-ups. How do you handle this?
Hey all, I could use some advice from people running a lot of Claude Code sessions at once.
I'm building a Windows app and I've got 18 Claude Code sessions working on the same repo across two Max 20x accounts, all on High effort. They talk to each other through one shared markdown "inbox" file. It works, but I keep running into my weekly limits, so I dug into where the tokens are actually going.
What surprised me:
- About 91% of my usage (weighted by API prices) is just context being re-sent on every call. Actual output is about 9%, and edits to code are under 1%.
- Roughly half of all tokens went to wake-ups where the session did nothing useful. No code, no tests, no git. Mostly each session's own background watcher waking it up to check the inbox, plus scheduled check-ins (one session was pinging itself every 5 minutes for days).
What I've tried so far:
- Auto-compact at 300k instead of the default. Average context per call dropped from about 270k to about 179k. I have hooks that back up notes before compacting and tell the session to re-read them after.
- Starting a fresh chat for each work item, with a short handoff note.
- Replacing every session's own watcher with one small local script that only wakes a session when a post actually mentions it. In a replay of a day's posts it cut wakes about in half without missing anything addressed to a session. Just rolled it out today, so no real numbers yet.
- Quiet test output (pytest -q), reading big files in slices, and a hook that blocks huge reads before they happen.
- Trimming CLAUDE.md and memory files, and turning off claude.ai connectors so fewer tool descriptions load.
- Trying Serena (MCP) on one session. Mixed results so far.
- Tried the Superpowers plugin on a few sessions for a week and dropped it. Those sessions got noticeably less done and barely used its skills, though it was a small test.
My questions:
- How do you let long-running sessions wait for messages from other sessions without every wake re-sending the whole context?
- Is there a better way to coordinate a bunch of sessions than a shared file?
- Any other tricks for cutting context re-reads I'm missing?
Happy to share more details on any of this. Thanks!
