This guide will get you from zero to running your first multi-agent task in about 5 minutes.
Before you begin, make sure you have:
| Requirement | Version | How to Check |
|---|---|---|
| Python | 3.12+ | python --version |
| Git | Any recent version | git --version |
| OpenAI API Key | Required | Get one here |
| Tavily API Key | Optional (recommended) | Free tier available |
Why Tavily? It enables web search capabilities for the Researcher agent. Without it, research tasks won't have access to current information.
git clone https://github.com/Qredence/agentic-fleet.git
cd agentic-fleetWe use uv for fast, reliable Python dependency management:
# Recommended: Use Make (handles everything)
make install
make frontend-install
# Or directly with uv
uv sync📦 Don't have uv installed?
# Install uv first
curl -LsSf https://astral.sh/uv/install.sh | sh
# Then restart your terminal and run
uv sync📦 Prefer pip?
pip install -e .Note: We recommend uv for faster installation and better dependency resolution.
Create a .env file in the project root:
# Required - Get from https://platform.openai.com/api-keys
OPENAI_API_KEY=sk-your-openai-key-here
# Recommended - Get free key from https://tavily.com
TAVILY_API_KEY=tvly-your-tavily-key-hereSecurity Note: Never commit your
.envfile. It's already in.gitignore.
# Run the test suite to verify everything works
make test
# Or run a quick sanity check
uv run agentic-fleet list-agentsYou should see output like:
Available Agents:
• Researcher - Information gathering and web research
• Analyst - Data analysis and computation
• Writer - Content creation and report writing
• Reviewer - Quality assurance and validation
• Coder - Code generation and debugging
• Planner - Task decomposition and orchestration
Let's run your first AgenticFleet task:
agentic-fleet run -m "Write a haiku about artificial intelligence"╔══════════════════════════════════════════════════════════════╗
║ AgenticFleet v0.7.1 ║
╚══════════════════════════════════════════════════════════════╝
📊 Analyzing task...
🔀 Routing to: Writer (delegated mode)
✍️ Writer is working...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Silicon dreams wake,
Patterns dance in neural paths,
Mind of our making.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Quality Score: 8.5/10
⏱️ Completed in 12.3 seconds
Let's break down what AgenticFleet did:
┌─────────────────────────────────────────────────────────────────┐
│ 1. ANALYSIS │
│ "Write a haiku" → Simple creative writing task │
│ Complexity: Low | Skills needed: Writing │
└─────────────────────────────────────────────────────────────────┘
▼
┌─────────────────────────────────────────────────────────────────┐
│ 2. ROUTING │
│ Best agent: Writer (specializes in content creation) │
│ Mode: Delegated (single agent can handle this) │
└─────────────────────────────────────────────────────────────────┘
▼
┌─────────────────────────────────────────────────────────────────┐
│ 3. EXECUTION │
│ Writer receives task → Generates haiku │
└─────────────────────────────────────────────────────────────────┘
▼
┌─────────────────────────────────────────────────────────────────┐
│ 4. QUALITY │
│ Evaluated: Structure ✓ | Theme ✓ | Creativity ✓ │
│ Score: 8.5/10 │
└─────────────────────────────────────────────────────────────────┘
Key insight: AgenticFleet automatically figured out:
- This is a simple writing task
- The Writer agent is the best choice
- No other agents or tools needed
- One agent can handle it (delegated mode)
agentic-fleet run -m "What are the latest breakthroughs in fusion energy?"What happens:
- Routes to Researcher agent (has web search)
- Uses Tavily to find current information
- Returns synthesized findings with sources
🔀 Routing to: Researcher (delegated mode)
🔍 Researcher is searching the web...
🌐 Found 5 relevant sources
agentic-fleet run -m "Calculate the compound interest on $10,000 at 5% annual rate for 10 years"What happens:
- Routes to Analyst agent (has code interpreter)
- Writes and executes Python code
- Returns calculated result
🔀 Routing to: Analyst (delegated mode)
💻 Analyst is running code...
Result: $16,288.95
Formula used: A = P(1 + r)^t
agentic-fleet run -m "Research the top 3 AI companies, analyze their market caps, and write a summary"What happens:
- Routes to Researcher → Analyst → Writer (sequential)
- Each agent builds on the previous output
🔀 Routing: Sequential (Researcher → Analyst → Writer)
📚 Step 1/3: Researcher gathering information...
📊 Step 2/3: Analyst processing data...
✍️ Step 3/3: Writer creating summary...
agentic-fleet run -m "Research current gold prices AND calculate the growth rate over the past year"What happens:
- Routes to Researcher + Analyst (parallel)
- Both work simultaneously
- Results combined at the end
🔀 Routing: Parallel (Researcher || Analyst)
🔄 Running 2 agents in parallel...
└─ Researcher: Searching for gold prices...
└─ Analyst: Calculating growth rate...
✅ Both complete - combining results...
For a richer experience, use the web interface:
# Start both backend and frontend
make devThen open http://localhost:5173 in your browser.
| Feature | Description |
|---|---|
| Chat Interface | Natural conversation with the system |
| Real-time Streaming | Watch agents work in real-time |
| Workflow Visualization | See which agents are active |
| Conversation History | Past conversations persist |
| Agent Activity | Monitor what each agent is doing |
make backend # Backend only (port 8000)
make frontend-dev # Frontend only (port 5173)For programmatic access, use the Python API:
import asyncio
from agentic_fleet.workflows import create_supervisor_workflow
async def main():
# Create the workflow
workflow = await create_supervisor_workflow()
# Run a task
result = await workflow.run(
"Analyze the impact of AI on software development"
)
# Access the results
print(f"Answer: {result['result']}")
print(f"Quality: {result['quality']['score']}/10")
print(f"Agent used: {result['routing']['assigned_to']}")
print(f"Mode: {result['routing']['mode']}")
asyncio.run(main())For real-time updates:
async def stream_example():
workflow = await create_supervisor_workflow()
async for event in workflow.run_stream("Your task here"):
if hasattr(event, 'agent_id'):
print(f"[{event.agent_id}] {event.message.text}")
elif hasattr(event, 'data'):
print(f"Final result: {event.data}")
asyncio.run(stream_example())Every AgenticFleet response includes:
The main output from the task.
How well the output meets the task requirements:
- 9-10: Excellent, comprehensive answer
- 7-8: Good, covers main points
- 5-6: Acceptable, may have gaps
- Below 5: May need refinement
- Agent(s): Who worked on this
- Mode: How they collaborated
- Tools used: Web search, code execution, etc.
How long each phase took.
Add --verbose to see detailed decision-making:
agentic-fleet run -m "Research quantum computing advances" --verboseThis shows:
- DSPy analysis reasoning
- Routing decisions with explanations
- Tool calls and responses
- Quality evaluation details
# Make sure .env exists and has the key
cat .env | grep OPENAI
# If missing, add it
echo "OPENAI_API_KEY=sk-your-key" >> .env# Reinstall in editable mode
uv pip install -e .
# Or use uv sync
uv sync# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# Restart terminal, then
uv syncMake sure you have TAVILY_API_KEY set:
echo "TAVILY_API_KEY=tvly-your-key" >> .envGet a free key at tavily.com.
# Clear DSPy compiled cache
make clear-cache
# Or manually
uv run python -m agentic_fleet.scripts.manage_cache --clear# Run the test suite
make test
# Check configuration
make test-config# Analyze past executions
make analyze-historyYou're now ready to use AgenticFleet! Here's your learning path:
- ✅ You are here: Getting Started
- → Overview - Understand how it works
- → User Guide - Core concepts and features
- → Configuration - Customize behavior
- → Troubleshooting - Solve common issues
- → Architecture - Technical deep-dive
- → DSPy Optimizer Guide - Improve routing
| Task | Command |
|---|---|
| Run a task | agentic-fleet run -m "Your task" |
| Start dev servers | make dev |
| List agents | agentic-fleet list-agents |
| Verbose output | agentic-fleet run -m "Task" --verbose |
| Clear cache | make clear-cache |
| Run tests | make test |
| See history | uv run python -m agentic_fleet.scripts.analyze_history |
If you encounter issues:
- Check Troubleshooting Guide
- Run
make testto verify setup - Check
.var/logs/workflow.logfor errors - Open a GitHub issue with error details
Welcome to AgenticFleet! 🚀