How to protect your agent's context
Give an agent too much context and it gets sloppy. Give it too little and it has no idea what you're talking about. I show how Solo's scratchpads give agents a place to write a plan down before the context gets compacted, and how to break that plan into to-dos you can hand to fresh agents.
Everything I said
When you're coding with agents, you're constantly battling context. You give it too much context, and it gets confused and sloppy. You give it too little context, and it has no idea what the hell you're talking about. So you gotta give your agent a place to write stuff down and hopefully a place where agents can communicate. I think I may have solved it. Okay?
Here we have, uh, Codex running inside of Solo. Solo is a meta harness. It's not a coding harness like Claude, Codex, OpenCode, Gemini, AMP, whatever. It sits above those. Okay? So I'm gonna say, "Can you see the Solo MCP?" I have added no skills. All I've done is I've enabled the Solo MCP.
So this is a Codex off the street. It's nothing special, no system prompt, nothing. So it says, "I see Solo MCP. I called whoami." It says, "Yes, I can see the Solo MCP. I'm bound to process named Codex running in project two, which is named Desktop one." So this Codex already knows who it is, okay? What types of things can we do with the Solo MCP?
I'm gonna show you. First, I'm just trying to gather up some context here. I'm gonna show you where we can write that context down. Now, normally, you're talking to an agent using, um, some sorta like research skill or interview style skill, or maybe you've done deep research on the web, and you end up with usually like a huge markdown document, right?
Whether it's written in text on the screen or it's an actual downloaded thing from maybe Claude or Gemini Deep Research, you end up with a bunch of context. Here, I'm just generating context that we're going to save, okay? So we can use the Solo MCP to manage and inspect Solo itself. We can control processes, projects, terminal interactions.
We can read the output. We can send control bytes. We can spawn new Solo terminals. We can do timers. It's all very cool if I, if I may say so myself. Now, imagine you're working on a plan. You've come up with a great plan, and the context is about to be compacted, okay? So, uh, the cliff is coming, and you wanna write this down, okay?
So use the Solo MCP to create a scratchpad with all this info. That's all you have to do. You just tell it, "Write this stuff down." And I'll show you, uh, why having this internal is so useful. Scratchpad API is available.
I'm writing it with tags. That's a start. It's nice to have tags on things, so it's easy to find later. And there we go. Created the Solo scratchpad. Ooh, nice. We got a deep link. That's cool. Let me click over here. Hey, look at this. We've got some nice markdown here. All right. What about what's in desktop?
Oh, man. You see, I use scratchpads all the time because I usually do a bunch of research. I, I come up with the plan. I form it. I mold it. I make it what I want, and then I say, "Write it down. Write it down so that we don't forget." So then you can do cool stuff like, oh, I'm just gonna copy this link, and I'm gonna open a Claude, and I'm gonna say, "Hey, Claude, can you read this?" Eh, it'll figure that out.
"Can you read this guy for me?" And I, uh ... No space. That's fine. It'll figure it out. So I said, "Can you read this guy for me?" And I did, I, uh, pasted the deep link to the Solo scratchpad. And so look, it already figured it out. This is, this is Claude off the street. I didn't do any skills or any- anything like that.
Says, "Great. Yep, I read it. Here we go." Another nice thing that you can do is you can tell your agent, "Great, take that scratchpad and turn it into to-dos. Turn it into a bunch of to-dos." And then each individual agent gets a little bit of context, and it can reference back to the scratchpad. So we can go over here, and we can go Desktop one To-dos, and you'll see, oh my goodness, we have so many things we have to do.
But each agent can grab one of these to-dos, read the context, and in some cases, it can go, look, this one, this to-do comes from Scratchpad one eighty-one. Here's the goal. And so you hand this to-do to an agent, and you say, "Here is what you're supposed to do." A fresh agent with beautiful context, you hand it this and say, "This is what you're supposed to do.
Read the to-do. If you want, go read the scratchpad. When you're done, update it, close the to-do, leave a comment." This is how you keep your agents operating in tip-top shape, right? You do a huge amount of research. You come up with the perfect plan, and then you break it down into small discreet slices that you can hand off to fresh agents with fresh context windows, but they can still read all of the reasoning behind it through the to-dos or through the deeper scratchpads.
If you like this, check out Solo at soloterm.com. This is a meta harness. You don't have to give up Claude or Codex or Gemini or AMP or OpenCode or whatever. This just adds extra primitives on top that your agents can use to operate better.