
When
Conditions say which calls the rule applies to. Every condition must hold. A rule with no conditions applies to every call.
Some conditions can change from one turn of a session to the next: Task step, Last check, Check attempts and Context size. A rule that uses one of them picks a model for each turn. Every other rule picks one for the session.
Route
A rule either sends the call to a model or refuses it. Send to a model takes one model or a split. To split, add a second model and drag the bar to set each share. The models you can choose are Sensei and the models you enabled on your provider keys. Refuse the call returns a403 that names the rule. Nothing is served.
Adapt
Adapt on results moves a split by itself, based on verified outcomes. It needs a split between exactly two models. One of them is the model to adapt, and the other takes the rest.
Choose when the model gains share:
- Close to the other model’s, or better. The model gains while it is ahead, level, or behind by no more than the number of points you set under Behind by no more than. At 0, it gains only while ahead or level.
- Ahead of the other model’s. The model gains only while its success rate is at least the number of points under Ahead by at least above the other’s, and the lead is more than chance over the tasks counted.
Guard
Guard limits what a rule can spend and says where calls go when something fails.
Sensei is always the last fallback. With no guard, a rule has no caps and falls back to Sensei if a key fails.
Daily and monthly caps need the Team plan. The fallback is on every plan.
Evidence
A saved rule has an Evidence tab. It shows, live, the calls the rule decided: which model answered what share, how those tasks ended, what a verified task cost on each model, and the newest tasks. Click a task to open its trace, which lists every call with the model that answered, the tools it called, the time and the cost. The evidence is for the saved rule. While the form holds an edit you have not saved, the tab says so. Evidence and traces describes every part of it.Examples
Send the first step of each task in one project to a model on your own key, and keep the tool loop on Sensei:
Try Sensei on a tenth of sessions from Cursor and let results move the split:
Keep regulated projects on Sensei:
Put this rule first. Rules run top to bottom, so it decides before any rule below it.
