Last year I was constrained by token. Now I fixed that by joining OpenAI. Then I was constrained by CPU, and now I feel my constraint is actually attention. You want to optimize how often do you need to be in the loop with your agent. Here we go.
Okay, everyone, don't worry. This one's going to be a little bit quicker. So, I'm Peter, recently moved here. Um, and you know, when you do agentic engineering, I feel last year up until maybe February I was constrained by token. Now I fixed that by joining OpenAI. Then I was constrained by CPU. Um, I fixed that with something crapbox I'll show you later. And now I feel my constraint is actually attention, right? So all the things that you heard about like creating loops, I mean for me this was like mostly a shitpost and it kind of exploded. But what you really want to optimize when you work is you want to optimize how often do you need to be in the loop with your agent. So right, you need to like, we want to expand all the things that your agent can do from the prompt to like verification. So this is really where you get more value out of it.
Also, by the way, I forgot the ending of the Pokemon thing. So apparently there's 46 endings that have exactly two Pokemon. Uh, I don't know which one it was, but yeah, it's like, well, code fixes everything. Um, so I'll show you like three little things today that I think are really cool and help our workflow. So number one, you know, like I built this little thing called OpenClaw, and one of the big issues we had is we're getting a lot of PRs, like a lot of PRs. And the problem is some people literally make a PR by typing into the coding agent 'fix' and then some number, and it'll fix it and make a PR, right? Like zero effort, and then you have a PR that's like this long, like 4,000 lines, and you don't really know like how much time did that person actually... is it even worth my time? Uh, so one thing I experimented and actually works out pretty well is I made a small skill, and the skill does the following: like after you create a PR, be it with Codex or we're not discriminating here, Claude, um, it'll ask you, hey, do you want to upload the transcript, like a sanitized version of the transcript? Because... and then we tell you if you do, like the chances that someone looks at your PR are much higher.
So now actually we're getting a lot of PRs, look at this, that include how people worked on this. And I find it, not just me, me and also my agent find it incredibly useful because now I actually have more data points. It's like, did you spend one minute prompting this? Did you spend one hour prompting this? And like the longer your transcript is, the higher is my confidence that you actually care about what you fix, or you actually understand, or at least try to understand what you fix. Um, and this took me way too long because like I was thinking too complicated. Oh, do I need hooks? How do I build this? But actually it's just a skill. So I wrote this little agent transcript skill that just basically explains to the agent how to find the transcript. I made it so it works with every coding agent because ultimately it's just JSON. I load the JSON, it'll like try its best to sanitize it. I mean, ultimately you trust the same agent, so it probably won't be perfect, but you probably don't like, don't write your most private secrets into the coding session. Uh, so usually we'll be fine.
And that's it. And because I'm the benevolent dictator for life, I just made this a default skill. So anyone who checks out the repository automatically gets the skill, and the agent knows how to load the skill, and the description says load the skill when you make a PR or an issue. Um, and bam, like our quality of PRs and issues for some people who do it went massively up. Big win, easy to add. Now the second thing I want to show you is auto review. Um, this is my favorite skill of all time. Also, it made everything way slower. It's kind of like a continuation of what George started. You know, whenever you create code, the agent will probably do its best and like get a version that's good, and then you would do a PR, and then like some other agent will spin up and do a review, but that's slow and that's also like not really very practical. Um, and again it took me way too long because I was thinking too complicated. But really this skill again is just a default skill, and the agent gets told load this when you do a PR or a commit, and then it will just invoke the CLI, and by default it just looks at what you have in your system. Maybe Codex, maybe Claude, maybe Pi, maybe... is anyone using OpenCode? But it supports OpenCode too. Um, and I'll just invoke the skill and then invoke the CLI. It's like, here, review this. It'll get feedback. The beauty is feedback goes to the coding session where you work because that one has a lot more context. Because what I sometimes saw is somebody would create a PR, I would load it into my Codex, do a review, find three things, I fix those things, but I actually haven't fully understood what the PR is about and all the constraints, and I actually break things because like from a naive standpoint, yeah, this might be issues, but like if you deeply understand it, maybe that's actually a design decision, right? So the beauty of this skill is it invokes review, it gets the review back to the original session, and then the session can decide, yeah, this is right, but actually no. And the beauty of this again is if you do that, then I add instructions that it will actually change the PR description to include the decisions. So then the next person who actually looks at my PR doesn't break it again because the naive review would find something that you actually don't want. Uh, very easy to add again because I'm the dictator, I just made it a default. I think I made like both Anthropic and OpenAI millions with just this because it's like a massive token burner. Um, but you know, like they have to get their money back at some point.
And uh, so the third thing, the thing that I love the most is, you know, if you have these long-running sessions, you don't want to stare at the code. You do another session, another session, another session, and you're like, you have like 10 coding sessions at some point, it feels like your MacBook starts to become like it will take off because the CPUs are spinning like crazy and everything becomes really slow. Um, that was seriously slowing me down. Like at some point I had, you see, like I have multiple machines here. This is like my computer, this is my Mac in the cloud, this is my Mac Studio. And then I had multiple Macs where I was working. But that's also kind of annoying and it can't possibly be the perfect solution. That felt like a crux. So because you keep the crux, it seems double crapbox. Um, and I actually got this idea because I used, uh, Blacksmith had this thing where they created test boxes but they had like daily quotas, so I got annoyed and I wanted a fallback. And then once I had this, like the affordances kept coming. And what it does really is it gives your agent a little box where it can sync, uh, your changes of the repo, like it can actually sync. It starts with the same state that you already have in your GitHub Actions. So by default, if you have CI, which I assume you do, it'll just work and it'll sync the changes and then run the tests in that box. So now no more CPU spinning because everything that's expensive, it just does in that box. And by now it feels like it's its own Pokemon because I support like 30 providers, um, including really weird things if you work at a company with high security like OpenAI, uh, or even Parallels. So you will find one provider that you like.
But then like once I had this, I was getting ideas, and initially it was just Linux, and I'm like, ah, I have this bug, but it's like a launch debug, it's only for macOS. And these bugs are like especially nasty because if I test it on my system, my system probably is already in some way configured, and I have like something, so my agent will probably break something, or maybe it passes because I changed something in the past. What you really want to do is to increase your confidence that what you actually prompt is something that works. You want to start with a fresh machine. So I just added Windows and Linux support. And now my agent has this new primitive where if I tell them, oops, if I tell him, hey, install OpenClaw for me on... what OS is this? This is Linux and macOS and Windows. It can just do that.
And then I gave my agent a little bit of eyes and ears. Uh, not ears, just eyes. Um, so it can get screenshots, it can click into it. So I have like cheap computer use. So it can actually set up your system just as you want. And agents by now are really good because we train them on it. So you can just tell them, hey, set up a system where you like open a web browser, you preconfigure this and this, and it'll work. And like you can verify because you can see the screens, and it might take a while, but then at some point you have this thing where you can exactly on a fresh system verify, uh, your setup, and it's much nicer because if you would use classical computer use, at some point you would fight with your mouse cursor, or like the focus would change, or like, you know, or like even browser use, it would get annoying. And because that one uses a fresh box and then you just like VNC into it, um, you don't have any of that pain. So like let's see if I can work this. Like here I have like one thing where I was like, this looks too boring, make it super gay and rainbows. I should have done this before. It'll probably take too long, um, or even break. Let's see. Let's see if it manages.
The other thing that is cool on that is, um, those links are shareable. So if I create an environment where like, hey, I'm going to be testing this new feature, I can just send this to a friend. I mean, we're using like GitHub as the auth layer, but you can like use any auth layer, and then they can click around and try it, and it's instant, right? Um, so like I have like right now it says you control, but I can take this link, go on my other computer. Oh yeah, I also added dark and light mode on Linux. I have no clue how it works, but I just told Codex to do it. And now it changes everything to light and dark mode because it's important when you work all day. Um, and then like somebody else in your org could take control and try the new thing.
And it doesn't really matter if it's slow or fast, like it'll get the job done. Like you can imagine hypothetically spoken that I work at some company where we have a feedback channel and like people say, wouldn't this feature be cool? And then like hypothetically spoken, we have like a bot in that where the bot would say, yeah, let me implement this, and then it would reply with a link to a VNC session where someone who doesn't know how to code can try out the new feature and then realize it's a very dumb idea, uh, or... but ultimately that's what you want, right? You want to extend the loop so any input can actually be verified. And like, and then some people realize, oh yeah, that actually was a dumb idea, or some people are like, yeah, no, do it like this, and then it was a great idea. And then I only need to look through like maybe a third of the feedback things to figure out what's actually interesting because it already has been verified, uh, and again just by people working in Slack using Claude.
Uh, so where's my rainbow? Let's see. I guess it's still working. I should have just went with like frog green. But yeah, those are pretty much it. Those are the three things that changed my coding over the last few months the most. We have transcripts, which also is really great at companies. We have auto review. Um, sometimes it can go a little bit overboard, so you want to make sure that in your agents indeed you define some invariants, like no, these files will not change after the app started, or like we can assume things, you know, like coding agents always like write for the worst case. And number three, crapbox. Thanks for my TED talk.