Original Reddit post

What’s the best practice here? When I’m working with Claude Code, I usually create a branch for a task and then launch Claude in that context. Some tasks take a few hours, others can run for days (sometimes even a week). The issue is when I need to switch to another task mid-way. I open a new tab, create a new branch, and launch another Claude session. I usually keep the previous Claude session running to preserve its context. I know this probably isn’t ideal. I’ve been thinking that maybe renaming the Claude session to match the branch name could help me resume the task later without losing track. But I’m not sure if that’s the cleanest workflow. How do you all handle context switching when working on multiple projects or branches with AI agents? Do you keep multiple sessions running? Do you serialize context somewhere? Do you restart fresh each time? Any tooling or workflow hacks that work well? Would love to hear how others are structuring their agentic workflow. submitted by /u/MagePsycho

Originally posted by u/MagePsycho on r/ClaudeCode