I Gave My AI Agent a Brain - Here's What Happened
- Published:
- Length: 14:56
- Channel: Eugene Vyborov
- Video: https://www.youtube.com/watch?v=yD3w1GBFtvY
- YouTube video id: yD3w1GBFtvY
Description on YouTube
What if AI agents could have a brain - not just context, but persistent memory that learns, evolves, and gets smarter over time? I've been building Cornelius for the past few years, and it evolved from a personal "second brain" into something more interesting: a cognitive architecture that other AI agents use to make decisions. In this video, I show you: - How Cornelius works as a knowledge base with 3000+ interconnected nodes - Why "just files" beats databases for agent memory (observability & control) - The memory retrieval system combining semantic search + graph traversal - How other agents query Cornelius for insights and feed learnings back - Real examples: an autonomous social agent and a Polymarket trading agent The key insight: if the brain of an agent is hiding in a database, it's difficult to observe, control, and align. With Cornelius, you can literally edit a file and change how the agent sees the world. Cornelius (open source): https://github.com/Abilityai/cornelius Trinity (agent infrastructure): https://github.com/Abilityai/trinity #AIAgents #KnowledgeBase #Zettelkasten #Obsidian #SecondBrain #AutonomousAgents #Trinity #ClaudeCode
Full transcript
[0:00]I guess. So, uh today I want to give you an update on Cornelius. Uh for those of you who already know what it is, I've made quite a lot of upgrades into that in the recent weeks. And some of them are on GitHub, some of them are not yet on GitHub, I will push them. But, the point being is that Cornelius is actually [music] changing what it is and what it is main role. So, it started as a second brain. What it means is that in [music] Obsidian, which is a note-taking tool, there's a certain format and approach that is used called Zettelkasten. And I know those are
[0:32]sounding like mouthful right now, but in essence it's very simple. It's just a certain structure in which you take the notes and how you connect those notes [music] between each other with WikiLinks. There's also maps of context. There are individual notes that have been extracted from different places. [music] There are sources from where it was extracted and things like that. But, at the end of the day, what we have is a whole bunch of permanent notes describing different insights and ideas that have been learned from the world [music]
[1:05]and connecting those notes with other notes in this network. So, as you can see, this one has a lot. It has actually around 3,000 [music] plus different notes. And they're clustered around different topics like one of the topics, for example, in my knowledge base is this flow as a selfless state and The Art of Impossible by Kotler is one of the books that influenced this knowledge base a lot. Point is that this is a particular brain that agent Cornelius can now use to operate from. It
[1:40]describes the way the agent sees [music] the world and interprets the world. Now, so imagine, you know, agent [music] Cornelius is aware of that and it knows all of this and it knows the structure of this brain and it can operate with that and it can search through that in semantic way and in rough way. So, basically combining the best of two worlds or identified connections and semantic search that [music] is a traditional kind of rag approach. Right. So, this agent that is built on
[2:13]Claude Claude right now has this brain behind that and has all sorts of different ways of working with [music] this brain structure with this interconnected knowledge base. And that's what I want to show you today. And then I want to show you how this agent is actually playing along with other agents [music] that are running in Trinity, which is our infrastructure for running autonomous agents. And so, how running in Trinity is collaborating with other agents to actually accumulate, synthesize, [music] and use knowledge,
[2:47]and develop its own knowledge base even further. One other thing that is critical from my perspective to any kind of background brain or knowledge base structure that agents are relying on, that's the fact that it needs to be fully observable and controllable in an easy way. If the brain of an agent is hiding in the database, [music] and it's difficult for me to see what's inside and how it is really structured and what it is relying upon for real, it's become very difficult to observe, [music]
[3:19]control, and know your influence points. And in this specific case, this is exactly by design. Meaning that if I don't like after review what insight has been taken or interpreted, I can go ahead and literally change it as a file. And the insight will change and this the way that agents sees the world with will change. So, this compability of controllable change into the agent's view of the world is the key of this design. Right. So, as we
[3:52]remember all of these notes, all of these parts of the brain are just files, nothing more than files. And how is that useful, you would say? Well, first of all, I can just look through this knowledge base because I have basic like search functions and I have recall function which will retrieve knowledge base from Obsidian with three layer semantic search [music] and then graph search. So, there's a a particular methodology used for the memory retrieval mechanism that gives me the best of both worlds. Okay, so I want to
[4:25]use a real insight to show you how I actually use this agent in real life whenever I'm reading books or doing something and I'm finding something interesting that I want to integrate into this knowledge base. So, let me add the insight that I just mentioned [music] in this video. So, as you can see, I added this simple insight that observability of the AI agent via direct access to files, blah blah blah, allows you to better align agent allows you the tools to better align agent towards necessary goals. >> [music] >> And I'm just saying save the insight. So, you see what's happening. The first
[4:59]thing it did is it checked for the duplicates and didn't find any and it followed the procedure to do so. So, there's a described procedure how to handle that. Then it created a permanent note with this insight and saved that. And the next thing that I need to do here is run find connections because it just simply plain inserted the note, but in order to make it actually connected I need to run this command. So, let's take a look at what has been happening. So, it it started to discover [music] connections. It uses the scripts to run search against knowledge base which is
[5:31]using again vector store and graph search and then it keeps keeps searching more and then it keeps searching more to to understand it even better. Idea being that you see it's all going through actual decision making of an agent on how to connect different concepts. [music] Ben basically interconnected the knowledge base into uh the graph. And that part it is doing very well, especially since Opus 4.5. [music] Uh I trusted it much less on the other smaller kind of systems. But now uh everything it shows me makes sense to me. Uh so, it connected
[6:06]wants to directly connect with sovereignty agencies, which is a real thing I was working on bunch information. Okay, the four pillars of deep agency, another framework I've been working on. Uh agent power project capability requires risk tolerance. As you can see, it also connected this to some of the insights I've been working upon many years ago cuz this knowledge base started about 3 to 5 years ago. And I was doing that first manually before the agents uh became a thing. A lot of concepts from different domain areas are uh connected, and that is helpful because when this brain is
[6:41]used by other agents uh to interpret the world, it can give them a multi-sided [music] perspective from different domain zones and uh things like that. So, the other thing to show you is that except for like creating the note and of course uh you know, connecting it with the rest of the knowledge base, there are other ways that Cornelius can uh gain knowledge. And usually that happens through one of the two instruments. Either we're running learn new things uh cycle, and this cycle is specifically defined to run every X hours, usually 8 to 10
[7:16][music] hours, uh in order to get the most recent interesting research uh and news from the world and extract insights from them, interpret them through the lens of this uh knowledge base, and store them as well for the future use to kind [music] of get the agent to the what's going on in the world kind of uh point. Now, the other tool that we're using over here He simply uh deep research. Uh you just, you know formulate what you wanted to research and it goes deep into understanding this topic from different perspectives,
[7:49]interpreted it through the knowledge base and then again storing the insights identified there into the knowledge base. And it does distinguish between the insights that I provide directly or the insights that it finds on its own somewhere on the internet. So they it kind of knows what's happening there. Now if I want to just brainstorm something, I can put it in the talk mode where it basically behaves like an agent that actually does have the brain behind it and can [music] answer me from the perspective of this knowledge base. I can also just do get perspective, extract my perspective from this
[8:22]knowledge base on a particular topic and I can also do article creation for full article creation. I basically select a topic that I want to talk about and based on the insights that we have in the knowledge base plus the insights that I can provide on top of that, we create an article in my tonal voice with the actual hopefully interesting insights. Now but that's the just the first part of Cornelius and what it does. The the real fun starts and that's what I want to show you on how other agents are using Cornelius. [music] And I have a couple of setups over here
[8:55]that are just amazing. So remind you. So we built Trinity >> [music] >> which is the platform for orchestration and infrastructure of autonomous agents. And we're running this platform ourselves for our own purposes of course [music] internally and we have plenty on agents running over here on their own. There is a whole uh timeline of things happening. Agents are acting in the world and doing something and reacting. But what is quite interesting is that we have a couple of agents that are Cornelius based
[9:28]exclusively and one of them this Cornelius M is an agent that currently runs uh, on Moldbug Yeah, basically, all it's doing is basically, uh uh, running a heartbeat uh, skill, which is kind of mold book engagement loop. And in this engagement loop, it follows a certain criteria and certain steps to be active there, to write articles, to be helpful, to communicate with other uh, I wouldn't say it's particularly successful. I think it got to the karma of something like 75, sits there,
[10:01]and but it's got friends, and it's writing some content, and importantly, as I mentioned, it is changing its own view of the world and belief systems reflected in the same kind of obsidian uh, chart. So, uh, it lives a life there. I'm not I'm not touching that, but it only works with the mold book social media right now. Um, I want to show you a different agent that is using uh, Cornelius as a brain. I wouldn't say that too successfully, but still. Uh, this is the Polymarket trader. This
[10:34]is an experiment I set up. I gave this agent like 100 bucks in crypto, and gave it a mission to maximize maximize ROI velocity. So, gave it some level of risk, and manage positions, and do that autonomously. But while it's doing that >> [music] >> autonomously, also collaborate with Cornelius to get insights from Cornelius on particular topics, and try to develop an edge on certain positions [music] based on those insights. Now, the way it works is uh, I basically
[11:09]run this Polymarket heartbeat. And this heartbeat is basically a skill that tells it exactly how to collaborate with Polymarket, how to interpret information, when to call Cornelius, how to push [music] itself to the repository, and things like that. And I run it run it like this. I say, "Okay, Polymarket heartbeat ends [music] going to be 10 cycles, and they're going to have I think also 10-minute break between cycles. [music] But what's happening now is that it's going up to Polymarket and finding out our positions, then it's going to interpret the data and then possibly it's going to go to Cornelius to ask for
[11:43]advice. And we can see these things happening right here. This was the agent that was going [music] to Cornelius to consult on something. So yes, as you can see this Polymarket agent is pulling some information from Cornelius, basically asking questions [music] and then Cornelius goes and interprets that through the knowledge base and returns with the insights and then saves those newly found learnings from the trading process back towards the Cornelius. Now as you can see it runs cycle 219 right now and started cycle 220, basically
[12:16]scheduled itself to to run again. Yeah, so it's working and they then basically it's a technicality to work on improving the mechanics on which [music] it sees the world, the data that it operates with, etc. in order to get this thing fully working and maybe even finding some edges on those markets. It is still kind of amazing to me to be honest to be in this [music] world where I run those autonomous agents and they're running remotely on Trinity and they're learning and developing over time. They interpret the world in their
[12:51]own way and saving in memory all the information they might [music] ever need and doing that all collaborating with other agents around them. Yeah, that's the world that we live in and for honestly for all intents and purposes something like this Cornelius internal in a combination with say Polymarket agent is a fully functioning entity [music] in the world that is developing, evolving, learning, adopting, using different [music] tools, technologies, skills, talking to other agents and people.
[13:24]>> [music and snorts] >> And I I there's no limit to uh really how uh much smarter a particular agent will become because uh we can be adding insights endlessly and we can scale the way uh that this agent is searching for this data. And uh also scale the way in which it finds the connections. And at some point it will go of course slower because of the size of the knowledge base, but I can tell you specifically that it actually does work. They do get smarter and noticeably uh smarter. If
[13:57]you give them insights and if you give them uh your perspectives on how those insights connected to each other from different uh domain areas, uh it kind of makes it view the world a little bit in your way, but then if you let it develop on its own, it's going to have its own thing [music] kind of going. So yeah, I hope you enjoyed that. Uh again, Cornelius is actually on GitHub, publicly available, however, without the actual brain. If you want to develop your own uh knowledge base, uh go ahead and do that. Uh it's it's very straightforward. Or if you want the agent to actually develop
[14:31]on its own, then uh you know, you can run it autonomously on your computer or you can install an uh instance of uh Trinity on one of your servers or even a local machine and run those uh agents in a safe manner inside Trinity. Thank you for watching. Don't forget to uh ask questions in the comments if you have questions and don't forget to uh subscribe to this. Thank you.