My Entire AI Agent Setup (Claude Code + Dev Containers)
Read full transcript 15 segments
-
Hey, what's up? I'm doing a lot of work this morning on my application, running multiple agents and working with AI. So, I wanted to show you my full AI setup and how I do all of that from the command line. So, if you don't know me, my name is Misha. I work full-time as a DevOps career coach. So, I help uh support engineers, software engineers, and system administrators to transition their career to DevOps engineering very often with six figure salary results. I'm using Herder. So, I made a separate video on that. That is um you can find that on my on my channel. Um if I have time, I will link it up here. But if you search for Herder on my channel, you will find it. This is Herder. And Herder is the system that I use to manage my AI agents over multiple machines, which is a very effective way to do it. So maybe we should start there because um yeah this is going to get quite technical and I have a very unusual setup I would say.
-
I don't think many people in the world are doing it like this but um first of all I am let's start with the machine I'm working on. This is my framework desktop. This is the main machine that I that I do most of my work on when I'm in my home office here. When you watch my other videos, you will see that I uh sometimes work in my studio, but now I work in my home office. I have multiple places where I work. So this is my framework desktop and this like this these agents are actually running on Mercurius. So this name is actually Takitus. She's a Roman historian and Mercurius is like the god of travel and therefore my laptop my framework laptop is called Mercurius because that's the one that I bring when I'm out traveling with my van etc. So it's made for travel. So, my framework laptop basically has uh all of my AI agent systems and I'm basically like I use that as my remote server right now. So, either I will be in my van traveling around and and and working just on the laptop, but when I'm at home, I just park it and I just SSH into it as a server basically. So, this is where all of the action happens. So this is where where
-
the AI agents are actually running. So AI agents right now. So I used to just SSH over here and just uh enter the T-max session that was running on that system and then just T-Max attach and then I would prompt the agents from there. But I recently started using herder and that has made this process a little bit easier because I can now detach from here. If I do herder machine list then you see I have added mercurious as my herder machine. So like I am now on takitus and if I then run her I have configured it so it will connect to my machine and there you go. It is now showing me all of the AI instances that are running on that machine. So I can very easily switch between them. I can do um I can create new sessions on the machine. It's actually a really neat way of of doing all of this. I can click I can use the mouse. I can use key bindings to do it. It's a really good program. Now all of these agents are currently working. Uh well no not all of them actually. This one is now done. So that's how how it's that she I see that in a little bubble here. But these two are still working.
-
Actually, this was accidentally interrupted. This one is still going though. So this is what's going on right now. And I can see what's what needs attention and what can just keep running. Now it also plays a little sound. So because it's a physical laptop that's in my near vicinity, I can actually hear the sound when it's done. You won't hear it through the microphone, but when it's done with a task, I will hearipip and then I can I can go and check it, which is really handy if I'm just setting off a bunch of agents on a some longunning tasks and then I'm just going to do other work in the meantime and I will be notified when that happens when it's done. This is basically the where they are running right now. But what I like about Herder is that I could literally just add, I don't know, as many machines as I want. I can have them running in the cloud or or v virtual machines. Um, and in the future, that might actually be what I do. So, I'm not even dependent on a physical device. I would just get a dedicated server at Hner or something that's always going to be online. So it doesn't matter where I'm at in the world traveling with my van etc. I have this one place where all of my AI work is happening. So that is really cool about this.
-
Uh the second thing then is how am I actually running these uh agents. So there's two elements to this. First of all is how am I running the the actual software on the computer. Yeah the answer to that is of course in containers. So let's start there and then I'll tell you what I'm actually running inside of those containers. Okay. So on this machine I run if you know anything about me then you will know that I will I never install locally if I can help it. So everything always runs in containers if possible uh in my work because I'm a DevOps engineer and that is just a modern way of running software safe securely. So on this laptop, let's see how am I going to visualize this properly. Let's just enlarge this. Actually, this is my framework laptop and on here I run multiple containers and specifically dev containers. If you're not if you don't know what dev containers are, you can do go to containers.dev and this is a specification where you can easily uh enter add extensions etc. This is also integrated into Visual Studio Code which is why this is a um very broadly adopted standard. I use development containers to create environments where everything I need is um available. So if I oh this also a good feature of Herder. So I can
-
get a new tab and if I type host name you see that I'm actually on Mercurious now. So I'm creating these tabs. So it's also a very neat I don't have to SSH and run t-max attach etc. I can just if I want to quickly show something on that machine I can just go here and do that. So if I do defbot ls then you see I have multiple containers running here. So if I if I want to do something in my home lab container I can do yes and select home lab. And now I'm in my home lab container which has for example tools like cubectl and everything that I need to manage my home lab. Everything that is used for managing my home lab is in here. It has my lazy vim config. Everything is in here. So for every project I will build a separate dev container that contains just the tooling that is required for that particular um particular project. So I do the same with my AI agents. So I will either have like separate container for the project but the main thing that I have is Rex.
-
Rex is my my main system. So that's one big dev container and that is built on something called lifeos. It used to be called uh pi personal AI infrastructure earlier. This is made by Daniel Mesler. He's an amazing guy. I've been following for a long time. He also is the creator of fabric the the AI tool on the CLI if you don't know if you know about that. But um when he came out with his stuff, I was okay, this is the harness that I want to do and I've actually been using this for almost a year now and it's actually really good. Um I've totally built my own system out of it. I've changed a lot about it, but I use this as my starting point. So that is what I'm using. So I have one big dev container that has multiple think it has tons of skills and everything in it but it also has for example the cube AI um project in it. So what I'm currently doing is I'm telling Rex which is what I called my system Rex is Latin for king.
-
So I'm the emperor and my Rex is my client king and he is um managing the client kingdoms for me. That's the naming convention that I came up with here. And I will just tell him hey uh I'm going to work on Q issue in this case um where was it here? I I want to work on issue 221 on my repo. Uh please go and fix it. So, and then it has the repo inside and it will start working on it. And this is also how I get this really cool status line that shows the context and all of my usage etc. And uh because I use dev containers and herder at the same time, I can spawn multiple instances and I can just have it running in the same dev container as well. Actually, now I've gone uh into this as well, but yeah. So I have all of these multiple containers that are sometimes dedicated to the project, but I also have this main massive container which I call Rex. It's my the assistant's name.
-
And that is running on live OS. And this has tons of custom skills. And I I run a lot of my business on that customuilt AI system. So that is basically um my main setup for AI workloads right now. So I I can use that for my home lab. I can use it for um almost anything really. Let's see. So this is what then um this is a fresh session and uh I can literally say are there any alerts firing on my home lab and it is then going it has access to my home lab. It's going to as you see it has the home lab skill. It is then going to check out the code for it. It's going to run some cubectl commands and basically do what I needed to do. And I this is I I I I really like this system. This this life OS taught me how to use skills properly inside of AI. And in terms of AI tooling, I I literally just started using claude code and I have not even tried anything else. I think claude code from what I I'm constantly reading on X etc. But from what I hear is that um chat GBT is more for like the general public but if you really want to get stuff done Claude is actually the best
-
model or family or the best um anthropic say is the best company for that. And when I when Claude came out, I I switched from Chat GPT to Claude and that has always felt the best for me. It has always been the best um match in terms of personality and efficiency etc. And since Claude Code came out, I have just used that and I never looked back. I have their subscription and it has served me very well so far. There are a couple of things that I would like to try like pi and and those kinds of things. Is it pi harness? Uh people have described this as the neo vim uh of agent harnesses. So yeah, this is one that I would like to look into. But honestly like the reason why I don't is because I'm reach I'm achieving the goals that I need to achieve with what I have here. So here we see uh yes um on yodenheim mime is clean. So this these are my different uh clusters and then uh we see that there are a few issues here. Actually I I I was ignoring my telegram for a few days and there are a few things but so here there is a some API that I have is failing the home lab
-
skill has a fixed workflow for it. So okay let's fix um seedbox and then it's going to walk me through how to fix it. So this is it's really powerful. So if you want to um like what I really recommend is that you do like build a system of yourself have this one place where you have all these skills and keep building on on top of that one system but don't spread spread yourself out like I I really have found true value in having one big monor repo with all of my skills and all of my workflows in there and that has been working very well for me so far. I built this based on life OS with clawed code. You can use this with other um as you see here with anything you want I believe. Um I haven't tried that but this is also what I like about this live OS that I can bring it to other harnesses if I want to. Uh oh yeah, one thing. If you do this, for the love of God, don't host that on GitHub. Like this stuff, it has access to my journal.
-
It has access to everything. And I don't want Microsoft to know anything about that. So I I just run my own 4Jo instance. As you know, uh I'm not logged in there right now, I think. But uh yeah, so I I have my 4Jo instance. So, I'm self-hosting my own Git server and I'm storing everything there. So, don't create this huge personal system and put that on GitHub um even on private because you're just going to share your data with Microsoft and I don't think that's a good idea. Take the time to host your own um git git server for that. Any self-respecting DevOps engineer or or even aspiring DevOps engineer should know how to do that. There's a video on my channel for about that as well. That is basically my setup. So it is again my framework laptop is basically my agent basis. I'm running dev containers in there with Rex life OS as the main driver. And oh yeah, maybe I should just clarify. The reason why I run deaf containers is because then when I am on this, let's see, I'm now on Mercurious again. If I then enter uh Rex for example, so I will enter Rex.
-
Here you will see the command that I use to actually start the Rex instance. And note I'm doing dangerously skip permissions a pan system prompt file. So when I run this, it is going to of course start Rex, but now it has bypass permissions on. And this is how a true agent can actually like this one has been running for I don't know 40 minutes right now. And it it has access to the cluster. It has access to everything. It just can keep iterating and fixing itself and fixing the problems as it's going along. Well, I would never want to have that set that loose on my local machine. So, there's so much power that you have on a Linux machine. You can basically destroy everything, anything, right? So, you never want to do that on your local machine. But if I run it in a dev container, then I actually am able to give it access to only what I want to give it access to. So the only thing like I I will only mount the directories into this container that I want it to access right I will only give it the permissions and the ports etc the network that it should have access to.
-
So this gives me complete control and because I have complete control I can give it the what is it called again dangerously skip permissions so that it can just work indefinitely on the background and do whatever it wants without me constantly having to press enter. That's like the worst part of of um working with agents like if you don't know what you're doing, if you don't understand Linux properly and if you don't uh if you're just like a code monkey and you're just yeah I don't know if you don't understand how computers work then that is becoming a very tedious task. You just enter enter. So this way I have a safe way to just give it all the permissions it needs and just let it cook and for long long stretches of time which is what how agents should work in my opinion. So that's how I do it. Um if you want my help with um setting this up then consider joining CubeCraft there are links below. I share this stuff inside of this community as well. But if you if you're just simply looking for a DevOps job and you feel stuck on that journey or you don't know what the next step should be, go to roadmap.cubcraft.dev.
-
It's completely free there. Uh you go here, the link is in description. You click get the road map. You fill out the questionnaire. It will show you where you are on the DevOps journey. It will show you what your pain points are, what your problems are, and how to solve them. So fill it out. I've I've I've been doing this for over three years. I know exactly what to do to land people six-figure DevOps careers as we've seen in the win section. We're really good at it because people are landing multiple jobs a week as you can see here. So that is um that is the track record and all of that that uh skill and and experience of coaching these people is poured into this road map. So this is the it's the best road map on the internet if you want a DevOps career completely for free. Check out the link in the description and I will see you in the next
Summary
Misha, a DevOps career coach, demonstrates his unique command-line workflow for managing and running multiple AI agents from a remote machine. The setup relies on tools like Herder for multi-machine agent management and development containers to run software securely and consistently. The practical takeaway is that combining Herder with containerized dev environments creates a highly efficient, scalable system for multitasking with AI agents from anywhere in the world.