Skip to main content
The recipe command manages reusable agent recipes.

Usage

praisonai recipe [OPTIONS] COMMAND [ARGS]...

Commands

CommandDescription
listList available recipes
runRun a recipe
createCreate recipe from natural language goal
optimizeOptimize existing recipe with AI feedback
initInitialize a new recipe project
judgeJudge a trace with LLM
applyApply fixes from a judge plan

Run Options

OptionDescription
--input, -iInput JSON or file path
--config, -cConfig JSON overrides
--session, -sSession ID for state grouping
--output, -oOutput mode: silent, status, trace, verbose, debug, json
--jsonOutput JSON (for parsing)
--streamStream output events (SSE-like)
--dry-runValidate without executing
--explainShow execution plan
--verbose, -vAlias for --output verbose
--timeout <sec>Timeout in seconds (default: 300)

Output Modes

ModeDescription
silentNo output (default, best performance)
statusShows tool calls inline: ▸ tool → result ✓
traceTimestamped execution trace: [HH:MM:SS] ▸ tool → result [0.2s] ✓
verboseFull interactive output with panels
debugTrace + metrics (tokens, cost, model)
jsonMachine-readable JSONL events

Examples

List recipes

praisonai recipe list

Run a recipe

praisonai recipe run my-recipe

Run with status output

praisonai recipe run my-recipe --output status

Run with trace output

praisonai recipe run my-recipe --output trace

Run with input

praisonai recipe run my-recipe --input '{"query": "Hello"}'

Create Recipe from Goal

Create a complete recipe from a natural language goal. The AI automatically:
  • Generates agents.yaml with appropriate agents
  • Selects relevant tools based on the goal
  • Creates TEMPLATE.yaml metadata
  • Runs optimization loop (3 iterations by default)
1

Run Create Command

praisonai recipe create "Build a web scraper for news articles"
2

Recipe Generated

Creates folder with agents.yaml, TEMPLATE.yaml, and tools.py
3

Auto-Optimization

Runs 3 optimization iterations with AI judge feedback

Create Options

OptionDescription
--output, -oOutput directory (default: current)
--no-optimizeSkip optimization loop
--iterationsNumber of optimization iterations (default: 3)
--thresholdScore threshold to stop (default: 8.0)

Examples

praisonai recipe create "Research AI trends and summarize"

Optimize Existing Recipe

Improve an existing recipe using AI judge feedback. Runs the recipe, evaluates output, and applies improvements.
1

Run Optimize

praisonai recipe optimize my-recipe
2

Target Specific Area

praisonai recipe optimize my-recipe "improve error handling"

Optimize Options

OptionDescription
--iterationsMax optimization iterations (default: 3)
--thresholdScore threshold to stop (default: 8.0)
--input, -iInput data for recipe runs

See Also