← catalog / Harness Engineering / Model routing
Decide which model tier and effort level each incoming prompt deserves, and whether the turn needs tools or a long context window.
5 questions, declared once. Jev and Laya accept this shape directly; the Claude path renders it into a prompt and a JSON schema.
{
"difficulty": {
"type": "score",
"instructions": "How hard is this request for a language model to get right?",
"criteria": [
"Trivial: a greeting, a lookup, or a one-line restatement",
"Simple: a short factual answer or a small well-specified edit",
"Moderate: multi-step reasoning or a change across a few files",
"Hard: novel design, subtle debugging, or long-horizon planning"
]
},
"domain": {
"type": "choice",
"instructions": "What kind of request is this?",
"criteria": {
"code": "Writing, debugging, reviewing, or explaining code",
"analysis": "Reasoning over data, documents, or trade-offs",
"writing": "Drafting or editing prose",
"extraction": "Pulling structured fields out of text",
"chitchat": "Greetings, small talk, or meta questions about the assistant"
}
},
"needs_tools": {
"type": "noul",
"instructions": "Would answering this well require calling tools or fetching outside information?",
"criteria": {
"true": "Asks for something to be run, executed, applied, deployed, or fetched, or needs file access, a search, or data not present in the conversation",
"false": "Answerable in full from what is already in the conversation"
}
},
"cost_of_error": {
"type": "score",
"instructions": "What happens if the answer is wrong?",
"criteria": [
"Nothing; the user notices and rephrases",
"Wasted time, easily corrected",
"Broken code or a bad decision that takes real work to undo",
"Irreversible harm: data loss, money moved, or a published mistake"
]
},
"long_context": {
"type": "noul",
"instructions": "Does the request depend on a large amount of supplied material?",
"criteria": {
"true": "Refers to long documents, large files, or a long conversation history",
"false": "Self-contained and short"
}
}
}Derived from the questions above, so every backend is asked the same thing.