Agents · hedwigai workbooks
When does a team of four Claude Code agents beat one?
A hedwigai workbook is a set of markdown tabs that keeps every write as a numbered version. Agents read and write it over MCP, the protocol through which Claude Code and other assistants call outside tools. Several agents can therefore write to one workbook at once.
We asked when that pays. Each task was a table of companies with empty cells. One agent filled it alone, or four agents filled it together. We measured wall time, cost and correct cells. We also counted input tokens (the text each agent read, in tokens), and we checked whether any agent’s write was lost.
rows lost in 20 runs
No agent overwrote another
The four agents wrote 271 times in all. The server merged 98 of those writes onto a version another agent had written meanwhile.
Read how we measured itfaster when rows needed the web
Four agents won when each row needed the web
Four agents claiming rows filled 32 companies in 107 s. One agent took 215 s. The four cost $2.06 against $1.05.
Read how we measured itthe cost on local files
One agent won when the facts could be searched
One agent searched 510,000 words of local dossiers with regular expressions in 97 s for $0.74. Four agents read their dossiers and took longer.
Read how we measured itSetup
How did four agents share one workbook?
Each agent was a headless Claude Code process with its default model, Claude Opus 5.5. It could reach only the workbook tools and the tools its task needed. A write to the workbook names the version the agent read. When another agent has written since, the server merges the two changes, line by line in text and cell by cell in a table. It refuses a write only where two agents changed the same cell differently, and it answers with both values.
The four agents divided the rows in one of three ways.
- Split. The prompt gave each agent its own rows, so the agents never had to agree on anything.
- Claim. Each agent took a few rows nobody held, filled them, and took more. On the first two tasks the agents wrote their claims into a Claims tab, whose schema refuses a company listed twice. On the last two tasks one server call handed out the rows under a lock.
- No plan. Each agent read the table, filled rows that were still empty, and read it again before its next batch. This setup ran on the first task only.
Tasks
Which tables did the agents fill?
The first three tasks used invented companies. Each company was described in a dossier, a local markdown file. A generator fixed the facts, so every cell had one right answer. In the longer dossiers a company’s chief executive and revenue change over the years, and only the latest value is right.
- The short dossiers were 40 notes of six facts each, 240 cells.
- The long dossiers were 24 histories of 67,000 words in all, 144 cells.
- The very long dossiers were 32 histories of 510,000 words in all, more than one agent’s context window holds, 192 cells.
The fourth task used 32 real and little-known companies, such as Sportequipe, Dunakeszi Járműjavító and Nemocnice Jihlava. The agents could search the web and fetch pages, and they had no files. They filled each company’s founding year, headquarters city, a founder and its website, 128 cells in all. We scored the answers against Wikidata, the structured database behind Wikipedia.
Results
Which setup finished first, and at what cost?
Four agents beat one on the long dossiers and on the companies on the web. One agent won on the short dossiers and on the very long dossiers. Four agents always cost more than one. Every run on the three invented tasks filled every cell correctly.
Short dossiers
Long dossiers
Very long dossiers
Companies on the web
| Task and setup | Runs | Seconds | Cost | Input tokens | Cells right | Writes | Merged |
|---|---|---|---|---|---|---|---|
| Short dossiers: One agent | 2 | 58 | $0.30 | 160k | 240 of 240 | 1 | 0 |
| Split | 2 | 65 | $0.89 | 620k | 240 of 240 | 4 | 3 |
| Claim | 2 | 136 | $1.63 | 1,513k | 240 of 240 | 18 | 11.5 |
| No plan | 2 | 176 | $2.44 | 2,536k | 240 of 240 | 15.5 | 4 |
| Long dossiers: One agent | 2 | 109 | $0.67 | 576k | 144 of 144 | 1 | 0 |
| Split | 2 | 65 | $1.79 | 970k | 144 of 144 | 4 | 3 |
| Claim | 2 | 132 | $2.15 | 1,898k | 144 of 144 | 13 | 6.5 |
| Very long dossiers: One agent | 2 | 97 | $0.74 | 573k | 192 of 192 | 1 | 0 |
| Split | 2 | 108 | $6.39 | 5,259k | 192 of 192 | 4.5 | 3.5 |
| Claim | 2 | 186 | $7.16 | 9,216k | 192 of 192 | 26.5 | 4.5 |
| Companies on the web: One agent | 2 | 215 | $1.05 | 611k | 103 of 128 | 1 | 0 |
| Split | 2 | 126 | $1.57 | 1,015k | 103.5 of 128 | 5.5 | 3 |
| Claim | 2 | 180 | $2.74 | 1,983k | 105 of 128 | 24.5 | 4.5 |
| Claim, tabs kept | 2 | 107 | $2.06 | 1,237k | 108 of 128 | 20 | 5.5 |
Local files
Why did one agent win on local files?
A dossier is a local markdown file that describes one invented company. Every agent pays a fixed price before it reads one: its prompt, its tool definitions and the table. The short dossiers were 40 notes of six facts each. On them one agent read 160,000 input tokens (the text it read, in tokens), and four agents with the rows split read 620,000. The task took one agent 58 s, so four agents had no time to win back.
The very long dossiers were 32 histories of 510,000 words in all, enough to exceed one context window, so that one agent would have to summarise and lose detail. It did not read them. It searched the dossiers with regular expressions, read three files, and wrote the whole table once. It read 573,000 input tokens. Four agents with the rows split opened their dossiers and read 5.3 million, which cost 8.6 times as much. Facts that a search can find gave the four agents nothing to divide.
The web
Why did four agents win when every row needed the web?
A fact on the web cannot be searched for in advance. One agent searched and fetched pages for each company in turn, and the table took it 215 s. Four agents with the rows split searched for four companies at once and finished in 126 s. They read 1.0 million input tokens (the text read, in tokens) against 611,000, and cost $1.57 against $1.05. Both setups agreed with Wikidata, the structured database behind Wikipedia, on about 103 of 128 cells.
Claiming rows was slower at first, at 180 s. The cause was a rule of the write call: a tab that a write left out was removed. Each agent sent only the Companies tab, so its write asked to remove the Claims tab. The server refused that write whenever another agent had changed the Claims tab since, which happened three times in each run.
We changed the rule so that a write keeps every tab it does not list. Under the new rule no write was refused, and claiming rows became the fastest setup. It took 107 s and cost $2.06, and 108 of 128 cells agreed with Wikidata.
A split fixes each agent’s rows before anyone knows which rows are hard. In the first split run, one agent ran for 142 s while the other three finished in 88 to 94 s. A claiming agent that finishes early takes more rows instead of stopping. With two runs of each setup, this explanation fits the times but does not prove them.
Safety
Did any agent overwrite another?
No agent overwrote another. In 20 runs with four agents, the agents wrote 271 times, and the server merged 98 of those writes onto a version that another agent had written after the writer read. No row went missing, and no row appeared twice. When two agents claimed the same company in the Claims tab, the schema refused the second claim, and that agent claimed other rows.
Merging decides who pays for a conflict. Without it, an agent whose version is stale must read the whole table again before it writes. The agents with no plan did exactly that before each batch. They read 2.5 million input tokens (the text read, in tokens) against 620,000 for the split.
What changed
What did the runs change in the workbook?
Each failure in a run became a change to hedwigai, and every later run used the changed server.
- A write that another agent has already made is answered as done. It was refused as “nothing changed” before, and agents treated that answer as an error.
- One call claims rows. The server hands an agent rows that nobody holds and that still have an empty cell.
- A write keeps every tab it does not list. Removing a tab now takes an explicit request.
- An open workbook page re-reads only the tabs that changed. With many writers, each new version then costs one tab’s text for every reader, not the whole workbook.
Limits
What do these runs not show?
Each setup ran twice on each task, so a difference of a few seconds is within the variation between runs. We tested four agents, not dozens. One agent can also send several tool calls at once, and on the web task it did.
Wikidata, the database we scored the web answers against, is not always right, and some names have several forms. Most cells scored as wrong were of that kind: a headquarters given as St Helier where Wikidata says Jersey, or a founder given as Telecom Italia where it says TIM Group.
- All runs took place on 26 November 2026 against the live hedwigai service.
- Cost is the cost each Claude Code process reported, summed over its agents.
- After each run the final table was read back from the workbook and scored cell by cell.
- Any MCP client can write to a workbook the same way:
claude mcp add --transport http hedwigai https://mcp.hedwigai.com.
More head-to-head evals
| Measure | Releases and capability | Shares held | TimesFM 3 |
|---|---|---|---|
| Error six months ahead, points (average of 3 cutoffs) | 20.9 | 24.2 | 27.7 |
| Cutoffs with the lowest error, of 3 | 3 | 0 | 0 |
| Measure | Physical Agent | Qwen3.5-4B |
|---|---|---|
| LIBERO frames answered with a tool call | 400 / 400 | 18 / 400 |
| Target movement per cm of object movement (median) | 0.02 cm | — |
| Measure | Particle-1 | DeepSeek V4.1 Flash | GLM-5.3-Flash |
|---|---|---|---|
| Rows right, blind | 91.2% | 89.4% | 90.8% |
| Median seconds per run | 375 | 315 | 144 |
| Measure | GLM-5.3 | DeepSeek V4.1 Flash |
|---|---|---|
| Right, of 75 | 75 | 71 |
| Seconds a question, median | 3.9 | 1.8 |
| Measure | First run | Best since |
|---|---|---|
| Landscape, seconds | 937 | 233 |
| Memo, seconds | 759 | 602 |
| Measure | Qwen3 235B | GLM-5.2 | Gemini 3.8 Flash | Claude Opus 5 |
|---|---|---|---|---|
| Seconds to the plan, median | 27 | 48 | 57 | 94 |
| Plans written, of three runs | 2 | 3 | 3 | 3 |
| Measure | SubQ | jev | Decider | Nimble |
|---|---|---|---|---|
| Found, mean of five columns at section length | 64% | 65% | 66% | 68% |
| Mechanism of action, found at section length | 57% | 51% | 61% | 54% |
| Measure | ask | Apollo | treg |
|---|---|---|---|
| Usable leads | 13 of 40 | 7 of 40 | 6 of 28 |
| Cost per usable lead | $0.037 | $0.27 | $0.23 |
| Measure | ask with jev | ask with Decider |
|---|---|---|
| Questions right, of 92 | 89 | 89 |
| Wrong answers | 1 | 2 |
| Measure | jev | ask |
|---|---|---|
| Our 370 clinical decisions, right | 94.6% | 93.0% |
| PubMedQA, right (best EdgeEvals scored: 62.2%) | 77.0% | 74.4% |
| Measure | ask | Claude Opus 5.5 |
|---|---|---|
| Questions right, of 95 | 59 | 63 |
| Small companies right, of 20 | 13 | 9 |
| Measure | realestate-us | Best of four assistants |
|---|---|---|
| Floor-plan rents right, of 26 | 26 | 23 |
| Amenities claimed the listing doesn't state | 12 | 129 |
| Measure | ask | jev |
|---|---|---|
| Right, of the questions answered | 98% | 79% |
| Wrong answers, of 92 | 2 | 19 |
| Measure | Trained localiser | Best of four frontier models |
|---|---|---|
| Mean overlap with the defect (IoU, 0 to 1) | 0.421 | 0.109 |