AgentFlow

活跃
GitHub Python MIT

简介

「AgentFlow」是平台型仓库:面向多智能体协作与任务分解,适合复杂工作流与角色分工场景。

核心特性

  • 依赖图编排 codex、claude 和 kimi Agent,支持并行扇出
  • 迭代循环,支持停止条件和自动重试直到满足成功标准
  • 远程执行支持 SSH、EC2 和 ECS Fargate,零配置自动发现
  • Scratchboard 共享内存,用于跨 Agent 状态和上下文传递
  • 从已完成的运行中进化调优 Agent,创建可复用的优化 Agent
  • 多模型支持,通过 Pi 路由到 Anthropic、OpenAI、Groq、本地 Ollama 等

适用场景

💡 多 Agent 代码审查流水线,并行文件分析并合并发现结果
💡 大规模模糊测试,128 分片扇出和批量合并
💡 迭代代码生成,审查-修复循环直到通过质量门控
💡 跨模型辩论和交叉批评,实现稳健的方案验证
💡 远程部署工作流,编排跨 EC2 和 ECS 的 Agent

快速开始

安装:curl -fsSL https://raw.githubusercontent.com/shouc/agentflow/master/install.sh | bash。或:pip install -e .[dev]。快速开始:from agentflow import Graph, codex, claude; with Graph('my-pipeline') as g: plan = codex(task_id='plan', prompt='Plan the work.'); impl = claude(task_id='impl', prompt='Implement: {{nodes.plan.output}}'); plan >> impl.

相关项目