Exact calculations — let the AI run small code
Exact calculations (also called the code runner, run-code tool or "small calculations") let PranorAI give a large AI model a sealed box to run a few lines of code on your own device, so it gets an exact result, for example the total, average or sorted order of numbers you gave it, instead of guessing. It is on by default, and you can turn it off at any time.
| Where to find it | Customization → Model freedom → Let models run small calculations |
| Who gets it | Models at the Full level, and the helper agents they start. Smaller models never get it |
| Default | On |
| Time limit | 3 seconds per calculation |
| Output limit | About 8,000 characters |
| Calculations per message | Up to 12 |
| Cost | Free; runs on your device |
How do I turn exact calculations on or off?
- Open Customization.
- Under Model freedom, switch Let models run small calculations on or off.
The calculation box is only given to a model that works at the Full level (a large model on Automatic, or any model when you set Model freedom to Full) and to the helpers that model starts. You can see what it ran in the N steps line under the reply. For the levels see model freedom and the model's own web search.
What can the code do, and what can't it?
It can add, count, sort, filter and reshape the data the model passes to it, and it can print lines of output. It cannot:
| Not allowed | Detail |
|---|---|
| Reach outside | Use the internet, open a file, read your other chats, or reach the rest of PranorAI |
| Change anything | Change or delete anything |
| Run long | More than 3 seconds (it is stopped, and the model is told with the code RUN_CODE_TIME_LIMIT) |
| Return a lot | More than about 8,000 characters (the rest is cut) |
What do the RUN_CODE codes mean?
A model may run up to 12 calculations per message. If a calculation fails the model is told why with a code. Quote the code if you contact support.
| Code | Meaning |
|---|---|
RUN_CODE_BAD_INPUT | Code empty or too long, or the input data not plain JSON or too long |
RUN_CODE_UNAVAILABLE | This device did not pass the sandbox check |
RUN_CODE_BUSY | Two calculations were already running; the model can call again after they finish |
RUN_CODE_LIMIT | The limit of 12 calculations per message was reached |
RUN_CODE_TIME_LIMIT | The code ran longer than 3 seconds |
RUN_CODE_STOPPED | You pressed Stop |
RUN_CODE_FAILED | The calculation gave no answer in time, or could not run |
Is it safe?
The code is written by the AI model, so PranorAI treats it as untrusted. It runs in a separate sealed worker inside a sandboxed frame that has no access to PranorAI, your files, your accounts or the internet, and the worker is stopped by force after 3 seconds. On each device PranorAI first tests the sandbox; if the test fails, no code runs. What the code prints is treated as text from outside, not as instructions.
One limit you should know: a browser cannot cap how much memory a calculation uses. A badly written calculation that tries to use a huge amount of memory is stopped after 3 seconds, but could briefly slow the app first.
[UNVERIFIED CLAIM — needs audit sign-off before publishing] What leaves your device: nothing. The model's code and its result stay on your device; the result is then given to the model you picked like any other tool result (a Cloud or own-key model receives it the same as a message).
Why isn't the model calculating exactly?
| You see | Cause | Fix |
|---|---|---|
| The model does arithmetic itself | Let models run small calculations is off, or the model is not at the Full level | Switch it on and check the model's level in Customization |
RUN_CODE_UNAVAILABLE | This device did not pass the sandbox check | Update PranorAI; the model calculates without the box |
| It says it needs more time | The limit is 3 seconds | Ask for less data at once |
Frequently asked questions
Can the AI in PranorAI do exact math? Yes. A model at the Full level can run a few lines of code in a sealed box on your device to get exact totals, averages or sorted lists, instead of guessing.
Which models can run calculations? Models at the Full level, meaning a large model on Automatic or any model when Model freedom is Full, and the helpers it starts. Smaller models never get it.
Can the calculation code read my files or use the internet? No. It runs in a sealed worker with no access to your files, accounts, other chats or the internet.
How long can a calculation run? Up to 3 seconds. After that it is stopped and the model is told with RUN_CODE_TIME_LIMIT.
How do I turn exact calculations off? Under Customization → Model freedom, switch off Let models run small calculations.
Can I see what code the model ran? You can see what it ran in the N steps line under the reply.
Next steps
- Read model freedom and the model's own web search.
- See helper agents, the step list and the model test.
- Learn effort, planning, web search and Deep Research.
Do / don't
- Do leave it on when you give a model numbers it must add up correctly.
- Don't expect it to read your files: the model has to pass the numbers in.
- Don't rely on one answer for anything important without checking it.
Last reviewed: 2026-11-10 against code (b3eb4f237)
More in Chat
- Chat — start and run a conversation
- Design system — brand colours and fonts for decks
- Add pictures to Word documents and PowerPoint decks
- Where the AI runs — Local, Cloud, Cloud GPU
- Chat attachments — files, documents, pictures
- Edit Word and PowerPoint files with AI in preview
- Chat history — rename, share, delete
- Voice, memory and AI persona in chat
Was this not what you needed? Contact support or send feedback.