← All video transcripts

How I Run My Company with Self-Improving AI Agents

Description on YouTube

Exploring Advanced AI Agents with Eugene Vyborov and Gabriel Hughes In this episode, Eugene Vyborov, CEO and founder of Ability AI, demonstrates his system of AI agents to Gabriel Hughes, a PhD candidate from University College London. They discuss the structure and functionality of multiple agents, including Corbin for business tasks, Ruby for content creation, and Cornelius for managing knowledge bases. Eugene showcases how these agents autonomously improve, manage tasks, and interact with various platforms to streamline operations. Gabriel provides insights into distributed cognition, making this an in-depth look at cutting-edge AI technology. 00:00 Introduction and Purpose 00:26 Meet Gabriel: PhD Student at UCL 00:50 Overview of Agent Structure 01:53 Deep Dive into Corbin 03:12 Exploring Cornelius 05:11 Second Brain Project 06:22 Ruby: Content Creation Agent 09:11 Autonomous Self-Improving Agents 11:21 Managing Context and Knowledge Base 13:22 Conclusion and Final Thoughts

Full transcript

Source: YouTube auto-captions, language en. 2,617 words. Each timestamp links to that point in the video.

[0:00]So, we're catching up here, and I wanted to show Gabriel a couple of things that we do with agents. We just looked at the Cornelius agent together, but we will touch on that again as well. Gabriel, I'm sorry for this impromptu kind of interview, but you will be incredibly helpful if you uh just, you know, listen to what I I have to show and ask me questions. That's what I need to actually, you know, maybe get some insights or remember something to answer. Gabriel, maybe you can introduce yourself quickly as well. >> Yeah. I am a PhD student at University College London, and I am currently

[0:36]studying LLMs as a form of distributed cognition. Yeah. Is that good? High level enough? >> Yeah. No, that's great. Thank you. Just so people understand that you are actually know what you're talking about. So, I have a group of agents that are used for work mostly, and they consist of several sub-agents and one high-level agent that is on the top. They are organized in the agents structure. We have a top-level agent that kind of controls the agents on the bottom levels, and those are There are several of them. There is

[1:08]Corbin, responsible for the work with business tasks, my Google Calendar, my Gmail, my contacts, my CRM, and other stuff. Then there is Ruby that is responsible for creating content and posting that across social media. And there is Cornelius that is responsible for managing my knowledge base, what's going on. And the guy on on top that we launched just now, I actually didn't come up with the right name for that one. So, whatever. I call it five sometimes. But anyway, that's the overarching guy, and it is responsible for controlling sub-agents below. And if

[1:42]I just ask, "Who are you?" it's going to tell me that this is the basic responsibility that it has, high-level agent management agent. So, it's not doing anything useful except for managing the agents. From here, I can launch my Corbin. I created a special command for that and that's the one we're going to start with. This is Corbin and let's see what it has named. Email and calendar management, Google Workspace integration, Fibery, contact database, YouTube management, Apollo, and a bunch of other stuff. It also manages a couple of shared folders that we have in the team that are our source

[2:17]of truth for the knowledge base of the company. There's also search enabled through Vertex AI. There is some scheduling enabled, specialized sub-agents for complex domain tasks, and I think there's some Oh, yeah. The other very important thing here is the memory system that it has. It keeps memory with all of my preferences, goals, objectives, and stuff like that. Now, tell me about your sub-agents. So, I'm just going to take a look what kind of sub-agents we have there right now. And we're talking about Oh my god, there's a

[2:50]lot. Fibery management, YouTube management, this file system indexer is an interesting I'm not going to dive deep into that. Scheduler, vector store. Yeah, so basically all the features that it needs. And every time I work with something, I just, you know, it's connected to my Gmail. I can send you an email right now from from here if I want. >> Okay. Okay. So, the next agent I can run from here is actually Cornelius itself. So, I just put Cornelius and in a second it's going to open a Cornelius for me.

[3:22]Again, same logic. As you can see, I also just for convenience use different color profiles for different agents. I understand who lives where. And I, you know, with Cornelius already showed you how we work, but we we haven't recorded that actually. So, I'm going to walk people through what Cornelius is. I did have a before with this agent showing the second brain management system, but let's see what it has to say. >> You mentioned, you know, having multiple second brains. Is because this is your work use case, is it automatically like querying your work knowledge base or do

