All news
Product5 min read

Code Mode: many tool calls in one step

Set a chat to Code Mode and Bearly writes code that makes many tool calls at once. On our 12-task test it finished in under half the time, at about a fifth of the cost.

A fan of thin ivory lines narrows through an ivory funnel into one short orange bar, in front of a grey disc on a charcoal ground

Bearly has a new way to work through tasks with many steps. Set a chat's Execution Mode to Code Mode, and when a request needs many tool calls, such as checking a project's chats against its files and totaling what they say, Bearly writes code that makes those calls together and works through the results before it answers. On our test of 12 multi-step tasks, run on November 15, it finished in under half the time of the usual way, at about a fifth of the model cost.

Code Mode is in a chat's sliders menu on the web, in the desktop app, and in the iOS app. Classic stays the default, and you can switch any chat at any time.

What changes

In Classic, the model asks for tool calls and reads every result itself. On a task where one result decides the next call, such as listing a project's chats, reading them, and then checking what they say against a file, that means many trips back to the model. Each trip rereads the conversation so far, so time and cost grow with every one.

In Code Mode, the model writes a short piece of code that makes the calls and works through what comes back. Only what the code returns goes to the model. In our test, Classic took 36 model steps per task on GPT 6.1 Sol (since replaced by GPT 6.2 Sol), 18 on DeepSeek V4.1 Flash, and 10 on Bearly Pro. Code Mode took about 6 or 7 on each.

An example

A small case shows how it looks. Say a project called Clients holds one chat per client, and you want the price you agreed with each. Switch the chat to Code Mode, then ask:

Read every chat in my Clients project. From each one, pull the price we agreed and the date we agreed it. Make a table with the chat title, the date, and the price, add a total row, and save the table as a CSV file in this chat.

Bearly asks before it looks through your chats and before it reads the first one. Answer This chat on each card and it reads the rest without asking again. The table arrives with its total, and the CSV file stays in the chat, ready for /chart or a Page.

You can see everything it did. In the answer's Steps, the reading shows as one row with its description and how many calls it made, such as "8 tool calls". Open it and each call is listed in order, with what it asked for and what came back. Show details shows the code Bearly wrote.

With eight short chats, this takes about 15 seconds in either mode on Bearly Pro, because Classic can ask for several reads together. The gap opens on longer work, where each result leads to more calls.

The numbers

On November 15 we ran the same 12 tasks three times each, in both modes, on three models: 36 trials a side. Each task has Bearly read and cross-check chats, files, and records, then count, match, or total what it finds, and each answer is checked against the known result.

Model Time per task, Classic Time per task, Code Mode Model cost of 36 trials, Classic Model cost of 36 trials, Code Mode
Bearly Pro 47 s 21 s $0.59 $0.12
GPT 6.1 Sol 119 s 23 s $9.25 $2.00
DeepSeek V4.1 Flash 58 s 13 s $2.72 $0.35

Times are the average per task, and cost is what the model runs cost us, not a price you pay. Code Mode also scored higher on all three models: more of its answers matched the known result.

The gain comes from tasks with many calls to make, and it's largest on models that take the most steps in Classic. A question that needs one tool call, such as tomorrow's weather, takes about the same time in either mode. How often Bearly writes code for a task also depends on the chat's model.

The same approvals, one card per step

Code Mode doesn't give Bearly any new reach. The code can only use Bearly's own tools, so it reaches the web, your files, and your apps through the same approval cards and per-reply limits as Classic.

What changes is how often you're asked. When one step needs several kinds of action that ask first, such as reading and changing files, a single card lists them all, and you answer for the whole step: Deny, Once, This chat, or Always. Deleting still asks on its own card every time, and so does reading your other chats until you allow it for the chat.

What Bearly keeps between steps lasts until the answer ends; your next message starts from what's in the chat. On an iPhone or iPad in Lockdown Mode, which blocks this kind of code, Code Mode still works but calls tools one at a time.

Turn it on

In any chat, open the sliders button, choose Execution Mode, and select Code Mode. It applies from your next message, and only to that chat. In an organization, an admin can turn Code Mode off for the team.

The Bearly Manual covers Execution Mode in full, including a recipe that totals a figure across a project's chats.

Get Bearly

Choose how to continue

Continue in your browser to start using Bearly. Desktop downloads are available from the footer.