Write a definition
agent and instructions are required. The definition reference lists every key.
A definition holds no secrets. A tool is a name, and its address and sign-in are stored with the project. That is why the file can live in your repository.
Check, save and run it
check reports the kind of run, the tools and whether each is connected, the actions that ask first, and the repository when the definition names one. push saves a new version each time the definition changes. sensei pull refund-requests writes the saved definition back to a file.
To run a file without saving it, pass --no-save.
Connect tools
A tool is an MCP server your team runs or subscribes to. Connect it once for the project:Authorization header unless you pass --header. It is stored encrypted and never enters a sandbox: Sensei asks for an action, and the runs service makes the call with the secret from outside the computer.
You can also connect tools on the dashboard, under Runs, in Connections.
Actions that wait for a person
ask_first lists actions the agent may not take on its own.
When the agent reaches one, the run stops and shows the action, its arguments and one sentence on why the agent thinks it is right. The computer is saved and switched off while the run waits. You then approve, correct or reject. See Review a run.
Output, evidence and what it is not sure about
When the agent finishes it submits four things.
An agent starts with what you gave it: the input, the tools, and an empty computer. When the work needs something it was not given, it is instructed to stop and say what is missing in
not_sure.
Add a check
check is a command that decides whether the output is acceptable. It runs in the sandbox after the agent submits, with the output in /work/output.json.
A browser
Kept for next time
When you correct an agent on a waiting run, your words are kept and given to every later run of that agent. The agent’s page lists them under Kept for next time, and you can remove one there.The Agents page
Open Runs and switch to Agents. Each saved agent has a card with four figures for the last 30 days, each with its earlier value.
An agent’s page adds its schedules, what was kept for next time, the definition with its versions, and its runs.
