Show HN: Jido 2.0, Elixir Agent Framework

(jido.run)

317 points | by mikehostetler 1 day ago

31 comments

  • mmcclure 1 day ago
    I haven't used Jido for anything yet, but it's one of those projects I check in on once a month or so. BEAM does seem like a perfect fit for an agent framework, but the ecosystem seeming limited has held me back from going too far down that path. Excited to see 2.0!

    Just a heads up, some of your code samples seem to be having an issue with entity escaping.

        name: "my_agent",
        description: "A simple agent",
  • kzemek 1 day ago
    I really like the focus on “data and pure functions” from the beginning of the post.

    I’ve read a lot on HN about how BEAM execution model is perfect for AI. I think a crucial part that’s usually missing in LLM-focused libraries is the robustness story in the face of node failures, rolling deployments, etc. There’s a misconception about Elixir (demonstrated in one of the claw comments below) that it provides location transparency - it ain’t so. You can have the most robust OTP node, but if you commit to an agent inside a long running process, it will go down when the node does.

    Having clear, pure agent state between every API call step goes a long way towards solving that - put it in Mnesia or Redis, pick up on another node when the original is decommissioned. Checkpointing is the solution

    • mikehostetler 1 day ago
      My strongest opinion with Jido is that agents must be architecturally correct WITHOUT LLM's before they can be correct WITH LLM's

      Jido core has zero LLM support for this reason.

      There's nearing 40+ years of "Agent" research in CompSci, LLM's came along and we threw out all of it. I didn't like that so I spent time researching this history to do my best at considering it with Jido.

      That said, I love LLM's - but they belong in the Jido AI package.

      • kzemek 1 day ago
        Fair enough! My comment is about agentic-focused libraries in general, it’s inaccurate of me to call all such libraries “LLM-focused”

        Speaking of inaccuracies, BEAM does provide pretty good location transparency - but resource migration between nodes in particular is not part of the built-in goodies that OTP brings

  • nickcoffee 4 hours ago
    Nice work shipping this. The BEAM's fault tolerance model makes a lot of sense for agent workloads, been thinking about similar tradeoffs on the orchestration side. Curious what the failure recovery looks like when an agent mid-run hits a bad LLM response vs. a process crash.
  • neya 1 day ago
    Love this! The timing couldn't be more perfect. I had to write my agent framework with a mix of gen servers and Oban. It's honestly a pain to deal with. This looks like it will really remove a lot of pain for development. Thank you so much!
  • sbuttgereit 1 day ago
    Is this anything similar at all to:

    https://github.com/openai/symphony

    I'm not very familiar with the space, I follow Elixir goings on more than some of the AI stuff.

    It is curious... and refreshing... to see Elixir & the BEAM popping up for these sorts of orchestration type workloads.

    • mikehostetler 1 day ago
      It’s great to see OpenAI embracing Elixir - symphony is a direct implementation of the types of things Jido can do!
  • klocksib 1 day ago
    The site seems to be getting hugged to death, here's the archive.org backup:

    https://web.archive.org/web/20260305161030/https://jido.run/

    • mikehostetler 1 day ago
      This is now my personal shame for the next two weeks ... good problems, but ya - wow - I was unprepared
    • memco 1 day ago
      Not sure if related, but the page loads fine and then after a few seconds refreshes into a 404. I gave up trying to read the article.
      • brabel 1 day ago
        For me it just seems to keep refreshing for no reason so the page keeps jumping around. Also had to give up.
  • maxekman 1 day ago
    Thanks for sharing! I’ll definitely check it out.

    I just LLM-built an A2A package which is a GenServer-like abstraction. I however missed that there already was another A2A implementation for Elixir. Anyway, I decided to leave it up because the package semantics were different enough. Here it is if anyone is interested: https://github.com/actioncard/a2a-elixir

  • mjdecour 1 day ago
    I've been following this project for several months now and Elixir/BEAM is absolutely perfect for running agents. BEAM is so incredibly lightweight; IFYKYK. Theoretically you could run 1000s of agents on a single server. I'm looking forward to seeing what people who understand this build.
    • mikehostetler 1 day ago
      The core of Jido will run on a Raspberry Pi - we've even had people look at running Agents inside the BEAM where the BEAM is deployed on bare metal (embedded)

      The future is going to be wild

  • davidw 1 day ago
    It'd be cool to see a screenshot of what 'observer' shows as the process tree with a few agents active.

    Edit: for those not familiar with the BEAM ecosystem, observer shows all the running Erlang 'processes' (internal to the VM). Here are some examples screenshots on one of the first Google hits I found:

    https://fly.io/docs/elixir/advanced-guides/connect-observer-...

  • dpe82 1 day ago
    Oh this is timed perfectly - I was just writing my own erlang agent framework but this is much better!
  • malkosta 1 day ago
    How do you ensure security? Does it have a proper container? Otherwise, it's impossible to prevent leaking prod secrets.
    • mikehostetler 1 day ago
      By using Signals and Plugins, all data between agents can be encrypted. I've seen a Jido implementation doing this already.

      It's use-case specific though - security is a much bigger topic then just "agents in containers"

      The point of Jido isn't to solve this directly - it's to give you the tools to solve it for your needs.

  • weeksie 1 day ago
    Very eager to read through your code! I read the first version and incorporated several of its ideas into our own internal elixir agent framework. (We make use of your ReqLLM package, thanks much for that!)

    Congrats on the release!

  • choilive 1 day ago
    Congrats on the front page MH, hard to forget fellow Chicago/midwest entrepreneurs.
  • Noyra-X 20 hours ago
    The point mikehostetler makes – 'agents must be architecturally correct WITHOUT LLMs before they can be correct WITH LLMs' – is underappreciated in most production deployments. We see this constantly: the failure mode isn't model quality, it's undefined operational boundaries and missing human-in-the-loop checkpoints for edge cases. Supervision trees as a first-class design primitive rather than an afterthought seems exactly right. What's your experience with teams that skip the architectural correctness step and go straight to LLM integration?
    • mikehostetler 17 hours ago
      I don't have a good answer - I've seen a lot of agent deployments but the space is evolving quickly and it's difficult to meaningfully discuss patterns.

      This will be solved - and I hope that Jido can be a meaningful participant in that wider conversation.

  • travisgriggs 1 day ago
    Meta curiosity… would OP care to comment on what role agents/LLMs played in crafting this library?
    • mikehostetler 1 day ago
      The original version where I laid down the overall patterns was all hand coded. This was mid 2024.

      I used Claude to learn & refine the patterns, but it couldn’t write this level of OTP code at that time.

      As models got better, I used them to find bugs and simplify - but the bones are roughly the same from that original design.

  • _pdp_ 1 day ago
    cool

    Although... the agent orchestration is really the easy part. It is just a loop. You can solve this in many different ways and yes some languages are more suitable for this than others. But still - very straightforward.

    The hard part is making sure these agents can do useful things which requires connecting them to tools. Although just adding bash might seem like checking that box the reality is more complex when it comes to authentication (not only). It is even more problematic when you need to run this in some sort of distributed way where you need to inject context midway, abort or pause and do so with all the constraints in mind like timing issues for minted urls and tokens, etc. Btw, adding messages to the context while LLM is doing some other job (which you might want to do for all kinds of reasons) does not always work because the system is not deterministic. So you need to solve this somehow.

    Even harder is coming up with useful ways to apply the technology. The technical side of things can be solved with good engineering but most of the applications of these agents are around pretty basic use-cases and the adoption is sort of stagnated. 99% of these agents are question/answer bots, task/calendar organisers, something to do with spam and the most useful one is coding assistants.

    And so frankly I think the framework is irrelevant at this point unless one figures out how to do useful things.

    • mikehostetler 17 hours ago
      Not sure if this will surprise you - but I 100% agree with this. I went through the journey that many others did - implementing the loop, then trying to make it useful, realizing the limitations, etc.

      I came to similar conclusions - what does valuable agentic software look like? It's not OpenClaw (yet)

      The game theory then, in my opinion, is to focus on the knowable frontier - implement tools we can trust - and continue working and sharing that work.

      I am holding onto the optimistic case - valuable use cases beyond coding agents will emerge.

  • carverauto 1 day ago
    Going to give it a shot this weekend
  • cpursley 1 day ago
    Jido is fantastic. A friend and I have been working on an OpenClaw type of tool in Elixir with Jido if anyone wants to check it out:

    https://github.com/agoodway/goodwizard

  • wingrammer 1 day ago
    Hey I'd love to talk to people using this amazing framework!
    • mikehostetler 1 day ago
      Join our Discord - link is in the site footer

      There’s a growing community showcase and I have a list of private/commercial references as well depending on your goals

  • enraged_camel 1 day ago
    Where does this stand in relation to LangChain? https://github.com/brainlid/langchain

    (Probably complimentary but wanted to check)

    • mikehostetler 1 day ago
      Jido originally used Langchain for LLM calls - but it wasn't a fit so I built an entire LLM client package to work with Jido called ReqLLM

      https://hex.pm/packages/req_llm

      ReqLLM is baked into the heart of Jido now - we don't support anything else

      • cpursley 1 day ago
        ReqLLM is a key part of my stack, thank you for making it!
    • neya 1 day ago
      Elixir has a LangChain implementation by the same name. And in my opinion as a user of both, the Python version and the Elixir version, the Elixir version is vastly superior and reliable too.

      This agentic framework can co-exist with LangChain if that's what you're wondering.

      https://github.com/brainlid/langchain

    • mmcclure 1 day ago
      I went down this path a bit the other night, curious what OP's answer is. My mental model was that they could be complimentary? Jido for agent lifecycle, supervision, state management, etc, LangChain for the LLM interactions, prompt chains, RAG, etc. Looks like you could do everything in Jido 2.0, but if you like/are familiar with LangChain it seems like they could work well together.
      • mikehostetler 1 day ago
        See my other comment, but Jido 1.0 used (Elixir) Langchain

        As LLM API's evolved, I needed more and built ReqLLM which is now embedded deeply into Jido.

  • waynesonfire 1 day ago
    Legit question, am I missing anything not playing with agents? Like, what's the killer-app feature vs chatgpt prompt?
    • edg5000 1 day ago
      Its an order of magnitude difference in what it can do, mostly because it can verify its own work. It can also use subagents which helps a lot. Large tasks I usually have done by subs with the main agent directing. This means the task they can take on can be much larger.
      • ralphc 5 hours ago
        I'm in the same boat as waynesonfire and I'm afraid this doesn't answer the question sufficiently. What do you do with an agent? What's a concrete example vs. typing in a chat box.
  • jdmadrigal95 13 hours ago
    Hi Mike,

    I am an amateur, can you point me in the correct direction to understand BEAM and use JIDO 2.0 to start building? Please.

    Thanks, Jose

  • desireco42 1 day ago
    Huh... excellent timing. I am working on a project that currently is handling this with bunch od npm tasks :)(I know), but it works.

    Sidian Sidekicks, Obsidian vault reviewer agents.

    I think Jido will be prefect for us and will help us organize and streamline not just our agent interactions but make them more clear, what is happening and which agent is doing what.

    And on top of that, I get excuse to include Elixir in this project.

    Thanks for shipping.

  • whalesalad 1 day ago
    oh no did HN traffic defeat OTP
  • bhekanik 1 day ago
    [flagged]
    • mikehostetler 1 day ago
      Thank you!

      Agree on operational boundaries - it took a long time to land where we did with the 2.0 release

      Too much to say about this in a comment, but take a look at the "Concepts: Executor" section - it digs into the model here

  • octoclaw 1 day ago
    [dead]
  • jeff_antseed 22 hours ago
    [dead]
  • moehj 1 day ago
    [flagged]
  • DmitryGrankin 1 day ago
    [flagged]
    • mikehostetler 1 day ago
      Yep - BEAM has great support for audio workloads - would love to chat
      • Jtsummers 1 day ago
        GP is just spamming a bunch of threads with comments about their product. They aren't actually here for the discussion, check their comment history.
  • rvz 1 day ago
    Let me guess, in the next 6 months, Elixir and Erlang becoming fashionable to build AI agents and then another hype cycle of AI usage and marketing of Elixir.

    What's old is now rebranded, reheated and new again.

    • neya 1 day ago
      Elixir has always been fashionable to build high performance systems in. In fact, it is more suited for AI applications than any other language or framework because of the BEAM architecture and the flexibility of the language itself. I wish more people gave it a chance. You get insane performance at your fingertips with so much scalability out of the box and your code by default is less error prone compared to dynamic languages.
    • hrmtst93837 18 hours ago
      BEAM offers concrete benefits for agent frameworks: cheap preemptible processes, OTP behaviors like GenServer and Supervisor, ETS or Mnesia for fast state, and clustering tools that make managing thousands of stateful agents and restarts tractable.

      The tradeoff is heavy ML still lives in Python and on GPUs, so run models as external services over gRPC or HTTP or use Nx with EXLA for smaller on-node work, and if you need native speed use Rustler NIFs or ports but never block the BEAM scheduler or the node will grind to a halt.

  • StevenNunez 1 day ago
    A library I'm excited to not vibecode against!