Cookbook

Four recipes that put Enso, Kai and Zen in one loop: route a request, triage with typed answers, gate an agent's command, and drive an agent from programs instead of prompts.

Each recipe is one job, end to end, in requests you can paste. Together they show the pattern the platform is built around: Enso routes each request, Kai decides the bounded questions, Zen reasons through the open ones, and your policy keeps the last word.

RecipeWhat it showsRuns on
Route with Ensoone request for every model, a price cap per call, the model that answered, feedback that trains the routerapi.hanzo.ai
Triage with Kai, reply with Zenthree decisions with no generated tokens, then one generationapi.hanzo.ai
Gate an agent's commanda Decision Program's thresholds and verdict rule, joined with your policy by modeapi.hanzo.ai
Drive an agent loopthe loop's control flow as programs — preflight, generate, check done — not as promptsapi.hanzo.ai

Kai: decisions are POST api.hanzo.ai/v1/decisions with a Hanzo key; Kai is served by API only. The decision responses quoted in these recipes are kai-1's, the build that route serves, from its v0.3.14 runtime on CPU.

export HANZO_API_KEY=...                  # platform.hanzo.ai
export DECISIONS=https://api.hanzo.ai
Was this page useful?
Last updated Oct 9, 2026