I Built a DevOps Agent That Deploys Other Agents (Live Workshop)
- Published:
- Length: 22:30
- Channel: Eugene Vyborov
- Video: https://www.youtube.com/watch?v=8RozanPd14Y
- YouTube video id: 8RozanPd14Y
Description on YouTube
Free Live Workshops every Thursday 8-30 AM PST / 11-30 AM EST https://www.ability.ai/workshops Trinity Live Workshop #6: I Built a DevOps Agent That Deploys Other Agents (Live Workshop) https://github.com/Abilityai/trinity https://github.com/Abilityai/cornelius https://discord.gg/fvxMXyKK Most people run AI agents on their laptops. That works until you want them to actually run when the laptop sleeps - or when you don't want sensitive data leaving your perimeter. In this workshop I walk through the brand-new public Trinity Ops agent and show how to provision an entire sovereign agent platform from nothing - either on a Mac Mini sitting in your closet or on a fresh cloud instance. Two paths, same result: a Docker stack that hosts your agents behind a VPN, with the lifecycle managed by another agent you talk to from Claude Code. In this video, I cover: - What Trinity actually is (orchestration + infrastructure for autonomous agents) - The new public Trinity Ops agent repo and how to clone it in seconds - Two ways to provision: Claude Code plugin marketplace vs cloning the repo directly - The Docker container architecture (backend, frontend, scheduler, Postgres, Redis, plus a container per agent) - Initial onboarding - admin password, API keys, GitHub PAT, subscriptions, whitelist - Why sovereign-by-default (behind VPN) actually unlocks more experimentation, not less - Managing instances day-to-day from a single Claude Code interface If you've been curious about running an autonomous department instead of a single agent, this is the fastest way in. Trinity is open source - links below. --- TIMESTAMPS: 0:00 - Intro 6:15 - What Trinity is and why it matters 8:30 - The new public Trinity Ops agent repository 10:50 - Two provisioning paths: marketplace plugin vs repo clone 14:00 - Kicking off the deployment 17:45 - Walking through the Ops agent skills and playbooks 19:50 - Docker container architecture 21:35 - Why sovereign / VPN-protected by default 23:00 - Initial onboarding screen and admin setup 24:30 - Settings tour: domains, API keys, subscriptions, whitelist 28:30 - Reviewing the deployed instance 31:30 - Q&A and wrap-up --- #TrinityAgent #AutonomousAgents #ClaudeCode #DevOps #AIInfrastructure
Full transcript
[0:00]Okay, welcome everyone who joined us today. I think we're going to have a very interesting workshop today and I encourage you to ask questions. The reason I think it's interesting is because it's very practical. What I want to show today is how you from nothing get yourself a Trinity instance running somewhere whether with us or with you know, regular provider of hosting for this type of um software.
[0:33]And how to do that like basically two clicks these days. It's honestly quite easy. So, just as a quick reminder as I always do, I need to start with describing what the Trinity system is in the first place. Trinity is an orchestration and infrastructure layer for autonomous AI agents and each box that you see on the screen is an agent and each of them is a GitHub repository and each of them is a a Docker container sandbox Docker
[1:06]container. Which means that they're basically independent stateful agents that are developing over time. So, what I what I'm saying is that we can design such agents and run them on Trinity in in this way. And this is just one of the instances that where I'm running one of the workloads uh and I want to show you today how you can have the same stuff for yourself either on your local host or on some sort of cloud provider or hosting provider.
[1:40]Really like just just to to start on this you really um don't need or don't have to deploy it on the local machine. There is a lot of cheap providers or relatively cheap providers of like basic instances or maybe you already have like Mac Mac mini or something from um your experiments with Open Cloud and you want to do something with that. That's also a possibility. So, let's start with how is this possible? So, I want to reference all of you guys
[2:16]to the documentation website first of all because this website has plenty of docs and is being updated quite often basically almost automatically from the updates in the code. So, whenever you need to understand how do you build this thing A or do this thing B, you go here, you talk to an agent, you search the docs, you do whatever you need to do with that. Now, as you remember probably that Trinity is open source so all of that is sitting on GitHub and actually today
[2:51]um I wanted to Trinity GitHub. I did have. Yeah, I wanted to actually introduce you to this new repository entire repository that I've put out there which is exactly the public version of the agent that I use daily in order to manage and run instances of Trinity myself. Basically, this is a DevOps agent um over here. There's a Trinity DevOps
[3:23]agent public like from an hour ago basically which is basic cloud code agent that you can run that will help you to pretty much do anything from setting up the instance any random instance to getting access to Trinity through ability AI or to run it on your local host machine or something like that. So, uh we're going to do go and give it a try and see how that works. And there's actually like there's two entry points to doing that. I am just experimenting
[4:00]with them and trying to understand which one is actually better for you guys to use whether it's a separate repository with like a template of a DevOps agent or a plugin in the cloud code. And when I say the plugin in the cloud code, you may remember that we have this abilities abilities. I should come up with better names abilities. Yeah, there you go. So, we have this GitHub repository that is basically like a plugin
[4:33]marketplace for cloud code which you can also use in order to create an ops agent for yourself. But essentially, this is going to be exactly the same as uh simply cloning this repository. So, here is the local clone of this agent um I apologize give me just one second. Okay, that happens. Uh all of a sudden. Yeah, someone from outside decided to
[5:04]talk to me. But anyway, let's go back to where we are. Uh So, this is a local clone of this repository that I showed you the Trinity ops agent repository and uh I just asked it to describe itself and basically what it allows you to do is everything from provisioning the um new instance on which you're going to be running the repository itself to managing the life cycle of this instance seeing the logs checking health managing agents through the MCP managing
[5:38]tunneling and even VPN uh if that's something that you're doing basically the same stuff that uh we do for our clients. Now, schematically it's pretty straightforward. So, you the operator you run Trinity ops agent which again deploys stuff to the instance that you prescribed and uh yeah, rolls out the server. So, the process itself is actually taking well, some amount of time. I don't know if we're going to be able to actually wait it out through this
[6:12]workshop. But let's see. So, this Trinity deploy is one of the methods that I mentioned to you that allows to uh roll out a new instance. This is when we are using the plugin marketplace thing. But actually um all I need is this credential instance so I can do that from the agent itself. So, showing in parallel tracks this way number one to do exactly the same thing is to use this Trinity deploy
[6:47]from the marketplace and that will create a DevOps agent for you from scratch with the instance configured. And another way which is actually not not harder not easier it's just different it's just clone the repository and give it credentials to an instance. Well, in this in this case I already created an instance. So, with the help of the agent you can potentially also create an instance for yourself. But uh
[7:19]yeah, what I can do is I can give it now these credentials and call the provision command. And I think it's going to be you know, just uh just fine. So, we can try it from this separate agent and just to show you what steps are going to be taken. In the meantime before well, while I was preparing to the call, I run the same exact process. But I run it for the local host and it took some time to execute. Let me
[7:52]scroll it up and show you how this happens roughly. Yeah, that's already unfortunately after all the setup. So, there's a lot of the output that had been eaten. What it basically did is it created this local host ops agent for me which has all the different skills that I need to roll out instances and manage instances and do whatever whatever I like with them. It even gave me like some passwords and you know, this all this configuration and yeah, and basically deployed it for me
[8:25]locally. So, it was literally one command that you can execute now in order to roll it out on basically any instance. All right. So, now it kind of it keeps working on this instance. I just created you know, an empty instance give it like SSH credentials and that's that's enough pretty much. Uh yeah, I'm not going to dive into all these questions because this is just a test run to um show you how it works conceptually. Because again, you know, the
[9:00]one issue I would say for just using the command and not using the agent would be that well, actually agent has more uh functionality for managing the actual instances. And once we roll it out over here, I can show you how we going to manage the instance itself and what we can do with that. Okay, so I want you to list your skills and playbooks and explain briefly what they are for in the context of managing uh
[9:36]the actual Trinity instance. Again, you guys can do the same exactly from the local copy of this repository. Let's take a look. So, uh well, first of all, it helps you to deploy the actual instance whenever you start. So, there there are commands for specifically that. There's a provision command that you use uh or command, skill, playbook, whatever we call that that you use in order to provision this Trinity instance. And then we have a bunch of these different
[10:10]skills for the review of the status of the instance logs, the diagnosis of the instance in terms of the health, seeing the telemetry. Again, you can read all of that, but I will repeat it. Uh and of course update based on the say latest version that is in the main repository or some other branches and doing some sometime. And there is a little bit of other stuff for managing actual agents that are running on this platform. However, excuse me. Uh in order to fully work for this type of an agent, what you would need to have
[10:44]anyway is um uh the actual MCP configuration uh to this same Trinity instance because there is a lot of this um uh analytics that comes through the MCP directly rather than going to the database logs or something like that on the instance. So, it's operational not only from the infrastructure perspective like rolling out instances and stuff like that, but also to managing the families of agents running on Trinity
[11:18]from this same kind of quote-unquote interface. Right, so let's take a look how the progress uh is going. So, I think yeah, I walked through all of them. Yeah, yeah. Uh I think it should should make some sense. So, as I said, it's taking a lot of time. So, what is happening now is that it's rolling out various Docker containers. And if we look schematically at what Trinity is uh uh I think I have it prepared briefly over here. What Trinity is from the
[11:51]kind of container architecture perspective is the fact that it itself runs in Docker. So, basically the Trinity back and the Trinity front end scheduler and database, I think, are running in their own Docker images like yeah database and Redis. And then each agent that is started is also starting in another container. So, essentially the model is like this is this is the same one instance right now where like both the Trinity
[12:26]system and the Trinity agents are running. We can change it later or debate what is better, what is worse, but so far that's that's the way it runs. That's your instance. You control this um uh uh you control these agents and you control Trinity instance itself. So, what we usually do again in real life as I'm considering that this is a sovereign system meaning that it is intended to be behind the VPN. To not be exposed into the
[13:00]world for you know, that's because that's its its power actually that opens up a lot of the um opportunities for experimentation if you are less risked by external threats of you know, various attacks. At least that's one of the reasons, not the only reason actually. Now, anyway, going back here. So, when when the deployment is happening, what happens is that all of those different Docker containers are rolled out. Then the system is validated and it's up and
[13:32]running and working. Uh and then I think there's also validation of the agent-to-agent communication, but I may be wrong. And then you will be guided through the process of actually setting up the instance. Uh you know, setting up the admin password, getting the API key that you will then use for the MCP configuration or um Yeah, or doing you know, doing some other things over there during the
[14:05]onboarding process that I just don't remember. Like uh a GitHub path is one of them. Also, one of the initial setup kind of things that need to be taken into account. So, really as long as the instance is rolled out and validated and it's healthy, what you need to do you will be presented with this sort of the screen. Uh I should have it here. Yeah, this is like an initial screen of a newly rolled out instance
[14:39]um that I left over here just you know, to show you what's what's going to happen. And then you know, you need to put put over here your password. That's going to be enough. Uh and the setup token which I don't actually remember what it's used for off the top of my head. Anyway, um I will check that on the back end. But basically you're setting up your new account as an admin and then you will
[15:13]need to whitelist and manage users on your instance and see who you allow access, who you don't allow access. But in terms of the like uh very basic and initial setup when you set up the instance uh is going to be let's go through the settings actually. It's going to be useful if we just sit down and go go through the settings. So, uh if you are behind VPN uh meaning that you you enclosed your instance. But you do want your other users to access um
[15:46]uh your agents through the functionality of the public links uh then you need to configure the domain management appropriately and stuff like that, but basically you will need to have some sort of subdomain that can be used as the public URL. So, this work is done by skills within the ops agent. Uh so, I don't remember exactly which skills those are, but basically they allow you to set up domains correctly and uh uh do that at least for some providers.
[16:20]Maybe not for all of them, but you'll figure it out. Then we have configuration here for the Entropic API key at the admin level or subscriptions. It's a little bit below the GitHub access token for agents to use. And it's up to you to choose whether you want to use one token for the entire system or you want to use a token per per agent. You can also do that, but again, for me usually it's enough to use um uh this access token per instance. Then we have some Slack configuration and
[16:55]some other unnecessary stuff that's very specific, but I'm not going to talk about it as it's not part of the initial onboarding, but rather later later configuration. Now, over here you can add any number of subscriptions of yours. They are added through the long-term tokens and there is a functionality to automatically switch those subscriptions between each other. You just plug it on and the subscriptions will go on and off between themselves. Um then we have some custom global prompt. I'm actually not using that all
[17:32]that much myself. Uh then we have the whitelist. I'm not going to go through on that production instance. Uh and yeah, some templates that you can use or not use quotas for the maximum number of agents that each role can take. And that's also just like an admin stuff. And you can also generate default avatars, but that's not the setup point of uh
[18:05]uh of of the instance life. So, let's go and see what's going on here. See, it takes time because it's just basically it's rolling it out, but here and there it takes a lot of time for this to be created and that to be merged and the other one to be downloaded. So, yeah, anyway. Uh where was I? Yes, I was on the settings. So, and I think that's pretty much it. You can um uh after you know,
[18:38]setting it up initially, you can then whitelist some of your colleagues or whoever you want to involve to the agent development process. Uh and they will be able to log in into the system through the use of uh uh email and code combination. And yeah, and that would be the way you know, you would let other folks to build those agents and deploy them on Trinity as well. Okay, cool. Okay, so this one is done. All right, I think it's at the end
[19:12]of the actual deployment and it's just asking me setup kind of questions. Like basically instructing me to go to the instance and get the MCP key which is a necessary step. Like the first time you log in into the uh uh instance, you will need to go your admin API key and it's kind of very important to keep that in one password or some other places depending on uh uh how you organize your security. Uh but I will skip it for right now.
[19:48]See, it's showing me this like admin passwords in the logs on this data that is running on my local machine and that's not the uh uh real thing that will be dropped, but still remember that your credentials live in your history of your messages with your cloud code. Okay. So, see what happens at the end. Uh the Trinity Ops agent was created and I told you that it basically is you know the copy of the uh repository
[20:21]that I exposed over there as well. And it creates this agent that I can launch Cloud in and then use all of these different skills and commands uh in order to manage my instance. And actually instance should be up. So, if we go here, we should see something. Uh I don't think we need to set up token there. I may be missing that one. Don't remember this part, but anyway. Uh so,
[20:58]yeah, I guess I'm going to take a pause over here in in case you guys have any questions because uh I'm not sure where next to take this. Like uh I I showed you how to like develop the the provision the instance and put Trinity over there roughly how to manage that and I'm very interested to hear if you have ideas uh on where to take it next in terms of what would be useful and helpful. All right. Well, if there's no questions, then maybe we should call it
[21:32]a day then and uh uh hopefully that was useful material on how to um uh onboard on Trinity instance of your own. Uh so, uh yeah, I will publish that on YouTube as well. Uh so, you probably should be watching that from YouTube if you're watching that most likely. And uh yeah, next time I think we're still going to be getting to I've attempted to do that twice already
[22:06]to move into the design of the actual multi-agent systems, but I run into other concepts that I feel it is good to describe clearly before switching to the other domain. Um to the bigger domain. So, anyway, uh keep joining the uh workshops and see you next time. Bye-bye.