Make Claude Code agents run autonomously on Trinity (Live Workshop)
- Published:
- Length: 25:39
- Channel: Eugene Vyborov
- Video: https://www.youtube.com/watch?v=PQtRqXHD_dU
- YouTube video id: PQtRqXHD_dU
Description on YouTube
July 30 workshop "Making home-grown Claude Code agents run autonomously on Trinity" Free agent builder workshops on Thursdays: https://www.ability.ai/workshops You've built dozens of AI agents, but now they're a disconnected mess. Each follows its own rules, their original logic is forgotten, and they're slowly becoming useless as they fall out of date. There's a systematic way to fix this. In this workshop, you'll learn how to automatically analyze, standardize, and migrate your entire collection of agents into a managed, production-ready fleet on the Trinity platform. In this video, I cover: - The core problem: why having a collection of disconnected, individually-built agents is an unmanageable dead end. - How to use the Agent Dev plugin to automatically analyze your existing agents and generate a detailed quality report. - The one-command process for transforming old agents into well-structured, Trinity-compatible assets. - A step-by-step walkthrough of deploying a newly migrated agent from a GitHub repo onto a live Trinity instance. - The hierarchical 'org chart' model for managing agents within Trinity for efficient information exchange and control. Stop letting your AI experiments go to waste. Turn your agent chaos into a coordinated, powerful fleet. --- Connect with me: Twitter/X: https://x.com/evyborov LinkedIn: https://www.linkedin.com/in/eugenevyborov/ Substack: https://eugenevyborov.substack.com/ Try Trinity (free, open source): Platform: https://trinity.ability.ai GitHub: https://github.com/Abilityai/trinity Docs: https://docs.ability.ai Book a call: https://calendly.com/eugene-vyborov/45min #AI #AIagents #Trinity #AbilityAI #Claude #DevOps #Automation
Full transcript
[0:00]Welcome everyone who joined us today. As always, almost every Thursday we are running a workshop around the topic of building AI agents. And yeah, today is quite a practical topic to be honest because there's a lot of people who have been creating AI agents themselves with various sort of technologies. Could be with Cloud Code, could be with N8N, or maybe LangChain, or actually whatever it is. It doesn't particularly matter for this exercise. And the thing is you start to get used to this, you start to kind of actively use them daily, but
[0:35]then all of a sudden you have like a few dozen of them and they're disconnected and they don't have a single sort [snorts] of set of rules that they're following and sort of all over the place, especially once you start forgetting a little bit of how they were built originally and what to expect from them. And that's a problem because like this this is how they kind of go to die slowly, but I think I have a little bit of a solution here and I hope to show it to you today. We can look at the couple of tools we created for the analysis of the agents that you already have in whatever way you created them before. In
[1:09]Cloud Code again and Cloud Code it doesn't matter at all. So, the diagnosis and analysis of those agents with the creation of the detailed report about the agents. And then the second part is the transformation of those actual agents. So yes, we will look at the analysis with the use of those tools. We will look at the migration step with the use of those tools as well. And by migration I mean transforming agents from whatever they are at the moment into well-structured, Trinity compatible, Cloud Code based agents that you can kind of rely upon.
[1:43]And of course the deployment of that thing into Trinity. And essentially it's a question of let's say 2-3 hours to do with with the regular fleet, maybe a day, in order to analyze all of them and migrate them and to be able to deploy them to Trinity in quite a straightforward manner. You are making decisions. You are pulling schedules. You are separately controlling what type of memories they have and what credentials they have and what kind of governance usually none of that. So, that quickly turns into a a mess that is difficult to
[2:17]manage. And so, what what we're trying to provide in in our company at Abiliti is actually not just the Trinity as the runtime for agents. And if you are not familiar with Trinity yet, give me 2 minutes. I will get back to that and we'll have a little demo of what the system does. But essentially, what I'm aiming to give community is what Trinity as a system that can run those agents. Then the development process to actually create those agents in a way that they work. And a bunch of starting points such as templates and the scaffolds and
[2:51]different other stuff. And also Cornelius. We're not going to touch Cornelius too much today. That's to the last workshop. But Cornelius is essentially like our our designed knowledge base agent that is used for multitude of different purposes. But first of all, for the knowledge bases, personal or company knowledge bases. And so, only when you work with this whole suite of things in your agentic life, it gets so much easier to actually create those agents and run them on a daily basis. It's honestly hard to even explain
[3:23]because it it literally these days takes me could take me like 5 minutes to create an agent that I need to have and have it running autonomously on Trinity, which is a completely different beast under all the controls, under all the governance and guardrails. Right. So, we already talked about that, but it's a nice picture to say that we're going to go today from your regular agents through analysis and migration and empowerment of those agents and onboarding them on Trinity. Because what it actually gives us is And I guess this talks about the
[3:57]specific criteria why we would do that. Why is that that the agents that you will create are like better than the agents that you have right now? What does it give you? And let me try to explain. Like if you run them through this analysis pipeline and migration pipeline, you will get agents with the best practices for the identity creation and the cloud code for the credentials management, for the capabilities that are structured into books. Playbook is basically like a glorified skill. It has a very specific format with checklists and with state management and a lot of other tools that
[4:30]allow the intelligence system to follow your instructions better. That's essentially what we're doing here. We're just aiming for better instruction following. And of course it will be deploy ready to Trinity as well. Now, let's start with the basic what it is and how to use that. And I want to switch to a different website for a second. I want to go to Trinity and I will briefly walk you through what it is and how that is working. What you see on the screen right now is our actual production version of Trinity production instance of Trinity that has
[5:03]this massive agentic systems. Each of the boxes that you see over here is an agent that is associated with GitHub repository, so version controlled as well as running is in its own sandbox in Docker and running autonomously and executing a lot of work on its own while working with other agents and while the system is keeping track of every move that they're making. Now, if we go to one of them, we can see all sorts of statistics of how that runs. We can see the schedules, the reports it creates, the loops it run. This one is not running particularly
[5:37]many loops. We can also share those agents with our colleagues or ourselves. Like this one I'm only using through Telegram and nothing else. And of course there's authentication on top of that to allow for control over who is using that. Like this one is purely mine to use cuz this is my basically chief of staff. It helps me run the company quite directly. What you need to understand today is that each one of these agents is a cloud code based agent that is stored in the GitHub repository that is running in the sandbox Docker container and that is
[6:11]talking to other agents to accomplish massive tasks that they can be running. As you can maybe notice, they're also organized over here a little bit hierarchically. You can move this stuff anywhere you like, but in my particular case, these two are the main agents that we have on the fleet. And the chief of staff is basically the rest of the agents over here in the next level of them are reporting to that agent. A good example over here is that this marketing operations agent is reporting to the chief of staff and the rest of the marketing related agents are reporting to this one. So, the you know, it's a
[6:45]typical classical structure of how you would organize the organization of humans, but then kind of applied to agents and with good results, I would say, because again, those reporting lines, they make a lot of sense in information exchange and not overloading people with and agents with random stuff. I highly recommend you watch other videos to get more familiar with the system if that's your first touch with Trinity because there's a lot more to learn. But, I want to switch to the documentation website. So, we have this docs.ability.ai
[7:18]website, which is almost at a runtime updated from the source code and it explains pretty well every aspect of the system and can answer a lot of questions. But, what we are going to be looking at is plugins. So, plugins, if you're not familiar with cloud code plugins, they're Well, they're plugins. I don't know how to better define them. They are things that you can add to your cloud code or to your Claude as extensions and they give you certain amount of functionality to your agents and tools. Here is the Claude code started in the
[7:51]Claude desktop application. Actually, this particular session is what I wanted to show you because well, it actually run for 1 hour or so and it used one of the skills from this set of plugins. Now, what we have, there's a lot of these plugins that we already established. You can look at each one of them separately like create agent for example allows to create complete entire agents. But agent dev is probably the most interesting for today because agent dev plugin is essentially providing this whole development process for your
[8:24]agents. It gives you all the components that you might need from creation of a playbook which is, you know, a skill just defined well to adjustment of that to adding memory, GitHub synchronization, backlog and the most importantly a bunch of others of course. And most importantly for today are these two new skills. One of them is the fleet analysis skill and another of them is agent fleet migration skill. And the logic is super straightforward. What I wanted to achieve here is I wanted to be able to give any agent just
[8:58]this one command and a path to a folder and have it run with that and give me a report human readable and also AI readable report with the quality of those agents and where they can be improved and how they need to be transformed in order to become more reliable, more production ready and actually Trinity production ready. Essentially, what it does, I will open this folder here. This is the folder where all this work has been done already and I guess it's clear why I'm not doing that at a run time because it took about an hour to complete this
[9:30]process and it was only for like what, like five, six agents that I provided. I basically gave it this folder and said, "Okay, look, go." I got some of these agents from my old records sometime as you can see from like 2024, something a little fresher, but that's because I copied that this way. So, I just basically took a whole bunch of old agents including this agent Corbin which is from like December 2025 and just older version of the actual agent that I'm using.
[10:02]And I didn't know which one I took. I have like a few dozen there. So, I just like moved it there and had it run this agent fleet analysis process. Actually funny, I recorded this on the video and put a time lapse over here how it was doing the job because it's 20x sped up so that we can actually see the progress, but yeah, you can see that so a lot of work has been done over here over time. Maybe I will insert this recording into final video just to show the progress.
[10:34]But essentially, the first thing that you are getting when the fleet analysis is finishing is a report like this. It's a PDF report with the full details of what has happened and how you can improve different agents. So, it identified three cloud court and three non-cloud court agents. And over here again, I want to highlight that doesn't actually matter how you build those agents as long as they're agents, this tool will understand that pretty well. And it scored them and then interestingly, agent Corbin scored almost at a 100% because this is actually previous version of the Corbin.
[11:08]So, it's as fresh as just half a year ago. But other agents I put over here are a lot less appealing from the score perspective and a lot of the reasons are related to credential exposure or to the way they are handling the data. So, it's diving into all of them individually, understanding exactly what works and what doesn't and how to address that and also providing very actionable recommendations of what can be done with this particular agent to improve that. So, this section was making your agents useful, it just tells you, "Okay, you know what? You can you can use these
[11:42]skills from the same plugin marketplace that I showed. You can use these skills in order to achieve better performance, add memory, or add project management, or add source of truth, this Canon thing, or something else." So, it's a full thing with the face-by-face transition plan how to get you from here to the deploy on Trinity in really the same day. Now, of course, I understand that reading long PDFs is no longer a good habit of anybody. So, in parallel to that, we're also providing a agent
[12:15]readable MD file that you can just give to your agents and they will evaluate if that's the case or not. Well, we worked quite a lot on this skill. I understand what it is doing and also it is fully built on top of the other skills that we are already using. So, it's reusing the exact other skills that are already exist in the plugin marketplace. So, I trust it quite a lot. And that's why over here in this example that we have on the right, I literally after it finished analyzing and provided me with the report, I run agent fleet
[12:48]migration. So, the agent fleet migration, what it does is essentially takes what we have and makes it into a set of agents that are Trinity compatible and without the loss of functionality. It just kind of packages them in the cloud code type of way and if they have any sort of code, all the code is moved almost as is with like minimal edits, but packaged into playbooks and skills so that you get something that you can easily deploy
[13:21]to Trinity right after that. So, it basically did exactly that. It probably is something that took most of the time in the in this entire process. And it made essentially copies of the original, so it's not ruining any of the original files. And then it created this fleet migrated agents. And we'll work with with one of those. But first, let me go back to the presentation for just a second. Just to make sure that the material kind of lends. So, the analysis reports scores the gaps
[13:54]in your agents. It looks at the architecture of your agents and provides the recommendations. It provides the road map of how to, you know, kind of improve that. But really, if you don't want to go through the road map manually, there's just yet another skill that you run that simply transforms these agents that you gave it into Trinity compatible agents. Well, I really wanted to talk a little bit more about the abilities plugin marketplace itself. I kind of touched on it when we were at the documentation website, but maybe very briefly one more time. There's this agent development plugin, which is where
[14:27]we got those skills. There is a create agent plugin with all the different skills you need for creating new agents. And again, there are very simple ways to install them. If you're using Cloud Code, it's like super straightforward. In Cloud in the regular Cloud, you would need to go to settings and and do that, but instructions are also on the documentation site. Then we have Trinity plugin, and this plugin allows to actually do the deployment procedures. It actually sent yeah, deploy the whole thing to Trinity instance that you own. And there's some additional project management that is packaged as a
[15:01]separate plugin cuz it's pretty massive as a project management tooling for agents. And then we also have utilities and development methodology development methodologies, an old package for the pure development, not even agentic. So, what we really care about are these three: agent dev, create agent, and Trinity. And inside the well, essentially agent Dev, we have groups of these different playbooks for creating and adjusting playbooks. So, every time I package any sort of standard operating procedure into
[15:35]something that I will reuse, I package it into a playbook using this skill command. I can add different types of memory here. I can add different types of autonomous sort of playbooks. They are called later in Trinity itself. And one of the recent additions, that actually, if you're curious about the multi-agent system specifically, we just added this orchestrator at orchestrator scale, which makes one of the agents, or several of them, orchestrating the fleet of the agents that they have access to. And these two are the ones that we just
[16:09]looked at. So, the first one created the report analysis, and the second one actually made the changes. Now, let's see if that actually works. I don't know. I mean, we can just go ahead over here and create a a new session. Okay, fleet migrated, and we're going to open one of the agents over here. I don't know, any preference? Let's do a meta. Because why not? Trust workspace.
[16:41]Okay, briefly, what are you and what can you do? And yeah, I know I'm making spelling mistakes here. So, it took basically what we had in the previous agents, with pulling the advertisement report from meta, analyzing ad trends, generating ad insights, etc. And actually, surprisingly, I don't have this particular agent running in my fleet right now. So, it might make sense for me to actually deploy it. And why don't we do that now? Are you
[17:15]connected to Trinity yet? Okay, this one is not connected and then now it's going to be too much hustle to add MCP configuration to cloud. Although, maybe not. Let's do that. A few adventurous today. There's MCP in cloud. There you go. Added config. So, actually it's a good chance to show how that is working here in Trinity. Essentially, what you need to do is you need to go to settings and CP keys and create a new key, which I will do but
[17:48]off screen so that I didn't burn the token. Hooray! It is connected to Trinity and it is validated. So, once it is connected, once this hustle with with the connection is done and we inserted the key and did everything right, we can just call on board for this agent. I mentioned to you in the beginning that each agent over here is a hub repository. And it's much better to deploy from GitHub repository than it is to deploy as a file and then try to associate it
[18:21]with GitHub repository. So, what I'm going to do here, I'm going to do create private GitHub repo ability AI agent. I want to No, I don't want to call it meta. It's too too loaded of a word. Facebook, old names. Facebook agent and stuff there. It all depends on the Trinity side in order to make it comfortable for you. One of the deciding factors is the GitHub personal access
[18:54]token. Because first of all, you can figure one at the system level, so at the Trinity instance level itself. And by default, it acts for all of the agents. Now, yes, there is a capability to set per agent GitHub tokens. But when you have one token that is correctly designed, then you should be fine. In this case, in this particular instance, all of these agents are in our private repositories under the same organization. So, I just made a blanket access token that has access to all of the private repositories of organization
[19:28]and put it over here. You know, much better if you do a a fine-grained token rather than the blanket one. It's completely up to you and secure version of that is to do a well-scoped out token. But, when you have a right token over there, it's very easy to deploy because it can already pull those agents from within Trinity. So, it should just simply, you know, ask Trinity to pull it from the repository and since we already have the keys in place, it should be very quick. And by the way, this instance is 32 GB of memory and we can see that with this
[20:03]number of agent, which is a lot, uh well, not a lot, but like 20, let's say, right? It's barely taking any memory out of here because if you see, the these agents are not simultaneously working and if they're working, they're not always taking a lot of memory. They can, but it depends on, you know, the workload. And the agents each are limited to like 4 or 8 GB of max memory. So, it is quite possible on this type of instance to host dozens of those agents simultaneously and have them work
[20:37]together and uh you know, quite effectively, actually. So, this is a 32, well, 31 gig instance and I think on this type of instance, I've run something like 100 agents, if I'm not mistaken, fairly easily. But, yeah, it depends obviously of what what agent is is doing. So, it does the validation that all the necessary files exist. loading G temp with YAML is just It's a YAML file that describes to the agent is about. It's a short structured file that each of the agents needs to have. It doesn't
[21:10]have to, but you know, it's recommended. And really, like in terms of the files, this is one of very few requirements. So, there's not much that stops you from just taking your {quote} {unquote} agents and deploying them to Trinity without making them Trinity compatible with these skills. Okay. So, it's calling Trinity MCP to create an agent, and soon we're going to see it somewhere here. Oh, there you go. Here it is. So, it already created the instance of the container.
[21:43]And let's see. Mhm. And by the way, again, just for your awareness, this {dot} Trinity remote YAML is a sort of a convention. It's a file that keeps the information which which remote agent the local one is paired to. So, this is the local copy of this same agent, right? And it needs to know when I'm asking it to like talk to the remote, it needs to know where is the remote and what is the remote. As you can see, so obviously, the original version of the Story Pipe agent that I gave, which is like few years old,
[22:15]didn't have any schedules defined there or or actually this FB agent or anything like that. So, those were created uh based on the logic of the agent during the migration process. So, now we have over here an agent that actually Well, let's see if it works. What can you do? So, it has some core capabilities for the working with ads. It has schedules, or at least one schedule defined over here. It has playbooks, those four that were packaged
[22:48]originally. Again, analysis of the trends, etc. And then, you know, if I really want to at this point integrate it into my fleet of agents, I would need to do a couple of things. Well, first of all, I need to set up an avatar. Let's make it Zuck. It's probably not going to agree to generate it, but let's see. Yay! I have Zuck as an agent here. Okay, so the next thing that would need to happen in order to make this agent actually part of the family is to go to
[23:21]whoever is going to be the manager of this agent and provide permissions to that. And in this case, the manager is going to be this marketing operations agent. So, I'm going to go here. Go to permissions. Find here my meta agent. Save it. But, at this point, it doesn't yet know much about this agent. It only has access to it. So, the next step would be to make it aware, and this is part of the the skill that I mentioned to you on the ad orchestrator kind of
[23:55]group of skills. We're not going to dive there today. It's a bit of a different discussion, but if you're curious, take a look at this ad orchestrator skill on the Ability AI docs, and you'll understand what what I mean there. But, it just basically makes agent continuously aware of the fleet of agents that have. All right. So, now to recap what we've done today. We took a bunch of my old garbage agents that didn't go anywhere or were forgotten, and then I ran the analysis playbook on them and created this nice
[24:28]report, which I never read because I simply called in the next migration skill, and it created migrated versions of those old agents. And then we took this agent and actually deployed it to the production instance of Trinity, and now, yeah, we can work with this agent and included in the discussions, in the workflows, and the pipelines of other agents that are working here. So, that's probably it for today. Thank you very much for joining. I hope it was
[25:01]in some way interesting and educational and join us on next workshops. We actually haven't planned August yet, but we will have those workshops for sure. So, join us clone training team, play with that and feel free to ask questions in discussions over here and we will go back to you and address them. I'm also putting out a lot of videos on YouTube and feel free to join in there, subscribe and yeah, comment and do the rest of the stuff. So, thank you very much for joining and
[25:34]have a wonderful wonderful rest of the day. Bye-bye.