[3:57]you do you have to choose? >> Yeah, that's a great question. This is one of the use cases that can be useful, like putting your knowledge base into this kind of map. I don't find this particular use case useful for me right now because we're using vector search and file search and that's enough in the case of the knowledge base. This concept of Cornelius and the second brain is useful when you have a lot of unstructured disconnected information that you need to put in a cohesive kind of connected map of the knowledge that can be extracted in a reasonable way

[4:31]from there. Now, our source of truth that we have for the Corbin project, it's not like that. In the source of truth, what I the approach that I took is I said that agent needs to go and understand what is in each of the files and then create a mirror of this folder with the description of each of the files. That's why we have this re-index file command and then on top of that apply the vector store to easily search through those descriptions to give you like a fast way to operate there. Right, so Cornelius, did I answer your question?

[5:04]>> Yeah, thank you. >> Cool. Please feel free to interrupt me. I think that your questions are the most important right now, for sure. Cornelius, it's the second brain project that holds my Obsidian second brain that you can see on the background, this chart representation of this brain in Obsidian and it has 2,000 nodes and all the kind of stuff. And what I do is I store my knowledge in the way where I can always query it and where I am building up the connections between different concepts within my knowledge, different ideas that I had or that I

[5:37]read somewhere and interpreted in some way of mine. So, I want to store this knowledge so that they later I can use this knowledge for making articles, writing books, thinking, brainstorming, and just, you know, doing my daily chores. So, it does the inside harvesting and knowledge synthesis, and it allows to easily query this base of knowledge through the combination, like kind of hybrid approach between vector and graph databases. And then, yeah, out of that, I can generate articles, I can brainstorm, I can maintain my knowledge

[6:10]structure going forward, et cetera. And then, I have other agents who are using this agent, Cornelius, specifically, in order to get my opinion on something. Like, or right now, also same kind of command. So, I'm starting Ruby, which is an agent for content creation and distribution. It is connected to a bunch of systems that are doing that, and it can use Cornelius to get insights out of that on whatever topic. And so, let's first I handle content generation,

[6:43]repurposing, distribution across social platforms, blah, blah, blah, blah, blah. And so, now what I can do here with Ruby is something like this. Get my objectives, agent automation future for next 1 2 years, and use Cornelius. So, if if if I did everything right, it's going to pick up and call Cornelius in a headless mode, wait for a little bit, and yeah, see see what happens. Yeah, it's going to do that. >> I'm guessing Ruby has the context already that this is for posting, like

[7:17]this is for a social media use case. >> Yeah, yeah, Ruby is its own thing. It has its own Claude MD, and it knows, like, I asked who it is, and it told me specifically that, look, my core capabilities are this. I repurpose, I schedule, I multipost, and stuff like that. And Cornelius, it knows that Cornelius is the knowledge management agent. So, it goes to Cornelius and asking, "What are your genuine opinions and perspectives on future of AI?" And now, it's going to be like 5 minutes or something until this uh finishes, but you know, it's going to get there, get some opinions out of there, and then

[7:50]maybe create something useful, maybe not. And also, going back to Cornelius, a couple of things that I wanted to show are the various commands that we have over here that allow to recall something, find connections, and actually also do autonomous connection searching, which is basically agent scanning the knowledge base for the hidden and obvious connections, presenting them to me so that I approve them or disapprove them, and we added them to the knowledge base. So, basically, it's like mining knowledge from within, sometimes in a combination with the knowledge from the outside,

[8:24]from like news or some other things, but basically finding and establishing hidden connections, and so that later we can query it and receive those connections, and maybe make some better conclusions. Yeah, so I think that's the that's the most important like four agents that I wanted to show. What I've done just for fun is to create an MCP management software. And this MCP management software, these scripts, they allow me to like turn on and off and move different configured MCPs between these agents, for example, allowing my

[8:57]Ruby agent to have access to Instagram or to Google Workspace. There are thousands of options. And yeah, so as a result, like honestly, it's still kind of scary to say, but I do have this uh uh agentic system with self-improving agents, autonomously self-improving agents with a memory of any depth, and capable of doing pretty much anything, and even you can say having a personality because it is relying on the second brain that has been built, and we can build hundreds of this kind of

