One real question on a real contract: FEMA NFIP Dwelling Form (public domain). The naive keyword search says "not covered". The loop finds the cover on page 9.
Left: the question and the cited answer. Right: every tool call the agent made, in order.
Offline demo · real trace embedded · no server, no API keyAfter a flood, will the policy pay the extra cost to rebuild my building to meet current floodplain building codes?
The phrase "building code" never appears in the policy. The cover is filed under the trade term. That is why one keyword lookup gets it wrong, and why the loop is needed.
The model is not being clever here. It is filling in the arguments of two tiny tools (search, read_page) in a loop. The intelligence is the loop, not the model.
Point the identical generic loop at "compare the two policy forms" and it never stops. It keeps searching and reading both documents and never produces an answer, even after 32 turns and 168 seconds. Comparison is a pipeline (parse both, align, diff, report), not an open search. The fix is not a better prompt; it is to give the agent a typed compare tool that runs the deterministic comparison and returns a structured result. The loop works when the task decomposes into the tools you gave it, and stalls when the right tool is missing. The engineering is the tools.