Models, harness profiles, and token budgets
Notebook· 11.02· 1.5–2.5 h· Lesson 88 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Configure a deep agent's model with a
provider:modelstring, aninit_chat_modelinstance, or the course helperdeep_model()(timeouts, retries, rate limiter). - Shape the harness per model with harness profiles (prompt suffix, hidden tools, the default subagent) and provider profiles (init kwargs).
- Swap the model at runtime with a
wrap_model_callmiddleware. - Budget tokens on a free tier: estimate a run before you start it, rate-limit it, cap it, and keep a fallback.
- Compare models on one task (pass rate with an interval, tokens, latency, paid-tier cost) and read the official eval matrix critically.
Before you start
Lesson 11.01; Lesson 01.06 (tokens, cost, rate limits); Lesson 10.03 (intervals).
