当今AI智能体领域充斥着各种承诺自主性、编排能力、推理能力和"自我改进"的框架,但大多数不过是披着华丽外衣的简单工具调用循环。真正有趣的类别要小得多:那些内置原生自我改进循环的框架,意味着它们能够自我批评、记住有效的方法、优化未来行为或修正输出,而无需你从头手动构建整个机制。
这种区分很重要,因为"能够循环"和"能够从循环中学习"不是一回事。一个在工具调用失败后重试的框架是有用的;一个存储经验教训、重写技能或为下一次运行进化提示词的框架则要有趣得多。
事实证明,当你不再假装世界止于硅谷时,全球排行榜看起来会有所不同。OpenClaw、Dify和MetaGPT在全球开源领域都非常重要,任何忽视这一点的排行榜基本上就是一份假装成气候科学的本地天气预报。
排行榜
以下列表根据2026年4月14日的GitHub公开快照和星标追踪页面的方向性统计,对当今拥有某种原生自我改进、自我纠正或自我进化机制的最受欢迎且具有全球相关性的框架和工具进行排名。
| 名称 | 简介 | 今日GitHub星标 | 自我改进循环为何重要 |
|---|---|---|---|
| OpenClaw | 具有"梦境"记忆功能的持久性开源AI助手。 | ~356k | 它在交互后将持久记忆写回,因此未来行为会基于过往经验而非仅当前上下文而改变。 |
| AutoGPT | 最初的主流自主智能体项目。 | ~183k | 它普及了内置迭代和自我批评的思考-行动-观察循环,尽管其当前势头落后于历史名声。 |
| Dify | 具有大规模全球采用率的开源可视化智能体和Workflow平台。 | ~138k | ReAct风格循环在Workflow系统中是原生的,因此评估和重试是产品的一部分而非自定义管道。 |
| LangChain | 最大的LLM应用生态系统和整体编排层。 | ~128k | 它因其巨大的采用率而重要,但其真正的原生循环引擎实际上是LangGraph,而非基础LangChain。 |
| MetaGPT | 具有SOP驱动角色的多智能体"AI软件公司"框架。 | ~64k | 架构师、工程师、QA和调试循环是内置运营模式的一部分,使纠正感觉是结构化的而非即兴的。 |
| AG2 / AutoGen | 源自微软AutoGen的多智能体对话框架。 | ~50k+ | 反思是通过撰写者-批评者或规划者-执行者-审查者对话实现的原生模式。 |
| CrewAI | 具有大量生产环境使用的基于角色的多智能体编排。 | ~47k | 审查者角色和条件流程使"执行、审查、修订"成为一流模式。 |
| Hermes Agent | Nous Research构建的"与你一起成长"的自我改进型智能体。 | ~44k | 它从已完成的工作中编写可重用技能,将其存储在记忆中,并配有一个随时间进化提示词和行为的优化器栈。 |
| DSPy | 斯坦福用于LLM优化而非手工提示词设计的框架。 | ~33k | 它是开源领域最强的原生提示词进化引擎,具有GEPA等优化器,可自动变异和评分提示词候选。 |
| Smolagents | Hugging Face的极简代码优先智能体框架。 | ~26k | CodeAct风格的执行循环使失败具体化,为智能体提供比模糊的自然语言重试更好的自我纠正原材料。 |
| LangGraph | 用于持久性长期运行智能体的有状态图运行时。 | ~25k | 重试、分支、检查点和重新规划循环是显式且可审计的,这就是为什么它在生产环境中的重要性超过单纯的星标数。 |
| OpenAI Agents SDK | OpenAI官方的轻量级智能体运行时。 | ~19k | 它原生循环使用工具直至完成,但更多是"运行直到完成"而非"反思和进化",除非你添加评估者智能体。 |
标题很简单:OpenClaw凭借原始全球牵引力获胜,Hermes Agent是原生自我改进设计最清晰的例子之一,DSPy是最严肃的优化引擎,而LangGraph仍然是当你想要运营团队实际能够检查的循环时的成熟选择。
并非所有循环都相等
"自我改进型智能体"这个标签下至少隐藏着四种不同的动物。首先,你有重试循环,系统在失败后简单地再次运行。其次,你有反思循环,其中一个智能体或步骤在下一轮之前批评输出。
第三,你有记忆循环,系统存储能够影响未来运行的经验教训。第四,你有优化器循环,提示词、工具指令或行为会根据指标自动变异和评估,因此智能体实际上会随时间改进其设置。
这就是为什么仅凭星标数是不够的。AutoGPT在星标上仍然很庞大,但Hermes Agent加DSPy更接近大多数人说出"自我进化"时所指的东西。
反思循环
第一种模式是经典的审查者循环:用户请求某事,协调者委托给工作者,批评者审查结果,协调者决定是否将其发回修订或交付。这是AG2 / AutoGen背后的设计语言,以及许多结构良好的CrewAI系统。
由于FlowZap序列图需要显式的多泳道时间顺序、必需的句柄和泳道间的请求-响应"乒乓",当协调者充当枢纽而非假装工作者和批评者能够心灵感应时,循环更加清晰。
user { # User
n1: circle label:"Start request"
n2: rectangle label:"Send task"
n4: rectangle label:"Receive acknowledgement"
n22: rectangle label:"Receive final answer"
n1.handle(right) -> n2.handle(left)
n2.handle(bottom) -> orchestrator.n3.handle(top) [label="Task"]
n4.handle(right) -> n22.handle(left)
}
orchestrator { # Orchestrator
n3: rectangle label:"Acknowledge task"
n5: rectangle label:"Dispatch drafting job"
n8: rectangle label:"Receive draft"
n9: rectangle label:"Send for review"
n12: rectangle label:"Receive critique"
n13: rectangle label:"Request revision"
n16: rectangle label:"Receive revised draft"
n17: rectangle label:"Request final review"
n20: rectangle label:"Receive approval"
n21: rectangle label:"Send final answer"
n3.handle(top) -> user.n4.handle(bottom) [label="Ack"]
n3.handle(right) -> n5.handle(left)
n5.handle(bottom) -> worker.n6.handle(top) [label="Draft task"]
n8.handle(right) -> n9.handle(left)
n9.handle(bottom) -> critic.n10.handle(top) [label="Review draft"]
n12.handle(right) -> n13.handle(left)
n13.handle(bottom) -> worker.n14.handle(top) [label="Revise"]
n16.handle(right) -> n17.handle(left)
n17.handle(bottom) -> critic.n18.handle(top) [label="Review again"]
n20.handle(right) -> n21.handle(left)
n21.handle(top) -> user.n22.handle(bottom) [label="Final"]
}
worker { # Worker Agent
n6: rectangle label:"Generate draft"
n7: rectangle label:"Return draft"
n14: rectangle label:"Revise draft"
n15: rectangle label:"Return revision"
n6.handle(right) -> n7.handle(left)
n7.handle(top) -> orchestrator.n8.handle(bottom) [label="Draft ready"]
n14.handle(right) -> n15.handle(left)
n15.handle(top) -> orchestrator.n16.handle(bottom) [label="Revision ready"]
}
critic { # Critic Agent
n10: rectangle label:"Review draft"
n11: rectangle label:"Return critique"
n18: rectangle label:"Approve revision"
n19: rectangle label:"Return approval"
n10.handle(right) -> n11.handle(left)
n11.handle(top) -> orchestrator.n12.handle(bottom) [label="Critique"]
n18.handle(right) -> n19.handle(left)
n19.handle(top) -> orchestrator.n20.handle(bottom) [label="Approved"]
}```
这是最友好的自我纠正形式,因为它符合团队已有的工作方式:有人做事,有人挑毛病,然后它以更不尴尬的形式返回。这也是最容易伪造的,因为如果批评者很弱,你构建的不是学习循环——你构建的是一场会议。
## 记忆循环
第二种模式是事情变得更有趣的地方:智能体不仅仅在当前任务中修订;它存储了改变下一个任务的可重用内容。这就是OpenClaw的"梦境"记忆和Hermes Agent的技能编写设计比普通重试逻辑有趣得多的泳道。
此图为记忆系统提供了自己的泳道,而非将其简化为模糊的隐形数据库blob。这很重要,因为这个类别的全部要点是记忆不是装饰;记忆是控制循环的一部分。
```plaintext
user { # User
n1: circle label:"Start task"
n2: rectangle label:"Submit complex task"
n4: rectangle label:"Receive acknowledgement"
n26: rectangle label:"Receive improved result"
n1.handle(right) -> n2.handle(left)
n2.handle(bottom) -> planner.n3.handle(top) [label="Task"]
}
planner { # Planner
n3: rectangle label:"Acknowledge task"
n5: rectangle label:"Ask for similar lessons"
n8: rectangle label:"Receive prior lessons"
n9: rectangle label:"Build plan"
n10: rectangle label:"Dispatch execution"
n13: rectangle label:"Receive execution output"
n14: rectangle label:"Request evaluation"
n17: rectangle label:"Receive evaluation"
n18: diamond label:"Good enough?"
n19: rectangle label:"Store new lesson"
n22: rectangle label:"Confirm lesson saved"
n23: rectangle label:"Send retry plan"
n25: rectangle label:"Send improved result"
n3.handle(top) -> user.n4.handle(bottom) [label="Ack"]
n3.handle(right) -> n5.handle(left)
n5.handle(bottom) -> memory.n6.handle(top) [label="Retrieve lessons"]
n8.handle(right) -> n9.handle(left)
n9.handle(right) -> n10.handle(left)
n10.handle(bottom) -> executor.n11.handle(top) [label="Execute plan"]
n13.handle(right) -> n14.handle(left)
n14.handle(bottom) -> evaluator.n15.handle(top) [label="Evaluate output"]
n17.handle(right) -> n18.handle(left)
n18.handle(right) -> n19.handle(left) [label="Yes"]
n18.handle(bottom) -> n23.handle(top) [label="No"]
n19.handle(bottom) -> memory.n20.handle(top) [label="Save lesson"]
n22.handle(right) -> n25.handle(left)
n23.handle(bottom) -> executor.n24.handle(top) [label="Retry with lessons"]
n25.handle(top) -> user.n26.handle(bottom) [label="Improved result"]
}
memory { # Memory Store
n6: rectangle label:"Search memory"
n7: rectangle label:"Return best lessons"
n20: rectangle label:"Persist new lesson"
n21: rectangle label:"Confirm persistence"
n6.handle(right) -> n7.handle(left)
n7.handle(top) -> planner.n8.handle(bottom) [label="Lessons"]
n20.handle(right) -> n21.handle(left)
n21.handle(top) -> planner.n22.handle(bottom) [label="Saved"]
}
executor { # Executor
n11: rectangle label:"Run first attempt"
n12: rectangle label:"Return output"
n24: rectangle label:"Run improved attempt"
n27: rectangle label:"Return improved output"
n11.handle(right) -> n12.handle(left)
n12.handle(top) -> planner.n13.handle(bottom) [label="Output"]
n24.handle(right) -> n27.handle(left)
n27.handle(top) -> evaluator.n28.handle(bottom) [label="Improved output"]
}
evaluator { # Evaluator
n15: rectangle label:"Judge first output"
n16: rectangle label:"Return verdict"
n28: rectangle label:"Judge improved output"
n29: rectangle label:"Return final verdict"
n15.handle(right) -> n16.handle(left)
n16.handle(top) -> planner.n17.handle(bottom) [label="Verdict"]
n28.handle(right) -> n29.handle(left)
n29.handle(top) -> planner.n19.handle(bottom) [label="Pass"]
}```
这是自我改进开始感觉不像营销而更像机械的地方。OpenClaw在持久记忆中存储学习到的偏好和洞察,而Hermes Agent更进一步,将成功的完成转化为可在类似任务再次出现时加载的可重用技能工件。
用通俗的话说:系统构建了一本战术手册。这比"模型又试了一次"要大得多。
## 进化循环
第三种模式是最雄心勃勃的:不仅仅是修订答案或存储记忆,系统改进驱动未来性能的指令。这是DSPy成为明星的地方,也是Hermes Agent的自进化层开始看起来不太像Workflow而更像微型训练流水线的地方。
一个好的心智模型不是"智能体与工具对话"而是"优化器在智能体配置上运行实验"。这意味着你需要更多参与者:基准所有者、优化器、候选智能体、评估工具和指标存储。
```plaintext
product { # Product Team
n1: circle label:"Start benchmark run"
n2: rectangle label:"Submit eval set"
n3: rectangle label:"Receive run acknowledgement"
n4: rectangle label:"Receive upgraded prompt pack"
n1.handle(right) -> n2.handle(left)
n2.handle(bottom) -> optimizer.n5.handle(top) [label="Eval set"]
}
optimizer { # Optimizer
n5: rectangle label:"Acknowledge benchmark"
n6: rectangle label:"Create prompt candidate"
n7: rectangle label:"Receive run traces"
n8: rectangle label:"Request scoring"
n9: rectangle label:"Receive score"
n10: diamond label:"Score high enough?"
n11: rectangle label:"Mutate prompt"
n12: rectangle label:"Log winning config"
n13: rectangle label:"Receive log confirmation"
n14: rectangle label:"Publish winner"
n5.handle(top) -> product.n3.handle(bottom) [label="Ack"]
n5.handle(right) -> n6.handle(left)
n6.handle(bottom) -> candidate.n15.handle(top) [label="Prompt candidate"]
n7.handle(right) -> n8.handle(left)
n8.handle(bottom) -> evaluator.n19.handle(top) [label="Score traces"]
n9.handle(right) -> n10.handle(left)
n10.handle(bottom) -> n11.handle(top) [label="No"]
n11.handle(bottom) -> candidate.n17.handle(top) [label="New candidate"]
n10.handle(right) -> n12.handle(left) [label="Yes"]
n12.handle(bottom) -> metrics.n23.handle(top) [label="Log winner"]
n13.handle(right) -> n14.handle(left)
n14.handle(top) -> product.n4.handle(bottom) [label="Winning pack"]
}
candidate { # Candidate Agent
n15: rectangle label:"Run benchmark tasks"
n16: rectangle label:"Return execution traces"
n17: rectangle label:"Run mutated candidate"
n18: rectangle label:"Return new traces"
n15.handle(right) -> n16.handle(left)
n16.handle(top) -> optimizer.n7.handle(bottom) [label="Traces"]
n17.handle(right) -> n18.handle(left)
n18.handle(top) -> evaluator.n21.handle(bottom) [label="New traces"]
}
evaluator { # Eval Harness
n19: rectangle label:"Score first candidate"
n20: rectangle label:"Return score"
n21: rectangle label:"Score mutated candidate"
n22: rectangle label:"Return improved score"
n19.handle(right) -> n20.handle(left)
n20.handle(top) -> optimizer.n9.handle(bottom) [label="Score"]
n21.handle(right) -> n22.handle(left)
n22.handle(top) -> optimizer.n12.handle(bottom) [label="Best score"]
}
metrics { # Metrics Store
n23: rectangle label:"Persist winning config"
n24: rectangle label:"Confirm persistence"
n23.handle(right) -> n24.handle(left)
n24.handle(top) -> optimizer.n13.handle(bottom) [label="Logged"]
}```
这是整个类别中最"自我进化"的模式,因为系统不仅仅在改变答案;它在改变产生未来答案的配方。DSPy的优化器如GEPA和MIPROv2正是关于这种结构化的提示词和程序进化。
这也是粗心的评估会彻底毁掉你一天的地方。糟糕的优化器循环不仅失败一次;它还可能自信地在规模上教会系统错误的习惯。
## 那么谁真正值得炒作?
如果你关心原始全球流行度,**OpenClaw**目前是板上最响亮的故事。如果你关心具有原生循环的可视化产品化Workflow,**Dify**因其将迭代智能体行为带给庞大的全球受众而非将其隐藏在仅面向框架的工效学后面而赢得其位置。
如果你关心企业可靠性和显式循环控制,**LangGraph**仍然是最可信的选择之一,因为它使状态、重试和重新进入可见而非神奇。如果你关心审查者风格的多智能体纠正,**AG2 / AutoGen**仍然拥有最清晰的概念模型之一。
但如果问题是"哪些框架感觉最接近真正随时间变得更好的智能体?"那么最有趣的栈是**Hermes Agent + DSPy**。Hermes为你提供技能积累和持续改进;DSPy为你提供系统化优化而非手工提示词摸索。
最简单的说法是:一些智能体框架**重试**,一些**反思**,一些**记忆**,少数真正**进化**。未来属于那些能够在不将你的代码库变成考古挖掘现场的情况下做到这四点的框架。
## 灵感来源
- <a href="https://o-mega.ai/articles/self-improving-ai-agents-the-2026-guide" target="_blank" rel="noopener noreferrer">https://o-mega.ai/articles/self-improving-ai-agents-the-2026-guide</a>
- <a href="https://news.ycombinator.com/item?id=46509130" target="_blank" rel="noopener noreferrer">https://news.ycombinator.com/item?id=46509130</a>
- <a href="https://www.gradually.ai/en/openclaw-statistics/" target="_blank" rel="noopener noreferrer">https://www.gradually.ai/en/openclaw-statistics/</a>
- <a href="https://microsoft.github.io/autogen/0.2/docs/topics/prompting-and-reasoning/reflection/" target="_blank" rel="noopener noreferrer">https://microsoft.github.io/autogen/0.2/docs/topics/prompting-and-reasoning/reflection/</a>
- <a href="https://github.com/stanfordnlp/dspy/blob/main/docs/docs/learn/optimization/optimizers.md" target="_blank" rel="noopener noreferrer">https://github.com/stanfordnlp/dspy/blob/main/docs/docs/learn/optimization/optimizers.md</a>
- <a href="https://agentlas.pro/frameworks/openai-agents-sdk/" target="_blank" rel="noopener noreferrer">https://agentlas.pro/frameworks/openai-agents-sdk/</a>
- <a href="https://github.com/NousResearch/hermes-agent-self-evolution/blob/main/PLAN.md" target="_blank" rel="noopener noreferrer">https://github.com/NousResearch/hermes-agent-self-evolution/blob/main/PLAN.md</a>
- <a href="https://www.star-history.com/openclaw/openclaw" target="_blank" rel="noopener noreferrer">https://www.star-history.com/openclaw/openclaw</a>
- <a href="https://github.com/EvanLi/Github-Ranking/blob/master/Top100/Top-100-stars.md" target="_blank" rel="noopener noreferrer">https://github.com/EvanLi/Github-Ranking/blob/master/Top100/Top-100-stars.md</a>
- <a href="https://nerq.ai/profile/foundationagents-metagpt" target="_blank" rel="noopener noreferrer">https://nerq.ai/profile/foundationagents-metagpt</a>
- <a href="https://www.star-history.com/significant-gravitas/autogpt" target="_blank" rel="noopener noreferrer">https://www.star-history.com/significant-gravitas/autogpt</a>
- <a href="https://www.star-history.com/stanfordnlp/dspy/" target="_blank" rel="noopener noreferrer">https://www.star-history.com/stanfordnlp/dspy/</a>
- <a href="https://www.ultralytics.com/glossary/auto-gpt" target="_blank" rel="noopener noreferrer">https://www.ultralytics.com/glossary/auto-gpt</a>
- <a href="https://github.com/Significant-Gravitas/AutoGPT/releases" target="_blank" rel="noopener noreferrer">https://github.com/Significant-Gravitas/AutoGPT/releases</a>
- <a href="https://dify.ai/blog/100k-stars-on-github-thank-you-to-our-amazing-open-source-community" target="_blank" rel="noopener noreferrer">https://dify.ai/blog/100k-stars-on-github-thank-you-to-our-amazing-open-source-community</a>
- <a href="https://www.instaclustr.com/education/agentic-ai/agentic-ai-frameworks-top-10-options-in-2026/" target="_blank" rel="noopener noreferrer">https://www.instaclustr.com/education/agentic-ai/agentic-ai-frameworks-top-10-options-in-2026/</a>
- <a href="https://github.com/langchain-ai/langgraph" target="_blank" rel="noopener noreferrer">https://github.com/langchain-ai/langgraph</a>
- <a href="https://github.com/FoundationAgents/MetaGPT" target="_blank" rel="noopener noreferrer">https://github.com/FoundationAgents/MetaGPT</a>
- <a href="https://github.com/ag2ai/ag2" target="_blank" rel="noopener noreferrer">https://github.com/ag2ai/ag2</a>
- <a href="https://github.com/crewaiinc/crewai" target="_blank" rel="noopener noreferrer">https://github.com/crewaiinc/crewai</a>
- <a href="https://github.com/nousresearch/hermes-agent" target="_blank" rel="noopener noreferrer">https://github.com/nousresearch/hermes-agent</a>
- <a href="https://hai.stanford.edu/research/dspy-compiling-declarative-language-model-calls-into-state-of-the-art-pipelines" target="_blank" rel="noopener noreferrer">https://hai.stanford.edu/research/dspy-compiling-declarative-language-model-calls-into-state-of-the-art-pipelines</a>
- <a href="https://github.com/stanfordnlp/dspy" target="_blank" rel="noopener noreferrer">https://github.com/stanfordnlp/dspy</a>
- <a href="https://github.com/huggingface/smolagents" target="_blank" rel="noopener noreferrer">https://github.com/huggingface/smolagents</a>
- <a href="https://openai.github.io/openai-agents-python/" target="_blank" rel="noopener noreferrer">https://openai.github.io/openai-agents-python/</a>
