#390 · You're the AI Guy at Work, Now Do This

youtube ↗AI & Automation

How would you set up your chief of staff sub agents from scratch? And more importantly, how does that single chat actually stay useful as the context gets longer and longer?

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.

chief of staffsub agentsai automation

Related answers

youtube ↗AI & Automation

What should I do between Claude thinking sessions when it takes 20 to 30 minutes, without context-switching or losing my edge with AI?

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.

claudecontext switchingai workflowproductivity
youtube ↗AI & Automation

Why use a single chat within Claude? Wouldn't that take a lot of extra usage? I have thorough projects and instructions, so I start new chats very frequently and a chat rarely ends up compacting.

Yeah, fair enough. I actually set my auto compact down to like 400k, so I compact pretty often. I just do this because I prefer having one constant thread—a chief of staff thread that basically delegates to other threads. I can't say whether this is truly the best approach, but it's what I've been running for the last three or four weeks and it's saved me some headspace. So we'll see, honestly. I used to run it in fast mode, but then I looked at my API billing and I was like, dude, I'm spending like 400 bucks a day. I probably shouldn't be doing that. So now I'm just running it on regular.

claudeaichatapi
youtube ↗Other

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.

context switchingproductivitycloud
youtube ↗Agency Operations

How do you use your linear agent workspace to handle big projects that can't be completed in one session, and when should you work inside the terminal versus the linear workspace?

That's a great question. I do use the terminal to orchestrate some tasks—for example, when I'm working on a video. Hold on, let me fix my bubble. There we go. If I'm working on some task, I find myself going to the terminal now and then, even though my workflow is in Linear. But I think the difference is that I don't have to use the terminal—I can still just bang it out in Linear, get it 80‑90% done, and then I'm finished. With the terminal, most people are tied to it because they have to be. I only really need the terminal for multi‑step or heavy‑work tasks. When that happens, I typically have the agent scaffold out the work. I go agent‑ready, it does its thing and gets me about 80% of the way there. I take that task and reference it in my terminal, saying something like, 'Hey, we're working on NOS 192, Nick operating system 192.' That's the 192nd task in Nick OS. Then I'll say, 'Let's do X, Y, and Z, refactor this for whatever,' and do it that way—I'll actually go back and forth. So, for big projects you might do multiple back‑and‑forth passes in the terminal, while for a one‑shot project you can just one‑shot it like I do.

linear workspaceterminaltask managementagent