Running 3-4 Claude Code / Codex sessions at once: what breaks first for you?

by•

I've been running 3-4 Claude Code / Codex sessions at once across different projects, and my biggest time sink isn't the coding. It's losing track of which terminal is blocked on a permission prompt, and which spec each session was supposed to follow. Every time I need the related doc, I have to jump out to another folder, find the file, and then come back to the right terminal.

My current setup is a mix of git worktrees, a markdown file per task, and a lot of tab-checking. It works, but I still miss prompts for 10+ minutes sometimes.

How do you handle it? Do you use tmux, notifications, a task board, or just discipline? And what breaks first when you go from 2 agents to 5?

Disclosure: I'm building a small macOS tool in this space (PMDesk.dev), so I'm genuinely curious what workflows people already trust. Not linking anything here.

94 views

Add a comment

Replies

Best

For me the first thing that breaks isn't attention, it's the git tree. Several sessions in one repo means one agent's half finished change sits in the working tree while another one commits. What fixed it was a few rules in the project file every session reads: stage only your own files by name, commit by path, never stash or revert what you didn't write, and check git status for someone else's changes before a deploy. For the prompts, I gave routine things like build, test and deploy standing permission and kept the questions for what's hard to undo, which cut the waiting a lot.

 Stage-by-name and commit-by-path is a great rule, I'm stealing it. Do you put it in CLAUDE.md / AGENTS.md so every session reads it, or is it enforced some other way? And standing permission for build/test/deploy is smart: the prompts that remain are the ones worth interrupting for.

 CLAUDE.md, nothing mechanical. The rules are plain text in the project file every session reads at start, and the thing that makes them stick is not the rule but the story next to it. Under "commit by path" sits one line: on a given date a bare commit took a rename and a deletion another session had staged and left main unbuildable until the next commit put them back. An agent that reads why tends to obey; an agent that reads only the imperative finds a reason to make an exception. I have no hook that rejects a bare commit, and so far I have not needed one, the rule plus the incident has held. Where I would add enforcement first is the other side, the deploy: a check that the tree holds no foreign changes in what ships, because that one is harder to notice after the fact.

An agent lost earlier context mid-task and rebuilt a helper that already existed two files away under a different name. It solved the immediate prompt cleanly, so the duplicate logic slipped in until edge cases diverged.

  That's a nasty one because it passes review at first glance. Has anything worked for you, like a short "existing helpers" index in the project file, or making the agent grep before writing new utilities?

 A compact utilities index in the system instructions works best. If you rely on the agent to search first, it often invents a new name and searches for that instead.

Keeping each session in a separate worktree and using tmux makes a big difference when juggling multiple agents

 Thanks Shivam! Worktree per session is basically what I do too, and it fixes the file collisions. Where I still lose time is tmux: do you get any signal when a pane is blocked on a permission prompt, or do you just cycle through windows to check? That's the part I haven't solved cleanly.

I run my parallel sessions in Ultenix, a terminal I built for exactly this. Checking is done by agents through end-to-end tests, and when I check something myself I use Firefox. Long-running tasks go into my own task tracker, and the progress of every project is listed on a grid board in Pinateca, so I can see where everything stands at a glance.

  Interesting setup. Having agents verify through end-to-end tests instead of you checking by hand makes sense. When one of those sessions gets stuck on a permission prompt, how do you find out: does Ultenix surface it, or do you spot it on the grid board?

 Ultenix surfaces it. When an agent stops for approval, its tab gets marked and I get a notification, and if I'm away from the desk it comes to my phone so I can answer from there. It doesn't fire while I'm already looking at that pane. The grid board is more for where each project stands, not for prompts.