In this episode of the Elixir Mentor Podcast, I sit down with Mike Hostetler, creator of Jido, a powerful framework for building autonomous AI agent systems in Elixir. We explore why Elixir's actor model and OTP make it the ideal platform for creating massive agent swarms. Mike shares his vision of "10,000 agents per human" and explains how Jido's architecture leverages Elixir's strengths to build scalable, distributed agent systems. We dive deep into the framework's core components including actions (atomic units of work), signals (messaging backbone), and how agents can spawn sub-agents in supervision trees. The conversation covers practical applications, from Discord bots to job board automation. Our discussion reveals fascinating insights about the future of software development, where traditional coding languages may need to evolve for the agent-driven world. Mike explains his design philosophy of keeping LLMs separate from the core framework, allowing for both AI-powered and traditional NPC-style agents to coexist efficiently. This episode provides valuable perspective for developers interested in building autonomous systems, understanding distributed architecture, and preparing for the next evolution in software development where agents become integral to our development workflow. **Resources Mentioned:** - Jido Framework: https://github.com/agentjido - Agent Jido: https://agentjido.xyz - Mike's Website: https://mike-hostetler.com/ **Connect with Mike:** - X/Twitter: @mikehostetler SUPPORT ELIXIR MENTOR - Elixir Mentor: https://elixirmentor.com
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Secure your Elixir apps with paraxial IO. From code analysis and bot defense to dependency checks, they've got you covered. Elixir first design with GitHub integration. Elevate your security at paraxial dot IO testing. What's up? I'm Jacob Litzel, your Elixir mentor and welcome to another exciting episode of the Elixir Mentor Podcast. This is where we discuss everything related to Elixir, from interviews with enthusiasts, pioneers in the
community to innovative projects and libraries shaping Elixir's future. Today I'm joined by Mike Hostlettler. Hostler. Yeah. Hostlettler Dude I was even practicing before this and I always. Was the last night. Creator of Judo, A framework for building autonomous AI agent systems in Elixir. Welcome back, Mike. I don't know if you guys missed it, but we did a little pair programming where we basically
just vibe coded a library and that was a lot of fun. I haven't looked up, I haven't looked at it. I don't know if. People are you can check the stats. We should. Use the download a little bit. Yeah, let me look. But for people that don't know you, do you want to give like a brief introduction to yourself and kind of what you're what you're working on? So software engineer builder. Been in the space 25 years now so I was a little math that
sucks your breath and just been doing it this long. Started out in the typical LAMP stack world early 2000s and moved into JavaScript. Did a lot of work and a lot of open source JavaScript. Started a company and open source kind of focused training and software solutions company in 2009 called Appendto. For those jQuery enthusiasts out there, you might remember that method name again, training. Worked with a lot of really cool big brands and sold that company
in 2015. From there, moved into kind of the corporate world where I spent several years working in Chicago and various roles and then came out of that during COVID and I've been doing some interesting things since. Did a tour in crypto and then I'm now back working in more traditional software at AERP Company out of Denver, Co. So again, been a builder that entire time, was more hands on
keyboard at different times, have transition languages and built up skills in different sectors. But yeah, now primarily working in TypeScript and Firebase and then Elixir. Nice. And I apologize, I'm going to try to mute if you hear it, Mike, I mute you differently than the podcast. But I have like leaf blowers and weed whackers outside my door at the moment. So Prompt Vault has, it looks like it has 25 downloads. I think, you know, I think we're
going to go viral. I feel it, I think. It's a good start. I also took a brief trip down the crypto lane for a while and I I moved away from it. It's obligatory at this point. Yeah, we all did it once. Yeah, I got like, yeah, you kinda, it's kind of AI. I'm gonna get hate comments probably, but it's kind of a gross, gross area. I don't know. There's some challenges, yeah. The the the company that I was
working for and helped Co found was more in the crypto infrastructure space. So we were building a crypto backed digital ocean. When you deployed A droplet, you would that would be a a smart contract transaction and the idea would be that there would be kind of node operators that would run your droplets for you. We would have some routing that would, you know, allow you to route to your droplet and provide a web interface. And then you could host
infrastructure that way, host virtual machines, the I would call it a crypto infrastructure play. As I said, that wasn't so much into the tokens and that kind of side of it. Yes, there were tokens involved of course, but distributed systems learned a lot of Rust, learned a lot of virtual machines, micro kernels and how you can really kind of piece together smart contracts, how all those glue pieces fit together. Because there there's part of it of why wouldn't you just do
this? Normally that's AWS, yes, but there is was a use case for these unstoppable apps. We called them because the idea would be once that application is deployed, somebody couldn't take it down. Right. And I I like that. I like that concept. Right. The problem, the problem you run into is you always have to have some sort of like token behind it, right? Or incentive to keep a note up. And that like, I see a lot of awesome use cases, like in a private blockchain, I could see.
And then like the public, like there's their places, right? And we went through a window like before, like NFTS and things where everyone was trying to just cram blockchain into every single project. And yeah, that was kind of exhausting. Yeah, you, it's This is why I like this one, because it was, it was the right technology applied to the right place, but it's a it's a hard problem to solve, like many problems in crypto.
Yeah, for sure. Yeah, I can imagine. But now you're working on some pretty cool stuff. So I, I, I'm doing a lot of open source now at a point in my life where a little more free time, family is doing well and off doing their own thing. And so I've returned a little bit to my open source roots. And it's funny, we mentioned the crypto project we were building bots to help automate certain pieces of of that again, project at different times.
Anything from a Discord bot that would, you know, generate a wallet for you and generate dev net type stuff, non secure type stuff. It was a token faucet, for instance, all connected to Discord that was all built in Elixir on to other bots to manage and highlight some of these on chain transactions and when events would happen. That led into a project that I did on my own to build a Solana bot platform really got into the Solana ecosystem developer
friendly. Yes, it's a little bit harder, but I think almost that works in its favor in some ways. And then last winter, I live in Illinois, in Chicago. Winters here are long and dark. It's good to have a project. I'm from Milwaukee, do you know what we call you? What do you call us? Fibs. Fibs, I've not heard this before. What, you don't know what a fib is? Oh I, I mean, I guess I can swear on my own podcast, but
it's fucking Illinois bastards. Yeah, that's probably well deserved. I live far enough out of Chicago, I, I can, I'm arm's length from that. But yes, we Illinois is a special place. But so I, I, I extracted out the bot platform and more of the again, it was, it was no LLMS at this point, just a bot platform to do trading and that sort of thing. And I turned that into Jido. And Jido, you know, there was a
Solana project that launched I think October of 2024 called Eliza. And Eliza was this TypeScript conversational bot that took the Internet by storm. They launched A token and hit a billion dollars in value. It was a pump and dump, right? But it's what it did is there was a real open source project behind it. And I think it catalyzed A and spread out a bunch of knowledge of how to build conversational bots in a new way, gave me some
new ideas and inspired by that, I was like, Elixir is the best language for this. I wanted to build and figure out how to do this on Elixir. Can you like what like inspired Jido to even like, start? What made you want to build an agent? Yeah, I mean, you, you just want to automate things in your own life. I think it starts out with a idea of, well, you know, could I
write a coding agent and this is just an idea of how fast this space moves. When I was putting this together the first time, Claude 3/5 was the best model out there or Claude three. There was wasn't a lot and there wasn't a lot of shared knowledge of how to even build agents and the idea behind building agents. I knew what I'd done with bots, but inserting an LLM into that mix was kind of new of what was
possible. So you instantly jump to ideas of, you know, can it submit a pull request to GitHub? Well, that turns out to be pretty easy to automate. How do you have an edit code? Well, then you have security issues and you just start exploring what it can do. And it's turned out that the the space to explore is very big, incredibly big. So that's where Jido turned into this idea that I was going to build the Lego bricks, right, The building blocks for others to build agents as well.
I was opinionated on some of the principles that I'd learned from some of my earlier work and knew that, you know, that it was yeah, I want to get these base pieces right, communicate that things like, you know, you need tool calling. Tool calling is one of those basic building blocks. It wasn't really even called to calling too much at that point. People were still parsing Jason from an LLM response.
The tool calling API wasn't available yet. Now we take that for granted a little bit, but it was ideas like that. And how does that map onto the runtime that the beam gives us? Now I was gonna you kind of started to go into that. I was because you mentioned like Elixir's just the perfect fit. Can you like go into that? Like I think sure, probably most of the audience understands why it is. But like how does like your actor model in OTP help with with agents?
Yeah. So we have some, I mean those who know OTP, those who know Elixir know that we already have an agent module available to us. That's a kind of a a special case of a Gen. server with some extra methods that hold state kind of getters and setters type stuff. That idea of multiple actors, each a Gen. server, each a process interacting with one another, I think in hindsight was very ahead of its time. Those of us who understand OTP
understand the BEAM. I've met a lot of people. Oh yeah, this is perfect for it. And yet a lot of the agents that get traction right now are all single process driven because they're written in Python or TypeScript. There are multi agent demos out there and multi agents or sub agents as they're sometimes called or really used to help manage the amount of tokens in your context. And I think that's where the latest and greatest is at right now. I have thrown out this vision of
10,000 agents per human and that was my North Star as I was thinking about and building out Gito. The only user experience that I know of that can kind of fulfill that vision right now is video games. So in my mind, as I build out Jido, if anybody's played games like StarCraft or Factorial, for instance, those are ecosystems, those are worlds where you have a number of agents following
patterns, following blueprints, are following orders to go accomplish a task. And I, I see and, and kind of have made the projection that that's where I think it's going. That's the future that I think is best, kind of the best match for what Elixir and Erlang and that ecosystem can provide. In order to have a TypeScript agent swarm of 10,000 agents all running and coordinating together, that is a.
That's a tall order. You need to get up to 100, right? Let's be honest, you're running worker threads, you're running. There's even some solutions out there for people running agents in containers that rapidly spin up, something similar to like a Lambda process or the agent could run for 10 minutes. You have fly machines that can run agents. But again, it's really this, you know, I think the the biggest examples I've seen of agent
swarms at that scale, you're talking like 10s of agents, not thousands. And This is why I focus mostly on getting this foundation right, because in order to scale to 10,000 agents, this is where that crypto decentralized systems, distributed systems experience really came in because we spent a lot of time thinking about how do you harden a network to do that. This is on a smaller scale or a more kind of focus scale, but that that's I think the future
where it's going to. Well, and we're lucky with like what Erlang and the like you, you get that out-of-the-box, right? Like just, you know, spin up whatever process you want and then communicate via message passing. Yeah, I also have this other idea that I think inference and our usage of these LLMS is going to start to get more expensive. There is the Claude code kerfuffle two weeks ago where or I I know it wasn't cloud code,
it was cursor was limiting. Oh yeah, cursor like changed their. Pricing or something too. Yeah, people were really upset. Well, you know, I think there's a lot of VC money that was subsidizing all of these token usage plans and, and we're going to see that come to an end. It was, you know, reminded me of the $2.00 Uber ride days. Well, it's still like, I think it's a, it's something to be aware of, right? Because even like the clawed,
the clawed pro plans where it's like 100 or $200, you're getting a lot of requests for that. And if you are actually paying by RAID or over API calls, you can, you'd easily be hitting a couple $100 a month probably if not more, correct. Yeah. So, yeah, I think we're going to be like locked in and addicted to our our agents that we're paying for. And then they're going to be like, now it's $1000 a month. Yeah. And, and I think the solution to that is two things. One is you're going to see agents and inference get, you're
going to have to not just use it as liberally. I think the water's flowing right now, but companies that use it are going to have LLMS that run in their data centers. They're going to run in a little piece of hardware on, on your, you know, desk or something like that. So we need to be able to run our agent Swarm in as small of a compute as possible to next to it. So you'll have the agent swarm running next to NVIDIA had a hardware computer of like 280 bucks that was tuned to run
their LLM model. That kind of thing I think will be popular in the future. And then we have another category of AI in video games, in video game technology, NPCS in video games are AI and they run on very tight hardware requirements. And I think we're going to see a future where both the NPC traditional AI is going to run along with the LLM based AI and agents.
And that reality is another thing I'm kind of, you know, seeing because it just inference is going to be too expensive otherwise. Well, and like power consumption and whoever's like serving these things, I don't know. It's it seems very limiting right now. Yeah. We're hit. We're going to hit the ceiling at some point. Despite Zuckerberg saying they're going to build giant power plants and fusion all that stuff. I mean, I, I bullish on all of it, but it it's going to take a
while. Right. It only took at this problem to make people like the idea of nuclear power plants. Yeah, exactly. I hope we jump to fusion as fast as possible. For few fusion's been 10 years away for the last 30 years, but. You know, I haven't followed any of those trends. Is there any, is there any news with it or is it just? My father-in-law is an engineer, works for a power company, so I get news every week on this, but there's nothing, not not a lot
new. There's some bits and bright spots. You saw a headline last year where a lab in California achieved fusion for microseconds and but it was a sustained reaction. But it's it's, it's a ways away still. Yeah, yeah. And so then I think we're nuclear is the way to go. We got to stop. We got to stop putting windmills up though. It's my brother works for and works for a a windmill company. They're they're hurting right now for sure.
Yeah, yeah. Well, I mean, like, I think like the idea of them is great, right? Like, yeah. And maybe at like a small scale, like self sustain, self-sustaining. There's a place where there's. A place for it, but not not mass mass scale. Yeah, we see them everywhere out here. We see there's a lot of windmill farms out where I'm at, so. Yeah, there are Midwest especially, like driving through, like, Indiana for sure. Like I feel like there's a huge windmill.
Yeah. You can just like, drive through them for like 20 minutes straight. Yeah. It's pretty crazy, so. So all right, let's talk about like some of the the pieces of Judo, like I was just like glancing at documentation a little bit. But you have you have things like actions and some like workflows and can you like breakdown like what an action is, how I would use it and.
Yeah. So when you're implementing an agent, the first thing and I'm I'm in the process of splitting this out into separate packages to make it a little bit easier to consume, but is the idea of an action. So an action is sort of the the atomic unit 1 function. So it's a module that has a bunch of metadata in it that has one run method, run function that you have to implement as the call back. So think for each action that
you want to take, edit a file, move a file, anything like that, that becomes an action. That run method can do a bunch of different things. It can call other actions, it can encapsulate actions. A run the way you build a workflow is actually a workflow action that wraps several other actions at once. But would it be like fair to call this kind of like like like is it similar to like what an active schema would be towards the database but in like an LLM
prompt? To some degree it's like it's one step one activity you can take and think of it as a tool call so that action and you can see, you know the the, the way to write that code is use Jido dot action. And then you specify a bunch of options, some of which can be what data that gets passed in, parameters that get passed in has to be validated against the Nimble option schema.
So you can verify that the data coming into that action follows a certain format or is validated correctly. And again, that's sort of the, again, the atomic unit of work in the system. Again, actions can be composed and you can have one higher order action that could call to a sequence of two actions or call a workflow or things like that. But again, that's, that's sort of the, the smallest unit there is a another module.
So actions can be built tested directly 'cause they're, it's really just a function call, but it's a very opinionated, very constrained function call with a bunch of metadata around it. Because one of the things when working with LLMS or working with bot systems is you have to be able to have something that explains in written form to the LLM what that, what it, how to call that action. That's the reason for all the
other metadata around it. So again, it's the smallest unit. Workflows are sequences of actions. There are customized actions. So for instance, the request library REQ that's gotten very popular in the Elixir world, I built a custom action that wraps it. So you can say, you know, gedo dot rec action and then what command or what URL do you want
it to fetch? And then it will just return the value without having to actually implement that. So that's pretty cool. There's a bunch of helpers there. But again, that was that's a key part of Gedo for the work that can get done. And it's intentionally very open and broad because you can do a lot of different things with it. It's just code. I did 2 days ago release a library that you can install in
the Ash ecosystem if you use the Ash framework at all, that exposes all of the actions within a resource. Oh nice, that's. Cool. So that's pretty cool too, without any extra boilerplate code. And that's kind of in a preview state right now. I've been playing with that a lot and I'm I'm, I'm hooked. Yeah. It took me a long time to come around to it 'cause it, it's a, it's a learning curve, but once you realize how fast you can build things, it's pretty cool. We, I just had Zach on like a
week or two ago. It was it was fun and he's gonna do some, we're gonna do a little pair programming session coming up in the near future so we can I can make him show me how to use Ash AI and all that stuff. Yeah. Yeah, they're doing some cool things there. So, but building up to an agent, an agent takes 2 forms. The 1st is what I call a stateless agent. And a stateless agent is just a data structure that says, here's the actions I can perform, here's the state that I
currently hold, and here's what my agent can do. And then you can send commands to that action. It can run and then you can see the resulting state. In our Elixir world, that sort of data first approach was really important to me. If you go in and take a look at the code of G dot dot action, that stateless agent is all data-driven. And it's, it makes it very easy to test agents. If you look through the test cases, all those libraries are are thoroughly tested.
And if you're needing to validate that your agent performs as expected, it's very easy to use kind of the data-driven version of this. I love that you have the testing right in the docs too. Yeah, there is a process so that where's the Gen. servers, right is the next question. I did slip in some syntactic sugar into that Jido action to do a start link. I'm I was, I was very
opinionated on how I wanted the examples to look from a developer experience perspective and I feel like I got there. It's messy, but I like I got the output I wanted, so I don't really care. I like it's when you're building an agent, I think it agents are such a new concept. It was important to me that it makes logical sense. As you're reading the codes, you can come back to that agent. So the there is this whole other set of I think 12 modules on
what I call Jido server agents. And this is the ecosystem where I, the Gen. server got to be so big that I had to split it into these kind of separate modules of, you know, taking that core data-driven agent and wrapping it in a Gen. server. And that Gen. server then communicates via signals. And so signals is the next significant portion that every
time I revisited that I just kept growing and growing and growing. But signals are really the the message envelope for Gedo and Gedo agents. Yes, we have elixir message passing. Yes, we have all this stuff, but you need a signal sounds really cool. Signal sounds really cool you so the signal ecosystem was born and there's utilities for you
can build up A and signals are based on a non elixir specification called cloud events that I got from reading the book on event sourcing, the elixir book on event sourcing, But it doesn't have anything to do with elixir. It's just a, an A specification 8 or 9 fields. There's a way to customize and extend the specification. And I went, you know, very detailed on how you build out signals because signals end up forming the messaging backbone
of that 10,000 agent swarm. Think if you have 10,000 agents, they're all going to be communicating via signals and you need to be able to watch that. So how does telemetry work? How do you find out things like correlation and causation IDs because you have been end up inevitably building. I might have zoned for a second. Did you say signals are built off of like pub sub message passing? OK. Well, so this is the problem because sure I started with Phoenix pub sub. Phoenix pub sub is amazing, the
deceptively simple but it process groups and what you can do and scale Phoenix pub sub to is really cool. However, if the process goes down, you lose all the history of any signals that was sent. So you have to start dealing with that and where it came from. How do you, without going too much into the beam, how do you send a message back to the return? How do you broadcast one to many things like that? So the Jido signal package is the implementation of Jido
signals and all that are other utilities. So there's a dispatch system that you can very easily craft a signal and an agent can dispatch it to a number of sources. So think between. If you're communicating between a live view, which is its own process, and an agent. They communicate back and forth with signals. So. Again, signals can go over Http://signals can go over any messaging system and they'll
hold their state. So there's ways to serialize them to both Jason binary formats because again, these the idea is that these ecosystems begin to build. I built an agent that was APWA app running on the client that used what signals 'cause signals can, once you know the format, they can be used in TypeScript, right? That was a key idea. So TypeScript and I had.
There's no library, but it's not hard. It's a Zod schema and an interface. To build the signal in TypeScript, send it over a web socket communicating with a agent built in the back end. And you know, depending on how your agents are constructed, you can, through some of the metadata in the signal, figure out where it's from, sessions, that sort of thing. So if you've ever worked with a Rabbit MQ or some of bigger
messaging systems, this is the envelope is all. Gotcha. OK, Yeah, I have not, but yeah, that makes sense to me. So. I don't know if we're being trolled or not in the comments. I haven't seen them. S s you guys don't look like discord mods? You sure y'all code? I'm most dubious about Elixir because everyone who uses it looks like they have girlfriends, hobbies, etcetera. You sure this stuff actually works? You know it's. Pretty good.
It's pretty good, yeah. It is. Pretty good. I'm glad that I look like I have a girlfriend. Yeah. Let's see here. Oh yeah, Now like OK, we're just starting to touch. You started talking about like Gen. servers and things and I'm guessing that's like your state management, right? Like. Correct. So how do you handle like an agent crashing or like any of that like to recover anything
that you have in state? So very similar to a Genserver, there's terminate hooks so you can define your agent and write a hook so you can hand off state if the Genserver is going to crash. So there's ways to using other libraries in the Elixir ecosystem, like Highlander is one of my favourites. Highlander is just a wrapper around the Erlang global library that allows you across a cluster
to specify, you know, one PID to rule them all depending on how you name it. So you can do things like that and there's ways to do handoffs, but it's kind of outside the scope of the platform. That said, each Gen. server is a dynamic supervisor as well. So agents can spawn sub agents and that was a key decision. So again, as I built this out, think how would you do that? I have an action because again,
action is kind of our unit of work. You send a signal into the agent, go spawn a sub agent and call the spawn sub agent action. It knows how to modify and spawn a sub agent and you pass an agent so. Your agents are also supervision supervisors. They're all supervisors. That's cool. So that 10,000 agent swarm is a supervisory tree. It's all supervisors all the way down. And a lot of the kind of background hesitate to say
boilerplate because it's not boilerplate. It's sort of the mechanics of the library handle situations like that. How do you spawn a sub agent, tell it to do a specific task and then go about its merry way? So. How, how are you like delegating, deciding like whether it is like a child process versus not? Yeah. So each each of those sub agents, you would have to build those as the developer right? That's why this comes out as an
SDK. I started building more agents, but beyond the basic bot stuff that I was doing, use cases were a little bit tricky to find. Each agent kind of has its own memory and and and its own state, and then it's up to you as the developer to coordinate what messages get passed. Each agent also has a miniature router so or get asked this
question OK, you have 10,000 agents no human can really manage that much yes, absolutely agree with that you'll interact with I I think one agent right call it your lead agent, call it your chief, whatever you want to what name you want to want to call it and then that agent will has the ability through its router to pass messages directly down to sub agents so. Like, OK, I'm when you say router, what what is that
essentially? Is it like an? ETS table or like how are you? Are you storing? It's all in memory. Yeah, it's all in memory. Each agent maintains A routing table itself based off of the signal again. So yeah, definitely take a look at it. It's in the GDO signal package, but you need a way to tell each agent how to ingest and interpret each signal. And so I, the, the punchline here is, as I was building this out, I came back to this idea
and this is, this is maybe me over engineering it a little bit, but the idea has held pretty well. And that is each agent itself is really a, like a hybrid virtual machine architecture. So again, this is way heavier than we typically think of Genserver processes. But when you, you know, log on and interact with your coding agent, you log on and interact with even a website chat ecosystem, really what you're doing is you're sending a
commands, it needs to go do some things. It's reporting back on what it does. It holds state, It has to have actions that it can take, has its own memory, and then it needs to be able to spawn sub agents. So CPU architecture, some again, principles of CPU architecture really start to make sense there. So there's a queue of incoming instructions, There's state, memory, RAM, whatever you want to call it. There's system instructions.
So in my world system instructions for an agent to call an action to modify its own state or spin off a sub agent are very tightly controlled. Those are called directives, and actions can always turn return directives that modify the actual agent state. Or the signal that's sent in gets converted to an instruction struct, which is a instance or a call of a tool of a call of an action, and then it knows how to return its response of that instruction struct back.
So there's a lot of there's a lot of potency in this pattern. I've been able to build some pretty cool stuff. Gito does lack in some examples right now. I push really hard. I shipped the what's currently out there, a weather example you're and that's what that's the canonical agent example. Go fetch me the weather. We have another live stream in the near future, don't we, where we're going to be coding, I think. I think so. Yeah, on the on the second.
So maybe we need to make some Geo examples? Build some, build some Geeto examples, but there's a lot of power in there, so I push really hard. Got it shipped over spring break. Took a little bit of a break because you you get into a cave at times and you just get some real world examples. One thing I haven't touched on is that the core of Geeto, if I if I made any opinionated design decisions, it was this and that
the core of it wasn't going to have any LLMS involved. So there is a Jido AI package that is where the LLMS come into play and and you can see those examples. Agent Jido dot XYZ is the website but it the core of it is just pure NPC style agents and I you can use other algorithms that are available in the Elixir ecosystem, behavior trees, hierarchical task networks, a star. That's really cool though because you're like leveraging a
lot of power where you don't necessarily have to be paying for it through some expensive LLM. That's the idea, yeah. And I this is me projecting quite a bit, I think you'll have an LOM write the behavior tree algorithm. Inject that into an agent dynamically. The agent goes off and does a task without needing the LOM and just sips off the inference when needed rather than I. Love that. I love that. I think that's really cool.
There's a there's a delicate balance between runtime compile time in Elixir. I did toy around with hot code reloading of agentic stuff. Yes, it's possible. It's very dangerous, but you know you can. Rocket Face has an interesting question. I think like you kind of answered it, but I kind of want to like build on it, he said. How do you handle context per agent? Can agents remember previous activities? And like, before you dive too much into this, I also want to add like, so you're talking
like, we can have like 10,000 agents, right? So how do you efficiently, like, keep all that context at the tip of your? Fingers right now you just you have to automate it as much as possible. So yeah, the the the canonical example is chat building a chat interface that's good context. That message stream, that's sort of the prompt vault thing that we were talking about. I have written Jido chat 6 times.
And I'm still not happy with it. It's it's a difficult problem because one of the use cases is Federated chat out to Telegram, right? That's where I started. I started building Telegram and Discord bots. I want to have a out-of-the-box example that allows a Jido agent to hook right into Telegram in the Elixir ecosystem. And you can just. Use it. I'm pretty close. A little a little off topic. Why can't Discord be more popular in the corporate space?
Like, let's get rid of Slack, yeah? It's so nice. Yeah, he's a behemoth. I know. But yeah, no, that's that's. But to more directly answer the question right now it's. You have to build that context yourself. Well, and. That's why it's an SDK. So like, from my point of view, like I, I don't know where I would start If I was like attempting to build an agent. I, I wouldn't probably. But I've been using them now
long enough that I'm starting, I started running into the like the, the rules and you know that all the markdown files where it can't maintain all, all my rules for a large project, right? So I had to like subtask things where I directly tell it, OK, this is what we're doing now. And I give it like a little piece of the pie. And I, you just have to like constantly kind of remind it when you're doing a specific task. And I found that to work very well. And the, this gets into some of
where I think agents are going. I, I think it's great that developers are utilizing and, and leveraging agents as much as they are right now. It's given us a lot of good examples, examples that we didn't have six months ago. I mean think of Claude code 3 months. Old I was, I feel like I'm a late adopter because I was like I would play around with it. I was like garbage. I can write quicker code and now here I am freaking using it every day. Yeah. And then when there's like an outage, I'm like not really
quite sure what to do with myself. Yeah, so there's there's different pieces to this. That's why again, I've been, I've been pretty opinionated on trying to get the foundation correct and document all the design decisions. It's a lot to keep in your head. I set out to do this small thing and it's just grown and grown and grown. So having fun with it now. But yeah, the, the we're getting into the use cases phase. I have. So I have, I've ended up
adopting a lot of, and Zach and I've has Zach's been very generous in sharing how he manages a multi package ecosystem in Ash And I picked up some of those same patterns, but I think it's it's multi packaged. There's going to be a lot of Jido action packages, Jido tool packages, memory rag chat. I want to have a first class chat experience where it's very easy to build. And so the one of the things getting into higher order
primitives, yes, there's a Jido agent. You can build an override customized Jido agent. So Jido AI agent is a customized Jido agent 'cause I really think the shareability of agents in the Elixir ecosystem is important. And so I imagine, you know, how would I use Jido to build an agent in a hex package and ship it? So maybe that's what we should do. We should build a dedicated, you know, agent that can do something in and then show an
example of how to pull that agent in as a package and ship it with a brand new Phoenix. I have an idea. I will, I have a very like broad idea, but I have like a good topic to aim at. So we were talking right before we went live that it kind of like fell into my lap and I just like, I posted a job board, you know? Yes, we should do this. And so maybe we create like some sort of like agent to help maybe answer questions for applying or
or maybe even organizing candidates or I don't know, like we could, there's a lot of use cases here A. Lot of use cases, that's the thing. Like we're all going to be dealing with it quite a bit so. Which by the way, this job board, I did not think it would be as popular as it is like my website has been blowing up my e-mail. By the way, you guys, if you've emailed me about the job, I I'm getting back to you.
I just have like more emails than I've ever had ever in my Elixir mentor e-mail inbox, which is a good problem to have. Yeah, it's a good problem to have. But now I need AI, need a more automated onboarding process so I can just focus on kind of collecting their tech skill set versus just reading through resumes. But you. Can build a Gedo agent for that. That could be really cool. That would be really cool. Oh yeah, I like this. But. So I have a lot of ideas. I'll I'll make two other
mentions, the idea of workflows inside agents. And there's this tension between deterministic workflows, which is your O bond human decides step by step by step versus your non deterministic workflows, which is what we are all experiencing in clawed code. And I think the industry is going to wrestle with both of those. I originally didn't put any workflow tools inside Jido because Elixir has good packages for this, Obon being one of them. Broadway Flow, you can roll your
own reactor and Ash is amazing. So I did end up shipping a workflow action because it we needed something for a small workflow. It's very easy to integrate those other tools, but the there's A to get to that future of 10,000 agents. There's a library that I've been promoting for a while called Runic made by Zach White. It's not on Hex yet, but Jido, there's AP an open ticket for it
on the Jido action repo and I'll probably making a dedicated Jido Runic package that integrates the two. But it's a, it's a very advanced data flow programming engine in a lecture that like I haven't seen anything like it. It's pretty cool. Zach and I have talked a lot. We have Zach White in the comments. Yeah, you might not see it on YouTube. It came from X, he said. Workflows mentioned, Yeah.
Nice. Yeah, I'm not on those comments yet. I have. To the only thing. So I use restream and yeah if I I can't comment back through restream to X, but X comes through and then if I want to comment back I have to be directly on the X stream. It's kind of annoying, but it is what it is. All good. Oh, there you go. Yeah, there's Zach. I see it. Oh, there you go. There's the there's the stream, all the streams, all the
streams. So that's that. I I would say the other thing I've been chatting about on X, if you don't follow me on XI plug that a little bit. We have a a great community of Elixir people building with agents on X. I'm at my Costetler. I'm I'm growing more convinced that our current coding languages are not sufficient for the 10,000 agent world and the
act of building software is changing planning, talking to us, talking to people. And so I I made I I don't know where I picked this up from. I could probably go back in my notes and find it, but the comment was made. I've worked in this space for 25 years. 90% of what I do and what I've spent the last 25 years building is now almost useless, right? Learning all the skills, learning all the different pieces but that last. 10%.
That last 10% is really valuable. I can't like OK, so I I have said this to a lot of people, I feel bad for newcomers into software development space because we like I and don't get me wrong, I still have a ton to learn. I don't know a lot of things, but I know I still do know a lot of things until you realize you don't know a lot more. But you. You. There's always more to learn. You get all that wisdom through the pain and suffering and
bashing your head against the wall and like, you kind of get instincts to like bad code smell, bad query smell. And you like and I worry and I'm sure it'll it'll be solved, but juniors aren't going to have the same learning curve. They're in for a rough go for a little bit. Yeah, for sure, 'cause I think, like I think they're going to get their growing pains from a different angle, right? They're going to rely too much on what LM spit out, and then
they're going to have to learn how to fix problems that are already in their code base at a massive scale. So I think it's going to be a different a different hurdle, which is a lot harder, in my opinion, than just putting in 10 years of hard work. I don't know, it'll be interesting. Yep. So I, I'm, I'm with you there, but I, I think that last 10% is really valuable to us now. And I think there's, we're, we're, my prediction is there's going to be higher order
languages built that make it easier to, for humans to direct their intent into LLMS and write the code behind it. Languages won't go away. Python's not going away. Typescript's not going away. Go is not going away. People will still build directly with those tools. But I view this as like a. The pie is getting bigger, but at work our product owner now regularly commits code because
we taught him how to use cursor. It's awesome that. Is awesome. Yeah, it's 4 lines of APR, but you know what? Like that's the world we're heading into. Where? Where your managers can contribute. Yeah. And I, I, I'm all for it. Again, I think again it's a, it's a hands open, the pie's going to get bigger and abundance mentality. I've had this opinion for a long time. Like I, like, I don't care how you got the solution, as long as
it's a good solution and you know it's a good solution. And like remember all the drama with the Y Combinator engineer? That was like working like 10 jobs we might have already. Talked about those. Yeah, so I think I've heard a little more about the story where he actually wasn't delivering what he was supposed to be doing. But like if if an engineer has like 10 jobs and they're actually you know. Delivering. Delivering like, who cares? Yeah, I don't know if I have a
problem with it. Theoretically, I all other being equal, our our legal and employment world hasn't caught up to value based pricing. That's what I would say. And it if it sounds like there was some deception in that story. So I'm very cautious to, you know, rubber stamp it. I think value based delivery of work is difficult. He was trying to play that game
but wasn't totally being honest about it so. Yeah, fair. Yeah. Just be a manager of a bunch of lower paid developers around the world. So, but I, I think there's, there's solutions coming out to take us to that 10,000 agent reality that, you know, we haven't seen yet. All right, I don't know who s s is, but you're a funny dude. He said he was vibe coding in Rust today, and Grok had him delete all his Docker volumes. Yeah, yeah, you want to make
sure you're controlling a lot of your command line stuff. Don't give Annie the keys the keys to your code base. That's true sometimes like I like to do like the go ahead and like auto auto add your code, whatever. But then I look at the the get DIF and do a good PR review you know? Yeah, for sure. So, yeah. So definitely try out Jido. I think we should vibe, code out some agents and build.
I think we should. That'd be a lot of. Fun fit into yeah fit into your job board is your is the job board website on Elixir or is it another platform that. You yeah, no. So if you go to if like so Elixir mentor, actually, it's kind of funny. So I used to run a consultancy. I mean, I, I guess it still exists, but I stopped chasing jobs, right? But like I got so annoyed because most my consistent work was building websites and I was like, this is boring.
This sucks. This doesn't push my skill sets at all 'cause you can just whip up landing pages, right? So I built AI ended up taking I built, I made a Phoenix, a Phoenix project and made a web hosting server. And so basically I have one giant Phoenix project and I can auto generate domains within it. And I route I I have like a dynamic live view route. And so I have like I have like
10 different domains hosted off 1 project there. Used to be. And I so. But it's all the same end point inside Phoenix. Correct. Yeah. So it's all coming in through one end point. So I just, you know, have one engine X set up for my reverse proxy and then I generate SSL certs for every domain that I host and it works really well. So like one thing that I want to
change and I kind of, I stole, I stole this idea from Beacon because Beacon's doing really cool stuff and their dynamic routing, they actually, they have like configs and then they hold it all in like an ETS table. Yeah. So they don't have to keep looking it up. They hold it in the database, but they only grab it from the database once instead of like ton 'cause that would slow you down if you're like dynamically routing through database calls. But so mine, I'm just dynamically routing through file name conventions.
Yeah. And so it could easily break if you didn't follow my naming convention, but it works really well. So yeah, like Elixir Mentor. So if you go to elixirmentor.com, that is 1 and if you go to sitebrains dot IO, that's on there. So like I have all these websites all hosted off the same project and it it's pretty cool. And then I can even, I can even load my metadata separately for each one. So like my my like basically. Like you're.
Yeah, so my layout and like what is the, what is the first static page that loads? Why am I not the template, not the root, the root. So like I'm loading like different roots for each website. And that was actually the trickiest part I bet was like figuring that out. And I did it all through just like a just a controller and it works really well. Yeah, the one I found I used. It used to be called master proxy. It's called main proxy right
now, but it uses multiple endpoints. OK. So yeah, you can host to multiple sites that way. That's. Yeah. And then so like I basically just have organizations. I have it's multi tenancy, yeah. And then so my organizations are just registered to the main end point. So then when like, you know, through my plug, I look up who who that domain belongs to, what organization, and then I load everything that way. Yeah. Nice. Yeah, it's pretty cool. That's cool, dude.
Yeah. So I have to wrap up in a few minutes, but this has been pretty cool. This this has been. It's been fun. Always a pleasure. Already. Yeah. I know time flies from talking. It does. Like 3 hours in a snap yesterday or the other day. I know. And we'll probably do that again coming up, I think. We're looking forward to. On for on the second right I. Think that sounds right? And I think the day before I should actually look, the day before might be, yeah, the day
before. So a normal podcast is that is being interrupted and it's going to be a live code session with Zach. So that'll be that'll be a lot of fun. SO22 live coding sessions in a row for me. I, I find them fun, especially when I'm kind of just like being taught things as I do stuff. It's sure, yeah. But yeah, the job board is it's a Phoenix app to get back to that, yeah. So we can build gito right into it. And right now, like the postings I I need to make like an admin
panel, but I haven't. So I'm just throwing markdown files with the job listing details and then it loads. But yeah. Yeah. But I got some work to do. I just threw that up pretty quickly. But yeah, I can't believe. I can't, dude. I can't believe the traffic. It's cool. It's fun to see. It tells me that there's there's a need for. Demand, demand. For it for sure. So and like. Honestly, I think like my angle
too is like I, I'm an Elixir developer and when companies are coming through me to post, they don't have to do the technical interview. And I think that's a big win cause a lot of people they don't know what to look for in developers And like now like with AII mean one, I tell everyone that they should embrace AI with their developers, but you still want to make sure your developers know what they're adding into the code base. So I think that's the trick right. So if you have a coding project, guys generate it with AI, sure,
but you better know everything that's there 'cause if I'm asking you about your project and you stumble over stuff, that's kind of a that'd be a hard no. The only way I've seen is having somebody screen share and do a pair programming session to. That works too, but then you have apps like Cluey and that throws off that. Throws this was pre cluey that I did this. Yes, there's some challenges there too. Cluey has changed out dude. I haven't I haven't used it but I I love the the concept of it. It's like it's gone and the
founder's really good at going viral and yeah, being loud and noisy. It's half the game, isn't it? It is. So yes, SSI just drank water. All right, All right. Well, Mike, thank you. Appreciate it. Agent geeto dot XYZ for sure. Dot XYZ. I'll make sure I add that to the. That's my crypto showing through. Nice. Is that was that a big that that was a crypto domain?
Oh yeah, XYZ domains. They're like, OK, they were. They were. Cheap for a while. I don't know what the renewal is going to be, but yeah, agent gito dot XYZ nice so. All right, cool. All right. Well, guys, thanks for tuning in and thanks for jumping on early. I know this is a little. Yeah, I appreciate the IT. Was kind of a last minute schedule conflict, but that's OK, it worked out. Had a good time. All right, Mike, have a good one and everyone else have a good weekend testing.
Francesco Cesarini, founder of Erlang Solutions, and Allen Wyma, hosts of BEAM There, Done That, join Jacob for a live crossover of both podcasts. They trade origin stories, compare what the Erlang and Elixir...
Jason Cohen, founder of WP Engine and Smart Bear, joins Jacob to talk about his new book Hidden Multipliers. They dig into why engineers avoid marketing, the onboarding math behind SaaS trials, finding your ideal...
Filipe Cabaço, team lead on Realtime at Supabase, returns after two years to talk about his side projects: Vitro, a browser for every AI agent with a replayable timeline of what each one did, and Ampoule, which packs an...
Peter Ullrich returns to talk about Pushin.eu, the European GitHub alternative he's building in Elixir. Five months in, it has about 700 confirmed registrations after going viral on Hacker News, and Peter walks through...
Nathan Hessler, organizer of ExMex and RBQ Conf, is back four weeks out from ExMex 2026 in Austin. We cover MCing Rails World, how he picks speakers and keynotes for a single track, what running a Ruby conference taught...