# Put each kind of work *where it belongs.*

Slide 3 of 11 · How Mindset works

Only judgment needs the model. Everything else is cheaper, faster and the same every run when it doesn’t.

![A judgment call goes in the agent; one right answer in a function; an order that must hold in a script; an outside system in an operation; something to show in a widget](https://docs.mindset.ai/images/decks/how-mindset-works/primitives.svg)

## Speaker notes

A function runs fixed steps top to bottom and returns one answer; steps can repeat over up to 1,000 items, and the agent calls it as a tool. A script splits work into phases, each with its own resources and a gate Mindset checks after every turn, so a write held for the last phase cannot run early; phases only go forward. An operation is one named read or write on a connected system. A widget is a layout the agent fills, and Mindset refuses data in the wrong shape. Functions, gates and phases can read labels your backend sets on the session, which the model cannot change.
