How do you avoid constant context switching when working with many cloud sessions on different tasks?
I know, this sucks. It really sucks, and by the end of the day you feel completely and utterly exhausted — nothing like how I used to feel working on programming projects. My favourite thing was going really deep into one thing and getting really good at it, and now I have to constantly juggle. I wish there was a better answer, but you either get a model of reasonable intelligence with very high tokens per second — an Astra model on ultra fast, Opus 5.5 on fast mode, or Deep Sea 1017 flash with some Fireworks token optimisation, which can go up to around 1,000 tokens per second — or you just have to deal with it. And by dealing with it I don't mean having 30 terminals or tabs open. Stick to two, so the cost of each context switch is a lot less than switching between phenomenally different tasks. I resonate with it and wish there was a way around it right now, but context switching is just sort of how it goes.
Unfortunately, when you operate in this way, you're going to be context switching quite often. And for those of you guys that don't know, this is like the number one productivity killer. Your mind, for whatever reason, leaves some attentional residue behind. Even if you're done looking at or working on a task and you move on to the next one, some part of your mind will sort of be stuck to that old one and just only slowly peel away to the new task. That process takes around 20 minutes or so. And so, if it's taking 20 minutes every single time, basically what's occurring is you're leaving probably like 20 to 30% of your mind on that other thing while Claude is working. And then you'll have to constantly go back and forth and back and forth. This sucks. It like blows. And even like Anthropic and OpenAI researchers have acknowledged this. I think one of the system prompts for Claude is literally like you must understand the user is exhausted because of all the context switching. So restate everything very simply down at the bottom after your run. The best way I found to deal with this, and this is me being kind of selfish here with my answer, is I just use fast mode for everything. So I spend a ton of money and then I just get my answers in like a tenth of the time, which means I don't have to do this. It also allows me just to work on task. Another approach is using chief of staff or background threads. And so you treat your main agent as your chief of staff agent and then you just have it spawn background threads to do the things that you want. In this way, you're basically just chatting with the chief of staff, aka one persistent agent identity, while rinsing tasks left, right, and center. I kind of feel like Napoleon at war. People come up to me over and over again. I'm like blah blah blah blah blah blah blah. Another person comes up to me, blah blah blah. The second guy comes back up to me and I'm like blah blah blah. Um, you know, definitely a lot more doable. I always keep my chief of staff thread in fast mode for that reason. But yeah, I mean, if you don't have that ability, then you do have to find a way to make that task worthwhile. Um, and so I would personally just not do something super crazy learning heavy. If you have any rote tasks to do like outreach, for instance, where it's just the same thing over and over again, I would probably do that. You could also find other things to do that don't necessarily require your mind. Maybe you have a treadmill, you know, two minutes away. So when you fire off the task, you, I don't know, start running on your treadmill or some stuff like that. This way, you can move multiple parts of your life forward while Claude's doing the thinking for you. Obviously, everything that I'm telling you is not ideal. So, it's just a matter of clawing back as much of that utility as possible.
I'll answer the second question before I answer the first. You autocompact at like 400K. That's just the sweet spot, so 300 to 400K. Don't go any further than that. Second, the way I set it up is I basically just voice dumped what I wanted, and you can just copy this part of the transcript: 'Right now I'm juggling five different Claude windows. This leads to extreme context switching and attentional residue issues, which negatively impact my productivity. Instead, I would like to communicate with a single Claude thread and have that thread delegate to other background threads. I then want those background threads worked on while I talk to the single thread. You can encapsulate this as a chief of staff sort of idea. In order for this to be most effective, create sub agents that meaningfully reflect the different bins of work that I do. Make sure they're loaded up with consistent context and everything they need in order to do my task, and also build optimizations at the sub agent level such that the probability of them being able to accomplish most routine tasks that I have done in, let's say, the last month is as high as possible. Then we'll test this for 24 hours. At the end of the 24 hours, I'd like you to actually go back and see all the frustrating points that I wasn't happy with, and then you can modify and improve the system further.' And then after that, you can just set it on an auto loop.
First off, if your current way of working is just getting down to business, that's already a huge strength—something many people take decades to develop. You're actually 80% of the way there; you just need to add a bit of thoughtfulness and iteration. Thoughtfulness means avoiding context switching: don't jump from tab to tab repeatedly. Instead, go full screen on whatever you're doing and stay in that context. If you're sending queries to agents or others to do work for you, ask yourself whether you need to do that right now—is it efficient or effective? Ultimately, we prioritize effectiveness over efficiency at any given moment. When I do my most valuable work, I'm literally staring at a single‑screen Google Doc for two or three hours, just thinking and working in that tab. AI is slowly changing that dynamic, but for now, to get things done, focus on one thing at a time until it's finished, then move on. My friend Matthew Larson has a solid work‑form and accountability structure you can adopt: work on one thing for an hour (or until the deliverable is finished), then fill out a brief form noting what you accomplished. It’s incredibly valuable.
One of the big things we're using now is a humanization prompt. I created a statistical model of my tone of voice across all my writing on the internet, then use that model to iteratively produce sentence fragments for content. For each fragment I score the perplexity (statistical deviation) from my own writing and select the lowest‑perplexity options, resulting in content that sounds exactly like me. This lets me generate AI content in my own voice, avoiding the typical AI‑generated feel. You can also use AI to generate drafts and then reformat them to match your tone, which works fairly well despite occasional artifacts that appear only about once every few pages. This dramatically cuts down the time I spend on Q&A and content creation.
Beyond that, I'm thinking about more advanced loops to improve existing automations. For example, you could run a Claude code loop that scans your N8N or Claude routines and tries to make them 10 % more time‑ or cost‑efficient, logging results to a shared file. Over time the system can auto‑research, generate hypotheses, test them, and if it reaches the 10 % improvement target it stops. Running this continuously can re‑jig automation components, reduce module count, convert them into code blocks, and eventually offload them to serverless providers like Modal or Trigger, cutting costs by up to 90 % and making the automations run orders of magnitude faster.