The AI analyzes your goal and generates optimized agents, tools, and workflows.
Quick Start
agents.yaml
Agent definitions, workflow steps, and optional metadata
tools.py
Custom functions and dynamic variables
How It Works
Options
| Option | Short | Description | Default |
|---|---|---|---|
--output | -o | Output directory | Current directory |
--no-optimize | Skip optimization loop | false | |
--iterations | Max optimization iterations | 3 | |
--threshold | Score threshold to stop | 8.0 | |
--agents | Custom agent definitions | Auto-generated | |
--tools | Custom tools per agent | Auto-selected | |
--agent-types | Agent types (image, audio, etc.) | Auto-detected |
Examples
- Basic
- Research
- Data Processing
- Web Tasks
Create a simple recipe:
Custom Agents and Tools
Define your own agents instead of letting AI decide:- Custom Agents
- Custom Tools
- Agent Types
- Combined
Define agents with roles and goals:
Format Reference
--agents format
--agents format
- Separate agents with
; - Separate properties with
, - Use
=for key-value pairs
--tools format
--tools format
- Separate agents with
; - Separate tools with
,
--agent-types format
--agent-types format
image, audio, video, deep_research, ocr, routerSkip Optimization
For quick prototyping, skip the optimization loop:Custom Optimization
Fine-tune the optimization process:Specialized Agent Types
The AI automatically selects the right agent type based on your goal:ImageAgent
ImageAgent
For image generation tasks (DALL-E, Stable Diffusion)
AudioAgent
AudioAgent
For text-to-speech and speech-to-text
VideoAgent
VideoAgent
For video generation (Sora, Runway)
DeepResearchAgent
DeepResearchAgent
For comprehensive research tasks
OCRAgent
OCRAgent
For text extraction from images/documents
Quality Rules
The AI follows strict quality rules when generating recipes:Environment Variables
Environment Variables
Only includes env vars that are actually used:
OPENAI_API_KEY- Always required (for LLM)TAVILY_API_KEY- Only if usingtavily_searchortavily_extract
Concrete Values in Actions
Concrete Values in Actions
Actions use concrete values, not variables:✅ Good:
"Use wiki_search to find information about Python programming"❌ Bad: "Use wiki_search to find {{topic}}" (variables don’t substitute!)Reliable Tools
Reliable Tools
Prefers reliable, well-tested tools:Recommended:
wiki_search, tavily_search, internet_search, read_file, write_fileSpecific Actions
Specific Actions
Every action specifies which tool to use:✅ Good:
"Use tavily_search to find the top 5 AI trends in 2024"❌ Bad: "Research AI trends" (too vague)No Empty Fields
No Empty Fields
Omits unused fields entirely:
- No
knowledge: [] - No
memory: false - No
handoffs: []
Verified Quality Scores
Recipes generated with these rules achieve high judge scores:| Task Type | Tool Used | Judge Score |
|---|---|---|
| Wikipedia Research | wiki_search | 9.83/10 ✅ |
| AI Trends Research | tavily_search | 7.25/10 ✅ |
| Data Analysis | read_csv, write_csv | 8.0+/10 ✅ |
Output Structure
After creation, your recipe folder contains just 2 files:agents.yaml Example
tools.py Example
The
metadata block is optional. It’s only needed if you want to publish your recipe to the registry.