[9:30]brains, but based on the different materials. That's another use case. I tried this one. It's actually very, very cool. I took a lot of the books on military management and critical thinking, like military books on critical thinking, and build the knowledge base out of that. So, I took my previous version of the second brain as a base for that, and then I added insights on top of that from this particular literature. And it allowed me to create this agent that is opinionated in a certain way, that has a certain consistent characteristic in its

[10:03]decision-making, which is basically the recipe for finding the optimal combination of personality characteristics or knowledges that it considers important in order to get best results at doing some intellectual kind of work. >> When you talk about the agents autonomously improving, can you explain that a little bit more? Like, how are they How are they doing that? And is that happening in the background, or is that something that you have oversight into? >> That's obviously something I have pretty deep oversight into, but I'm not going

[10:36]to go into details of the actual procedure of how that happens. To be honest, you could It's not that I'm afraid that somebody's going to take it or steal it. No, it's more like I find it so powerful that I'm not sure it's safe. I'm not sure it's safe to share the mechanism, to give an instrument to people who may want to do harm in order to to use that somehow. And I haven't even formulated a final thought on this one, but when I can see that this agent is actually like self-improving under my supervision, but it's self-improving towards the goal, I'm like, "Okay, I

[11:09]mean, this this is like close to the AGI, I guess, in some sense." And I assume many other folks have something similar going on right now. If it's not widespread yet, it will be widespread soon. >> Yeah, makes sense. I partially asked you because I'm wondering about, you know, like agents are obviously a big way of getting around like context limitations to just using Claude by itself, for example. But I'm I'm wondering like how else you manage like potential context collapse? Or do you do you see that happening with your agents?

[11:42]>> I do actually. I published a video the other week about the context road, and I experienced that very often. And what I do is whenever I work with these agents, once I get to about 100,000 tokens, I end up starting from scratch and basically restarted. But uh so I keep my tasks relatively contained. That's one of the limits right now of this energetic systems or the LLMs with the context road. And I'm like every time they're releasing like, "We have a window of 1 million tokens." Now I'm like, "Yeah, but for how long is it effective actually? For how much of this

[12:16]context this thing is effective?" And it's a you know, in different LLMs it's a different kind of curve. Some of them are rapid in terms of performance after certain thresholds, others are more gradual or unpredictable. The point is there's always there's always context road. So I'm trying to accomplish tasks within 100k. Rarely successful, you know, at 150 I already expect that it's going to start hallucinating like crazy and doing some dumb stuff. You could switch to the 1 million sonnet before, but now they just removed it from maybe it's from my

[12:50]package on Claude or maybe it's entirely from Claude code right now. 1 million context sonnet, this one that they give you over here, it's actually 200k tokens. And as you can see on the clear context, that's because we have a lot of these MCPs over here. On the clear context, we are already like 86k up. So not too many too long tasks can be done here right now, but I think it's you know, it's destined to improve over time. There's no other >> Yeah.

[13:22]>> For sure. Do you have any maybe some other questions or thoughts? Or we can call it a wrap for today. >> Yeah, I have lots of a technical question. When it comes to getting knowledge into your knowledge base, do you have agents for that as well or is that the you task like you're doing the reading, the research and inputting it into your knowledge base for the agents to use? >> That's a me task, but honestly from the technology perspective, Cornelius doesn't really care where insights are

[13:56]coming from. Some people can extract insights from the outside materials and I did that as well in Cornelius here, but I put my insights extracted by AI first of all in the AI extracted notes, so I know that separate over here and I put the document insights from external documents that have been mined by AI in a separate folder as well. Now, you easily leave this running for a while to analyze a particular set of material. I think it actually I want to show you this General Monroe. So, this knowledge

[14:29]base it's in a different project. It basically is created from It was started with my knowledge base and then on top of that I extracted insights from something like 10 or 15 books on decision making, military decision making, critical thinking, that kind of stuff. And so, it created whole new clusters over here, added some good connections and you know, I can go to this appropriate agent and ask ask them or talk to them consult with them on a particular topic.