以图形方式编程来协调数千个代理和利器
在依赖图中对 Codex、Claude、Kimi 和 Pi 代理进行编排,支持并行扩散、迭代循环和在本地 Docker、SSH、EC2 或 ECS 目标上执行。 已编写的演员节点、明确的代理配置文件、可保证凭证安全的 Docker 准备 Harbor Terminus 2 适配器在文档中进行了描述 角色和配置文件。
一行:
curl -fsSL https://raw.githubusercontent.com/shouc/agentflow/master/install.sh | bash此操作将安装 agentflow,将其添加到 PATH 中,并为 Codex 和 Claude Code 安装技能。 或者手动:
python3 -m venv .venv && . .venv/bin/activate
pip install -e .[dev]from agentflow import Graph, codex, claude
with Graph("my-pipeline", concurrency=3) as g:
plan = codex(task_id="plan", prompt="Inspect the repo and plan the work.", tools="read_only")
impl = claude(task_id="impl", prompt="Implement the plan:\n{{ nodes.plan.output }}", tools="read_write")
review = codex(task_id="review", prompt="Review:\n{{ nodes.impl.output }}")
plan >> impl >> review
print(g.to_json())agentflow run pipeline.py --output summary或者直接向 Codex 询问 (agentflow 技能会自动安装):
暂无开放 Issues,或尚未同步最近议题。