On 5 and 6 November, we were at AI Engineer Shanghai 2026, at the Hilton Shanghai Hongqiao. More than 50 speakers from Chinese and international AI teams talked about models, agents and infrastructure. Three talks on the second day answered the same question from three sides: as agents get stronger, what should still be controlled by code, and what can we leave to the model?
These are our notes from those talks, and what we take from each one into our own work. Every number below comes from the speakers’ slides.
MiniMax: let go of judgment, keep control of invariants
Ronny He, Head of MiniMax Code R&D, asked a question that every team with an agent should ask after each model upgrade: which parts of the harness just became dead weight?
His slides listed signs that harnesses are shrinking where models caught up. One example: Anthropic cut the Claude Code system prompt for newer models by more than 80%, partly by loading Skills and tools on demand. A single main agent with Skills often beats a set of subagents.
His rule for what stays is short. Let go of judgment, keep control of invariants. Judgment is anything the model now decides better than your if-statements: which tool, what plan, what to summarise. Invariants are things the model cannot see, cannot undo or cannot be trusted to remember: the cache prefix, the clock, process lifetimes, state that must survive.
# per feature, every model upgrade
if hidden(x) or irreversible(x):
harness.enforce(x)
else:
expose(x); model.decide(x)
# then: eval before vs. after Two of his case studies were very concrete:
- Tools found at call time keep the cache. Third-party connector tools used to go into the tool list on every turn. A user who connected or disconnected an app changed that list, and the cached prompt prefix was lost. MiniMax moved discovery inside a tool call. The model takes one extra step, but the prefix stays byte-stable.
- Fewer round trips, not a smarter model. Past 30 to 50 tool definitions, models get worse at picking the right one. MiniMax gave the model a
run_codetool that calls the other tools from JavaScript. On 150 code tasks and 63 office-document tasks, scores stayed flat while tokens fell 13% and 35%, and requests fell from 104 to 93 and from 102 to 70. The catch: whenrun_codesat next to every native tool, the model barely used it, and tokens went up 5%. It only worked once most tools were available as code only.
A third case explained why time belongs to the harness. Anthropic’s default prompt cache lives 5 minutes. An agent that waits 6 minutes for npm run dev sends no requests, so its cached tokens probably expire. MiniMax starts every command in the background and waits in the foreground for at most 60 seconds. The model cannot see the cache clock, so the harness owns it.
What we take from it. We cut our own MCP tool list and protect our cached prompt prefix for the same reasons, and we measured the effect with evals. His fourth question for every harness feature, “did it survive an eval?”, is the part we would underline. Look at requests and tokens, not only the score.
Liquid AI: decision models with a confidence you can use
Leonie Monigatti, Member of Technical Staff at Liquid AI, talked about a model type that many agent builders need but rarely name: the decision model. It takes a state and a question and returns a typed answer with a confidence, in one forward pass, with no text generation. An agent can use that confidence directly as a gate: act above 0.9, ask the user below it.
A basic version needs any LLM and about 20 lines of code: label the options A, B and C, read the model’s scores for those letters at the last position, and apply softmax. Her slides then showed why that is not enough.
- Option order changes the answer. The same email, “I was charged twice for my order last week”, went to technical support (0.43), fraud (0.80) or billing (0.80), depending only on the order of the options. Her team’s answers were fine-tuning with shuffled options, and bidirectional instead of causal attention.
- Raw confidence is too high. Before calibration, when the model said 90%, it was right 68% of the time. Plain temperature scaling brought that to 88%, so a more complex reinforcement-learning method was not needed.
Liquid AI released two open decision models of about 2B parameters, d1-2B and d1-Omni-2B, small enough for on-device use.
What we take from it. We use LLMs for routing and triage decisions, and the option-order test belongs in every eval of a step like that: shuffle the options and check that the answer stays the same. A confidence is only useful as a gate if it is calibrated, so measure “says 90%, right how often?” before you set a threshold.
1Password: should this agent be allowed to do that?
Grace Li, Senior Principal Applied AI Engineer at 1Password, closed the session with the question in her title. Her example: a user asks an agent to find out why checkout fails after a deploy. The agent reads the logs, as asked. Then it proposes aws ecs update-service ... --desired-count 6, which scales production. Useful? Maybe. Asked for? No.
Permission alone does not catch this. The agent may well have the right to scale the service. The question is whether the call fits the task. In her model, the user’s task is trusted and the agent’s stated reason is not, because a reason can be wrong or injected through tool output.
She set three requirements for a runtime intent judge: it judges the call in the context of the task, it answers fast because every tool call waits on it, and it runs locally because commands, hostnames and logs are sensitive. Then she tested small models against them.
| Judge model | Accuracy, forced to pick a label | Accuracy, “unknown” counts as a miss |
|---|---|---|
| Jev 1.13 (hosted) | 93% | 92% |
| Clef-Flash 9B | 92% | 89% |
| Liquid d1 (2B) | 91% | 48% |
| Laya 421M | 54% | 42% |
| Qwen 2.5 7B, prompted | not applicable | 72% |
The top three were close. The difference was in how often each model said “unknown”. Liquid d1 deferred on 33 calls and got 31 of the other 32 right. The prompted small model reached 72% and gave no confidence to act on.
Her most useful example was an error in the dangerous direction. Asked to quiet noisy GuardDuty findings, an agent proposed aws guardduty delete-detector, which turns off security monitoring. The correct level is admin. The smallest model labelled it a plain delete, with low confidence. The fix was to defer every call with low confidence to a human. For Clef-Flash, calls labelled safer than they were fell from 2 to 0, and it still decided 52 of 65 calls on its own. For Laya, they fell from 13 to 2, but it deferred 53 of 65 calls: safe, but not useful.
Her reference architecture fits on one line from the slide: only policy, with a current grant, can let a call run. An approval gateway holds every call. An intent judge with no credentials returns typed answers with probabilities. A deterministic policy gate allows, denies or defers. She tracks two numbers for the whole system: risky calls let through, with a target of 0, and safe calls let through, as high as possible.
What we take from it. This is the clearest version we have seen of a rule we follow: the model can describe and suggest, but code decides what is allowed. Her tuning order is also worth copying: fix the input, check your labels, choose thresholds, and fine-tune last.
The model describes the call. Policy decides.
The common thread
The three talks came from a model lab, an on-device model company and a security company. They agreed on one design:
- The model decides what it can see. Tool choice, plans, summaries and labels can move to the model as it improves.
- Code owns what the model cannot see or undo. Cache lifetimes, clocks, permissions and irreversible actions stay in the harness.
- Confidence connects the two. A calibrated confidence lets code decide when to act, when to ask and when to stop.
- Evals decide what survives. Every speaker showed measurements, including the results that did not go their way.
Which harness rules exist only to correct an older model, and what breaks if you delete them? Which actions are irreversible, and is each one gated in code, not in a prompt? Where your agent uses a model’s confidence, have you measured how often “90% sure” is right?
We hold the same line in our own builds, from checking extracted values in code instead of prompts to the rules in why every SaaS with customers should ship an MCP server. If you are putting an agent into your product and want it to act safely, see how we integrate AI.