Skip to content
PranorAI

Exact calculations — let the AI run small code

Updated

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 itCustomization → Model freedom → Let models run small calculations
Who gets itModels at the Full level, and the helper agents they start. Smaller models never get it
DefaultOn
Time limit3 seconds per calculation
Output limitAbout 8,000 characters
Calculations per messageUp to 12
CostFree; runs on your device

How do I turn exact calculations on or off?

  1. Open Customization.
  2. 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 allowedDetail
Reach outsideUse the internet, open a file, read your other chats, or reach the rest of PranorAI
Change anythingChange or delete anything
Run longMore than 3 seconds (it is stopped, and the model is told with the code RUN_CODE_TIME_LIMIT)
Return a lotMore 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.

CodeMeaning
RUN_CODE_BAD_INPUTCode empty or too long, or the input data not plain JSON or too long
RUN_CODE_UNAVAILABLEThis device did not pass the sandbox check
RUN_CODE_BUSYTwo calculations were already running; the model can call again after they finish
RUN_CODE_LIMITThe limit of 12 calculations per message was reached
RUN_CODE_TIME_LIMITThe code ran longer than 3 seconds
RUN_CODE_STOPPEDYou pressed Stop
RUN_CODE_FAILEDThe 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 seeCauseFix
The model does arithmetic itselfLet models run small calculations is off, or the model is not at the Full levelSwitch it on and check the model's level in Customization
RUN_CODE_UNAVAILABLEThis device did not pass the sandbox checkUpdate PranorAI; the model calculates without the box
It says it needs more timeThe limit is 3 secondsAsk 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

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

Was this not what you needed? Contact support or send feedback.