Slightly Caffeinated · Hands-On Engineering Podcasts · November 2026
TJ Miller on cutting the API bill for Iris, his personal AI assistant: move all dynamic context (matched memories and the like) into the latest user message so the system prompt and full message history become cacheable.
…I didn't realize this, but at some point, I realized with my ultra plan, I also get 200 bucks a month in API credits. So once I saw that, like, I was like, oh, shit, this is like an opportunity to use Iris again. Like, I just, and I'm already paying for it. So, like, this works out great. Yeah,
…click a couple buttons to connect your consumer org to API platform org. And then that's how you got the free credits that matched your subscription amount each month. Yeah. Yeah. Probably a little while ago, but that was super cool that they did that. And hopefully $200 goes a little bit further.
…a like context block that includes all of the dynamic stuff. Since you can't cache your input message anyways, we just send all the dynamic stuff along with that. So any matched memories, any matched truths, any sort of like other dynamic things just get sent along in your message content inside of like some XML tags to like kind of signify that like this is additional context, not user message. And that means that everything before the message you send is able to get cached. So we had some massive cache wins there. So not only did we get the credits, but I also paired that with some big caching changes. So we're way more token efficient now. I also went through and like did some other tweaks on things to make some improvements. So no, no new features, but lots of fixes for that. And then did some additional like, I found some bugs with memories. So I ironed those out. And what was the other big thing?…
Nice.
Yeah. I'm even with that. Like, I don't know if I have like new features in mind, but I'm, I'm pretty stoked to get it out there. It works great as is. Like I use it. I use it every day at work. Yeah. Is it launching? Yeah. So it's, it's in a really good spot. I'm super excited to get it out there…
Yeah. Same thoughts over here with like Avicet and some of the other projects. It's like built it for me. And if other people get some use and utility out of it, that's great. If make a couple bucks off of it, that's also great. But like I'm just using it, you know, daily, you know, where I can…