Start on the best model
Build a worker on whatever model gets the job done today, frontier included. Prove the workflow first. Don’t optimize a worker nobody uses yet.
Your traces are the training data
Every trace of every worker stays on your infrastructure. Once a worker runs a task often, those traces are a ready-made record of what good looks like for that task, owned by you.
Distill into a small local model
Use that record to distill the worker into a smaller model and host it yourself. The worker keeps its identity, capabilities and integrations. Only the model underneath changes, and so does the bill.
Keep frontier models for the hard parts
Distillation is not all or nothing. Let the small model handle the routine work and consult a frontier model only for subtasks that need it, through an exfiltration layer that keeps proprietary detail out.