Blog
hedwigaihedwigaihedwigai

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.

Setup

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

One agent58 s · $0.30Split65 s · $0.89Claim136 s · $1.63No plan176 s · $2.44

Long dossiers

One agent109 s · $0.67Split65 s · $1.79Claim132 s · $2.15

Very long dossiers

One agent97 s · $0.74Split108 s · $6.39Claim186 s · $7.16

Companies on the web

One agent215 s · $1.05Split126 s · $1.57Claim180 s · $2.74Claim, tabs kept107 s · $2.06
Wall time from the first agent’s start to the last agent’s end, with the cost of all agents, averaged over the runs of each setup. Bars are scaled within each task.
Averages over the runs of each setup. Split gave each agent its rows in the prompt; Claim took rows as the agents went; Claim, tabs kept ran after a write stopped removing the tabs it left out. Input tokens are the tokens all agents read, cached or not.
Task and setupRunsSecondsCostInput tokensCells rightWritesMerged
Short dossiers: One agent258$0.30160k240 of 24010
Split265$0.89620k240 of 24043
Claim2136$1.631,513k240 of 2401811.5
No plan2176$2.442,536k240 of 24015.54
Long dossiers: One agent2109$0.67576k144 of 14410
Split265$1.79970k144 of 14443
Claim2132$2.151,898k144 of 144136.5
Very long dossiers: One agent297$0.74573k192 of 19210
Split2108$6.395,259k192 of 1924.53.5
Claim2186$7.169,216k192 of 19226.54.5
Companies on the web: One agent2215$1.05611k103 of 12810
Split2126$1.571,015k103.5 of 1285.53
Claim2180$2.741,983k105 of 12824.54.5
Claim, tabs kept2107$2.061,237k108 of 128205.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

Can releases and capability forecast AI market share better than a time-series model?Six months ahead, a model of releases and capability scores put 20.9 points of OpenRouter's tokens on the wrong lab. Holding shares put 24.2, TimesFM 3 27.7.
MeasureReleases and capabilityShares heldTimesFM 3
Error six months ahead, points (average of 3 cutoffs)20.924.227.7
Cutoffs with the lowest error, of 3300
Read the forecasts
Does Physical Agent aim its tool calls at the object?Physical Agent writes a robot tool call on 400 of 400 frames, but moving the object 16 cm leaves its targets where they were.
MeasurePhysical AgentQwen3.5-4B
LIBERO frames answered with a tool call400 / 40018 / 400
Target movement per cm of object movement (median)0.02 cm—
Read the comparison
Particle-1, DeepSeek V4.1 Flash and GLM-5.3-Flash in Claude Code with hedwigai workbooksParticle-1, DeepSeek V4.1 Flash and GLM-5.3-Flash, 180 runs graded blind, rows right: 91.2%, 89.4% and 90.8%, intervals overlapping.
MeasureParticle-1DeepSeek V4.1 FlashGLM-5.3-Flash
Rows right, blind91.2%89.4%90.8%
Median seconds per run375315144
Read the comparison
GLM-5.3 against DeepSeek V4.1 Flash on 75 questionsTwo models answer the same 75 questions; one is always right, the other 14× cheaper.
MeasureGLM-5.3DeepSeek V4.1 Flash
Right, of 757571
Seconds a question, median3.91.8
Read the comparison
How we made a long-running AI agent for knowledge work 4× fasterOne cited knowledge work task through 13 experiments: 937 s to 233 s, with the model held constant.
MeasureFirst runBest since
Landscape, seconds937233
Memo, seconds759602
Read the report
Ten models plan a change to a spreadsheet: which do it in under a minute, traced call by callTen models drive one agent harness through the same spreadsheet request; six write the plan, timed and traced call by call.
MeasureQwen3 235BGLM-5.2Gemini 3.8 FlashClaude Opus 5
Seconds to the plan, median27485794
Plans written, of three runs2333
Read the comparison
SubQ, jev, Perplexity's Decider and Bespoke's Nimble on biotech diligence memos: finding the sentences a column is aboutFour decision models judge every sentence of ten biotech diligence memos for five columns, scored against sentences a person marked.
MeasureSubQjevDeciderNimble
Found, mean of five columns at section length64%65%66%68%
Mechanism of action, found at section length57%51%61%54%
Read the comparison
Leads with a reason to write: hedwigai ask, Apollo and treg on one brief40 leads each, every one checked: the right person, an inbox that accepts, and a dated reason to write.
MeasureaskApollotreg
Usable leads13 of 407 of 406 of 28
Cost per usable lead$0.037$0.27$0.23
Read the comparison
Self-hosted decisions for ask: Perplexity's open Decider in place of jev on 92 company questionsThe decisions inside hedwigai ask made by Perplexity's open Decider on two NVIDIA RTX 3090s, against jev.
Measureask with jevask with Decider
Questions right, of 928989
Wrong answers12
Read the comparison
Clinical decisions: jev and ask on System One, PubMedQA, SciFact and a 370-decision setEdgeEvals' System One board, PubMedQA, SciFact, and a clinical set built to System One's rules.
Measurejevask
Our 370 clinical decisions, right94.6%93.0%
PubMedQA, right (best EdgeEvals scored: 62.2%)77.0%74.4%
Read the comparison
Executive lookup for US-listed companies: Claude Opus 5.5 and ask on 95 questionsWho runs a public company, and how to email them: a frontier model from memory against hedwigai ask.
MeasureaskClaude Opus 5.5
Questions right, of 955963
Small companies right, of 20139
Read the comparison
Rental comps: floor-plan rents and amenities on 14 listings, five assistants comparedRent per floor plan and amenities for US rentals: hedwigai realestate-us against Claude, GPT, Gemini and Perplexity with web search.
Measurerealestate-usBest of four assistants
Floor-plan rents right, of 262623
Amenities claimed the listing doesn't state12129
Read the comparison
Company screening from SEC filings: jev, Vela 2.0 and ask on 92 yes/no questionsYes-or-no questions about public companies, answered by two decision models alone and by hedwigai ask.
Measureaskjev
Right, of the questions answered98%79%
Wrong answers, of 92219
Read the comparison
Defect localization in industrial images: four frontier models and a trained localizerFour frontier models asked to put a box around what they just described.
MeasureTrained localiserBest of four frontier models
Mean overlap with the defect (IoU, 0 to 1)0.4210.109
Read the comparison