recipe command manages reusable agent recipes.
Usage
Commands
| Command | Description |
|---|---|
list | List available recipes |
run | Run a recipe |
create | Create recipe from natural language goal |
optimize | Optimize existing recipe with AI feedback |
init | Initialize a new recipe project |
judge | Judge a trace with LLM |
apply | Apply fixes from a judge plan |
Run Options
| Option | Description |
|---|---|
--input, -i | Input JSON or file path |
--config, -c | Config JSON overrides |
--session, -s | Session ID for state grouping |
--output, -o | Output mode: silent, status, trace, verbose, debug, json |
--json | Output JSON (for parsing) |
--stream | Stream output events (SSE-like) |
--dry-run | Validate without executing |
--explain | Show execution plan |
--verbose, -v | Alias for --output verbose |
--timeout <sec> | Timeout in seconds (default: 300) |
Output Modes
| Mode | Description |
|---|---|
silent | No output (default, best performance) |
status | Shows tool calls inline: ▸ tool → result ✓ |
trace | Timestamped execution trace: [HH:MM:SS] ▸ tool → result [0.2s] ✓ |
verbose | Full interactive output with panels |
debug | Trace + metrics (tokens, cost, model) |
json | Machine-readable JSONL events |
Examples
List recipes
Run a recipe
Run with status output
Run with trace output
Run with input
Create Recipe from Goal
Create a complete recipe from a natural language goal. The AI automatically:- Generates
agents.yamlwith appropriate agents - Selects relevant tools based on the goal
- Creates
TEMPLATE.yamlmetadata - Runs optimization loop (3 iterations by default)
Create Options
| Option | Description |
|---|---|
--output, -o | Output directory (default: current) |
--no-optimize | Skip optimization loop |
--iterations | Number of optimization iterations (default: 3) |
--threshold | Score threshold to stop (default: 8.0) |
Examples
Optimize Existing Recipe
Improve an existing recipe using AI judge feedback. Runs the recipe, evaluates output, and applies improvements.Optimize Options
| Option | Description |
|---|---|
--iterations | Max optimization iterations (default: 3) |
--threshold | Score threshold to stop (default: 8.0) |
--input, -i | Input data for recipe runs |
See Also
- Recipes - Recipe details
- Recipe Registry - Recipe registry

