Token Usage, Database Workbench, and Secure Agent Communication!
In this video, I do catch up on some of my AI-related software development, including budgets etc...
📄 Auto-Generated Transcript ▾
Transcript is auto-generated and may contain errors.
Hey folks, we're going to talk about AI building projects and stuff. Just a little recap on what's going on for me, what I'm focused on. I think I was mentioning in the last video, just been pretty long week with workrelated stuff. Um, so it wasn't feel like I wasn't able to focus too much on like I don't know doing a doing a good job for getting videos recorded on this channel, even uploading, which is kind of unfortunate, but try to get back in the groove of that. but figured we'd talk about some AI stuff today. So, um to do a bit of a check-in here, I was mentioning over the past few weeks just like AI token usage and things like that. Um, I am pretty confused because one of the last times I was reporting I was saying that I was significantly better off in terms of my my token usage this past month.
So again, depending if you've seen the other videos or not, I was heavily co-pilot CLI um user for I mean for months and months and months. And uh then we started having a bit more token restriction. So I wanted to make sure that I'm like, okay, I'm not like I like C-Pilot CLI. I have no problem with cloud code, but I wanted to make sure I could get back to having some cloud code usage so I'm not uh totally screwed. And so this past month I've been kind of dedicating some projects to be done in cloud code and and others uh in copilot CLI. And the last time I think I reported uh token usage to you guys at least budget, right? Not the specific tokens, but my I think I was saying I was like halfway um I don't know I'd used half as much as I had before, but like I can't remember how the math worked out.
Basically, I was like on target to do like 25% of what I did the prior month, which is crazy. Um, but the the really confusing part is that like I don't know that's been a week or so and like my my token you like uh what do they call AI credits like haven't the usage hasn't changed I feel like because I'm reporting back to basically say the exact same thing but now we're getting towards the end of the month so I have significantly like the total budget hasn't changed um since last time, but I I am on even way better track uh compared to before somehow. So anyway, I don't know what's happening, why that's happening. Um but good news is I'm not going to be anywhere near the limit, which is really cool.
Um, and so as I was saying in one of the other videos, I want to make sure that for this last little bit that for all the projects that I was kind of like putting a little bit on hold because I wanted to make sure I could budget properly, I'll probably try to make sure that I'm giving them some attention. So, um that means the database uh viewer that I have called right now it's just called squeal because it's a play on the SQL acronym. Uh I'm going to probably give that a different name at some point. But I I'm getting some work done on that. Uh basically where I had left off like last month was that I was adding a bunch of database providers because I want to make sure that uh it's extensible that you don't just have to use it for uh MySQL which is sort of what I was replacing uh my SQL workbench.
Um I don't like the Postgress what is it called? Uh my brain's not working. Sorry. The the Postgress sort of like UI. Uh I don't I'm not a huge fan of that. uh looks like it's from 1970. So, you know, Postgress is supported and then there was a handful of other database providers. Um, so Co-Pilot andor Claude, I can't remember what was doing what before uh last month got to a point where they had a bunch of providers that were added in, but it was I gave it or sorry, it gave me a matrix of like features and what's tested and verified and really like the core ones that I had from before like SQLite, MySQL and Postgress were like you know wellestablished feature uh par I mean for for what's possible obviously you know SQLite doesn't have the same features as uh Postgress but
I mean feature par within my app um for where what can be done um they were well covered tested and then the new providers like it's kind of like spotty feature parody um you know it it doesn't seem to have a lot of confidence so when I was digging into it it was basically saying hey look like these things were being built out But um the way that the CI is set up uh it wasn't able to to basically have uh real databases to test against. And that's kind of a excuse because like there's test containers. So if you haven't used test containers, it's pretty cool. You can uh basically spin up, you know, docker instances of different services depending on what's available for you. Obviously, if if the thing doesn't exist, then you can't spin it up. But, uh, especially for databases, it's really common to be able to spin those up.
So, I was like, well, what the heck's going on here? Like, why don't we have that? And it was like, oh, no reason. Like, we just we just didn't do that. Like, okay, well, I know I know what you're working on for the next week, then. Um, so it's going to be building out uh better testing capabilities and kind of filling out that feature matrix for the other other database providers. So uh I'm going to have that uh more polished which is good and um I think the the real test after that is like I have to start dog fooding it. So that means I will drop SQL uh MySQL sorry my god uh my SQL workbench uh and kind of switch over to using Squeal myself. So um that's going to be a product that I offer on my website. And of course like I'm saying this out loud fully recognizing this because if you're watching this you might say well why would anyone pay for that?
Um, and that's a totally fair question, right? I think there's a lot of things right now where if you're comfortable building your own or you want to go find an open- source variation or whatever, like absolutely. I think now more than ever, there are lots of opportunities like that. So, that's great. Um, but what I want to be able to do is basically stand behind some of the things that I built for myself. And, um, you know, if people want to pay for that, then then great. If they don't, that's also fine, too. So I'm not here trying to say look I built the next you know no one's ever thought of a an application where you can connect multiple databases and you know run queries against them. I get it that's fine but uh I want to make sure that I have something that's well supported.
Uh I also designed it so that you can uh have more management around it. So, for example, if you're just a single developer and you need a tool, then especially if you are a developer, you're probably more um from a demographic perspective more willing to go explore like cool, let me go get this, you know, open- source tool or let me build something from a repository that lets me access my database with the UI, like whatever. You're a lot more open to tools like that. Um, and I think that having sort of like a a management capability is going to be a is a value ad, right? So, if you want to make sure that I don't know um you have your settings locked down and managed centrally for a development team or or whatever else, however you want to make sure that people are accessing your databases, um then you can use this.
So anyway, um I'll be offering that, but I I want to get to basically this point where I'm dog fooding it myself because I feel like that's one of the best tests as an example. Like if I'm not willing to use it myself, then why would I ever expect that anyone's paying for it, right? So um we'll get that going. The um the other thing is this uh open- source library and uh management portal that I'm putting together uh called um Conclave. And uh Conclave is secure encrypted endtoend agentto agent communication. And so I'm offering that as a open- source library that people can they can go see all the code for how that works. Um if they kind of want to run their own they can. It's totally fine. But for me it was important if I'm going to do something uh that's based around encryption, privacy, security, I want to make sure that that it's open like people can see it, right?
Because that way if there are issues then then it's very much visible and it's like they can get patched, whatever. But um the sort of product offering that I'm going to have is a a management portal around that. So if you want to pay for hosting um and pay to have a management portal for that, then that's what I'll be offering. So again, uh Conclave is something that I was building out in prior months and when budgets got tight, I kind of stopped. But the reason I'm building this is because uh when I'm running enough co-pilot sessions uh and even it'll work with Claude as well when I have agents working on things um I often find that I get really good this is going to sound funny but I get really good results if an agent's stuck on something or uh say it's delivering
something like a an API that a front end's going to consume or you know the front end needs to consume a backend API whatever right um I can have the agents uh interact with each other and how I'm doing that is basically like manually right I'll say like hey if you found an issue like tell me what it is and I will go have the other agent do it so I'm I'm kind of middlemanning between the agents and so um some ways around that are like hey like just, you know, go leave review comments or go open up an issue, but then I need to tell other agents to like check for those issues, like that kind of thing. So, there's just some like weird management overhead. And my goal is that if I have Conclave set up that as long as I've established who's allowed to talk to who, which is part of uh, you know, being able to manage it, then then I can do something uh like this following example.
So, I have a machine that I run my uh my GitHub actions on so that I'm they're not all hosted on GitHub. I have a lot of them running locally. And if that machine ever has issues or I need to get something set up, um, I can have co-pilot agents on my other machine basically go ask co-pilot on that machine, hey, like I need you to go set up this runner for me or uh, you know, there seems to be something wrong, like can you can you diagnose this? Um, and how I'm doing that now is basically like again middlemanning messages between the machines or I tell them to use GitHub and and kind of uh coordinate that way. So instead I would love if they can just go reach out to that co-pilot session, right? That's a very particular use case. The other one I was talking about was kind of coordinating front and backend developers.
Um I have just to give you one more example I have in brand ghost we have a URL shortener we have a sort of backend API server we have a front end and then we have our agentic workflows so I have uh at least for a complex feature like I could have four different agents working on parts of like integrating that and so I would love to be hands off during that because when I'm working through that a lot of the time it's like hey I need you like hey agent I need you to go review this other developers work I would love if they could just say like I'm going to go ask the agent that's working on the URL shortener to review uh how I plan to call this API something like that right and then they can coordinate with each other that way um so that's what conclave is I'm going to again uh get at to a point where I'm dog fooding it.
The um where I left off was just kind of like I don't know like it's functional in terms of like you can send messages, they're encrypted end to end, that kind of thing, but in terms of the the user experience, it's like it needs a lot of work still. And I'm I'm I'm obviously talking very transparently about this, but you uh for co-pilot, you can install an extension. So that's it's cool. It's easy to do. Um, and then you say, "Cool. I want to like I want to start having two agents coordinate." And originally it was like at least six commands that you would have to send like on either side and you'd have to send these enormous like uh strings that were like encoded data. And I'm like, well, we can't even like these could be on different machines. I'm not going to go type out like a 100 characters.
This is crazy. Um, so it's like it built it functionally, but the the user experience was god awful. So, um, I'm just kind of like I'm trying to start using it and then encountering a lot of like really silly usability issues. Um, so my goal is to get that to a point where I'm using Conclave regularly so that I take myself out of the the middle and uh then I will have Conclave itself actually. Um, like there's two agents I usually have set up. One for the management portal itself and one for Conclave as an actual like infrastructure. And then for the management portal, basically I will be able to be the expert user working through it. Then I can go complain or ask for features to the one agent. Say like, "Hey, I need the management portal to do X." And then those two agents can communicate with each other to basically say, "Okay, I need to go build this feature.
We need this built out in uh in sort of the infrastructure layer." And just kind of let them coordinate that way. Um because again otherwise what I'm doing is I'm I'm sitting between them copying and pasting messages like it's ridiculous. Um so this allows me to spend more time in the in the position that I need to be which is like directing it architecturally directing it from in terms of like capabilities uh usability that kind of thing and then letting it spend more time you know focused on the work not blocked on me. it can it can actually go coordinate with the agents themselves. So, um that's that for Conclave and uh Squeal and then some other things going on. So, I mentioned I got two games that are kind of being built on the side. Uh one's a creature breeder, one is a uh I'm doing the tactical RPG variant of my my role playing game right now.
So, those are being built. Um the pattern that I'm using there is uh for each one of those games, there's one that is more focused on like game mechanics and the other that is more focused on like art and assets. And then for the RPG, I'm actually uh expanding this to do a third agent which is going to be more on like um what's a good way to say this? Like uh game data is probably how I would kind of frame that. So that might sound kind of confusing. What does that mean, Nick? Um, so one agent writes most of the code for game mechanics and integrating that. Another agent will do a lot of the things that you're seeing visually. So whether that's uh UI design uh or uh assets that go into the game, but the third agent is actually the one that's going to be responsible for um like writing the data that goes into the game, which I've already said.
So what's a better way to say that? Um okay, like I want to spend time designing game mechanics and then like defining things like you know the classes, the skills and stuff like that. Like I want to have the creative control over these types of things. I want to spend time on that, right? Like I want to spend time on like what would be really, you know, interesting items to drop in the game like item sets, uh quests, uh the areas in the game, like I want to spend time on that. Um, and so the way that all of uh when I've been building this role playing game over the years and rebuilding it, one of the central things that comes up is that it's very very very data driven. And that means that like what I don't do in the Oh my god. Let's Let's figure out how to how to do that, buddy.
Holy Just trying to parallel park. But in order to parallel park, the front of his car has to swing into my lane. So, um, not a not a good move. The, um, the way that this role playing game has been set up, and I lean into this pattern, is that I am not putting, uh, game, I don't even know the right way to say this, like things like what skills you can use or like what classes are in the game or the quests, like that's not coded into the game. The game is very much like uh it needs to read this kind of information from a database or from from files on disk so that I can extend the game just by writing content and not coding it. That means that the game engine itself needs to be able to uh accommodate a lot of flexibility.
That means if I need to um there's always going to be some types of things that I can't, you know, just define more rows in a a database to get new um new capabilities, I guess, in the game. So, the entire point is that the game itself allows me to extend uh the capabilities. So, those have to get coded in. So, if I need like new fancy item interactions, I need to be able to like code that in. Um uh there's mechanics in the game like time of day or um the weather like that kind of stuff can influence different things in the game. So for example, I could if I wanted to have uh loot drops that are based on like it this is only going to happen, you know, on this particular map or this type of map when it's snowing and at night.
Just making something up, right? um like the game supports those types of things. So, if I wanted a different variation like and uh you know, you needed to have this quest state and your character had to have this status like uh you know, they're in they're cursed with something like if I need all of those mechanics to work together that has to get coded. But if those interactions already exist in the code, this third agent is the one that's going to help author what that data is, right? So, I can come up with what I want to be there and that agent can go draft the actual data files to make that happen. Hope that makes sense. Um, this is also arguably one of the reasons why I like this game.
Uh, like I've been working on variations of it over the years, but I would say that's probably the number one reason it's never been remotely close to playable is because instead of taking probably what shortcuts should have been taken, I always like try to stop myself and I'm like, "Nope, it's got to be uh it's got to be game data." Like, it's got to be loaded in that way. uh no shortcuts and uh trying to like over abstract that way, overgeneralize is like I mean I think that's the number one reason it's never done, but it's also the thing that I like I for some reason I like actually enjoy that. Like it's it's cool to me. So anyway, we got that going on. Um and then I just got to CrossFit here. So, the other thing I'll mention is that I'm trying to spend a little bit more time on uh some of my dev leader content again.
So, what I'm going to be doing, I think I mentioned this in one of the videos, but I think it's going to be fun. I'm going to try to combine a bunch of things. So, um I'm going to try showing how I'm building some of these AI products and projects. I'll do video series on them. And then I'm going to show how I'm using something like Brand Ghost to try marketing it because I think that would be fun to take these individual projects that are being built with AI. Uh talk about the different types where I'm spending more time like closer to the code and others where I'm a lot further removed what those interactions look like. But I'll do them in series. Um, and then part of that I I think it's really important is showing that you know in some cases these might just be developer tools and whatever.
That's cool. Uh another case like I have a couple of you know open source MCP servers right cool I can show how I work on those how uh I've taken in some fe uh feature requests bug fixes pull fix uh pull requests uh integrate those but nothing special but I can also show in other cases maybe like something that is a product if I use brand ghost for that like how can I make sure that I'm getting uh social media coverage how can I make sure that there's a marketing website and stuff put together for that with brand ghost so I can kind of show these different journeys across these products and I think that would be kind of fun. So I'm going to try making some more video content like that on my main dev leader channel. So hopefully that's interesting and a reminder if you're new to this channel um it's primarily driven by submitted questions.
So if you got questions on software engineering career development leave them below in the comments. Otherwise go to codecommute.com. You can submit questions anonymously that way and I will make a video response for you and the other people that watch his channel. So, take care and I'll see you in the next one.
Frequently Asked Questions
These Q&A summaries are AI-generated from the video transcript and may not reflect my exact wording. Watch the video for the full context.
- How do you balance Copilot CLI and cloud code usage for token budgeting?
- I've been dedicating some projects to cloud code and others to Copilot CLI to manage token usage. I wanted to make sure I could get back to having some cloud code usage so I'm not totally screwed. Last time I reported, I was on target to do about 25% of what I did the prior month, but now I’m on an even better track and the total budget hasn't changed. I'm not going to be anywhere near the limit.
- What is Conclave and how do you plan to use it to coordinate AI agents?
- Conclave is an open-source library that provides secure encrypted end-to-end agent-to-agent communication, and I'm also putting together a management portal around it. I want to dog food it by using it between Copilot sessions so agents can coordinate directly instead of me middlemanning.
- How are you structuring your RPG project with multiple AI agents and data-driven design?
- I’m using a three-agent pattern for my RPG project: one agent writes most of the code for game mechanics, another handles visuals and assets, and a third drafts the data files that define items, quests, and areas. The game is designed to be data-driven so content can be extended by writing data files (or database records) rather than coding, and the third agent will create that data.