{"by":"matiasmolinas","descendants":37,"id":43310963,"kids":[43447280,43312883,43313495,43311949,43315252,43379110,43312064,43332884,43312864,43318824,43312639,43312485,43312182,43311993,43353941,43343835,43332819,43312249,43310964],"score":139,"text":"Hey HN,<p>I&#x27;ve been working on an open-source framework for creating AI agents that evolve, communicate, and collaborate to solve complex tasks. The Evolving Agents Framework allows agents to:<p>Reuse, evolve, or create new agents dynamically based on semantic similarity\nCommunicate and delegate tasks to other specialized agents\nContinuously improve by learning from past executions\nDefine workflows in YAML, making it easy to orchestrate agent interactions\nSearch for relevant tools and agents using OpenAI embeddings\nSupport multiple AI frameworks (BeeAI, etc.)\nCurrent Status &amp; Roadmap\n This is still a draft and a proof of concept (POC). Right now, I’m focused on validating it in real-world scenarios to refine and improve it.<p>Next week, I&#x27;m adding a new feature to make it useful for distributed multi-agent systems. This will allow agents to work across different environments, improving scalability and coordination.<p>Why?\nMost agent-based AI frameworks today require manual orchestration. This project takes a different approach by allowing agents to decide and adapt based on the task at hand. Instead of always creating new agents, it determines if existing ones can be reused or evolved.<p>Example Use Case:\nLet’s say you need an invoice analysis agent. Instead of manually configuring one, our framework:\n Checks if a similar agent exists (e.g., a document analyzer)\n Decides whether to reuse, evolve, or create a new agent\n Runs the best agent and returns the extracted information<p>Here&#x27;s a simple example in Python:<p>import asyncio\nfrom evolving_agents.smart_library.smart_library import SmartLibrary\nfrom evolving_agents.core.llm_service import LLMService\nfrom evolving_agents.core.system_agent import SystemAgent<p>async def main():\n    library = SmartLibrary(&quot;agent_library.json&quot;)\n    llm = LLMService(provider=&quot;openai&quot;, model=&quot;gpt-4o&quot;)\n    system = SystemAgent(library, llm)<p><pre><code>    result = await system.decide_and_act(\n        request=&quot;I need an agent that can analyze invoices and extract the total amount&quot;,\n        domain=&quot;document_processing&quot;,\n        record_type=&quot;AGENT&quot;\n    )\n\n    print(f&quot;Decision: {result[&#x27;action&#x27;]}&quot;)  # &#x27;reuse&#x27;, &#x27;evolve&#x27;, or &#x27;create&#x27;\n    print(f&quot;Agent: {result[&#x27;record&#x27;][&#x27;name&#x27;]}&quot;)\n</code></pre>\nif __name__ == &quot;__main__&quot;:\n    asyncio.run(main())<p>Next Steps\nValidating in real-world use cases and improving agent evolution strategies\nAdding distributed multi-agent support for better scalability\nFull integration with BeeAI Agent Communication Protocol (ACP)\nBetter visualization tools for debugging\nWould love feedback from the HN community! What features would you like to see?<p>Repo: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;matiasmolinas&#x2F;evolving-agents\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;matiasmolinas&#x2F;evolving-agents</a>","time":1741539119,"title":"Show HN: Evolving Agents Framework","type":"story","url":"https://github.com/matiasmolinas/evolving-agents"}