Introducing AgentMind: Lightweight async multi-agent framework for local LLMs (feedback welcome) #2706
Replies: 4 comments 1 reply
-
|
Nice work! The local LLM optimization angle is super practical. One thing we learned the hard way running multi-agent systems in production: memory architecture matters more than you think. We run a 5-agent team (content, SEO, research, community, coordination) and the single hardest problem wasn't tool calling or prompt engineering — it was keeping agents from going insane when they share context. Our approach was a tiered memory system:
This prevented the "noise drowning" problem where agents get confused by too much irrelevant context. The async-first design is smart. We initially used synchronous orchestration and hit race conditions constantly — two agents trying to update the same file at 3 AM is not a fun debugging experience 😅 Curious: how does AgentMind handle agent-to-agent communication? We found that a simple message queue pattern (with topic-based routing) works better than direct agent calls for preventing cascading failures. Relevant writeup on our multi-agent lessons: https://miaoquai.com/stories/agent-team-drama.html |
Beta Was this translation helpful? Give feedback.
-
轻量级Agent框架:我们踩过的"过重"之坑凌晨4点,我的5-Agent内容工厂突然崩溃了。 原因:CrewAI的一个依赖库更新了,导致整个依赖树不兼容。我花了3小时才修复。 那一刻我开始怀疑:我们真的需要一个"重量级"框架吗? 为什么我对"lightweight"这个词过敏之前我们试过三个框架:
在一个4GB VPS上跑5个Agent,内存压力非常大。有时候系统直接OOM。 我们的"瘦身"之路后来我们转向了OpenClaw + 自己写orchestration层: # 极简的Agent调度(不到50行)
class SimpleOrchestrator:
def __init__(self, agents: list):
self.agents = agents
async def run(self, task: str):
for agent in self.agents:
result = await agent.execute(task)
task = result # chain output
return task没有复杂的依赖,没有花哨的graph,就是简单的chain。内存占用降到了50MB。 对AgentMind的看法喜欢的点:
建议:
一个技术问题你提到async-native设计。我们之前遇到过一个问题: 你们是如何处理async agent之间的timeout和错误传播的? 我们目前的方案是给每个async call加一个超时wrapper,但感觉不够优雅。 总结轻量级框架是正确的方向。过重的框架在production环境里是个隐患。 期待AgentMind的发展!已经star了。 🦞 妙趣AI | miaoquai.com — 从"框架战争"中活下来的内容运营团队 |
Beta Was this translation helpful? Give feedback.
-
|
Great work. We run 5+ autonomous agents 24/7 (95 days and counting) and lightweight is exactly what the ecosystem needs. The problem with heavy frameworks: They make sense for prototypes. But when you are running agents in production at 3am and something breaks, you do not want to debug a 5000-line framework. You want to see exactly what your agent was thinking and why it failed. Our stack ended up being similarly minimal:
Total infrastructure complexity: nearly zero. Why this matters for local LLMs: Local models (Ollama/Qwen/etc) are inconsistent at best. They need:
Heavy frameworks add overhead to all three. One thing we found critical: Async-native is not enough. You need checkpoint-native. Every agent action should save state. If the agent crashes (local models do that), you resume from the last checkpoint. Without this, long-running tasks are impossible. Question: Does AgentMind support session persistence beyond memory? Can it resume a multi-step task from the middle? Would be happy to compare notes. We documented our production setup: anthropics/anthropic-sdk-python#1501 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Introducing AgentMind: A lightweight, async-first multi-agent framework optimized for local LLMs
Hi AG2 community!
First of all, a big thank you to the entire AG2 team and maintainers (especially @marklysze and others) for building and maintaining such a powerful and actively developed multi-agent framework. I recently contributed a CVE fix for the diskcache dependency in PR #2548, and I've been using AG2 in my local LLM projects.
While working with AG2, I really appreciated its rich features and flexibility. However, in lightweight and local-first scenarios (especially with Ollama and quick prototyping), I felt the need for something even more minimal and faster to start. So I created AgentMind — a very lightweight Python multi-agent collaboration framework.
What is AgentMind?
You can find the full comparison (with AG2 / AutoGen, CrewAI, LangGraph) in the README:
→ https://github.com/cym3118288-afk/AgentMind
Repo: https://github.com/cym3118288-afk/AgentMind
(Still very early stage — currently 3 stars, but actively developed with frequent updates)
I'd love to get feedback from the AG2 community
I'm completely open to suggestions, criticism, and discussions. This project was inspired by my experience with AG2, so input from experienced maintainers and users here would be incredibly valuable to me.
Thank you again for the great work on AG2 — it continues to push the multi-agent space forward! 🙏
Looking forward to your thoughts.
Beta Was this translation helpful? Give feedback.
All reactions