|
| 1 | +<div align="center"> |
| 2 | + |
| 3 | +# 🌌 agent-compose |
| 4 | + |
| 5 | +**The Orchestrator for the Agentic Era.** |
| 6 | + |
| 7 | +🚀 *One YAML. Any Framework. Infinite Scale.* |
| 8 | + |
| 9 | +[](LICENSE) |
| 10 | +[](https://python.org) |
| 11 | +[](https://deepseek.com) |
| 12 | +[]() |
| 13 | + |
| 14 | +--- |
| 15 | + |
| 16 | +**Build multi-agent AI systems like you build infrastructure with Docker Compose.** |
| 17 | +Stop writing brittle orchestration glue code. Define your topology in YAML and ship. |
| 18 | + |
| 19 | +[Quick Start](#-quick-start) • [Why agent-compose?](#-the-philosophy) • [DeepSeek Mastery](#-deepseek-integration) • [Architecture](#-core-architecture) |
| 20 | + |
| 21 | +</div> |
| 22 | + |
| 23 | +--- |
| 24 | + |
| 25 | +## 💎 The Philosophy |
| 26 | + |
| 27 | +Multi-agent development is currently in its "Manual Era." Teams spend 70% of their time writing orchestration logic—handling state, resolving dependencies, and tracking costs. |
| 28 | + |
| 29 | +**agent-compose** brings order to the chaos. It is the first framework-agnostic orchestrator that allows you to mix **LangGraph**, **CrewAI**, and **OpenAI SDK** agents in a single, declarative pipeline. |
| 30 | + |
| 31 | +### **The "Killer Feature": Framework Mixing** |
| 32 | +Prototype an agent in CrewAI, refine another in LangGraph, and keep a simple generating agent as a raw LLM call. **agent-compose** handles the data flow, dependency resolution, and parallel execution. |
| 33 | + |
| 34 | +--- |
| 35 | + |
| 36 | +## ⚡ Quick Start |
| 37 | + |
| 38 | +### **1. Install** |
| 39 | +```bash |
| 40 | +pip install agent-compose[all] |
| 41 | +``` |
| 42 | + |
| 43 | +### **2. Define `agent-compose.yaml`** |
| 44 | +```yaml |
| 45 | +name: executive-research-pipeline |
| 46 | +description: "LangGraph (Research) → CrewAI (Analysis) → DeepSeek (Writing)" |
| 47 | + |
| 48 | +agents: |
| 49 | + researcher: |
| 50 | + framework: langgraph |
| 51 | + model: deepseek-chat |
| 52 | + system_prompt: "Thoroughly research the given topic and extract data points." |
| 53 | + tools: [web_search] |
| 54 | + connects_to: [analyst] |
| 55 | + |
| 56 | + analyst: |
| 57 | + framework: crewai |
| 58 | + role: "Senior Strategic Analyst" |
| 59 | + goal: "Extract competitive insights and second-order effects." |
| 60 | + model: deepseek-chat |
| 61 | + connects_to: [writer] |
| 62 | + |
| 63 | + writer: |
| 64 | + framework: raw |
| 65 | + model: deepseek-chat |
| 66 | + system_prompt: "Transform findings into a C-Suite executive brief." |
| 67 | + output: report.md |
| 68 | +``` |
| 69 | +
|
| 70 | +### **3. Launch** |
| 71 | +```bash |
| 72 | +# Set your key |
| 73 | +export DEEPSEEK_API_KEY="your_api_key" |
| 74 | + |
| 75 | +# Run the pipeline |
| 76 | +agent-compose up --input "The state of AI orchestration in 2026" |
| 77 | +``` |
| 78 | + |
| 79 | +--- |
| 80 | + |
| 81 | +## 🥷 DeepSeek Native Integration |
| 82 | + |
| 83 | +In 2026, **cost-efficiency is the differentiator.** agent-compose is optimized for DeepSeek's high-performance, low-cost reasoning. |
| 84 | + |
| 85 | +- **Unified Billing**: Track per-agent token costs even when mixing providers. |
| 86 | +- **BaseURL Auto-Routing**: Automatically routes to `api.deepseek.com` when a `deepseek-*` model is detected. |
| 87 | +- **Failover Support**: Gracefully fallback from expensive flagship models to DeepSeek if budgets are exceeded. |
| 88 | + |
| 89 | +--- |
| 90 | + |
| 91 | +## 🏗️ Core Architecture (FAANG-Spec) |
| 92 | + |
| 93 | +```mermaid |
| 94 | +graph TD |
| 95 | + CLI["agent-compose CLI"] --> Loader["YAML Loader & Spec Validator"] |
| 96 | + Loader --> DAG["DAG Constructor & Topo-Sort"] |
| 97 | + DAG --> Engine["Async Execution Engine"] |
| 98 | + |
| 99 | + subgraph "Execution Layer (Parallel Dispatch)" |
| 100 | + Engine --> LGraph["LangGraph Engine"] |
| 101 | + Engine --> Crew["CrewAI Engine"] |
| 102 | + Engine --> Direct["Direct/DeepSeek Engine"] |
| 103 | + end |
| 104 | + |
| 105 | + subgraph "Model Providers" |
| 106 | + LGraph --> Providers["OpenAI / Anthropic / DeepSeek"] |
| 107 | + Crew --> Providers |
| 108 | + Direct --> Providers |
| 109 | + end |
| 110 | + |
| 111 | + Providers --> Metrics["Cost & Latency Tracking"] |
| 112 | + Metrics --> Final["Final Output (MD / JSON)"] |
| 113 | +``` |
| 114 | + |
| 115 | +--- |
| 116 | + |
| 117 | +## 🛠️ CLI Reference |
| 118 | + |
| 119 | +| Command | Description | |
| 120 | +| :--- | :--- | |
| 121 | +| `up` | Spin up the entire pipeline (Parallel by default). | |
| 122 | +| `validate` | Perform strict schema validation and cycle detection. | |
| 123 | +| `graph` | Visualize the agent topology in ASCII or Mermaid. | |
| 124 | +| `run <agent>` | Debug a single agent in isolation with custom input. | |
| 125 | +| `costs` | View full token and USD breakdown of the last run. | |
| 126 | + |
| 127 | +--- |
| 128 | + |
| 129 | +## 🤝 Contributing |
| 130 | + |
| 131 | +We welcome senior-level contributions to the core engine. Check [CONTRIBUTING.md](CONTRIBUTING.md) for our engineering standards (Type hints, Pytest coverage, and Architectural clean-code). |
| 132 | + |
| 133 | +--- |
| 134 | + |
| 135 | +<div align="center"> |
| 136 | + |
| 137 | +**[agent-compose](https://github.com/Ismail-2001/agent-compose)** by **Ismail Sajid** |
| 138 | + |
| 139 | +*Write YAML. Ship Agents.* |
| 140 | + |
| 141 | +</div> |
0 commit comments